NZyan Posted February 7, 2022 Posted February 7, 2022 I just wanted to update from 4.6.9 to 4.6.10 Process stopped with the message: Quote There was an error downloading the files to your server. Please download the update and upload the files to your server, or contact us for assistance. Tried to download the update, got an 500 error. Not happy. No, I don't want to do a full install of all files – this will take several hours…
NZyan Posted February 7, 2022 Author Posted February 7, 2022 Update: After a second try everything fine, by manually going to [SITE]/admin/upgrade Any explanation for the 500 error when trying to download the update? Andreas
Randy Calvert Posted February 7, 2022 Posted February 7, 2022 A 500 error is typically a server based error. The only way to try and figure out what happened without it happening live is to check the logs. I would start with the Error and System Logs in the ACP support area. If there is not a clue in there, I would go back to my system logs and look in the Apache or PHP error log.
IveLeft... Posted February 7, 2022 Posted February 7, 2022 16 minutes ago, Randy Calvert said: look in the Apache or PHP error log. Thats assuming its an Apache server 🤔
Randy Calvert Posted February 7, 2022 Posted February 7, 2022 2 minutes ago, Muddy Boots said: Thats assuming its an Apache server 🤔 Absolutely true. But Apache is the only "supported" web server for IPS. So if they're using something else <cough>Nginx</cough> don't expect to get too much official assistance. 🤣
IveLeft... Posted February 7, 2022 Posted February 7, 2022 To be fair if its an Apache Server and you need to look into Apache then IPS will wash there hands anyways and point them to their host or system admin....... Nothing wrong with Nginx, no need to cough either
Jim M Posted February 7, 2022 Posted February 7, 2022 @NZyan, if there are any logs which report back to the software, please let us know. Otherwise, I can move this topic to the advanced self-hosting assistance forum for further assistance.
NZyan Posted February 7, 2022 Author Posted February 7, 2022 @Jim M Thanks for your assistance The problem is solved for now – the update is successful. I'm not sure if it was one problem (wrong permissions for one file) or this problem and another one on top of it: When I wanted to download the patch during the update I received instead of the files an error page with the 500 error. Question: Was it on my side or – what I guess – at the IPB download server? Can't check until tomorrow. Nzyan
Jim M Posted February 7, 2022 Posted February 7, 2022 A 500 Internal Server Error is like the check engine light on your car. It says something is wrong but not exactly what or where. Without the details of that log entry, I could not tell what went wrong. However, more likely than not with these auto-upgrader items is it is something in the extraction of the files. The log entry will tell you for sure where the issue is. Again, if it is an issue with the software, we will certainly assist you but if it is an issue with your server, we will need to move this to the advanced self-hosting support forum for peer to peer assistance as that is outside our scope of support.
NZyan Posted February 7, 2022 Author Posted February 7, 2022 (edited) This is what I found in the System Log: Quote LogicException::0 #0 /is/htdocs/wp1130565_ZR7EP54ZSC/skfipb4/applications/core/modules/admin/system/upgrade.php(550): IPS\core\modules\admin\system\_upgrade->_getDownloadKey('[email removed]', '106154') #1 /is/htdocs/wp1130565_ZR7EP54ZSC/skfipb4/system/Helpers/Wizard/Wizard.php(181): IPS\core\modules\admin\system\_upgrade->_login(Array) #2 /is/htdocs/wp1130565_ZR7EP54ZSC/skfipb4/applications/core/modules/admin/system/upgrade.php(109): IPS\Helpers\_Wizard->__toString() #3 /is/htdocs/wp1130565_ZR7EP54ZSC/skfipb4/system/Dispatcher/Controller.php(101): IPS\core\modules\admin\system\_upgrade->manage() #4 /is/htdocs/wp1130565_ZR7EP54ZSC/skfipb4/applications/core/modules/admin/system/upgrade.php(54): IPS\Dispatcher\_Controller->execute() #5 /is/htdocs/wp1130565_ZR7EP54ZSC/skfipb4/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\system\_upgrade->execute() #6 /is/htdocs/wp1130565_ZR7EP54ZSC/skfipb4/admin/index.php(13): IPS\_Dispatcher->run() #7 {main} Edited February 7, 2022 by NZyan
Solution Stuart Silvester Posted February 7, 2022 Solution Posted February 7, 2022 That error suggests that your server wasn't able (for an unknown reason) to connect to our systems to get the new files. This may have been a temporary issue based on some of the other logs on your system. The real issue is a permissions issue: Mon, 07 Feb 2022 16:42:49 +0100 Exception::0 fopen(../../error.php): failed to open stream: Permission denied #0 /is/htdocs/<path>/admin/upgrade/extract.php(241): Extractor->_extractFile(1) #1 /is/htdocs/<path>/skfipb4/admin/upgrade/extract.php(643): Extractor->extract(0) #2 {main} Your System Log also shows other permission-based errors over the last few days when trying to store CSS. NZyan and Jim M 1 1
Recommended Posts