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

Could not authenticate when APP_DEBUG="false" (all apps) #567

Open
mobilex1122 opened this issue Jul 21, 2024 · 7 comments
Open

Could not authenticate when APP_DEBUG="false" (all apps) #567

mobilex1122 opened this issue Jul 21, 2024 · 7 comments
Labels

Comments

@mobilex1122
Copy link

mobilex1122 commented Jul 21, 2024

When I set .env variable APP_DEBUG to false it stops accepting any logins.

Everything works just fine with APP_DEBUG set to true.

My .env

APP_TENANT_ID=# ID
APP_PROJECT_KEY=# key
APP_URL="http://..."
APP_APPS_URL="http://..."
APP_ENV=prod
APP_DEBUG=false
APP_CONNECTION=# DB connection
APP_MAILER=# Mailer config
APP_MESSENGER="doctrine://default"
APP_MAIL_SENDER=# Sender
APP_MARKETPLACE="on"
@chriskapp
Copy link
Member

Could you show me the response of the XHR request of the login or also the error logs to see whether there is a specific error. In general in debug mode many caches are disabled.

@mobilex1122
Copy link
Author

I relised that the whole api crashes when debug is off so the webapp admin can't even contact the api. (I get white site indicating that PHP crashed mid generation)

@chriskapp
Copy link
Member

Ok, do you have any errors in the default PHP error log? You can also take a look at the log/app.log file. Maybe there are simply some file permission errors.

@mobilex1122
Copy link
Author

Here is the log
app.log

@chriskapp
Copy link
Member

So in your .env file thre is no APP_CONNECTION configured, you need to set there the fitting DB connection s. https://github.com/apioo/fusio/blob/master/.env#L7 the error also indicated this SQLSTATE[HY000] [2002] No such file or directory

@mobilex1122
Copy link
Author

I do have that set. I can normaly connect to the db in debug mode.

@mobilex1122
Copy link
Author

image
Here is the APP_CONNECTION variable (censured for security)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants