PLEASE HELP - 500 Internal Server Error when upgrading from 2.2.3 to 2.3 (nightly)
|
totem
Joined: 2008-03-04
Posts: 24 |
Posted: Thu, 2008-05-08 03:05
|
|
Hi, I'm stuck in between versions of gallery and need your help. I was trying to upgrade from 2.2.3 to 2.3 so that I can get the Piclens support. In step 4: Currently installed Core Module version: 1.2.0.5 (Gallery 2.2.3) after hitting the "begin upgrade" button, it goes into a 40 - 50 sec, and then returns with a 500 Internal Server Error message. What I've done: 2. Tried to get the error log, but there's no contents in the file "cgi_error_log" 3. Added the following code to gallery/upgrade/index.php see if I can get more info:
error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler");
function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars)
{
$time=date("d M Y H:i:s");
// Get the error type from the error number
$errortype = array (1 => "Error",
2 => "Warning",
4 => "Parsing Error",
8 => "Notice",
16 => "Core Error",
32 => "Core Warning",
64 => "Compile Error",
128 => "Compile Warning",
256 => "User Error",
512 => "User Warning",
1024 => "User Notice");
$errlevel=$errortype[$errno];
//Write error to log file (CSV format)
$errfile=fopen("errors.csv","a");
fputs($errfile,"\"$time\",\"$filename:
$linenum\",\"($errlevel) $errmsg\"\r\n");
fclose($errfile);
if($errno!=2 && $errno!=8) {
//Terminate script if fatal error
die("A fatal error has occurred. Script execution has been aborted");
}
}
Which results in only "notice" messages: Do I need to restart the apache server for the new php.ini to take place? (need to ask my hosting company to do this I think) Please give me some pointers to solve my problem. I've been fighting this for the past couple of days. PHPInfo: http://campanas.net/gallery/phpinfo.php
|
|
| Login or register to post comments |

