Open saleh6449 opened 1 year ago
Same problem,.. Hope this can be fix soon 😁😁😁
same problem on a fresh Ubuntu 22.04. nothing in the log file! frappe-configurator-1 container exits.
same problem on a fresh AlmaLinux-9-latest-x86_64-minimal. frappe-configurator-1 container exits.
Why do some containers exit? configurator service from pwd.yml or compose.yaml and create-site service from pwd.yml will exit with status code 0 after completion. They are only executed once and closed. Reference in documentation.
os version info AlmaLinux release 9.1 (Lime Lynx) NAME="AlmaLinux" VERSION="9.1 (Lime Lynx)" ID="almalinux" ID_LIKE="rhel centos fedora" VERSION_ID="9.1" PLATFORM_ID="platform:el9" PRETTY_NAME="AlmaLinux 9.1 (Lime Lynx)" ANSI_COLOR="0;34" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos" HOME_URL="https://almalinux.org/" DOCUMENTATION_URL="https://wiki.almalinux.org/" BUG_REPORT_URL="https://bugs.almalinux.org/" ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9" ALMALINUX_MANTISBT_PROJECT_VERSION="9.1" REDHAT_SUPPORT_PRODUCT="AlmaLinux" REDHAT_SUPPORT_PRODUCT_VERSION="9.1" AlmaLinux release 9.1 (Lime Lynx) AlmaLinux release 9.1 (Lime Lynx)
easy-install.log 2023-04-24 10:35:45,168 - INFO - Running Production Setup 2023-04-24 10:37:45,141 - INFO - Docker Compose file generated at ~/frappe-compose.yml 2023-04-24 10:39:34,023 - INFO - New site creation completed
docker containers list: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 186dcc12a2cc frappe/erpnext:v14.22.2 "nginx-entrypoint.sh" 44 minutes ago Up 43 minutes frappe-frontend-1 db338bba46ad frappe/erpnext:v14.22.2 "bench schedule" 44 minutes ago Up 43 minutes frappe-scheduler-1 624726a232fd frappe/erpnext:v14.22.2 "bench worker --queu…" 44 minutes ago Up 43 minutes frappe-queue-default-1 03055eb27aae frappe/erpnext:v14.22.2 "bench worker --queu…" 44 minutes ago Up 43 minutes frappe-queue-long-1 799df1c27e9e frappe/erpnext:v14.22.2 "/home/frappe/frappe…" 44 minutes ago Up 43 minutes frappe-backend-1 9eac0bd6cdba frappe/erpnext:v14.22.2 "node /home/frappe/f…" 44 minutes ago Up 43 minutes frappe-websocket-1 5dafa67402bd frappe/erpnext:v14.22.2 "bench worker --queu…" 44 minutes ago Up 43 minutes frappe-queue-short-1 96c009091828 frappe/erpnext:v14.22.2 "bash -c 'ls -1 apps…" 44 minutes ago Exited (0) 43 minutes ago frappe-configurator-1 22571fd99f26 redis:6.2-alpine "docker-entrypoint.s…" 44 minutes ago Up 44 minutes 6379/tcp frappe-redis-socketio-1 70837dfd982c redis:6.2-alpine "docker-entrypoint.s…" 44 minutes ago Up 44 minutes 6379/tcp frappe-redis-cache-1 9c4439c3d653 mariadb:10.6 "docker-entrypoint.s…" 44 minutes ago Up 44 minutes (healthy) 3306/tcp frappe-db-1 a00bc56cdf03 traefik:2.5 "/entrypoint.sh --pr…" 44 minutes ago Up 44 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp frappe-proxy-1 c163fece7755 redis:6.2-alpine "docker-entrypoint.s…" 44 minutes ago Up 44 minutes 6379/tcp frappe-redis-queue-1
I'm getting the same issue when I set site-name as my DNS, but when I set site-name as my IP address it works, but with no SSL certificate.
I'm getting the same issue when I set site-name as my DNS, but when I set site-name as my IP address it works, but with no SSL certificate.
Hay If you Solve this issue Then Please Share Solution
@ThePresence @FantasyLeo @nickyharpor @saleh6449 Guys If you Found Solution Then Please Share
same issue here
@DevOpsFreako Instead of DNS name I've used IP address, and it worked but no SSL.
@ThePresence
you try this setup in AWS cloud EC2 Instance and with docker and docker compose and its work in your case
when you type ip address it working
https://github.com/frappe/bench#easy-install-script
@DevOpsFreako I've already tried that it didn't worked hence I had to use IP address.
@ThePresence Can you Share Setup Your Text file that you use Like I have try But Mine Not Working
@ThePresence I managed to get it running. If you're running it on a vm do as follows,
sudo nano /etc/hosts
192.168.1.130 your.domain
python3 easy-install.py --prod --email your@email.tld --sitename YOURDOMAIN
same problem on a fresh Ubuntu 22.04. nothing in the log file! frappe-configurator-1 container exits.
Ubuntu 22.04, same here.
2023-06-08 20:17:45,677 - INFO - Running Production Setup
2023-06-08 20:17:47,980 - INFO - Downloaded frappe_docker zip file from GitHub
2023-06-08 20:17:48,000 - INFO - Unzipped and Renamed frappe_docker
2023-06-08 20:17:48,001 - INFO - Removed the downloaded zip file
2023-06-08 20:19:53,957 - INFO - Docker Compose file generated at ~/frappe-compose.yml
2023-06-08 20:22:09,648 - INFO - New site creation completed
Simple start server at different port 8081 that how i solve my error
I tried Installing ErpNext in every way possible on Ubuntu 22.04 Server, from the Manual Install to the Easy Script. No Luck.
I followed all instructions online, also used ChatGPT to help. But nop. Something is clearly not right.
I tried Installing ErpNext in every way possible on Ubuntu 22.04 Server, from the Manual Install to the Easy Script. No Luck.
I followed all instructions online, also used ChatGPT to help. But nop. Something is clearly not right.
I have successfully bypassed this error on Ubuntu 22.04 server when using frappe/bench method. But the documentation was not very helpful.
Initially, when you run the easy_install.py
script, it will make a file called frappe-compose.yml
(or <NAME>-compose.yml
if you chose a different project name), and you will get the 404 page not found error from Traefik. Open the config file and look for this line:
traefik.http.routers.frontend-http.rule: Host(`site1.localhost`)
Change it to this:
traefik.http.routers.frontend-http.rule: Host(`type.the.correct.domain.name.here`)
Also make sure that the domain name resolves to an IP address. If you're just running it on your own PC you can resolve it to 127.0.0.1 or localhost in /etc/hosts (all of this outside the docker containers). Personally, I set a DNS entry on our router since this deployment is for a company.
Then in the command line, run
docker compose -p frappe down
docker compose -p frappe -f frappe-compose.yml up -d
(make sure you change the project names as appropriate, and that you are in the same directory as easy_install.py).
After this, it should show the login screen of ERPNext.
I tried Installing ErpNext in every way possible on Ubuntu 22.04 Server, from the Manual Install to the Easy Script. No Luck. I followed all instructions online, also used ChatGPT to help. But nop. Something is clearly not right.
I have successfully bypassed this error on Ubuntu 22.04 server when using frappe/bench method. But the documentation was not very helpful.
Initially, when you run the
easy_install.py
script, it will make a file calledfrappe-compose.yml
(or<NAME>-compose.yml
if you chose a different project name), and you will get the 404 page not found error from Traefik. Open the config file and look for this line:traefik.http.routers.frontend-http.rule: Host(`site1.localhost`)
Change it to this:
traefik.http.routers.frontend-http.rule: Host(`type.the.correct.domain.name.here`)
Also make sure that the domain name resolves to an IP address. If you're just running it on your own PC you can resolve it to 127.0.0.1 or localhost in /etc/hosts (all of this outside the docker containers). Personally, I set a DNS entry on our router since this deployment is for a company.
Then in the command line, run
docker compose -p frappe down docker compose -p frappe -f frappe-compose.yml up -d
(make sure you change the project names as appropriate, and that you are in the same directory as easy_install.py).
After this, it should show the login screen of ERPNext.
You saved me alot of time, thank you for that!
Same problem here with Debian 11. It is evident that something is missing in the documentation or that the script is not working correctly.
Facing same issue when changed sitename
Same things happened to me, just fresh install on docker in proxmox lxc, but simply didn't work.
@DevOpsFreako Instead of DNS name I've used IP address, and it worked but no SSL.
Thankyou, this worked for me just before I was going to switch to a manual setup. I am behind wireguard anyway and do not want TLS. Actually if I wasn't, I would be a little concerned about the docker base image (Ubuntu, Alpine etc.) security update delays. I have heard it is around 2 weeks but I haven't checked myself yet and was months for CentOS. Apparently it also requires disabling caching on an image build to get the security updates applied too.
I have tryed to install erpnext on my server I have got one linode VM and I have point my domain to site1 but I got error 404 https://site1.kernel-technology.com/
Do the checklist before filing an issue:
Distro Information (Required)
Linux localhost 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
root@localhost:~# cat /etc/*-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Command Run (Required)
python3 easy-install.py --prod --email [EMAILPLACEHOLDER] and sudo python3 easy-install.py --prod --email [EMAILPLACEHOLDER]
Log File (Required)
Screenshots
Additional context