Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer working after update to 1.5.0 #14

Closed
tiiiecherle opened this issue Nov 2, 2020 · 4 comments
Closed

No longer working after update to 1.5.0 #14

tiiiecherle opened this issue Nov 2, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@tiiiecherle
Copy link

Hey,

thanks for the next update. Unfortunately after updating to 1.5.0 neither the webinterface nor the client sync works.

I did not change anything on the nginx side or in the .env file.

I get this in the browser trying to open the webinterface:

Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Please let me know if you need anything to debug or find a possible wrong configuration on my side.

Downgrading to 1.4.9 solves the issue.

Thanks

@tchapi
Copy link
Owner

tchapi commented Nov 2, 2020

What do you have in the log ?

@tchapi tchapi added the bug Something isn't working label Nov 2, 2020
@tiiiecherle
Copy link
Author

The content of ...davis/var/log/ is

[2020-11-02T16:51:58.496142+01:00] request.INFO: Matched route "home". {"route":"home","route_parameters":{"_route":"home","_controller":"App\\Controller\\DAVController::home"},"request_uri":"https://MYURL/","method":"GET"} []
[2020-11-02T16:51:58.520284+01:00] security.DEBUG: Checking for guard authentication credentials. {"firewall_key":"main","authenticators":1} []
[2020-11-02T16:51:58.520291+01:00] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"main","authenticator":"App\\Security\\LoginFormAuthenticator"} []
[2020-11-02T16:51:58.520295+01:00] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"main","authenticator":"App\\Security\\LoginFormAuthenticator"} []
[2020-11-02T16:51:58.596862+01:00] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The controller for URI "/" is not callable: Environment variable not found: "IMAP_AUTH_URL"." at /data/webserver/dav/davis/vendor/symfony/http-kernel/Controller/ControllerResolver.php line 88 {"exception":"[object] (InvalidArgumentException(code: 0): The controller for URI \"/\" is not callable: Environment variable not found: \"IMAP_AUTH_URL\". at /data/webserver/dav/davis/vendor/symfony/http-kernel/Controller/ControllerResolver.php:88)\n[previous exception] [object] (Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException(code: 0): Environment variable not found: \"IMAP_AUTH_URL\". at /data/webserver/dav/davis/vendor/symfony/dependency-injection/EnvVarProcessor.php:171)"} []

It seems like adding 'IMAP_AUTH_URL' => '' to the .env file solves the issue.

For anyone upgrading I think the readme should be updated or the app should not fail if IMAP_AUTH_URL is missing in the env file if it is not used. I use

AUTH_REALM=SabreDAV
AUTH_METHOD=Digest

Unfortunately we have an internet connection issue tonight and I will get back to this tomorrow and let you know if everything works again after adding the parameter empty.

Thanks

@tchapi
Copy link
Owner

tchapi commented Nov 2, 2020

Yes that was the culprit.

If your filename is .env, yes, you must declare the IMAP_AUTH_URL value else it will fail (because it won't find it). But you should rather use a .env.local file that overrides just the values you need instead, as stated in the README.

@tchapi tchapi closed this as completed Nov 2, 2020
@tiiiecherle
Copy link
Author

Thanks.

Yes, I'm using an .env.local.php file and everything seems to work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants