frappe / bench

CLI to manage Multi-tenant deployments for Frappe apps
https://frappeframework.com/docs/user/en/bench
GNU General Public License v3.0
1.36k stars 1.19k forks source link

404 page not found #1444

Open saleh6449 opened 1 year ago

saleh6449 commented 1 year ago

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

donnieferdian commented 1 year ago

Same problem,.. Hope this can be fix soon 😁😁😁

nickyharpor commented 1 year ago

same problem on a fresh Ubuntu 22.04. nothing in the log file! frappe-configurator-1 container exits.

FantasyLeo commented 1 year ago

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.

ThePresence commented 1 year ago

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.

DevOpsFreako commented 1 year ago

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

DevOpsFreako commented 1 year ago

@ThePresence @FantasyLeo @nickyharpor @saleh6449 Guys If you Found Solution Then Please Share

Janith96 commented 1 year ago

same issue here

ThePresence commented 1 year ago

@DevOpsFreako Instead of DNS name I've used IP address, and it worked but no SSL.

DevOpsFreako commented 1 year ago

@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

ThePresence commented 1 year ago

@DevOpsFreako I've already tried that it didn't worked hence I had to use IP address.

DevOpsFreako commented 1 year ago

@ThePresence Can you Share Setup Your Text file that you use Like I have try But Mine Not Working

Janith96 commented 1 year ago

@ThePresence I managed to get it running. If you're running it on a vm do as follows,

  1. Go to your domain dns management and add/edit your relevant A record and add your server's ip address.
  2. Open 80,443, 8000 ports from the firewall
  3. ssh to your sever & type sudo nano /etc/hosts
  4. add a new line with your server's external ip & the domain/subdomain you're going to use 192.168.1.130 your.domain
  5. save & exit.
  6. run the easy install script python3 easy-install.py --prod --email your@email.tld --sitename YOURDOMAIN
  7. now you should be able to get it running without any problems.
daidaiworm commented 1 year ago

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
DevOpsFreako commented 1 year ago

Simple start server at different port 8081 that how i solve my error

SmoothPlay commented 1 year ago

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.

ZenulAbidin commented 1 year ago

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.

Megajin commented 1 year ago

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.

You saved me alot of time, thank you for that!

FelipeSanchezCalzada commented 11 months ago

Same problem here with Debian 11. It is evident that something is missing in the documentation or that the script is not working correctly.

zilurrane commented 11 months ago

Facing same issue when changed sitename

fahmiegerton commented 9 months ago

Same things happened to me, just fresh install on docker in proxmox lxc, but simply didn't work.

kevlar700 commented 5 months ago

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