- edited description
Admin panel goes 404 after some time
After installing and starting official docker image everything works great, but after some time of not doing anything admin panel stops working, gives error 404. I run docker image with HTTPS=OFF
and have apache reverse proxy in front of it (if that is of any importance).
Errors i get:
[2016-07-09 14:26:09] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found fo
r "GET /admin"" at /opt/mailserver-admin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 125 {
"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /admin\" at /opt/
mailserver-admin/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:125, Symfony\\Component\\Routing\\
Exception\\ResourceNotFoundException(code: 0): at /opt/mailserver-admin/var/cache/prod/appProdUrlMatcher.php:681)"} []
2016/07/09 14:26:09 [error] 598#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: include_once(/opt/mailserver-admin/web/../var/boot
strap.php.cache): failed to open stream: No such file or directory in /opt/mailserver-admin/web/app.php on line 9
PHP message: PHP Warning: include_once(): Failed opening '/opt/mailserver-admin/web/../var/bootstrap.php.cache' for inclusion (include_path
='.:/usr/share/php') in /opt/mailserver-admin/web/app.php on line 9" while reading response header from upstream, client: 172.17.0.1, server
: localhost, request: "GET /admin HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-admin.sock:", host: "<removed>"
Touching /opt/mailserver-admin/web/../var/bootstrap.php.cache
inside container does not help. Besides it is a warning so maybe it should not cause world to collapse? I tried restarting container as well as removing it and recreating (using docer-compose rm
). If there is anything i could look up to help troubleshooting let me know.
EDIT: Forgot to mention that webmail works just fine.
Comments (6)
-
reporter -
repo owner - changed status to resolved
missing bootstrap should be fixed by now - please reopen if it happens again
-
this issue just happened again, I upgraded the container to see if the bootstrap.php.cache would be recreated
the /opt/mailserver-admin/var/bootstrap.php.cache exist but /admin is still giving a 404
-
repo owner - changed status to open
Can you please paste reverse proxy settings? Is it same error?
-
repo owner I found it! "/admin" is not working, while "/admin/" works. I will fix it asap by redirect...
-
repo owner - changed status to resolved
fix
#92: adding redirect from "/admin" to "/admin/"→ <<cset 70da9e0e2aba>>
- Log in to comment