Cannot access Twenty
I setup a standalone local server using an old Mac mini with ubuntu.
So I installed everything using Docker method.
Here is my .env:
And my compose.yaml;
Note that I updated twenty-front part with
ports: 3001:3001
instead of 3001:3000.21 Replies
Everything starts fine :
No error in the logs.
I initiated the database and I can access using 'sgl.local:5432 '
But I cannot access the frontend ("Safari can't open the page").
Any idea how I can solve this?
I suspect I have to use something else than "localhost" in .env but I'm not sure
if you ssh into the container and do curl on localhost:3001?
From server container: Connexion refused
Same from front docker
can you shouw me the front container logs?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
yes, sorry my bad, I thought you were setting up the project to contribute (which is running on port 3001)
good that you solved the issue 🙂
Thanks for the confirmation that I need 3001:3000. I updated and relaunch but frontend crashes :
Complete logs in file
Here is my updated compose.yaml
`
version: "3.9"
services:
twenty-front:
image: twentycrm/twenty-front:${TAG}
ports:
- 3001:3000
environment:
- SIGN_IN_PREFILLED=${SIGN_IN_PREFILLED}
- REACT_APP_SERVER_BASE_URL=${LOCAL_SERVER_URL}
- REACT_APP_SERVER_AUTH_URL=${LOCAL_SERVER_URL}/auth
- REACT_APP_SERVER_FILES_URL=${LOCAL_SERVER_URL}/files
depends_on:
- twenty-back
twenty-back:
image: twentycrm/twenty-server:${TAG}
ports:
- 3000:3000
environment:
- SIGN_IN_PREFILLED=${SIGN_IN_PREFILLED}
- PG_DATABASE_URL=${PG_DATABASE_URL}
- FRONT_BASE_URL=${FRONT_BASE_URL}
- PORT=3000
- STORAGE_TYPE=local
- STORAGE_LOCAL_PATH=.local-storage
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}
- LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}
- REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}
#- SERVER_URL=${SERVER_URL}
depends_on:
- twenty-db
twenty-db:
image: twentycrm/twenty-postgres:${TAG}
volumes:
- twenty-db-data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRESQL_USER=${POSTGRES_USER}
- POSTGRESQL_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRESQL_DB=default
volumes:
twenty-db-data:
Ok I destroyed all containers/volume and setup everything.
It's better, I can access the front, but cannot login
I've done a "yarn database:init:prod"' from server
![No description](https://cdn.answeroverflow.com/1221889775594635405/shot_2024-03-25_at_19.31.21.jpg)
check your console/network and look for the graphql request
You're right
I've got a similar error I'm working through. mine is at
backend:3000/graphql
but I don't have that set anywhere. Even renamed in docker-compose to be sure but still have the errorOk I updated "localhost" with my local server name in .env file
I relaunched everything. No error, but when I try to sign in with a new email and click in "Continue" nothing append
I was wondering if I have to reset the database, so I tried yarn nx from server docker but it doesnt find nx
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Thanks, I already succeeded to setup a docker install on my laptop. But cannot reproduce it 😄
Before a "yarn database:reset" command worked, but not anymore :