T
Twenty3mo ago
Zowlak

Unable to Reach Back-end

Hello, I'm encountering the issue "Unable to Reach Back-end" while accessing my app. Installed using docker compose, using reverse proxy with nginx, I configured the SERVER_URL in the .env for that Running on Ubuntu 24.04 I have absolutely no errors in logs in twenty-server-1 / twenty-worker-1 / twenty-db-1 and twenty-redis-1, I can provide screenshots if needed. When I try to access to URL/graphql, I got {"errors":[{"message":"Must provide query string."}]} And on the front-end, I see briefly the app with the login pop-up before seeing the "Unable to Reach Back-end" on /welcome after 1 second Thank's in advance
No description
36 Replies
Prastoin
Prastoin3mo ago
Hello what twenty version are you running please ? Do you have any logs such as cors errors in your browser console ?
Zowlak
ZowlakOP3mo ago
Let me check
Zowlak
ZowlakOP3mo ago
No description
Zowlak
ZowlakOP3mo ago
I don't know how to find the version I'm using, but I downloaded it yesterday following the doc with bash <(curl -sL https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-docker/scripts/install.sh) so I'm assume I've the latest one
Prastoin
Prastoin3mo ago
echo $APP_VERSION in your twenty-server or have a check to your .env TAG env var
Zowlak
ZowlakOP3mo ago
1.0.2
Prastoin
Prastoin3mo ago
Are the complete error logs in the browser: URL/graphql, I got {"errors":[{"message":"Must provide query string."}]}
Zowlak
ZowlakOP3mo ago
I have this when I try to access myurl/graphql
No description
Prastoin
Prastoin3mo ago
Please inspect a graphql req from the network tab looking for errors field in the response body
Zowlak
ZowlakOP3mo ago
I think the thing is the request is going to http://localhost:3000/graphql So he can't find out
Zowlak
ZowlakOP3mo ago
No description
Prastoin
Prastoin3mo ago
Yes that's expected please what's the response body of one of them
Zowlak
ZowlakOP3mo ago
:/
No description
Prastoin
Prastoin3mo ago
Even when refreshing the tab with opened console network tab ?
Zowlak
ZowlakOP3mo ago
Yup For the 4 different ones
Prastoin
Prastoin3mo ago
Might be coming from using reverse proxy with nginx Do you see any logs on the twenty-server container ? -> that would result from a successfully hitting req
Zowlak
ZowlakOP3mo ago
Nop, nothing Last logs from yesterday after the start
Zowlak
ZowlakOP3mo ago
No description
Prastoin
Prastoin3mo ago
{"errors":[{"message":"Must provide query string."}]} I don't think this error is generated by twenty-server
Zowlak
ZowlakOP3mo ago
Nothing in twenty-worker neither
Prastoin
Prastoin3mo ago
Please try to reproduce with a basic vanilla one click install instance in order to start debugging your other one
Zowlak
ZowlakOP3mo ago
Sure, can I change the 3000 port to run both at the same time or should I stop the actual one while setting up the new ? nvm I can choose in the install
Zowlak
ZowlakOP3mo ago
Can't start the installation
No description
Prastoin
Prastoin3mo ago
Please inspect server logs
Zowlak
ZowlakOP3mo ago
No description
Zowlak
ZowlakOP3mo ago
And the installation killed my other twenty-server and twenty-db containers to create new ones I think at this point I'm just gonna remove both installations and create a new fresh one And see how it goes from there
Prastoin
Prastoin3mo ago
Yeah you need the remove previous volumes
Zowlak
ZowlakOP3mo ago
Actually I have removed and deleted all previous containers and volumes, start back from a new installation and I have the same error with the database Since it's a fresh installation, can't figure out why it's not working I think the old database is not completely deleted, but since I used docker prune and delete volumes, idk why
Prastoin
Prastoin3mo ago
you need to docker compose down -v
Zowlak
ZowlakOP3mo ago
Yeah I just find the hidden volumes and deleted it Okay so, new fresh install, no reverse proxy, I acceed from my vanilla IP URL, and still the same issue
Zowlak
ZowlakOP3mo ago
But this time, at the end of the installation, I got this :
No description
Zowlak
ZowlakOP3mo ago
But the server is running, and I checked the logs and see no errors Does Twenty support installation via Coolify or not? Up
Prastoin
Prastoin3mo ago
You can find several self hoster that are deploying twenty on Coolify yes
OMX45
OMX453mo ago
What was the final thing that helped with the localhost issue?
fumiyukibeppu
fumiyukibeppu3mo ago
do you know of a new coolify docker script? Every one I test seems to crash
Prastoin
Prastoin3mo ago
I'm sorry but I don't it's community maintained

Did you find this page helpful?