Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Internal Server Error on Upload  (Read 6711 times)

0 Members and 1 Guest are viewing this topic.

chrisdailey

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Internal Server Error on Upload
« on: October 11, 2009, 05:52:07 am »

I am new to Coppermine (and very impressed so far).  I have a fresh install of 1.4.25 on a Linux box hosted by 1and1.  I am trying to get pictures into my first album and I have tried two different methods so far:

Batch Add Files:
- Select the sub-directory to upload (20091010) and either all files or individual files in the directory
- Select the album
- Next screen shows "click for details or to reload"
- Click on the link and get "500 Internal Server Error"

Single File Upload:
- Select File from hard drive
- Upload successful - click "Continue" to add the files to albums
- Clicking "Continue" brings up a 500 Internal Server Error

Steps taken so far to resolve:
- Tried a chmod -R 777 on the album directory
- Made sure my configuration settings allowed for the size file I was uploading
- Checked my server logs - no clear errors
- Turned on debugging - no clear errors
- Admin -> Update Database - just to make sure there was nothing funny in my DB
- Searched the board and documentation for any additional ideas that I might have missed

Test User:
U:******
P: *********
Thank you in advance for your time and assistance in resolving this issue.

Chris Dailey
« Last Edit: October 11, 2009, 07:56:45 pm by Phill Luckhurst »
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Internal Server Error on Upload
« Reply #1 on: October 11, 2009, 06:59:16 am »

link  ;)
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Internal Server Error on Upload
« Reply #2 on: October 11, 2009, 07:06:57 am »

Also, this post and this post suggest your host limits your upload size. Do you know your upload limit?
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

chrisdailey

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Internal Server Error on Upload
« Reply #3 on: October 11, 2009, 01:59:44 pm »

And I thought I was being so good and including everything - I guess the link would be helpful:

http://Http://www.chrisdailey.net/gallery

I don't know the upload size limits, but I will check.  I hadn't looked into that .side much because the upload portion seemed to be succesful when I did the individual files.

Chris
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Internal Server Error on Upload
« Reply #4 on: October 11, 2009, 07:10:27 pm »

The user you created is an admin. Please create a non admin user.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Internal Server Error on Upload
« Reply #5 on: October 11, 2009, 07:26:15 pm »

I was able to upload 3 photos into a user album at sizes up to 500kb as single file uploads, everything went as it should. Then I tried to upload one of your photos (3.3MB) and I received the error. Reduce the size of your photos then try the batch upload. I'm sure its your host limiting your upload size.

Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Internal Server Error on Upload
« Reply #6 on: October 11, 2009, 08:01:23 pm »

chrisdailey,

Never ever post an admin password anywhere on the net. Once a hacker has your password he can do almost anything he wants to your setup, I am sure you wouldn't want that.

I have remove the password details from your initial posting & changed the password of the test user you created. If you require this password just ask and I will send you a PM. What I suggest though is you remove that user and set up a new user. Please make sure this user is not in the admin group but a standard user.

We never ask for an admin user account (or very rarely) as we can normally work out what is going wrong from a standard user account, even batch uploads.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

chrisdailey

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Internal Server Error on Upload
« Reply #7 on: October 12, 2009, 12:13:43 am »

Thank you for addressing my issue, and for your concern about the security of my site.  I have resized the images by 50% and everything loaded fine.

I recognize this is a limitation of my host and not the software, but I find this a little disappointing.  I would like to use the software to make hi-res images available to clients.  Can somebody please help me understand why the upload size limit impacts batch inserts of files already on my server?

Thank you again to everyone for your time spent helping me on this issue.

Chris
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Internal Server Error on Upload
« Reply #8 on: October 12, 2009, 12:30:11 am »

Can somebody please help me understand why the upload size limit impacts batch inserts of files already on my server?

The only thing I would suggest is to double check your "Max size for uploaded files (KB)".
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Internal Server Error on Upload
« Reply #9 on: October 12, 2009, 09:24:47 am »

1and1 in the UK has some strict limits on server resources. Most hosting packages have many users using the same server. Each user gets a small amount of the resources available on each system and depending on your host or package with that host they place limits on how much memory, disk space and processor time that you are allowed to use. So if an image requires more memory for instance that you are allowed to use you will get a 500 server error.

Your only option is to speak to your host to see how/if they can increase that limit but it usually involves more cost.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.