I have had a lot of issues with v5 self hosted failing at some point to load with a page refresh and then simply displaying a grey page.
I first tried I had a conflict with Cloudflare, so I completely disabled it and I returned my NS to my domain registrar, just to make things easier to troubleshoot by making sure there would be no bad caching or unwanted proxying. My main www domain is also linked to QUIC.Cloud (another reverse proxy) so I made sure to pause this so that any subfolders would be routed directly from my server. It didn’t seem to change anything related to my issue.
I then switched from a subdomain install to subfolders (as my root/www domain is working fine) in trying to make things more simple and error less (one less SSL certificate, etc.). This didn’t work either - and I now get maybe one “workable” install every two or three tries (I’m doing it through Softaculous), that is an install that allows me to load the login page.
Right now I have 4 installs on different folders, (
/erp, /erp2, /erp3, erp4), and only two of them load at all, and I can’t tell for how long, since so far all my installs that worked also started to exhibit the grey page problem at some point. I thought of doing a few fresh installs at the same time to help monitoring everything as much as possible and comparing one to the other… but now most fresh installs done with Softaculous will get a grey page.
For some reason in my previous experiments the grey pages, whenever they occurred, eventually “fixed themselves” after sitting idle for a few hours and then being reloaded with a cache flush, but it doesn’t seem to be the case anymore.
Yesterday, as I was working on a (temporarily) perfectly workable installation, I started getting popups asking me if Invoice Ninja v5 was installed, so after saving my changes I refreshed the page, thinking it was a cache issue, and then I got a completely white (!) page that time… After that I could not get the app to work anymore. I really have no idea of what is happening overall; my domain has been running Wordpress with virtually no server related problems for over a year (also installed through Softaculous), so I thought that configuring Invoice Ninja would be a breeze… but so far it’s been hell
The only way I managed to bypass the grey loading screens on my PC is by deleting the data under
accounts in the database, which then force loads the app setup. Everytime I did this, I managed to properly connect the db and everything else seemed ok, but after saving the settings I always got an
ERR_TOO_MANY_REDIRECTS error with with
index.php stuck in a loop.
My server is running Litespeed Entreprise and PHP 7.4, if that makes a difference. I could not find relevant errors (to my eye) in either
error_log files or
error_log in every install folder seem to have this notice
PHP Notice: Constant PASSWORD_DEFAULT already defined in /home/*****/public_html/erp3/update_pass.php on line 17 but that doesn’t seem related.
Also, I don’t know why I didn’t do that earlier, but I recently started paying attention to the browser dev tools when trying to load the Invoice Ninja, and it seems that it’s hanging at
main.foss.dar.js. Here is the error text
GET https://www.domain.com/erp3/public/main.foss.dart.js?v=5.1.61 net::ERR_CONTENT_DECODING_FAILED 200.
My host is currently investing the issue on their side and they too get the grey page issue, with no idea about a fix so far (they’ve been at it for several hours). I just tried on my phone too and I have the same issue with the mobile web version of the app, but the v5 Android app seems to bypass the issue (since it is probably directly accessing the database).
All in all, I’m stuck. Sorry for the long post, I just wanted to make things as clear as possible. Any help would be much appreciated.