bekway Posted May 31, 2021 Share Posted May 31, 2021 Our BO returns a 500 error in newly migrated website. We switched on debug in Defines.inc and get the following alert: Quote RuntimeException Unable to write in the logs directory (/var/www/vhosts/perrytaylor.fr/perrytaylor.eu/var/logs) in Kernel.php line 769 at Kernel->buildContainer()in Kernel.php line 643 at Kernel->initializeContainer()in Kernel.php line 136 at Kernel->boot()in Kernel.php line 196 at Kernel->handle(object(Request), 1, false)in index.php line 82 Front end works perfectly.. We tried changing php (versions 7.2.28, 7.2.34, 7.1.33) same result. We emptied var/cache/dev and /prod same result We increased PHP memory, same result We changed permissions of /var/logs/, same result We tried disabling modules manually, same result Any other suggestions?? PS 1.7.7 CentOS7 Link to comment Share on other sites More sharing options...
musicmaster Posted June 3, 2021 Share Posted June 3, 2021 Ownership? Rights issues are often related to the fact that root or a user is owner of a directory instead of www-data. Use "chown" to change it. Link to comment Share on other sites More sharing options...
bekway Posted June 4, 2021 Author Share Posted June 4, 2021 Hi Musicmaster, yes I already thought of this. Prestashop writes to /var/cache/ which has exactly the same owner, group and permissions as /var/logs so it must be something else. Link to comment Share on other sites More sharing options...
bekway Posted June 5, 2021 Author Share Posted June 5, 2021 I have solved this error. I installed a fresh version of Prestashop in a sub-folder. I deleted the troublesome /var folder and replaced it with the new one from the sub-folder. Permissions and ownerships were identical on both /var folders. If anyone has an explanation I am interested, we lost several days trying to understand this one, nothing in the logs except above quote. Link to comment Share on other sites More sharing options...
musicmaster Posted June 5, 2021 Share Posted June 5, 2021 A blind guess: a hidden file with the name "logs". Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now