"Upgrading Users" Error in Initial Installation?

Metzengerstein

Joined: 2005-06-18
Posts: 11
Posted: Sat, 2005-06-18 17:14

I am attempting to install Gallery on my website for personal use, and after I finally got all of the kinks worked out of my config.php, I ran into some problems with my albums directory. First, I was unable to create the .users directory, receiving the following error:

Warning: mkdir(/u07/rsmith58/public_html/gallery/albums/.users): Disc quota exceeded in /u07/rsmith58/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir: /u07/rsmith58/public_html/gallery/albums/.users

Upgrading Users:
The user database in your gallery was created with an older version of the software and is out of date. This is not a problem! We will upgrade it. This may take some time. Your data will not be harmed in any way by this process. Rest assured, that if this process takes a long time now, it's going to make your gallery run more efficiently in the future.

If you get an error, and only some users are upgraded, try refreshing the page to upgrade remaining users.

Please Wait...
Fatal error: Call to a member function on a non-object in /u07/rsmith58/public_html/gallery/classes/gallery/UserDB.php on line 337

The possibility of my quota being exceeded seemed absurd, as my account information declared that I was only using about 13%. So, I simply created the .users directory myself (CHMOD-ed 777), no problem.

However, when I retried the configuration, I received yet another error along the same lines:

Upgrading Users:
The user database in your gallery was created with an older version of the software and is out of date. This is not a problem! We will upgrade it. This may take some time. Your data will not be harmed in any way by this process. Rest assured, that if this process takes a long time now, it's going to make your gallery run more efficiently in the future.

If you get an error, and only some users are upgraded, try refreshing the page to upgrade remaining users.

Please Wait...

Checking user 1 of 3 . . . . skipped
Checking user 2 of 3 . . . . skipped
Checking user 3 of 3 . . . . skipped

Error: There was a problem upgrading users. Please check the messages above and try again.

No specific lines of code mentioned or anything, just "There was a problem." I don't understand why it is attempting to upgrade users in the first place, as this is an initial installation, and thus there are none. The blank files created within the .users directory (userdb.dat.0, userdb.dat.1, .htaccess, userdb.dat.lock) were originally not owned by me, so, in order to CHMOD them 777, I created my own copies to replace the originals. Both the albums and .users directories were 777 as well.

Any ideas how I might fix this and finish the installation? Thanks.

----
Gallery URL: http://web.utk.edu/~rsmith58/gallery
Gallery version: 1.5 (4/14/05)
Apache version: 1.3.29
PHP version: 4.3.11
Graphics toolkit: NetPBM 1.4-pl2
Operating system: Windows XP
Web browser/version: Mozilla FireFox 1.0.4

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sat, 2005-06-18 20:53

Warning: mkdir(/u07/rsmith58/public_html/gallery/albums/.users): Disc quota exceeded in /u07/rsmith58/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir: /u07/rsmith58/public_html/gallery/albums/.users

Thats your problem, and you need to talk to your host about that.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-06-19 04:16

Just because you are only using 13% of your file space quota doesn't mean they don't have some other weird quota. It is possible that your host has a number of files quota too... so if they only allow you 1,000 files and that takes up a mere 10% of your space... you will still be over quota.

They may also restrict the number of dirs and sub-dirs you can create. See what your host says.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2005-06-19 08:03

Also, it's likely that the Apache user is influenced by another quota than your user account. All files uploaded through Gallery is owned by the user that apache runs as.

 
Metzengerstein

Joined: 2005-06-18
Posts: 11
Posted: Wed, 2005-06-22 16:06

I talked to UTK's tech support, and they told me that there were no hidden quotas, and no file or sub-directory limits. They agreed that I was well under quota. And, like I said before, I was able to create the directory myself (only to reach yet another error).

Their only question was, can Gallery be run on a closed system? I am only one of many users, and thus I do not have permissions to much of the network. I assume the answer is yes, or I wouldn't have gotten this far.

I see no logical reason I should be getting this error. One other note: if, after creating the .users directory and the files it contains myself, CHMOD-ing the directory but not the files to 777, I get the error that you often refer to FAQ C.16 (or C.15, depending on which list you look at) for:

Warning: fopen(/u07/rsmith58/public_html/gallery/albums/.users/userdb.dat.lock): failed to open stream: Permission denied in /u07/rsmith58/public_html/gallery/platform/fs_unix.php on line 55
Error: Could not open lock file (/u07/rsmith58/public_html/gallery/albums/.users/userdb.dat.lock)!

After CHMOD-ing all of the files in the .users directory to 777, it returns me to the same non-descript error as before:

Upgrading Users:
The user database in your gallery was created with an older version of the software and is out of date. This is not a problem! We will upgrade it. This may take some time. Your data will not be harmed in any way by this process. Rest assured, that if this process takes a long time now, it's going to make your gallery run more efficiently in the future.

If you get an error, and only some users are upgraded, try refreshing the page to upgrade remaining users.

Please Wait...

Checking user 1 of 3 . . . . skipped
Checking user 2 of 3 . . . . skipped
Checking user 3 of 3 . . . . skipped

Error: There was a problem upgrading users. Please check the messages above, and try again.

Any more ideas? Thanks.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-06-22 19:52

Delete your entire albums dir, re-create it and then chmod it 777 - THEN re-run the config wizard.

 
Metzengerstein

Joined: 2005-06-18
Posts: 11
Posted: Wed, 2005-06-22 20:58

Doing so only takes me back to the same error I had before:

Warning: mkdir(/u07/rsmith58/public_html/gallery/albums/.users): Disc quota exceeded in /u07/rsmith58/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir: /u07/rsmith58/public_html/gallery/albums/.users
Fatal error: Call to a member function on a non-object in /u07/rsmith58/public_html/gallery/classes/gallery/UserDB.php on line 337

Should I try creating .users myself again?

What is UserDB.php and why is it causing so much trouble? Is there any way to bypass all of this user upgrading, since I intend to be the only user?

Thanks.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-06-22 21:39

UserDB.php creates the initial admin user and meta users, no way around it. Regardless of what your hosting company tell you, PHP doesn't lie. I'm sorry, but your problem is clearly related to their setup.

 
Metzengerstein

Joined: 2005-06-18
Posts: 11
Posted: Fri, 2005-07-01 02:46

I talked to someone familiar with both Gallery and my particular network, and apparently the user 'nobody' was over quota on my network/disk; I've contacted my host and things are beginning to clear up.

Thanks.