-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fresh Install: Unable to get user information #79
Comments
Server logs are correct. The server waits for the database to become available. As soon as Postgre is available, the database migration runs. Can you use your Browser's developer console (F12) to check the real issue (detail section of the GraphQL error response) ? |
It seems its trying to connect to localhost:8080 when it should be my.url:92 (not the actual url but how I'm representing it here). Is there a setting I forgot to change?
|
Yes, you're missing this configuration: https://github.com/ncarlier/readflow/blob/master/internal/config/defaults.toml#L33 |
Still getting the error after adding the config file. Here's my new docker compose:
I copied the default config settings into my config.toml, and I'm still getting the following errors in the browser:
I figure I must be missing or forgetting to do something, but this must be the first step in the right direction because I am getting fewer errors. Thanks again for your help. |
Sorry, I didn't clearly state this. You don't need to copy the default configuration file, just set the corresponding configuration variable: In your case, set Regarding your Docker Compose: version: "3"
services:
########################################
# PostgreSQL
########################################
db:
image: postgres:14
container_name: db_postgres
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB:-readflow}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secert}
volumes:
- db-data:/var/lib/postgresql/data
########################################
# readflow
########################################
readflow:
image: "ncarlier/readflow:edge"
restart: always
depends_on:
- db
ports:
- "${PORT:-92}:8080"
environment:
- READFLOW_DATABASE_URI=postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-secert}@db_postgres:5432/${POSTGRES_DB:-readflow}?sslmode=disable
- READFLOW_AUTHN_METHOD=basic
- READFLOW_AUTHN_BASIC_HTPASSWD_FILE=file:///var/local/demo.htpasswd # "demo" as username and password
- READFLOW_HTTP_PUBLIC_URL=http://my.url:92
volumes:
- path/to/var/demo.htpasswd:/var/local/demo.htpasswd
networks:
default:
volumes:
db-data: |
I'm trying to install readflow on my server (Docker) but I just can't seem to get this working. I get a page that says it can't get user information. It seems to be an issue with the database, but I can't figure out what's going on. Below is my current docker compose:
readflow container log
The text was updated successfully, but these errors were encountered: