Wednesday, October 3, 2007

RTFM - or, why the autoupgrade broke...

Today I could not login to Zion/Ruth. Strange.

Investigating... Found some weird data in the archives.. - the name of the archive does not look like it should... The first thought - someone got in. But why starting the 1st of October ? In the end - It's a usual human stupidity.

the manual for the "date" command clearly says:

%e day of month, space padded; same as %_d

So, when I do:

date +%Y-%m-%e-%H-%M

This gives:

2007-10- 3-03-44

Notice the space. Given that I used this output for building the name of the archive file.. The results were not pretty. obviously the correct parameter to use is "%d", which means:

"%d day of month (e.g, 01)"

I have no excuses. Sorry for this cosmic stupidity.

The dry outcome:
1) sim state rolled back as of 30th september 6am CET.
2) scripts fixed, they are at http://ruth.opensim.be/build/maintenance-scripts.tgz.

Also tweaked the script that builds/publishes the binary, to avoid overwriting the old one if the build failed - now, if the build fails, it shows the failed build log, and the last successful build log and binary.

So, normally we would always have a working latest version on http://ruth.opensim.be/build/

No comments: