As I've written before, trac-0.12.3 still doesn't HTML notifications. Maurice found out how to work around a limitation with the commit_updater plugin here.
Tuesday, September 18, 2012
Tuesday, May 29, 2012
XenServer and "The VDI is not available"
I've been happily running XenServer for a few years now. Last week I encountered a weird issue with seemingly corrupted VDIs, which turned out to be fine after a server reboot.
In the aftermath I had a corrupted storage repository, that manifested like this:
The log looks like this:
I found these links to be helpful: CTX122001 and Thread: Issue with reclaiming disk space in xenserver 6.0.
For the record, I'm running XenServer 5.6 SP2.
In the aftermath I had a corrupted storage repository, that manifested like this:
- Unable to scan the SR:
Error code: SR_BACKEND_FAILURE_46
Error parameters: , The VDI is not available [opterr=Error scanning VDI <uuid> ]
- Unable to copy VDIs from or to the SR
This was nasty, because this meant it wasn't possible to backup virtual disks.
The log looks like this:
***** VHD scan error: vhd=VHD-<uuid> scan-error=-22 error-message='invalid footer'I verified this by running
*** vhd-scan error: <uuid>
Raising exception [46, The VDI is not available [opterr=Error scanning VDI <uuid>]]
/usr/sbin/vhd-util scan -f -m "VHD-*" -l VG_XenStorage-<storage-reporitory-uuid> -pWhich, amongst others, gave me this line:
vhd=VHD-<uuid> scan-error=-22 error-message='invalid footer'Now many people recommended running vdi-forget to get rid of this VDI. I tried that, but that didn't fix anything. Others recommended running vdi-destroy. After I ran vdi-forget I wasn't able to run vdi-destroy anymore. So I had to work it out using lvremove like this:
lvremove /dev/VG_XenStorage-<storage-repository-uuid>/VHD-<uuid>This gave me a few warnings like "open failed: Read-only file system" but in the end it did the trick. I re-scanned the storage repository and it finally worked. A few orphaned VDIs showed up which I promptly removed. Subsequent rescans of my SR coalesced VDIs without problems.
I found these links to be helpful: CTX122001 and Thread: Issue with reclaiming disk space in xenserver 6.0.
For the record, I'm running XenServer 5.6 SP2.
Thursday, March 15, 2012
check_email_delivery and SMTP SSL
For all of you who want/need/have to monitor an email server's performance or delay, there is a nice plugin for nagios out there written by Jonathan Buhacoff. It's not only a single plugin either, but a suite of scripts to check various smtp- and imap-related things.
Friday, March 2, 2012
Logitech Media Server & MySQL
Logitech, in their infinite wisdom, has decided to rename slimserver to SqueezeCenter then Squeezebox Server and finally Logitech Media Server.
Because I like to run it on my NAS, I despise the embedded SQLite and always want it to use MySQL instead. This has always been well-documented in the slimdevices wiki.
When these steps are applied to Logitech Media Server, it reverts to SQLite on it's own.
After some troubleshooting i found updated instructions here. For the tl;dr folks, here's the relevant lines to server.prefs:
Because I like to run it on my NAS, I despise the embedded SQLite and always want it to use MySQL instead. This has always been well-documented in the slimdevices wiki.
When these steps are applied to Logitech Media Server, it reverts to SQLite on it's own.
After some troubleshooting i found updated instructions here. For the tl;dr folks, here's the relevant lines to server.prefs:
dbtype: MySQLI can't wait to see how they will name v8 - and how they'll change the config settings once more. Sigh.
dbusername: slimserver
dbpassword: slimserver
dbsource: dbi:mysql:database=slimserver;mysql_socket=/var/lib/mysql/mysql.sock
Tuesday, February 28, 2012
trac-0.12.3 and HTML notification
Trac still does not do HTML mails. As I've written before, it can be hacked to send good looking HTML notifications, though. I happily used trac-0.12.2 until I discovered some issues with subversion-1.7.
So I upgraded to trac-0.12.3, the upgrade went seamlessly. All it took as a repository resync for changesets with removed files to show up again. Yay!
Of course trac still doesn't send HTML notifications, so I had to apply my previous patches from trac-0.12.2. Except for trac/ticket/notification.py this was rather easy. See my diff here or grab it from pastebin.
Subscribe to:
Posts (Atom)