Even on a clean 8.5.1 installation thatās working fine, weāre getting the same results after upgrading to 8.8.0.
500 Error at the browser and nothing getting logged that can point us in the right direction. Itās almost as if suitecrm isnāt even starting because suitecrm.log is empty (0).
We havenāt configured LetsEncrypt yet and hosting on AWS EC2 with a subdomain (vs just using IP address)
I know a 500 is the most generic of error messages but any ideas are welcome.
Additionally, itās almost like the upgrade isnāt completing. e.g., the upgradeWizard.log file is present in the legacy folder before the upgrade, but not after
Yes, and Iām trying an upgrade from 8.5.1 to 8.7.1 this time, with the same results. āNo, noā¦itās not youā¦itās Me.ā Error below. But it doesnāt make sense because I reset permissions 3 times throughout the upgrade steps. www-data:www-data plus 2775 on all directories & 0644 on all files. The suitecrm/cache/prod/ has these perms as well.
Am I missing a permission on the initial 8.5.x install thatās prohibiting the upgrade to run properly? Thanks for any advice.
PHP Fatal error: Uncaught RuntimeException: Unable to write in the ācacheā directory (/var/www/html/suitecrm/cache/prod). in /var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php:601\nStack trace:\n#0 /var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php(505): Symfony\Component\HttpKernel\Kernel->buildContainer()\n#1 /var/www/html/suitecrm/core/backend/Kernel.php(112): Symfony\Component\HttpKernel\Kernel->initializeContainer()\n#2 /var/www/html/suitecrm/vendor/autoload_runtime.php(37): App\Kernel->init()\n#3 /var/www/html/suitecrm/public/index.php(5): require_once(āā¦ā)\n#4 {main}\n thrown in /var/www/html/suitecrm/vendor/symfony/http-kernel/Kernel.php on line 601, referer: http://suitecrm.xxxxxxxxxxxxxxxx.com/
Thanks for the ideas: Iāve done all that youāve suggested, including renaming the zip to something simpler. But one of your suggestions caught my eye.
What did you mean by " There are 4 commands. Maybe your user is not www-data" ?
Should I be running the install as www-data instead of as root?
Cheers
The user and group name (in the above example www-data ) needs to be replaced by the actual system user and group that your webserver runs under. This varies depending on your operating system. Common web server users are as follows:
Yep, did those steps 3 times throughout the install.
Once after the download of the zip to the tmp/packages/upgrade/ directory,
After the first upgrade command
and
After the upgrade-finalize command.
Each time with no errors other than the typical deprecated warnings that occur at the start of each step.
Got the error reporting just like yours. For both php.ini files (in apache and cli)
apache is pointing at /var/www/html/suitecrm/public
<VirtualHost *:80>
DocumentRoot /var/www/html/suitecrm/public
<Directory /var/www/html/suitecrm/public>
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
I did notice that I forgot to fix the RewriteBase in .htaccess this time before the upgrade. The one where you trim it back to just ā/legacy/ā. Thatās still needed right?
Iām going to rollback and fix that RewriteBase then attempt another upgrade.