[SOLVED] Unable to make thumbnail insanity - IIS 6.0

Something_else

Joined: 2005-02-08
Posts: 29
Posted: Fri, 2005-04-15 16:08
******Adding Frag3.jpg*****

Doing the naming 
Image Preprocessing 
   Resizing/compressing original image 
Resizing Image: c:/inetpub/wwwroot/mtndewbuzz/modules/gallery/albums/screenshots/Frag3.jpg 
Getting Dimension of file: c:/inetpub/wwwroot/mtndewbuzz/modules/gallery/albums/screenshots/Frag3.jpg 
   No resizing required 
Adding Photo to the photo list 
File c:/inetpub/wwwroot/mtndewbuzz/modules/gallery/albums/screenshots/Frag3.jpg type 2.

Getting Dimension of file: c:/inetpub/wwwroot/mtndewbuzz/modules/gallery/albums/screenshots/Frag3.jpg 
Generating thumbnail. 
Resizing Image: c:/inetpub/wwwroot/mtndewbuzz/modules/gallery/albums/screenshots/Frag3.jpg 
Getting Dimension of file: c:/inetpub/wwwroot/mtndewbuzz/modules/gallery/albums/screenshots/Frag3.jpg 
Executing:
c:\imagemagick\convert -quality 90 -size 150x150 -coalesce c:\inetpub\wwwroot\mtndewbuzz\modules\gallery\albums\screenshots\Frag3.jpg -geometry 150x150 c:\inetpub\wwwroot\mtndewbuzz\modules\gallery\albums\screenshots\Frag3.thumb.jpg

Results:
none

Debug messages: 


Status: 1 (expected 0) 
Error: Unable to make thumbnail (0)

Ive given permission to everything under the sun and it still will not upload the pictures They arent even uploading into the albums directory. But the gallery itself can write to the "albums" folder, create and edit albums just fine. So theres no permission problems there. I see the date changing on the .bak files... so its able to access them and that folder.

Ive given permissions to cmd.exe to "Network Service" "IUSR_SRVERNAME" etc etc ... it doesn't matter who i giev what permissions too .. this thing will not upload a picture into the album directory.

I know my php uploads work fine.. because users upload attachments and avatars all day long with out a hitch. But this gallery ..... thats a whole different story. I don't understand..

Anyone want to shed some light? Tips, ideas, solutions? I appreciate the help. Thanks

