Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation completed successfully but site does not work #84

Closed
washaqq opened this issue Dec 21, 2023 · 8 comments
Closed

Installation completed successfully but site does not work #84

washaqq opened this issue Dec 21, 2023 · 8 comments
Assignees

Comments

@washaqq
Copy link

washaqq commented Dec 21, 2023

i had Docker errors but fixed it; #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:

  • fm --version : 0.9.0
  • lsb_release -a :
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
  • docker version: Docker version 24.0.7, build afdd53b
  • docker-compose version:
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
Copy link
Collaborator

Xieyt commented Dec 21, 2023

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
Copy link
Author

washaqq commented Dec 22, 2023

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
Copy link
Collaborator

Xieyt commented Dec 22, 2023

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
Copy link
Author

washaqq commented Dec 22, 2023

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
Copy link
Author

washaqq commented Dec 28, 2023

Any Idea?

@dhsathiya dhsathiya self-assigned this Dec 28, 2023
@SujinIn
Copy link

SujinIn commented Jan 9, 2024

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
Copy link

SujinIn commented Jan 10, 2024

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
Copy link
Collaborator

Xieyt commented Mar 19, 2024

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.

@Xieyt Xieyt closed this as completed Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants