T
Twenty6d ago
zon

AUTH_GOOGLE Error When Installing Version 0.50.0

When installing this new version, it is not possible to log in with Google for the first time as it always shows the error "Authentication failed." Creating an account using a regular email also fails, showing a message that you do not have permission in this workplace.
No description
14 Replies
Prastoin
Prastoin6d ago
Hello I assume you're self-hosting I'm able to create an account and workspace on Twenty cloud Have you correctly upgraded your twenty's version and workspaces ? Please double check clearing your browser cache
zon
zonOP6d ago
Hello, I have completely installed the latest version, v0.50.0. 1. When logging in via Google, I encounter the error "Authentication Failed". I have tried using different browsers and incognito mode, but I still cannot log in for the first time. 2. Subsequently, I disabled Google login and attempted to register/sign in using email. However, this was also unsuccessful. When creating an account via email, I receive an error message as shown in the attached image.
zon
zonOP6d ago
No description
Prastoin
Prastoin6d ago
I have completely installed the latest version, v0.50.0.
What step have you followed ? Is it a fresh install or an upgrade from an other version ?
zon
zonOP6d ago
@prastoin This is a fresh installation. I did not upgrade from any other version. image: 'twentycrm/twenty:${TAG:-latest}'
Prastoin
Prastoin6d ago
Have you followed the docs on how to setup google authentication workflow and so on ?
zon
zonOP6d ago
- I have tried clearing the domain cache.
- Used incognito mode but still couldn't log in. (Note: This is the first login attempt after a completely fresh installation.) AUTH_GOOGLE_APIS_CALLBACK_URL=https://domain/auth/google-apis/get-access-token AUTH_GOOGLE_CALLBACK_URL=https://domain/auth/google/redirect AUTH_GOOGLE_CLIENT_ID= AUTH_GOOGLE_CLIENT_SECRET= AUTH_GOOGLE_ENABLED=true @prastoin In the previous version, this method still worked.
Prastoin
Prastoin6d ago
Interesting, about to attempt a reproduction in local Are you using the one-click installation ?
zon
zonOP6d ago
@prastoin I installed Twenty on Coolify. When upgrading to the latest version, are there any issues related to Environment Variables that we should be aware of? Or does the Docker Compose file need any updates?
Prastoin
Prastoin6d ago
are there any issues related to Environment Variables that we should be aware of
Not aware of such new env variables, about to double check on our side
Or does the Docker Compose file need any updates?
What do you mean ? Dockerfile indeed has been updated across latest versions
zon
zonOP6d ago
@prastoin Can you check "auth/google-apis/get-access-token"" it's back error : Unknown error
Prastoin
Prastoin6d ago
Is that what's shown in your twenty'servers logs ?
zon
zonOP6d ago
You can try that link in the application domain.twenty.com/auth/google-apis/get-access-token, and it works without errors. However, with the open-source installation, it returns an "Unknown error" in the browser, which seems to be an issue with the Google authentication link. @prastoin I have deleted the volumes, and this case has been resolved. Thank you very much.
Prastoin
Prastoin6d ago
Well done Enjoy coding !

Did you find this page helpful?