500 Internal Server Error

nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2004-02-24 06:06

I occasionally get this error when using G2. Unfortunately I can't pin point the problem as either refreshing the page or hitting back then clicking on the link again usually makes it disappear.

There is also no error message that shows up in the limited view of the error logs available to me by my host.

Has anyone else seen this with G2?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2004-02-24 06:38

Guess I should post this info too:

PHP: 4.3.4
Apache: 1.3.29
MySQL: 4.0.16

I've been on both IE 6.x and Moz 1.6 on WinXP and IE 6.x on Win98 when this has occured.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2004-02-25 06:07

A "500 internal server error" from PHP indicates that the PHP engine terminated abnormally. This should never happen .. I mean technically it shouldn't be possible for us to write PHP code that causes the PHP vm to exit abruptly like that.

Possible causes.

  1. PHP is crashing. Even though you've got a very recent version of PHP, it still has some bugs in it. We can maybe work around them if we can figure out where it's crashing but this typically requires us to run Apache under a debugger and get a stack trace.
  2. Your host has you in some kind of jailed environment and is throttling your httpd process when you consume too much resources. You might confer with your host about this and see if they have any clues

To help us narrow it down .. can you think of any behaviours that cause it to happen more commonly? Like does it crash more frequently the first time you view an image you just uploaded?[/]

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2004-02-25 14:51
Quote:
PHP is crashing. Even though you've got a very recent version of PHP, it still has some bugs in it. We can maybe work around them if we can figure out where it's crashing but this typically requires us to run Apache under a debugger and get a stack trace.

Unfortunately that part is out of my control....

Quote:
Your host has you in some kind of jailed environment and is throttling your httpd process when you consume too much resources. You might confer with your host about this and see if they have any clues

They do not run in a jailed environment. However, I any running PHP through php-cgiwrap so that it's run under my account instead of the account Apache runs under.

Could this be a problem? I know the server isn't under powered, this is what it's running on:
Athlon XP2200+, 512MB RAM, 80GB disk

This is probably about average for the amount of load that's typically on it:
load averages: 0.35, 0.26, 0.25

Quote:
To help us narrow it down .. can you think of any behaviours that cause it to happen more commonly? Like does it crash more frequently the first time you view an image you just uploaded?

Will do. Haven't played with it much in the last couple of days, but will be getting to it more this weekend.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2004-02-27 20:32

Seems to be happening quite regularly when trying to migrate in a lot of albums and pictures from G1.

I can only get about 11-12MBs of files migrated over before the server spits error 500 at me.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2004-02-27 21:06

Ah HA! You said the magic migration word. It's like Beetlejuice - say it three times and I appear behind you with a shovel.

Um, I mean, um, never mind.

Are you trying to migrate your whole G1 in one fell swoop? Are you able to import one album at a time?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2004-02-27 21:19
jmullan wrote:
Ah HA! You said the magic migration word. It's like Beetlejuice - say it three times and I appear behind you with a shovel.

Um, I mean, um, never mind.

:D

jmullan wrote:
Are you trying to migrate your whole G1 in one fell swoop? Are you able to import one album at a time?

I'm able to import all users at once. I've also been able to import a batch of albums at once. But not larger batches.

I'll try smaller batches and even 1 by 1 if need be. One question though. What happens if 90% of my albums are below one parent album? Does it try to migrate in all of the other "childern"? Guess that's 2 questions ;)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2004-02-27 21:40
Quote:
I'm able to import all users at once.

Just to let you know I'm still having a problem with G2 erroring out wanting user data files of users that were deleted from G1.

I don't know what or where it's getting this info from as G1 doesn't see the users. Still have to use the work around of copying the 1077807211_427789025.bak 1077807211_427789025. I'm using the UID of 1077807211_427789025 as an example.

Thanks.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2004-02-27 22:22
Quote:
One question though. What happens if 90% of my albums are below one parent album? Does it try to migrate in all of the other "childern"? Guess that's 2 questions

That's what the selection list is for. If you import an album and its parent, the album will be imported into its parent.

I haven't worked on the user stuff yet. I know, I know, I'm slacking.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2004-02-27 22:53
jmullan wrote:
That's what the selection list is for. If you import an album and its parent, the album will be imported into its parent.

Just so I understand fully, if I migrate just the parent in it only migrates that album in and not all of the sub-albums?

jmullan wrote:
I haven't worked on the user stuff yet. I know, I know, I'm slacking.

;) Don't worry about it. I Just didn't know if you had worked on it and if you had I wanted you to know I still had that problem. No worries

I just want to help out where I can to help make this an awesome product.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2004-03-01 17:10
Quote:
Just so I understand fully, if I migrate just the parent in it only migrates that album in and not all of the sub-albums?

That is exactly correct. If you do not select an album, it will not be imported. Similarly, if you import an album at a different time from its parent, you will have to choose the G2 parent album as the target. If you have albums like this:

A-B-C
\-D-E
  \-F

and you import albums A, B, and C in one pass, it will make C a child of B and B a child of A, like this:

A-B-C

If you then import D and E, but don't select A as the target, your G2 will look like this:

A-B-C
D-E

If you then import F and target D, you will get:

A-B-C
D-E
\-F

Hopefully that makes sense. If it does, it will probably go into the documentation.

Quote:
I just want to help out where I can to help make this an awesome product.

You're doing exactly the right thing!