Posts: 24
guys/gals, I really need help. My hosting company is saying that the PHP script timeouts on the servers is 60 seconds and there's no way they can change it:
I told them that they would run into many people in the future trying to upgrade their gallery2 site to the latest one.
I'm in between installations and I need to know either how to go back to 2.2.3 or successfully upgrade to 2.3. Is there anything I can do manually to do the upgrade to 2.3?
Is there any way to have the upgrade scripts spit out the trace to see exactly where it is timing out?
Please help!
thanks
Posts: 135
I think it's poor coding on the part of Gallery that it doesn't do this in smaller stages as webserver applications should never be in process loops for too long. A good example of how this is done is to look at phpBB when it processes many records.
I had the same issue with my own server and I was not prepared to increase the timeout simply to upgrade - I just reverted the code and database back to 2.2.4
Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.6 cgi-fcgi
Webserver = Microsoft-IIS/6.0
Database = mysqlt 5.0.51a-community-nt, lock.system=database
Toolkits = Dcraw, Ffmpeg, ImageMagick, Gd, LinkItemToolkit, Thumbnail, jpegtran, Exif
Acceleration = full/900, none/0
Operating system = Windows NT 5.2 build 3790
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008050606 Minefield/3.0pre
Posts: 24
Thanks Taomyn. How would I go about reverting back to the previous version? I have no idea which files have been upgraded and which haven't. I'm not even clear what an 'upgrade' means, is it just a replacement of the files/directory?
Should I just upload the files from the previous version to the server?
thanks
Posts: 5649
Check your g2data directory for upgrade log files. Those should give us the information that we need to fix this. Please PM a link to them to me (don't share them with the public, they have sensitive information).
What happens if you try to run the upgrader a second time?
Posts: 24
If I try the upgrader for a 2nd, 3rd, 4th...nth time, it gives the same error message, it pretty much times out after ~50 seconds. Since it times out at different times, the upgrade logs are different from one to another - sometimes it cuts off before than others.
I just PM you how to get to the files. Thanks for the help.
Is there any way to install a fresh installation in another directory (in the same server) and do an import of the data? Would that work? Would my existing links still work the same (assuming I can get to rename the directory the same as before?)
thanks
Posts: 135
As with any test of a pre-release, I made a backup of the entire code area for the gallery and also dumped the MySQL database. I just reverted back to those once I had the problem.
Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.6 cgi-fcgi
Webserver = Microsoft-IIS/6.0
Database = mysqlt 5.0.51a-community-nt, lock.system=database
Posts: 24
I didn't backup the "gallery" folder, but did backup the database. I guess I can re-upload the "gallery" folder/files that I have on my local PC, and revert to the backed up database...
Maybe I'll do that...
Posts: 41
We have the same problem of Totem !!!
After step 2 gave "500 Internal server error" and checking the log file it's caused by time out.
Please let us have how to solve this problem !!!
Thank You
Versione di Gallery = 2.2.4 core 1.2.0.6
Versione PHP = 4.4.7 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Posts: 41
Nobody can help me ?
due to this problem
The updated website is down now
The web site is: http://www.tiziano-photography.it
Versione di Gallery = 2.2.4 core 1.2.0.6
Versione PHP = 4.4.7 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Posts: 28
Hi Mareluna, I get exactly the same problem at exactly the same step.
(I'm Italian too but I write in English so that other people can understand).
I think that the problem can be in the Aruba service: both your site and www.fiammarte.com (the one that I'm trying to update) are on Aruba servers, and both got the same problem.
I've other Gallery installations (the ones in the signature), these are on other servers and there the update went fine.
I'm writing to Aruba assistance and will report that you got the same problem, please do the same for www.fiammarte.com!
Ciao
Matteo
------------------------------------------
My Gallery sites:
http://www.ruraljourney.com/italy_travelguide/
http://www.zorring.org/
Posts: 28
For Mareluna:
Leggi questo articolino: purtroppo c'è il trucco solo per la 2.2.6 e non per la 2.3.
Ora lo segnalo all'assistenza di Aruba, fai lo stesso e fammi sapere se trovi delle soluzioni...
http://www.capn3m0.org/2008/09/problemi-installazione-menalto-gallery-226/
Ciao
------------------------------------------
My Gallery sites:
http://www.ruraljourney.com/italy_travelguide/
http://www.zorring.org/
Posts: 9
I am not very expirienced I startet with Gallery 2.x and did all the upgrades without problems.
Now the 2.3 failed heavily after FTP-upload overwriting the existing version. The plugin-section in the Admin was no longer available. Plugins could no longer be managed, except by uploading ore deleting by FTP with ERROR messages. There are many files no longer in use, they offer a install-created shell-programm to delete the old files. But I am not allowed to run shell-files on my server. Several user found out that the "Module" directory must be completely emptied, delete all the plugins in this directory and load only the ones in the 2.3 module directory, especially the new core must be there. If the settings are not chmod 777 for modules directory, the plugins can not be overwritten and are left in the old version.
Make shure that you also set the directory "templates" to chmod 777 and delete your styletemplate (e.g. matrix with the 2.3 version matrix, "tile" also is incompatible, delete this one.
After these steps and repeating install/index.php the Admin-Menu was working fine in the overrite gallery, which I kept for tests.
The upload function still stalls when uploading large fotos or intermediate formats or tumbnails are missing, this problem could not be solved in my upgrade tests. But I can now apply sizelimit with the approprate Plugin. Version 2.3 from scratch has a better functionality for uploading large fotos.
I recommend not to upgrade, instead start from scratch with 2.3 (new directory gallery2, new database, then try to import, SQL dump, which didnot work in my case, g2data may be another problem)or stay with 2.2.6 that worked fine and has even same adventages as logging in as a testuser to test the correct settings and permissions for the members! Logging in as testuser for the Gallery-Admin does no longer work in 2.3! security violation, gallery closed, must clean cockies in the browser.
Posts: 28
Problem solved (at least for me and Mareluna).
Now our hosting provider (Aruba.it) has a Gallery Optimised php.ini that you can activate from your domain control panel.
I'm updating right now, it takes hours... but it seams that I get no errors... at least until now.
------------------------------------------
My Gallery sites:
http://www.ruraljourney.com/italy_travelguide/
http://www.zorring.org/