purplecat: Hand Drawn picture of a Toy Cat (Default)
purplecat ([personal profile] purplecat) wrote in [site community profile] dw_dev_training2013-06-12 09:38 am

Help! I've broken my dreamhack!

For a while my dreamhack has been throwing odd errors - e.g.,

file error - tropo-red.tt: not found at /dreamhack/home/8362-purplecat/dw/cgi-bin/DW/Template.pm line 365.\n, referer: http://user3.purplecat.hack.dreamwidth.net/

Today it was behaving very badly, with apache refusing to start and stop correctly, git throwing wierd errors when I tried to update develop and so on. I eventually realised I'd run out of space - deleted my back-up save of my old mercurial repositories and managed to get apache and git behaving again.

However, somewhere along the way I seem to have fubarred the database:


dh-purplecat@newhack:~/dw/bin/upgrading$ ./update-db.pl -r -p --innodb
Updating cluster: 0
Use of uninitialized value in concatenation (.) or string at /dreamhack/home/8362-purplecat/dw/cgi-bin/DBI/Role.pm line 245.
Use of uninitialized value in concatenation (.) or string at /dreamhack/home/8362-purplecat/dw/cgi-bin/DBI/Role.pm line 245.

cluster: status
0: ERROR: Can't connect to the database (clust#0), so I can't update it. (Access denied for user 'dh-purplecat'@'localhost' (using password: NO))

Use of uninitialized value in concatenation (.) or string at /dreamhack/home/8362-purplecat/dw/cgi-bin/DBI/Role.pm line 245.
Use of uninitialized value in concatenation (.) or string at /dreamhack/home/8362-purplecat/dw/cgi-bin/DBI/Role.pm line 245.
Couldn't get master handle for population. at ./update-db.pl line 212.


Any idea what I've done, or how I can fix it?

Or even why I ran out of space - that worries me a bit too.
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-06-12 09:54 am (UTC)(link)
I cannot help with the errors, but the space issue is probably the apache logs - it turned out at one point mine had gotten to like 300mb because they weren't being rotated/deleted/etc.
ninetydegrees: Art: face peeking through blinds (peeking)

[personal profile] ninetydegrees 2013-06-12 12:45 pm (UTC)(link)
Also, I had the same problem once and Sophie explained to me that the logs get bigger faster if you always leave your hack running (I do because I regularly need it for support and style things). I don't know if that's you case but I figured it couldn't hurt to mention it.
alierak: (Default)

[personal profile] alierak 2013-06-12 12:35 pm (UTC)(link)
If you've run out of space during an update, it's possible that some files are missing or truncated. I guess the database issue sounds like a problem with ext/local/etc/config-private.pl (where the password is supposed to be kept). Yours seems to be missing.
mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)

[staff profile] mark 2013-06-12 05:31 pm (UTC)(link)
Hmm, I would expect configuration files to be stored in a directory that wouldn't be touched by a git reset. Possibly I'm wrong, though?

If you don't have any patches on the hack right now, then you might just want to reset it. I don't know what the procedure is for that, but IIRC it's pretty easy. I'll see if I can poke someone on IRC to come give better information!
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2013-06-12 05:43 pm (UTC)(link)
Following on from what [staff profile] mark said, reinstalling your Dreamhack would probably be the best idea. Unfortunately, that's broken right now so I can't do that, so instead I'll take a look at your 'hack soon and email you about what I find and how to fix it. :D

(And I'll also get reinstallation working at some point soon!)
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2013-06-30 04:03 pm (UTC)(link)
Whoops, I just realised I never followed up on this. Do you still need help? If so I'll do it this time :)
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2013-06-30 05:32 pm (UTC)(link)
Oh! Right. Sorry, I apparently forgot. :D