I installed using easy install on a server, it runs my site on the IP of the server machine, I setup DNS also but it is not working on the domain I am setting up on my machine, the site name and domain name is same. what is wrong here?
I get these warnings
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match ‘all’
could this be an issue?
That depends on your particular environment
this doesnot work and if I setup multitenancy by steps
bench config dns_multitenant on
bench setup nginx
sudo service nginx reload
it gives this error
Your system may be stuck with maintenance_mode set to 1 and not 0?
bench update
I think sets that to 1 when it runs, then sets that back to 0 when it is done.
So expect to see this:
frappe@ubuntu1804lts:~/frappe-bench$ bench show-config | grep maintenance_mode
maintenance_mode 0
Your options are either to set that with this:
bench set-config maintenance_mode 0
The other option is to run bench migrate
Reference Unable to run ERPNext on CentOS 7 post successful installation - #2 by makarand_b
Tried all these same result, and have reinstalled many times too, it stucks here on “sudo service nginx reload” otherwise the site is working fine on IP
Check these logs here for clues:
frappe@ubuntu:~/frappe-bench$ ls -al /var/log/nginx/*.log
-rw-r----- 1 www-data adm 332580 May 31 08:09 /var/log/nginx/access.log
-rw-r----- 1 www-data adm 23287 May 31 08:09 /var/log/nginx/error.log
and here:
frappe@ubuntu:~/frappe-bench$ find logs/ *.txt | xargs ls -alt
And tell us about your host environment.
getting this error in /var/log/nginx/error.log
2020/05/31 14:44:13 [error] 7368#7368: *197 upstream prematurely closed connection while reading response header from upstream, client: 168.211.60.163, server: my-domain, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8000/”, host: “my-serverip”
and in web.log getting error
my-serverip does not exist
The ‘local internal’ server runs on port 8000.
frappe@ubuntu1804lts:~/frappe-bench$ sudo netstat -tlnp
[sudo] password for frappe:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:11000 0.0.0.0:* LISTEN 1818/redis-server 1
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1468/master
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 1823/python
tcp 0 0 127.0.0.1:12000 0.0.0.0:* LISTEN 1807/redis-server 1
tcp 0 0 127.0.0.1:13000 0.0.0.0:* LISTEN 1803/redis-server 1
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1348/mysqld
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 860/redis-server 12
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 904/nginx: master p
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 965/dnsmasq
tcp 0 0 192.168.0.206:53 0.0.0.0:* LISTEN 965/dnsmasq
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 779/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 916/sshd
tcp6 0 0 :::25 :::* LISTEN 1468/master
tcp6 0 0 :::9000 :::* LISTEN 1825/node
tcp6 0 0 ::1:6379 :::* LISTEN 860/redis-server 12
tcp6 0 0 ::1:53 :::* LISTEN 965/dnsmasq
tcp6 0 0 fe80::5054:ff:fef0:f:53 :::* LISTEN 965/dnsmasq
tcp6 0 0 :::22 :::* LISTEN 916/sshd
A search turns up pointers to try like this:
current_site.txt is empty and I have done all steps in given link
this part is not present in my nginx.config file
instead there is something like this `server {
listen 80;
server_name
my-domain
;
root /home/khadija/frappe-bench/sites;
add_header X-Frame-Options "SAMEORIGIN";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";`
Post the actual traceback from the log…
52.1.122.198 does not exist
52.1.122.198 does not exist
getting this after running
sudo service nginx reload
before running this site was working fine on ip 52.1.122.198
and in /var/log/nginx/error.log
2020/05/31 16:38:13 [notice] 21752#21752: signal process started
2020/05/31 16:50:43 [notice] 22185#22185: signal process started
2020/05/31 16:50:50 [error] 22189#22189: *44 upstream prematurely closed connection while reading response header from upstream, client: 102.129.143.202, server: staging-erp.rawdah.io, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "52.1.122.198", referrer: "http://52.1.122.198/"
2020/05/31 16:50:51 [error] 22189#22189: *44 upstream prematurely closed connection while reading response header from upstream, client: 102.129.143.202, server: staging-erp.rawdah.io, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8000/favicon.ico", host: "52.1.122.198", referrer: "http://52.1.122.198/"