cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
13.79k stars 1.55k forks source link

3.x branch unusable because there is no route? #4388

Closed fbouynot closed 1 month ago

fbouynot commented 1 month ago

Hello,

I tried to install the 3.x branch of cachet, although I only get the 404 Laravel error page.

Here are the steps I tried to have a basic install on Fedora39. I had to comment fastcgi_intercept_errors on; in /etc/nginx/default.d/php.conf in order to see the Laravel 404 instead of the nginx 404. There is no log in storage/logs after I get a 404, although I could see some logs in other cases (eg trying app:install) so the file can be written. If I set APP_ENV=local and APP_DEBUG=true I get the same page, no dump, no more info, it looks like it's a real 404.

I can see that there is no route in neither cachet or core, so that explains the 404. Since there is a v3 demo, I think there is a way for v3 to work.

Questions:

jbrooksuk commented 1 month ago

The core package registers a route, but you'll need to set CACHET_PATH=/ to get Cachet running on the root domain.

jbrooksuk commented 1 month ago

By the way, you can always run php artisan route:list to see all registered routes within a Laravel application.

fbouynot commented 1 month ago

Thanks a lot for your guidance, I could see all routes with php artisan route:list and try to move the root with CACHET_PATH=/. This solves my issue.

I couldn't use the setup helper because of a csrf issue I guess (419 page expired whatever I try), although by using Tinker I could make an admin account and have a cachet status page working. I updated my gist in case it could help someone.

jbrooksuk commented 1 month ago

Ah, the setup wizard is not complete yet.