Greg Cohoon (drmellow) wrote in lj_everywhere,
Greg Cohoon
drmellow
lj_everywhere

error running update-db.pl: "Failed to create system user"

I'm attempting to install LJ at work so my fellow developers and I can keep track of project information in a more organized way than sending emails everywhere. I've got a box running Gentoo that I have complete control of and the only thing I plan on running on this box is LJ.

I've been going through the LJ developer documentation and I've gotten to 10. MySQL: 3. Populate the Database and can't seem to create my "system" user.

I get the following output/error when I try to do update-db.pl:
$ bin/upgrading/update-db.pl --runsql --populate
Updating cluster: 0

cluster: status
0: OKAY

System user not found. Creating with random password.
Failed to create system user. at bin/upgrading/update-db.pl line 188.
I also get an error when it try to do make_system.pl:
$ bin/upgrading/make_system.pl
This tool will create [...]

Creating system account...
Already exists.
Modifying 'system' account...
ERROR: can't find newly-created system account.
I think that make_system.pl is incorrect when it determines that the system account already exists:
$ mysql -u lj -p
mysql> use livejournal;
Database changed
mysql> select * from user;
Empty set (0.00 sec)
I'm guessing that LJ::create_account() isn't behaving the way it should. I'm using default installations of all the supporting software (apache, mod_perl, mysql) and as far as I can tell, things in ljconfig.pl look fine. And checkconfig.pl seems happy:
$ bin/checkconfig.pl
[Checking for Perl Modules....]
Missing optional module.... (I'm OK with that, they're for OpenID and AtomAPI)
[Checking LJ Environment...]
[Checking Database...]
All good.
NOTE: checkconfig.pl doesn't check everything yet
I'd love any suggestions.
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 1 comment