I’m trying to use docker-compose following this readme.
I’m using the standard configuration for production, just copied env-production file to .env.
When trying to connect to the site, the redirection to HTTPS is working fine, but I get a 404 error. I’m trying to access the website by simply typing localhost in firefox, or the ip address of my server if distant. Both returns 404. Maybe I’m not asking for the right URL?
There is some warning in MariaDb logs:
2020-09-07 15:13:17 0 [Warning] 'user' entry 'root@7c5f92218c23' ignored in --skip-name-resolve mode.
2020-09-07 15:13:17 0 [Warning] 'user' entry '@7c5f92218c23' ignored in --skip-name-resolve mode.
2020-09-07 15:13:17 0 [Warning] 'proxies_priv' entry '@% root@7c5f92218c23' ignored in --skip-name-resolve mode.
2020-09-07 15:13:17 0 [Note] Reading of all Master_info entries succeeded
2020-09-07 15:13:17 0 [Note] Added new Master_info '' to hash table
2020-09-07 15:13:17 0 [Note] mysqld: ready for connections.
And Mari is refusing some connections attempts:
2020-09-07 15:13:22 0 [Note] mysqld: ready for connections.
Version: '10.3.24-MariaDB-1:10.3.24+maria~focal' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
2020-09-07 15:13:27 14 [Warning] Access denied for user 'frappe'@'172.19.0.10' (using password: NO)
2020-09-07 15:13:27 15 [Warning] 'proxies_priv' entry '@% root@7c5f92218c23' ignored in --skip-name-resolve mode.
2020-09-07 15:13:28 16 [Warning] Aborted connection 16 to db: '_22835929e7d52caf' user: '_22835929e7d52caf' host: '172.19.0.10' (Got an error reading communication packets)
2020-09-07 15:14:27 19 [Warning] Access denied for user '_22835929e7d52caf'@'172.19.0.12' (using password: YES)
2020-09-07 15:15:27 20 [Warning] Access denied for user '_22835929e7d52caf'@'172.19.0.12' (using password: YES)
2020-09-07 15:16:27 21 [Warning] Access denied for user '_22835929e7d52caf'@'172.19.0.12' (using password: YES)
2020-09-07 15:17:27 22 [Warning] Access denied for user '_22835929e7d52caf'@'172.19.0.12' (using password: YES)
2020-09-07 15:18:27 23 [Warning] Access denied for user '_22835929e7d52caf'@'172.19.0.12' (using password: YES)
2020-09-07 15:18:48 24 [Warning] 'proxies_priv' entry '@% root@7c5f92218c23' ignored in --skip-name-resolve mode.
2020-09-07 15:18:48 25 [Warning] 'proxies_priv' entry '@% root@7c5f92218c23' ignored in --skip-name-resolve mode.
2020-09-07 15:18:48 26 [Warning] 'proxies_priv' entry '@% root@7c5f92218c23' ignored in --skip-name-resolve mode.
2020-09-07 15:18:48 27 [Warning] 'proxies_priv' entry '@% root@7c5f92218c23' ignored in --skip-name-resolve mode.
2020-09-07 15:18:48 18 [Warning] Aborted connection 18 to db: '_22835929e7d52caf' user: '_22835929e7d52caf' host: '172.19.0.10' (Got an error reading communication packets)
The site_creator seems to be stuck (as my guess is that this container should stop by itself once the site is created. Maybe not)
Installing erpnext...
Updating DocTypes for erpnext : [========================================] 100%
clearing...
clearing...
clearing...
clearing...
clearing...
clearing...
clearing...
clearing...
Updating customizations for Address
Updating customizations for Contact
*** Scheduler is disabled ***
Thanks Revant.
I just started back from the start, using env-local instead of production with no avail. I am a bit confuse about what exact url I should use.
I get 404 when trying to access localhost.
I get a 403 when trying to access mysite.localhost.
I cleaned the docker volumes before making the try with the env-local to clean any trace of env-production. I didn’t changed the default, which for env-localhost is ‘mysite.localhost’.
Do I need to set a DNS or add a line in /etc/hosts on my host system?
I assigned a static IP to VM and added the 192.168.56.108 mysite.example.com and I can access erpnext inside VM on this url, and when I ping mysite.example.com inside VM, it shows the IP address correctly.
However when I try to access it outside the VM from host machine, I get a 404 not found although the IP pings correctly from the host.
Please advise if I’m doing anything wrong? I used env.production!