T
Twenty2mo ago
abed3k

Getting `NOAUTH Authentication required` error on self hosted site after sign in/workspace creation

After signing up or logging in, I receive a popup error: Error during useFindManyObjectMetadataItems. When I check the network logs, I see the following error in my GraphQL calls: code: INTERNAL_SERVER_ERROR response: NOAUTH Authentication required. I attempted to set the AUTH_PASSWORD_ENABLED environment variable to true, but I still get the same error. Did I misconfigure something, or is there another underlying problem?
18 Replies
abed3k
abed3kOP2mo ago
Also when I try refreshing the page I get a blank screen because the GetClientConfig query is failing with the same NOAUTH error
Raph
Raph2mo ago
what version?
abed3k
abed3kOP2mo ago
i am running the twentycrm/twenty:latest docker image. Also I am using the railway.app twentycrm template deployment if that helps in any way
Raph
Raph2mo ago
Fresh install?
abed3k
abed3kOP2mo ago
Yeah I even tried deleting my environment and deploying everything all over again Hi, I was wondering if anyone knows of the issue and can help as I am still having trouble with this
charles
charles2mo ago
Hi @abed3k, happy to help here, could you share the queries in your network tab (your screenshot does not show any, I think you opened it too late). It's likely that you have either a server configuration issue or a networking issue
abed3k
abed3kOP2mo ago
hey @charles . So the ones that failed for me were just the ones in the video since I couldn't get past the workspace form on the front page. So that would be query CombinedFindManyRecords and query ObjectMetadataItems and mutation Track and mutation ActivateWorkspace. All of them gave the same NOAUTH Authentication required error. I was able to sign up, but that was about it.
charles
charles2mo ago
sorry, I missed that your attachment was a video... I have never seen this error about NOAUTH, could you share your server logs, you should see more errors from there
abed3k
abed3kOP2mo ago
These are my server logs when I try to sign up
No description
charles
charles2mo ago
This does not look like the NOAUTH error, are you sure you don't have nay other?
abed3k
abed3kOP2mo ago
These are the only error logs I get 😅😅 I just used the twenty crm template on railway.app
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
This error is when unauthorized user tries to access the workspace Could you modify your .env and add debug logs? If they're somewhere in the code, they'll help locate the problem
hoang2601
hoang26012mo ago
I have same problem. In the clip, I see graphql call api at port 3000, FE also at localhost:3000. Is it right ?
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Yes
charles
charles2mo ago
also using railway?
hoang2601
hoang26012mo ago
I don't understand. What does it mean ?
charles
charles2mo ago
@abed3k was facing the issue while trying to host on railway (cloud provider) if you don't we will need more information about your issue
tainazao
tainazao3w ago
Got same error here. @abed3k Have you managed how to solve it? I'm also using the railway template https://railway.app/template/nAL3hA
Want results from more Discord servers?
Add your server