Category: Activity log

03/05/17

Permalink 02:34:53 pm, by Greg, 23 words, 32 views   English (CA)
Categories: Servers, Activity log; Mins. worked: 450

Building an Ubuntu package server - apt-mirror, reprepro, tftp

I'm building a new apt Frankenserver out of spare parts, and have re-documented the process from scratch. Notes are in the utilities repo.

01/05/17

Permalink 09:05:19 am, by mholmes, 77 words, 23 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation, Documentation; Mins. worked: 30

Upgrading teiJenkins java

The upgrade for Jenkins on teiJenkins was being kept back, and it turned out this was because Ubuntu 14.04 has Java 7 by default. I added a PPA for Java 8, updated the alternatives (sudo update-alternatives --config java) to point to the new one, and was then able to install Java 8. Following that, the Jenkins update went ahead. I elected to keep my existing config for Jenkins rather than overwrite. It needed a reboot for Apache to find Jenkins again.

Permalink 08:33:12 am, by mholmes, 23 words, 22 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation, Documentation; Mins. worked: 20

Extended partition on jenkins.hcmc.uvic.ca

RE provided new space to double the available drive space; followed my own instructions here to extend the partition. No problems at all.

20/04/17

Permalink 05:02:07 pm, by mholmes, 132 words, 30 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation, Documentation; Mins. worked: 90

How to deploy a new XAR on Jettys

Today I blew up a couple of the apps and had to restart them, through doing this the wrong way. When you have a new XAR to deploy:

  1. Use Chrom*, not FF.
  2. Connect over the internal URL on :8080.
  3. Upload the new package.
  4. If it goes wrong and you see an error message, the chances are the db is now set to read-only.
  5. If that happens, try shutting down the db from the web interface. If that works, restart it from /etc/init.d/jetty. If it fails, you may need to kill all the relevant processes on Peach before restarting.

With these big XARs, we may need to consider testing an alternative process where we uninstall the old XAR and then put the new one in the autodeploy folder before restarting eXist.

24/03/17

Permalink 03:11:21 pm, by mholmes, 24 words, 70 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation; Mins. worked: 60

Rebuild of eXist template

The eXist team tagged 3.1.1, so I've rebuilt our template from that tag, tested it, and pushed it to the existDeployer folder on home1t.

23/03/17

Permalink 04:07:11 pm, by mholmes, 28 words, 63 views   English (CA)
Categories: Servers, Activity log; Mins. worked: 60

Server down issue

Our MySQL server was down ("too many connections"); spent some time reporting, investigating, and fielding and responding to queries from users. In the end a restart fixed it.

20/03/17

Permalink 05:21:32 pm, by mholmes, 25 words, 81 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation, Documentation; Mins. worked: 30

eXist deployment: tested development branch

Tested a build of the dev branch with my script and deployment stuff locally; all good, and the bug with the java client is fixed.

07/03/17

Permalink 04:44:52 pm, by mholmes, 310 words, 86 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation; Mins. worked: 180

Setting up and testing Jetty/Apache config for Peach

This has been a relatively long process to figure out how best to configure a Jetty/eXist instance to run happily alongside others, on a test domain, and how to test that setup. This is what I've done:

  • Install apache locally from the repos.
  • Install mod_jk from the repos.
  • Turn on SSL (sudo a2enmod ssl) and set up a self-signed cert (lots of docs on this available).
  • Set up test domains in the local hosts file:
    127.0.0.1	localhost
    127.0.1.1	spud
    127.0.2.1	test-internal.hcmc.uvic.ca
    127.0.3.1	moeml-internal.hcmc.uvic.ca
    
  • Set up virtual domains in Apache -- example sites-enabled/test.conf:
    <VirtualHost 127.0.2.1:80>
    	ServerAdmin webmaster@localhost
    	ServerName test-internal.hcmc.uvic.ca
    	ServerAlias test
    	ProxyRequests Off
    	<Proxy *>
    		Order deny,allow
    		Allow from all
    	</Proxy>
    	ProxyPreserveHost on
    	ProxyPass / http://test-internal.hcmc.uvic.ca:8080/ nocanon
            ProxyPassReverse / http://test-internal.hcmc.uvic.ca:8080
            AllowEncodedSlashes NoDecode
    </VirtualHost>
    
    <VirtualHost 127.0.2.1:443>
            ServerAdmin webmaster@localhost
            ServerName test-internal.hcmc.uvic.ca
            ServerAlias test
            SSLEngine on
            SSLCertificateFile /etc/ssl/certs/spud.crt
            SSLCertificateKeyFile /etc/ssl/private/spud.key
            ProxyRequests Off
            <Proxy *>
                    Order deny,allow
                    Allow from all
            </Proxy>
            ProxyPreserveHost on
            ProxyPass / http://test-internal.hcmc.uvic.ca:8080/ nocanon
            ProxyPassReverse / http://test-internal.hcmc.uvic.ca:8080
            AllowEncodedSlashes NoDecode
    </VirtualHost>
    
  • In these four files in the Jetty instance:
    tools/jetty/etc/jetty-http.xml
    tools/jetty/etc/jetty-ssl.xml
    tools/jetty/etc/standalone-jetty-http.xml
    tools/jetty/etc/standalone-jetty-ssl.xml
    
    change the <Set name="host"> to <Set name="host">test-internal.hcmc.uvic.ca</Set>. (I think only the first two matter for our purposes, but it does no harm to change the others.)
  • Start the Jetty instance, and restart apache. Access the jetty app on test-internal.hcmc.uvic.ca.

I still have to test this with a second Jetty running side-by-side on a different domain; I'll do that tomorrow.

14/02/17

Permalink 05:04:29 pm, by mholmes, 70 words, 55 views   English (CA)
Categories: Servers, R & D, Activity log, Documentation; Mins. worked: 30

Issue with CCAP AtoM

JA called to report that the config on the CCAP db had been hosed by the visit of a robot to a specific URL, which triggered something completely unexpected and unwanted. He was able to recover it, and add protection against a similar event both on CCAP and on LOI. The AtoM documentation is apparently not working properly so we can't find anything on their site about this particular "feature".

13/12/16

Permalink 04:39:33 pm, by mholmes, 69 words, 40 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation; Mins. worked: 120

Learning Docker

The attempt to build a Jenkins server using a pure shell-script approach, which worked for Ubuntu 14.04, is now problematic for 16.04 and in particular for current versions of Jenkins, so I'm taking a different tack and trying to create a Docker image. Early steps are going well; it remains to be seen if I can get the whole thing to work, but in the meantime the learning is generally useful.

:: Next Page >>

Maintenance

This blog is the location for all work involving software and hardware maintenance, updates, installs, etc., both routine and urgent, in the server room, the labs and the R&D rooms.

Reports

XML Feeds