----
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://www.mtndewbuzz.net/modules/gallery
Embedded version --> http://www.mtndewbuzz.net/modules.php?op=modload&name=gallery&file=index&include=albums.php
Gallery version: 1.5 rc2
Apache version: N/A
PHP version (don't just say PHP 4, please): 4.3.10
Graphics Toolkit: imagemagick
Operating system: Windows 2003 / IIS 6.0 / posntuke Embedded
Web browser/version (if applicable):

 
Something_else

Joined: 2005-02-08
Posts: 29
Posted: Sat, 2005-04-16 04:46

Anyone?

 
kckool

Joined: 2005-04-16
Posts: 1
Posted: Sat, 2005-04-16 22:40

I had the same issue. These settings worked for me:

1. Give IUSER_Server read/write access to gallery/albums and gallery temp folders
2. Give IUSER_Server read/execute access to c:\windows\system32\cmd.exe
3. Give IUSER_Server modify access to PHP\sessiondata and PHP\uploadtemp folders

Hope this helps...

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2005-04-17 12:05

Alright what's going on here?
I've suddenly got the same problem.
All was fine until my friend emailed me to say that he could no longer upload images to his site (which I host for him).
Nothing has changed on my end.
Windows 2003 server, IIS6 php 4.3.8 on both my servers, one works, one does not.
Sounds fishy to me.
Even though I have ImageMagick installed Gallery Remote has always reported that it could not find it. It also used to say that it would create the thumbnails itself. Now it does not.
I just upgraded to 1.5 - no help
If I have to upgrade to Gallery2 then I cannot embed it into my Geeklog site.
Getting frustrated here.

oh yeah - my permissions are all set correctly. Like I said it was working until some unknown cosmic event took place. And it still works on my other server(must be shielded from unknown cosmic events).

Any suggestions would be appreciated.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2005-04-17 13:12

:D Alright, It seems that our buddies in redmond have thrown us for a loop with one of thier latest "security fixes"

you have to give IIS worker group process modify permissions to your upload temp folder eg. c:/php/uploadtemp

that would be IIS_WGP

and thank you for my support.

 
Something_else

Joined: 2005-02-08
Posts: 29
Posted: Sun, 2005-04-17 14:37

I'm so f'n pissed off right now. Ive given full control to IUSER_SERVER, IIS_WPG, NETWORK SERVICE, for cmd.exe, convert.exe, albums directory. temp directory, EVERYTHING!@!!!

I might as well put a sign up on my server "Open to the public to hack" Because it practically is. And guess what? Thats right! This freakin thing will still not upload the pictures to the album directory. I freakin give up .. it shouldn't be this hard and i really shouldn't have to spend more then 24 hours trying to upload a picture into gallery when my uploads already work in the first place with attatchmod. And all had to do with attatchmod was give my uploads folder permission for IUSER_SERVER to write to it. Done .. But Nooooooo this thing wants write permissions to the damn system folder. That freakin sketchy .. 90% of the computers out there are windows and somehow they cant support it properly. That doesn't quite make any sense to me..

Its like you need a freakin degree in engineering to install this. and what kills me is. IT WAS WORKING ALREADY!!!

What other module or program do you know of that stops working randomly? I cant think of any.

I don't even know if i want to ask if someone else has any other solutions. I shouldn't have to go through all this crap..

Sorry .. but I'm pissed. I need to vent. Ive kept my cool for far too long. When you know what your doing and shit still doesn't work. It really pisses me off.

Thanks for listening. Now I'm going into the bathroom to hang myself. Bye

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-04-17 23:16

its true that 99% of people browsing the web use windows... but its not true about servers. Apache hosts something like 75% of the web's web servers, and most of those run linux.

Everything in the docs points to how hard it is to get gallery working in windows, and the hardest part is getting php to work. Obviously something is not working with your IIS+PHP, its quite unlikely to be gallery.

You say that the attach mod works, but does it have to execute system commands to run image manipulation programs in order to create 2 or 3 different images? I'm not sure how it works, but I have seen some that do use thumbnails... but I don't know if its just the whole image with a "height=" tag or if it actually made thumbs for it.

You don't need (neccessaryly) full control for all those files, just that the certain users can read/write/execute them.

Your debug output doesn't look bad, but obviously there is something wrong. Have you tried running some of the same commands manually in cmd line to see if they even work?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-04-17 23:19

http://news.netcraft.com/archives/web_server_survey.html

Also, gallery is unlikly to randomly just stop working. SOMETHING on your side changed if it randomly stopped working. It was probably a windows security update that messed with permissions or changed how IIS worked or something. Everyone who claims they "didn't do anything, it just stopped working" is either lying or just doesn't realize something changed :)

That goes for linux and windows equally of course :p

 
Something_else

Joined: 2005-02-08
Posts: 29
Posted: Mon, 2005-04-18 06:55

Just need to vent dude. I'm sure you've been there. I was trying to make some humor about it.

My point about the permissions, was ... it doesn't matter what i give to who .. this thing will not manipulate the images or upload them. Nothing changed on my side at all. Just woke up one day .. and everything was haywire. Ended up installed the new 1.5 rc2 version because i kept going to some upgrade screen over and over just from reinstalling the old version.

So, it was working .. stopped working.. i left all the permissions on cmd.exe convert.exe, temp folder for both session data, and temp uploads. Nothing changed there at all. Reinstalled gallery to this 1.5 version .... redid the permissions for albums directory. Re uploaded the module... Installed perfect. I was able to make albums and edit them and every other option you had. And the one thing that i NOW couldn't do. Upload pictures.

Soo .. it tends to make someone a little mental when the same settings that used to work before, are all of the sudden "Not working" just because of a new install on gallery. All my settings have been looked over about 50 times. And thats not exaggerating.

Like i said. Nothing was changed. Woke up one morning, it was hosed. Installed a new version of gallery. Wont upload. Tried top reload the old version i had .. and i kept getting "upgrading users" over and over .. so that leaves me where i am now. Back on 1.5rc2

Make sense now? I though so..

I really like gallery, don't get me wrong. Ive just never went through this much agony trying to get something to work on my web server. For a second time. Seriously man.. I thought that guy had the answer for me .. and that didn't even help .. and thats what set me off! I got to have something to blame. Blame Gallery! Yeah! :)

And your probably right about the webservers. I was thinking client machine. My bad..

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-04-18 07:04

And people wonder why IIS is unsupported.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2005-04-18 09:06

I sometimes feel that way about MythTV on linux ;)

 
Something_else

Joined: 2005-02-08
Posts: 29
Posted: Mon, 2005-04-18 19:50

Ahh hell, I tried. :-?

 
Something_else

Joined: 2005-02-08
Posts: 29
Posted: Wed, 2005-04-20 20:29

Well praise the lord! I finally figure out what the problem was.

PLEASE add this to the windows install docs. Its mucho importante~.

Your ImageMagick folder needs read permissons for the 1 of the following users.

IUSR_machinename
IIS_WPG
NETWORK SERVICE

Im not exactly sure which one it was in specific, because i added all of them at the same time. But i assure you its one of those or all of them.

How that got changed, i have no freakin clue. But YAY!!!! Its converting images now. Kick ass!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-04-20 20:37

Most likely the NETWORK SERVICE, which is mentioned in the user contributed notes in the IIS section...

 
Something_else

Joined: 2005-02-08
Posts: 29
Posted: Wed, 2005-04-20 21:09

Ok ....why is it upgrading users over and over now? When i go to my gallery is says:

Quote:
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 . . . . skipped
Checking user 2 of 4 . . . . skipped
Checking user 3 of 4 . . . . skipped
Checking user 4 of 4 . . . . skipped

Users upgraded successfully.

I press the done button and nothing happens. Ive deleted all the sessions data out of the temp folder .. and i still get this. I want to cry... seriously.

I tried to search the forums, but weve been through this before. Its practically impossible finding threads that have anything to do with this.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-04-20 21:39

Something happened to your users dir.

 
Something_else

Joined: 2005-02-08
Posts: 29
Posted: Wed, 2005-04-20 22:22

Ok... i fixed it. Im up and running like a champ. Thanks for the help.