need help upgrading to 1.5.5

fuquam

Joined: 2005-09-13
Posts: 47
Posted: Mon, 2006-11-13 01:50

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://andreaandscott.com/gallery
Gallery version: 1.5.5
Apache version: 4.0.27-standard
PHP version (don't just say PHP 4, please): 4.4.4
Graphics Toolkit: none
Operating system: OS 10.4
Web browser/version (if applicable): Safari

OK I downloaded the 1.5.5 upgrade and followed the instructions. chmod 0755 on the setup directory but when I try to run the configuration wizard (www.mysite.com/gallery/setup/index.php) I get "Error: Your Userfile is not writeable". When I try chmod 0777 on the setup I get and Internal Server Error so back to 0755. Any reason for the error? htaccess and config.php are at 0777 as well.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2006-11-13 03:33

FAQ: Warning: fopen(".../albums/team/album.dat.lock","a+")
Chmod 777 all files and directories in the albums directory. remember the hidden files as well (.users)

Dave

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2006-11-13 14:01

FAQ: Error: Your Userfile is not writeable

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Mon, 2006-11-13 15:32

Thanks Dave. When I try that I get "Error Setting Permissions Failed:
albums: 550 Could not change perms on albums: Bad file descriptor"

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2006-11-13 17:55

Ask your host to change the permissions.

Dave

____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Mon, 2006-11-13 23:22

They have installed PHPSuExec. With PHPSuExec the highest permission you can have on a folder is 755. Maybe this is the root of my problem?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2006-11-14 10:58

Depends on the owner of the files and folder.

If its the apache user 755 is totally fine.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Tue, 2006-11-14 19:38

So I decided to rerun the Configuration Wizard and hopefully set thing straight. Now I get a 500 Internal Server Error. The FAQs suggests alterning the .htaccess file but I beleive the new upgrade with PHPSuExec has done away with the .htaccess files because I no longer see them. I also don't see any httpd.conf files anywhere.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2006-11-15 11:51

Files starting with a . are hidden files.

I am pretty sure the .htaccess file in the setup folder is still there.

I guess you are using FTP to access your web folder.
Make a change in the options of your clients to see the hidden files.
Then delete the .htaccess file in the config folder.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Wed, 2006-11-15 15:23

I have "view hidden files" operational and I see my .htaccess file in my main directory but there isn't one in the /setup directory. Also I don't seem to have a config folder or directory anywhere.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2006-11-15 15:51

Hmmm,

The configuration is inside the 'setup' folder.
This folder is inside the Gallery folder, except if you are using the debian package of Gallery.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Wed, 2006-11-15 16:09

I have config_data.inc inside the setup folder but thats the closest. I better redownload something. I've had Gallery working fine for almost 3 years now and my host upgrades the server and screws everything up.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Wed, 2006-11-15 16:27

http://www.andreaandscott.com/gallery/setup/index.php. So when I get the "Error: Your Usefile is not writeable" what userfile is it refering to?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2006-11-15 16:31

FAQ: Error: Your Userfile is not writeable

The userfiles are saved in a subfolder of the albums folder.
This subfolder is called .users.
(You may not see this folder in your ftp client, as files/folders starting with a . are considered as hidden)

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Wed, 2006-11-15 17:04

No I have "view Hidden Files" on. When I try to set permissions on the .users folder or any files inside I get

Error Setting Permissions Failed:
.users: 550 Could not change perms on .users: Bad file descriptor

These files are set to 644 (and I can't change them due to the error). The owner and group are both at 99.

Thanks for your help by the way.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2006-11-15 17:07

is the album folder itself writeable for the webserver ?

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Wed, 2006-11-15 17:54

Yes. Its set to 777.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2006-11-15 18:20

Well, this is strange.

The errormessage only occurs when the files in the .users folder are not read and writable by the webserver.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Wed, 2006-11-15 18:35

The .users folder is set at 755. The files inside are set to 644 and can't be changed. The /albums folder is set at 777.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Wed, 2006-11-15 22:06

I had the host change all permissions so I have control now. However now when I try to run Configuration Wizard I get this error.
----------------------------------
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 4 . . . . failed
Checking user 2 of 4 . . . . skipped
Checking user 3 of 4 . . . . skipped
Checking user 4 of 4 . . . . skipped

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

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2006-11-16 10:21

This is still a permission issue.

Gallery tries to save the upgraded user. And that failed.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Thu, 2006-11-16 15:56

OK now I got it to work but when I run through the configuration wizard I end up with this page.
-------------------
Gallery has not been configured!

Gallery must be configured before you can use it.

1. Create an empty file .htaccess and an empty file config.php in your Gallery folder.
2. Create an albums folder for your pictures and movies. This folder can be anywhere in your webspace.
Make sure that both files and the folder are read and writeable for your webserver !
-------------------

Now I already have an .htaccess file and a config.php file in the gallery folder. I also still have my albums folder. All of which are at 755 or 777.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2006-11-16 16:32

I just tried to configure your Gallery.

All went fine.
Except the saving at the end. But i guess its the result of the looooooooooooooooong looaaaaaading time.
It seems a timeout occurs and then some data is lost.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Thu, 2006-11-16 16:33

OK now the configuration wizard is moving past that step but I'm getting the following error
------------
Warning: mkdir() [function.mkdir]: No such file or directory in /home/andrea/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir:
Fatal error: Call to a member function on a non-object in /home/andrea/public_html/gallery/classes/gallery/UserDB.php on line 119
-------------
UserDB.php is set at 755. Not sure if that matters.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2006-11-16 16:41

Yes, that is what i also get.
Does it also do load very long (> 30 seconds) for you ?

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Thu, 2006-11-16 17:38

Yes it does take a really long time to load. I found that odd. Any idea what the Error: Unable tp create dir is all about? Is that due to a timeout error? I probably shouldn't be keeping this in config mode.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Fri, 2006-11-17 16:32

Its not taking that long to load anymore but I'm still getting the following error
-----------------------
Warning: mkdir() [function.mkdir]: No such file or directory in /home/andrea/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir:
Fatal error: Call to a member function on a non-object in /home/andrea/public_html/gallery/classes/gallery/UserDB.php on line 119

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Fri, 2006-11-17 16:38

Here is UserDB.php starting on line 42. Does this mean a directory is chmod wrong?
----------------------

if (!fs_file_exists($userDir)) {
if (!mkdir($userDir, 0777)) {
echo gallery_error(_("Unable to create dir") .": $userDir");
return;
}

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2006-11-18 17:43

Gallery tries to create folder where all users are stored.
This folder is inside the albums folder.
The location to the albumsfolder is set by you in step2.

I assume that this info gets lost somehow.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
fuquam

Joined: 2005-09-13
Posts: 47
Posted: Mon, 2006-11-27 01:42

Any idea how to fix that?