question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 page not found && Access denied for user 'frappe'@'172.19.0.12'

See original GitHub issue

Description of the issue

I’ve tried a lot to setup frappe docker-compose locally, but failed.

Context information (for bug reports)

I haven’t been able to use port 80, and traefik complains about port 80 already being used, so i’ve mapped it to 9080 instead in compose. But still there are other problems that pop up

erpnext nginx dies: frappe_docker_erpnext-nginx_1 exited with code 124

db access denied

mariadb_1                 | 2021-07-23 11:21:34 146 [Warning] Access denied for user 'frappe'@'172.19.0.12' (using password: NO)
mariadb_1                 | 2021-07-23 11:26:34 183 [Warning] Access denied for user '_69928f0f6369849a'@'172.19.0.12' (using password: YES)

although the user _69928f0f6369849a is created

site-creator_1            | Created user _69928f0f6369849a
site-creator_1            | Created database _69928f0f6369849a
mariadb_1                 | 2021-07-23 11:21:33 108 [Warning] 'proxies_priv' entry '@% root@70594c8ec6f2' ignored in --skip-name-resolve mode.
site-creator_1            | Granted privileges to user _69928f0f6369849a and database _69928f0f6369849a
site-creator_1            | Starting database import...

site-creator, erpnext workers also report as connections ok

site-creator_1            | Attempt 3 to connect to mariadb:3306
site-creator_1            | Attempt 1 to connect to redis-queue:6379
site-creator_1            | Attempt 1 to connect to redis-cache:6379
site-creator_1            | Attempt 1 to connect to redis-socketio:6379
site-creator_1            | Connections OK
erpnext-worker-default_1  | Attempt 2 to connect to mariadb:3306
erpnext-worker-default_1  | Attempt 1 to connect to redis-queue:6379
erpnext-worker-default_1  | Attempt 1 to connect to redis-cache:6379
erpnext-worker-default_1  | Attempt 1 to connect to redis-socketio:6379
erpnext-worker-default_1  | Connections OK
erpnext-worker-long_1     | Attempt 2 to connect to mariadb:3306
erpnext-worker-long_1     | Attempt 1 to connect to redis-queue:6379
erpnext-worker-long_1     | Attempt 1 to connect to redis-cache:6379
erpnext-worker-long_1     | Attempt 1 to connect to redis-socketio:6379
erpnext-worker-long_1     | Connections OK

site-creator exits !

site-creator_1            | Updating customizations for Address
site-creator_1            | Updating customizations for Contact
site-creator_1            | *** Scheduler is disabled ***
mariadb_1                 | 2021-07-23 11:32:24 189 [Warning] 'proxies_priv' entry '@% root@70594c8ec6f2' ignored in --skip-name-resolve mode.
mariadb_1                 | 2021-07-23 11:32:24 190 [Warning] 'proxies_priv' entry '@% root@70594c8ec6f2' ignored in --skip-name-resolve mode.
mariadb_1                 | 2021-07-23 11:32:25 178 [Warning] Aborted connection 178 to db: '_69928f0f6369849a' user: '_69928f0f6369849a' host: '172.19.0.10' (Got an error reading communication packets)
frappe_docker_site-creator_1 exited with code 0

I have no clue what’s wrong !

I’ve tried PWD and it works fine ! (there was once a out of space error, but ran it a second time and it worked)

I’m not able to run it locally though, i’ve tried out on 3 different systems now.

Also i thought this could be because i’m accessing it through ip (192.168.0.x) instead of mysite.localhost, so i did try to open mysite.localhost:9080 ON the host system itself. but same thing, 404

I’ve tried both edge and v13, the db issue is there on both

Steps to reproduce the issue

  1. set the .env file to v13
ERPNEXT_VERSION=v13
FRAPPE_VERSION=v13
  1. set traefik port mapping in docker-compose
    ports:
      - "9080:80"
      - "9443:443"

Here’s my docker-compose https://pastebin.com/RLVMVymX and .env file: https://pastebin.com/5xDkjpKU

  1. Open <ip>:9080

Observed result

404 page not found

Expected result

Login Page?

Stacktrace / full error message if available

here’s the dump with v13: https://pastebin.com/aHuassxP here’s the dump with edge : https://pastebin.com/QJpewVPN

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
revantcommented, Jul 23, 2021

ite name must be resolvable by users machines and the ERPNext components. e.g. erp.example.com or mysite.localhost.

https://github.com/frappe/frappe_docker/blob/develop/docs/single-bench.md#setup-environment-variables search for .localhost

If you’re trying things locally, not for development, just to test before actually deploying on VM with IP and DNS then try it with *.localhost as site names.

Also it needs at least 2 GB Memory. If you’re running VM with 1GB RAM add 1GB swap.

0reactions
RashiqAzhancommented, Oct 25, 2021

The 404 not found the issue is still present for me. I have tried the following changes on the .env files but to no effect.

...
SITE_NAME=*.localhost
SITES=`*.localhost`
...

I changed the traefik container ports like so.

...
    ports:
      - "8043:80"
      - "4439:443"
...
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found