Categories: R & D, Activity log, Documentation

09/05/13

Permalink 10:14:12 am, by Greg, 153 words, 11 views   English (CA)
Categories: Servers, Activity log, Activity log, Documentation; Mins. worked: 120

Rsync problem on rutabaga

After an update to DSM 4.2 rutabaga no longer allowed rsync backups, failing with:

sh: rsync: not found
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: remote command not found (code 127) at io.c(605) [Receiver=3.0.9]

After much wailing and gnashing of teeth we discovered that non-interactive users do not have /usr/syno/bin in their path (it *is* in their path if they shell in to the NAS, so they can run rsync *from* the NAS when shell'd in).

So, that's an easy fix, says us: add a symlink to /usr/syno/bin/rsync in a logical spot that *is* in a non-interactive path, like /usr/bin.

Problem: admin user cannot su root (error message = su: must be suid to work properly), so cannot create symlink.

Answer: TURN ON TELNET AND LOG IN AS ROOT USING THE WORST POSSIBLE METHOD!!! Then, you make the symlink and turn off telnet - quick!

08/05/13

Permalink 02:57:09 pm, by Greg, 125 words, 8 views   English (CA)
Categories: Activity log; Mins. worked: 120

Network troubles - solved

This morning we got nets to set up B047 on the switch. Some time after that 3 machines lost the ability to get a DHCP address - I have no idea if there is a causal relationship between these things.

After much mucking about, it *looks* like it might have been a communication problem between the DHCP server and the machines.
Even forcibly releasing the DHCP lease didn't make any difference.

In the end, I booted the machine with a LiveCD and fiddled with enabling/disabling the network (in the network manger). I got a proper IP and rebooted in the installed OS. That seemed to break it out of the loop.

A bit perplexing and aggravating because I don't actually know what the problem was...

26/03/13

Permalink 01:26:53 pm, by mholmes, 77 words, 38 views   English (CA)
Categories: Servers, R & D, Activity log, Documentation; Mins. worked: 180

All projects moved to Peach

All current Tomcat-based projects have now been moved to Peach, with the help of RE, who has re-pointed all the relevant domains. The IALLTJournal project has been retired, since it's no longer in use, as has the old version of Francotoile, which was built on eXist 1.4. This was a fairly slow and careful migration over a couple of days, and we expect no problems, but Pear will continue to run for a little while just in case.

01/02/13

Permalink 11:29:36 am, by mholmes, 53 words, 74 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log; Mins. worked: 30

Testing on Peach

Tomcat has now been configured so that a slash not followed by a filename is handled by the webapp, not trapped as an error by Tomcat itself. I've also uploaded and tested the new Moses app on Peach, confirming that while the eXist dashboard and eXide fail under Tomcat 6, they work under Tomcat 7.

16/01/13

Permalink 10:33:13 am, by sarneil, 12 words, 115 views   English (CA)
Categories: Documentation; Mins. worked: 0

ssh recursively remove folders and their contents

to recursively remove folders and their contents rm -rf path/to/folder

15/01/13

Permalink 10:09:07 am, by mholmes, 52 words, 72 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation, Documentation; Mins. worked: 30

Rutabaga rsync problem

After a system update, rsync stopped working over ssh on Rutabaga. We eventually discovered that users rsyncing over ssh require the ssh service to be turned on (Control panel/Terminal/SSH service). This was apparently not necessary in previous builds, or perhaps it was turned off by the update for some reason.

24/12/12

Permalink 09:40:45 am, by mholmes, 82 words, 97 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation; Mins. worked: 15

Boot partition out of space

teijenkins found itself unable to complete an update because it was out of disk space. This was initially surprising, but I discovered that it was actually the small boot partition that was out of space, because of the accumulation of old kernels. This command:

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

cribbed from this page cleaned out the old kernels and solved the problem.

07/12/12

Permalink 12:35:27 pm, by mholmes, 25 words, 100 views   English (CA)
Categories: R & D, Documentation; Mins. worked: 0

Type Unicode characters in Gnome 3

Putting this on the blog because I keep forgetting it:

Type Control+Shift+U, then release and type the hex of the character, then return.

22/11/12

Permalink 09:53:52 am, by mholmes, 127 words, 119 views   English (CA)
Categories: R & D, Activity log, Documentation; Mins. worked: 120

Updates to JavaScript code for HotPot exercises

A change in the user agent string for Firefox 17 has triggered an error message in HotPot and Quandary exercises. An update to the applications will be required, which we'll do at home, but in the meantime all the existing exercises we provide to departments needed to be updated, including Greek, Latin, Spanish, XSLT (DHSI), Hulquminum and Arabic. Those have all now been updated.

This is basically what I did:

  • Search and replace with regex on the dir trees in Oxygen:
    ([\t ]*alert\('Your browser may not be able to handle this page.'\);)
    //$1
    
  • rsync of the HTML files to the site -- e.g.:
    rsync --verbose --progress --stats --recursive --include '*/' --include '*.htm' --exclude '*' arabic/ lancenrd@unix.uvic.ca:/u/lancenrd/www/arabic/
    

16/11/12

Permalink 04:34:04 pm, by Greg, 186 words, 105 views   English (CA)
Categories: Labs, Activity log, Activity log, Tasks; Mins. worked: 60

Spontaneous reboots

We've been having spontaneous reboots on several machines in the last two months or so.
We've had an electrician double-check the power we're getting and all is well.
Looking in to potential computer-based issues I discover that many people experience this kind of thing with SSDs on Sabayon, Debian, Ubuntu, CentOS, and likely other distros. There do not seem to be any real solutions, but suggestions include the usual:
1) Get the latest firmware for the drive. Right now we have at least 2 different model of SSD in our machines (haven't checked Martin's yet): OCZ Vertex (96GB running f/w v1.6) and Vertex2 (115GB running f/w v1.29 or 1.33). Firmware and general info on OCZ drives can be found here. Firmware is here
2) Adjust fstab and /etc/rc.local like this

I'll come back to this next week.

<egg_on_face>
Figured it out. The problem was I stupidly changed the security update config to reboot after a security update gets done. It explains everything. The file has been edited, the package updated. Now I wait with my fingers crossed...
</egg_on_face>

:: 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

Categories

May 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

XML Feeds