404 page not found

After following the instructions listed on erpnext docker setup page
I am getting internal server error on from url. I do get 404 page not found after adding :80 to the url. I used the .env from production-env folder and changed the sites variables to my url.

What are the running containers?
Are there any failed containers?
What are the logs of failed containers?

Use full version tags instead of edge orversion-13 tags

runnig containers

  • frappe_docker_frappe-socketio_1
  • frappe_docker_erpnext-worker-long_1
  • frappe_docker_erpnext-schedule_1
  • frappe_docker_erpnext-worker-default_1
  • frappe_docker_erpnext-worker-short_1
  • frappe_docker_redis-queue_1
  • frappe_docker_erpnext-python_1
  • frappe_docker_traefik_1
  • frappe_docker_redis-socketio_1
  • frappe_docker_mariadb_1
  • frappe_docker_redis-cache_1
  • frappe_docker_erpnext-nginx_1

mariadb_1 for failed container, i think
getting
2021-07-01 13:28:23 149 [Warning] Access denied for user ‘2222222’@‘ip’ (using password: YES)
no errors from nginx and traefik containers

what was the output of site-creator container.

which container will that be?

frappe_docker_site-creator_1, it stops after creating site or failing.

Attempt 1 to connect to mariadb:3306
Attempt 1 to connect to redis-queue:6379
Attempt 1 to connect to redis-cache:6379
Attempt 1 to connect to redis-socketio:6379
Connections OK

that’s it?

nothing like following?

frappe  [========================]
erpnext [========================]

I don’t think first site is create. Enter the erpnext-python container an check if the site is available.

Attempt 1 to connect to mariadb:3306
Attempt 2 to connect to mariadb:3306
Attempt 3 to connect to mariadb:3306
Attempt 1 to connect to redis-queue:6379
Attempt 1 to connect to redis-cache:6379
Attempt 1 to connect to redis-socketio:6379
Connections OK
[2021-07-01 13:20:26 +0000] [16] [INFO] Starting gunicorn 20.1.0
[2021-07-01 13:20:26 +0000] [16] [INFO] Listening at: http://0.0.0.0:8000 (16)
[2021-07-01 13:20:26 +0000] [16] [INFO] Using worker: gthread
[2021-07-01 13:20:26 +0000] [19] [INFO] Booting worker with pid: 19
[2021-07-01 13:20:26 +0000] [20] [INFO] Booting worker with pid: 20

this is logs of the container.

you need to enter it and check site running ls command

docker exec -it frappe_docker_erpnext-python_1 bash
....$ ls

sorry, yes it is there

Then no idea to debug this issue.

what about the mariab_db log error

2021-07-01 13:28:23 149 [Warning] Access denied for user ‘2222222’@‘ip’ (using password: YES)
could this be related ?

I’m not able to face the issue as well as debug it pymysql.err.OperationalError: (1045, "Access denied for user 'root'@'172.19.0.6' (using password: YES)") · Issue #448 · frappe/frappe_docker · GitHub

mariadb starts 2 times I think. first run it starts without any cnf configures and then it restarts (without restarting container) with all the config loaded. all this happens in docker entrypoint of mariadb container.

When there is no config loaded and any container tries to access mariadb it might throw error. That’s why there are retries to check connections, config files, etc.

what about traefik logs
is there a share it with you privately.

Check ERPNext telegram groups, you’ll find me there.

ok
will do

VM with At least 2GB SWAP+ram is needed.

found out on DM, fixed by adding 1GB swap.