frappe / frappe_docker

Docker images for production and development setups of the Frappe framework and ERPNext
MIT License
1.52k stars 1.4k forks source link

Error when using overrides/compose.postgres.yaml for postgres database setup #1434

Closed thuy4tbn99 closed 1 month ago

thuy4tbn99 commented 4 months ago

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

  1. docker-compose -f pwd_new.yml -f overrides/compose.postgres.yaml up Here is the changed file pwd_new.yml I made: """ version: "3"

services: backend: image: frappe/erpnext:v15.29.3 deploy: restart_policy: condition: on-failure volumes:

volumes: db-data: redis-queue-data: redis-cache-data: sites: logs: """

  1. Then I go to http://localhost:8080/ in the browser. I got an error image

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. image

  1. Error from docker-compose log image

Observed result

Expected result

Stacktrace / full error message if available

(paste here)
letajmal commented 4 months ago

check the logs of create-site container. It returned with a non-zero exit code, means it failed.

revant commented 3 months ago

db: image: mariadb:10.6

This is not overridden.

Hope someone helps you, I don't use docker compose.

letajmal commented 3 months ago
db:
image: mariadb:10.6

you are still using mariadb override with this file for postgresql overrides/compose.postgres.yaml

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.