Re: Server Error 500 when uploading files

207 views
Skip to first unread message

Allison Stec

unread,
Jun 14, 2012, 2:14:58 PM6/14/12
to resour...@googlegroups.com
500 is a pretty generic error. You're going to be better off looking to error logs and the installation check within resourcespace.

If you don't have error logging set up for php (the web server error log would be helpful too) turn it on and recreate the situation that throws the error.

On Thu, Jun 14, 2012 at 1:55 PM, Aaron Kerr <powerb...@gmail.com> wrote:
I just installed ResourceSpace for the first time on a SUSE server running php 5.2.16.

Every time I try to upload a file, I get:

"Upload stopped with errors : Received HTTP status 500 Internal Server Error"

The same things happens whether I use the Java or Flash uploader. The "filestore" directory is set to 777. The file itself is actually uploaded, but no thumbnail is created. PHP-GD is in place and working. The following error appears in the apache log each time I try to upload a file:

File does not exist: /srv/www/asset-docs/pages/lang

Does anyone have any ideas or items I can troubleshoot?

Thanks so much.
Aaron

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/C6flu9aWHNMJ.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.

Dan Huby

unread,
Jun 14, 2012, 2:15:23 PM6/14/12
to resour...@googlegroups.com
Is everything "OK" on the Installation Check page?

Aaron Kerr

unread,
Jun 14, 2012, 3:22:09 PM6/14/12
to resour...@googlegroups.com
Thanks for the help so far. Everything checks out great on the installation check page.

Allison, the error "File does not exist: /srv/www/asset-docs/pages/lang" comes from the Apache/webserver log and gets generated each time I try an upload.

I'll do some checking to see if PHP is throwing any separate errors.

Aaron

Aaron Kerr

unread,
Jun 14, 2012, 3:41:40 PM6/14/12
to resour...@googlegroups.com
I turned on PHP error logging to a file and made sure the logging was working correctly. The upload issue I'm experiencing does not log an error on the PHP side, only the error I've already posted in Apache.

Allison Stec

unread,
Jun 14, 2012, 3:58:23 PM6/14/12
to resour...@googlegroups.com
The file does exist? Does the Apache user have adequate permissions to access the file?

Also, what file type and how large are the files you're trying to upload?

Further, if the previews aren't being generated can you successfully recreate the preview? (this option can be found under "edit" on the resource view page)

Any SUSE users out there that can shed some light?

On Thu, Jun 14, 2012 at 3:41 PM, Aaron Kerr <powerb...@gmail.com> wrote:
I turned on PHP error logging to a file and made sure the logging was working correctly. The upload issue I'm experiencing does not log an error on the PHP side, only the error I've already posted in Apache.

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/MiWKhjkcZD4J.

David Dwiggins

unread,
Jun 14, 2012, 4:32:35 PM6/14/12
to resour...@googlegroups.com
We run our system on SUSE Enterprise, but I've not seen this problem before.

Would it be possible to post the output from your installation check?

Aaron Kerr

unread,
Jun 15, 2012, 10:28:02 AM6/15/12
to resour...@googlegroups.com
David,

I think I got over the initial issue I was having. I noticed at the bottom of the installation check area that it said "fail" for the exiftool. I didn't have this tool installed, but I'd left the field blank for it's path during installation. However, it appeared it was trying to use this tool

I installed exiftool, ran a fresh install, and my http 500 error went away.

My upload works fine now, but I'm not getting thumbnails. The issue appears related to delegates in imagemagick. I'm getting errors like this:

convert: no decode delegate for this image format `/srv/www/asset-docs/include/../filestore/3_d18b4636edc58e3/3_b7adb631be17e84.jpg' @ error/constitute.c/ReadImage/544.
convert: no images defined `/srv/www/asset-docs/include/../filestore/3_d18b4636edc58e3/3col_64d8524ae27c355.jpg' @ error/convert.c/ConvertImageCommand/3032.

As this is a different issue, I guess I'll open a new thread if I can't figure it out. Thanks all for your help!

Aaron
Reply all
Reply to author
Forward
0 new messages