Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

404 - File or directory not found when uploading Zip file
cpuguru
#1 Posted : Thursday, 9 June 2011 1:30:13 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

Just installed GSP 2.4.8 and am kicking the tires.

It seems that I can upload a JPG image to a newly created album.

When I try to upload a zip file containing images however, it stalls for a couple of seconds on the upload and then comes back with a 404 error:

http://gallery.oceanbyte...-404e-9e14-cb0a712e0155

Any thoughts on why?

(Win2k8 R2 web server w/ GSP installed via WebPI. Same server ran a previous GSP version which allowed zip file uploads w/o incident.)
Roger Martin
#2 Posted : Thursday, 9 June 2011 1:33:31 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Not sure. Try a different browser. Try a different ZIP file. Look in the Error Log in the site setting section to see if there are any clues.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cpuguru
#3 Posted : Thursday, 9 June 2011 3:50:08 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

I don't see anything in the Event Log, not sure where else to look for error logs?

The older GSP version seems to work fine. I'm wondering if it's something to do with the uploader?

Doug
Roger Martin
#4 Posted : Thursday, 9 June 2011 4:27:21 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I am referring to the error log in GSP. Click Site admin from the Actions menu, then click the Error Log button.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cpuguru
#5 Posted : Thursday, 9 June 2011 6:00:43 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

The only error in there was a "cannot send email" error from earlier today.

Nothing relating to the 404 Page Not Found issue when trying to upload Zip files.
Roger Martin
#6 Posted : Thursday, 9 June 2011 6:33:48 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

What happened when you tried a different browser and different zip files?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cpuguru
#7 Posted : Thursday, 9 June 2011 7:00:44 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

Same 404 error with both IE & Firefox and using various zipped groupings of jpg's.

I'd be happy to create an admin account for you if you want to investigate further. Just email me.
Roger Martin
#8 Posted : Thursday, 9 June 2011 7:08:18 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Yeah, I can take a look if you give me an account.

Also, can you upload your zip files to the demo site?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cpuguru
#9 Posted : Thursday, 9 June 2011 7:21:57 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

Just tried the same to the Demo site and it also gave me the 404 error.

Uploaded the same zip to my older GSP site (v2.3.3768) and it uploaded and extracted smooth as butter.
cpuguru
#10 Posted : Thursday, 9 June 2011 7:25:10 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

I just dropboxed you a zip file of the images so you can try it yourself.
Roger Martin
#11 Posted : Thursday, 9 June 2011 7:28:03 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Are you perhaps experiencing one of the IIS restrictions on large file sizes? Can you try a small zip that is less than 5 MB?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cpuguru
#12 Posted : Thursday, 9 June 2011 7:32:13 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

I doubt it - both GSP instances are on the same server as two separate websites.
cpuguru
#13 Posted : Thursday, 9 June 2011 7:37:37 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

Hmmm, just tried one that was about 6MB in size and it worked.

What might be stifling the 50MB one? The older GSP handled it and others up over 1GB without incident.
Roger Martin
#14 Posted : Thursday, 9 June 2011 7:41:44 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

By default IIS 7 blocks uploads larger than about 30 MB. Open web.config and search for requestFiltering. You'll see some comments about how to change this.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cpuguru
#15 Posted : Thursday, 9 June 2011 7:42:22 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

Web.config has the recommended settings for 2GB file upload size and execution time:

<location path="default.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" executionTimeout="86400" />
</system.web>
</location>
Roger Martin
#16 Posted : Thursday, 9 June 2011 7:48:26 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

That is not the section I am talking about. Look for "requestFiltering". Not that by default the section is commented out. You want to uncomment it.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cpuguru
#17 Posted : Thursday, 9 June 2011 7:48:34 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

You da man! Moving the closing comments above this setting in Web.config (ie: uncommenting it) fixed the issue:

<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648"/>
</requestFiltering>
</security>

Not sure why it just throws a 404 error when it encounters files larger than 30MB rather than something a tad more helpful, but I'll take it.

Thanks for taking time to help me troubleshoot this. If you have any sway on the WebPI team, you should talk them into uncommenting this by default. With most DSLR cameras taking 5MB+ pics nowadays, it's kind of tough to get a zip file under 30MB.

Thanks also for an awesome product/project!
Roger Martin
#18 Posted : Thursday, 9 June 2011 7:55:39 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Glad you got it. We can't enable it by default because some hosting companies throw an error when you use that setting.

I wish I could trap that error and provide a more informative error message, though. Maybe if I get clever there is a way to do that...
Roger Martin
Creator and Lead Developer of Gallery Server Pro
cpuguru
#19 Posted : Thursday, 9 June 2011 7:59:24 PM(UTC)
Rank: Member

Joined: 9/06/2011(UTC)
Posts: 11
Location: Delaware

Glad we got it figured out too. Hopefully this forum entry will help others if they run into the same 404 issue.

I appreciate you sticking with it!
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.