rtCamp / Frappe-Manager

A CLI tool based on Docker Compose to easily manage Frappe based projects.
MIT License
109 stars 23 forks source link

Installation completed successfully but site does not work #84

Closed washaqq closed 6 months ago

washaqq commented 8 months ago

i had Docker errors but fixed it; https://github.com/rtCamp/Frappe-Manager/issues/83 , everything completed successfully;

✅ Halting other sites: Done
✅ Ports Check : Passed
✅ Pulling Docker Images: Done
✅ Starting Docker Containers: Done
✅ Creating Site: Done

Site not Found; image

System information:

docker-compose version 1.29.2, build unknown
docker-py version: 5.0.3
CPython version: 3.10.12
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022

Log: fm.log

Xieyt commented 8 months ago

I checked the logs and I think the site has been created and the site server has started. How are you accessing the site ? Can you do a curl and give me the output here ?

washaqq commented 8 months ago

I am accessing via web browser from host computer; image

Curl on terminal;

curl http://192.168.1.41
<!doctype html>
<html lang=en>
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>192.168.1.41 does not exist</p>
Xieyt commented 8 months ago

Since you're trying to access the site from other computer, you'll need to set up a domain IP mapping in the /etc/hosts file of your host system for your created site.

washaqq commented 8 months ago

Since you're trying to access the site from other cothis was not a case before, and i did not get it, my host computer is windows, fm is on virtual ubuntu, if i could'nt go with ip address how will i go if i mputer, you'll need to set up a domain IP mapping in the /etc/hosts file of your host system for your created site.

this was not a case before, and i did not get it, my host computer is windows, and i did as you suggested but this should not be like this, and no it did not worked. host; image

washaqq commented 8 months ago

Any Idea?

SujinIn commented 8 months ago

First, Thank you very much this amazing Automating installation solution!

I have same issue. I had imagine... the reverse proxy or internal DNS. But I don't have development skill...

My server's IP address that installed Frappe-Manager and ERPNext is '192.168.0.250'. And I've created the ERPnext system by Frappe-manager. the subdomain name is myerpnext

So, I've connect in Server computer. I had used links2 CLI (ssh) for connecting test. It works! I mean When I try connect localhost in server, It works. First, links2 http://myerpnext.localhost in ssh, I can see the Home and login to Frappe, Email. Password, show, Forget Passowrd? Login .... and etc

Second, links2 http://localhost in ssh, 404 Not found. localhost does not exist

So I modified the 'hosts' file in windows 10's hosts file. I mean, I edit the other computer's file in C:\Windows\System32\drivers\etc\hosts ( windows 10 system) 192.168.0.250 myerpnext.com

Now, I can connect to http://192.168.0.250/adminer and http://myerpnext.com/adminer http://192.168.0.250/mailhog and http://myerpnext.com/mailhog

But I can not connect to http://192.168.0.250 and http://myerpnext.com Of course, I can not connect http://myerpnext.192.168.0.250 (404 Not found)

I allow the 22, 80, 100, 443, 8000, 8080, 9000 port by ufw already.

SujinIn commented 8 months ago

I'm not an expert, so I'm sorry if I don't know much. I tested them one by one.

The address accessed from the server is http://myerpnext.localhost, and IP address of the server is http://192.168.0.250

I set up port forwarding and DDNS on my router. open the 80 port.

Now it is possible to connect from the outside using a ddns address such as http://aaa.router.com. (This address is an example)

Wow, I confirmed that the connection was working fine via http://aaa.router.com/mailhog from an external network. However, when going to http://aaa.router.com, a 404 Not Found page appears. And, when going to http://myerpnext.aaa.router.com, a ERR_NAME_NOT_RESOLVED page appears.

I hope this helps.

Xieyt commented 6 months ago

This issue has been fixed in #113.

To create site accessible outside.

  1. Create site with fqdn name such as frappe.com.
  2. Add hosts entry on your system for that site.