Closed thuy4tbn99 closed 1 month ago
check the logs of create-site
container. It returned with a non-zero exit code, means it failed.
db: image: mariadb:10.6
This is not overridden.
Hope someone helps you, I don't use docker compose.
db:
image: mariadb:10.6
you are still using mariadb
override with this file for postgresql
overrides/compose.postgres.yaml
This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.
Description of the issue
I deploy frappe-docker on ubuntu 22.04. I use the overrides/compose.postgres.yaml for postgres database setup. However when I access fontend via http://localhost:8080/, it returns 504 Gateway Time-out and docker-compose logs show an error related to "pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')". I track the error and see frappe using self.create_connection() from mariadb/database.py instead of postgres.database.py
Context information (for bug reports)
Steps to reproduce the issue
services: backend: image: frappe/erpnext:v15.29.3 deploy: restart_policy: condition: on-failure volumes:
logs:/home/frappe/frappe-bench/logs
configurator: image: frappe/erpnext:v15.29.3 deploy: restart_policy: condition: none entrypoint:
add redis_socketio for backward compatibility
command:
environment: DB_HOST: db DB_PORT: "5432" REDIS_CACHE: redis-cache:6379 REDIS_QUEUE: redis-queue:6379 SOCKETIO_PORT: "9000" volumes:
logs:/home/frappe/frappe-bench/logs
create-site: image: frappe/erpnext:v15.29.3 deploy: restart_policy: condition: none volumes:
db: image: mariadb:10.6 healthcheck: test: mysqladmin ping -h localhost --password=admin interval: 1s retries: 15 deploy: restart_policy: condition: on-failure command:
db-data:/var/lib/mysql
frontend: image: frappe/erpnext:v15.29.3 depends_on:
"8080:8080"
queue-long: image: frappe/erpnext:v15.29.3 deploy: restart_policy: condition: on-failure command:
logs:/home/frappe/frappe-bench/logs
queue-short: image: frappe/erpnext:v15.29.3 deploy: restart_policy: condition: on-failure command:
logs:/home/frappe/frappe-bench/logs
redis-queue: image: redis:6.2-alpine deploy: restart_policy: condition: on-failure volumes:
redis-queue-data:/data
redis-cache: image: redis:6.2-alpine deploy: restart_policy: condition: on-failure volumes:
redis-cache-data:/data
scheduler: image: frappe/erpnext:v15.29.3 deploy: restart_policy: condition: on-failure command:
logs:/home/frappe/frappe-bench/logs
websocket: image: frappe/erpnext:v15.29.3 deploy: restart_policy: condition: on-failure command:
volumes: db-data: redis-queue-data: redis-cache-data: sites: logs: """
3 I check docker container via command docker ps -a and I see the frappe_docker_create_site_1 and frappe_docker_configurator_1 exited.
Observed result
Expected result
Stacktrace / full error message if available