[SOLVED] Install smooth, update not. :-(

billsey

Joined: 2009-10-14
Posts: 7
Posted: Wed, 2009-10-14 21:42


Gallery version (not just "2"): 2.3
PHP version (e.g. 5.1.6): 5.2.10
PHPInfo Link (see FAQ): http://www.seymourfamily.com/norway/gallery2/phpinfo.php
Webserver (e.g. Apache 1.3.33): IIS 6.0
Database (e.g. MySql 5.0.32): MySQL 5.0.51a
Activated toolkits (e.g. NetPbm, GD): GD
Operating system (e.g. Linux): Windows 2003 SBS
Browser (e.g. Firefox 2.0): FireFox 3.5.3

I did the initial install using the current stable release (2.3) and everything worked well except for a warning "Manifest missing or inaccessible" during System Checks. When it was done with the install, I mucked around a little in the admin section, looking to see if there was a method for loading images that were already on the server (I didn't find one). I then went to the main page, and was presented with a "2.3 Upgrader". Figuring that meant that something wasn't quite ready I started through the upgrade process. When I get to the Database Backup section, I get an error: "PHP Notice: Undefined variable: versions in E:\Web Files\seymourfamily\norway\gallery2\modules\core\module.inc on line 548".

In function getInstalledVersions() line 548 is:
return $versions;

Any ideas on what I'm running into? Why did it decide I needed an upgrade when I'd installed the latest?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-10-14 23:23

Make sure your files are intact, it doesn't sound like it:
FAQ: How can I make sure that my installation files are all intact?

If they are not, download 2.3 again and overwrite your install.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
billsey

Joined: 2009-10-14
Posts: 7
Posted: Thu, 2009-10-15 03:21

OK, I reran the update script and took it to the "System Checks Step" and got the same warning as shown above, "Manifest missing or inaccessible". So I downloaded the full install version instead of typical (both zip archive pass 7-Zip testing). I copied the new download files over the top of the existing files and reran the install. Everything look fine until we get to the "Database Setup" step, where a click on "Save" generates the error. I'm assuming it's something to do with the database being already there and populated. I'll try deleting the database and recreating an empty one.

[A couple of minutes later]
I dropped the database and user from MySQL then created a new database and user with a different name and password than before. I still get the error when I attempt to "Save".

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-10-15 23:41
Quote:
I still get the error when I attempt to "Save".

What is the error?

Did you create a config.php file and set the permissions so that the web server can write to it?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Fri, 2009-10-16 00:37

On a new install you should not have been prompted to do a backup.
I suspect that you might have a version.dat file in the g2data directory.
Delete everything and start again.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
billsey

Joined: 2009-10-14
Posts: 7
Posted: Fri, 2009-10-16 04:04

OK, wiped everything again and started from scratch. I installed the full English version, since I'd had the one warning with the typical version.

Setup went smoothly, I deselected a bunch of the add-ons and didn't get the errors I'd seen with them before (the default is to install everything, and several look like they will not work on a Windows based server running IIS). I got a warning about needing to configure the Archive Upload module and the FFMPEG module. I ignored that for now and will deal with them later.

The install completed cleanly and I logged on as the admin user. I used the 'From Local Server' option to install an image (1600px × 1200px jpg, 340K). That went fine and the image shows up as a thumbnail, as a 640x480 pic and as the full size image. I next tried to install a second image, a big image this time (3686712 bytes, 12096x9392 pixels, again a jpg). I get to the Processing Image page, with Estimated time remaining at 0:01 and the progress bar 1/2 way across the screen and nothing else happens. Is this image too large? I've got about 5-6000 files to add to this gallery and many, if not most, were done with high resolution cameras...

While waiting for the progress bar to advance, I went in and in another tab I've brought up the gallery. I see the first photo and a link for the second photo, but not the photo itself unless I ask for a full size view, so I'm guessing the other tab is stuck at the image processing step. I'm using GD, should I finish configuring ffmpeg instead, or is there another package I should be adding?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Fri, 2009-10-16 05:00

FAQ: What information is required when I ask for help in the forums?
GD is a resource hog I would use IM or netPBM:
FAQ: I am having trouble configuring a graphics toolkit (ImageMagick, NetPBM or ffmpeg). Help?
Disable them all and configure/test eache one before activation. If you only have GD then ask your host about other toolkits.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
billsey

Joined: 2009-10-14
Posts: 7
Posted: Fri, 2009-10-16 17:59

Thanks Dave, I'm giving ImageMagick a try. I've installed the IM binaries, tested them within a command prompt and set appropriate permissions to the IUSR_SERVER account to allow them to be executed (I also had to set execute permissions on cmd.exe BTW*). When I test the setting though I get this error:

is_dir(E:\Program Files\ImageMagick\)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(E:\norway\pics\tmp\)
is_dir(E:\Program Files\ImageMagick\)
file_exists(E:\Program Files\ImageMagick\gm.exe)
file_exists(E:\Program Files\ImageMagick\identify.exe)
Executing: cmd /c " "E:\Program Files\ImageMagick\identify.exe"  "E:\Web
Files\seymourfamily\norway\gallery2\modules\imagemagick\data\test.gif"  2>
"E:\norway\pics\tmp\g2d217B.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(E:\norway\pics\tmp\g2d217B.tmp)
filesize(E:\norway\pics\tmp\g2d217B.tmp)
unlink(E:\norway\pics\tmp\g2d217B.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
is_dir(E:\Program Files\ImageMagick\)
file_exists(E:\Program Files\ImageMagick\gm.exe)
tempnam(E:\norway\pics\tmp\, imgk_)
file_exists(E:\Program Files\ImageMagick\convert.exe)
Executing: cmd /c " "E:\Program Files\ImageMagick\convert.exe"  "-size" 
"200x200"  "-geometry"  "200x200"  "E:\Web
Files\seymourfamily\norway\gallery2\modules\imagemagick\data\test.gif" 
"gif:E:\norway\pics\tmp\img217C.tmp"  2> "E:\norway\pics\tmp\g2d217D.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(E:\norway\pics\tmp\g2d217D.tmp)
filesize(E:\norway\pics\tmp\g2d217D.tmp)
unlink(E:\norway\pics\tmp\g2d217D.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
unlink(E:\norway\pics\tmp\img217C.tmp)
is_dir(E:\Program Files\ImageMagick\)
file_exists(E:\Program Files\ImageMagick\gm.exe)
file_exists(E:\Program Files\ImageMagick\combine.exe)
file_exists(E:\Program Files\ImageMagick\composite.exe)
file_exists(E:\Program Files\ImageMagick\composite.exe)
is_dir(E:\Program Files\ImageMagick\)
file_exists(E:\Program Files\ImageMagick\gm.exe)
tempnam(E:\norway\pics\tmp\, imgk_)
Executing: cmd /c " "E:\Program Files\ImageMagick\composite.exe" 
"-geometry"  "+0+0"  "E:\Web
Files\seymourfamily\norway\gallery2\modules\imagemagick\data\test.jpg" 
"E:\Web
Files\seymourfamily\norway\gallery2\modules\imagemagick\data\test.gif" 
"gif:E:\norway\pics\tmp\img217E.tmp"  2> "E:\norway\pics\tmp\g2d217F.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(E:\norway\pics\tmp\g2d217F.tmp)
filesize(E:\norway\pics\tmp\g2d217F.tmp)
unlink(E:\norway\pics\tmp\g2d217F.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
unlink(E:\norway\pics\tmp\img217E.tmp)
chdir(E:\Web Files\seymourfamily\norway\gallery2)

It sure looks to me like the process is executing correctly, but returning a value other than 0. :-( Any ideas?

[*I needed to set execute permissions on the command prompt for IUSR_SERVER to allow the PHP scripts to fork using cmd.exe, this was causing some of the errors alluded to earlier.]

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sat, 2009-10-17 02:44

I am not a windows server expert.
I can only offer this:
The user that gallery runs as, the webserver, mush have permissions to run the commands.
I am sure you can search for windows and IM and IUSR_SERVER in the forums and find your answer to the permisisons issue.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-10-17 14:54

Yeah, I'd double check on the permissions. Make sure that the webserver user has MODIFY permissions on E:\norway\pics\tmp\ as well. That will ensure it has permission to delete, read & execute, list folder contents, read, write.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
billsey

Joined: 2009-10-14
Posts: 7
Posted: Tue, 2009-10-20 05:46

I've been searching the forums, and although I find people who have IM working in a Windows environment, I'm not finding any that talk about HOW to get it working. :-( It's also possible that working in a generic Windows Server environment is different than working in an SBS server or Active Directory environment...

The webserver user (IUSR_MACHINENAME, or IUSR_SERVER in my case since the machine is named 'SERVER') has full permissions for the E:\norway\pics folder and all subfolders. There is a space in the path to the ImageMagick folders (E:\Program Files\ImageMagick\), is there any chance that might be the issue? Maybe I'll uninstall and reinstall this week to see if moving to a directory other than the default makes a difference.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-20 11:49

Reinstall ImageMagick to some other directory. Like c:\imagemagick I never trust web apps with spaces in file names or directories.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
billsey

Joined: 2009-10-14
Posts: 7
Posted: Tue, 2009-10-20 21:21

No joy. :-( I removed and reinstalled ImageMagick to E:\ImageMagick and reran the same tests as before. Same results except for the directory name.

I fired up ProcessMonitor and turned on a filter for events that used 'ImageMagick' in their path. I see entries for QueryDirectory E:\ImageMagick\gm.exe (fails, file does not exist), same for combine.exe. Composite.exe and identify.exe both succeed. It looks like either the ImageMagick distribution I'm installing (ImageMagick-6.5.6-10-Q16-windows-dll.exe) is incomplete or I'm using the wrong install options.

I'll try next with the static version...

 
billsey

Joined: 2009-10-14
Posts: 7
Posted: Tue, 2009-10-20 21:39

And it looks like I found the right thread here in the forums... :-)

The key is to set execute permissions for both IUSR_NAME and NETWORK SERVICE. The latter was missing with my attempts, and it is required because both accounts are used to execute commands during the script process.

Now to retest on my large image files.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-20 21:57

Thanks for posting back! I would've been beating my head up against a wall all day. The network service shouldn't have anything to do with this, but this is IIS....

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here