ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Nginx displaying default welcome page


#1

I am using oficial frappe docker on my local machine. After install frappe and sudo bench setup production frappe I am still getting Welcome to nginx page.
I deleted file /etc/nginx/sites-available/default inside docker container, restarted nginx. sites-enabled folder is empty.
Any additional steps I need to do?


#2

Hello, what url did you use to access the site?

Was it localhost:80? Or localhost:8000?


#3

It’s 127.0.0.1:80


#4

Hi
Try

Re generate nginx config

bench setup nginx

Reload nginx

sudo service nginx reload


#5

Should be on port 8000 as littlehera points out, or possibly 8080, but not 80


#6

This is strange because when I am using comand ‘setup production’ I am getting message ‘Site some_site assigned port: 80’.

Also, I found strange error when I am running comand ‘setup production’ first time:
error: <class ‘socket.error’>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228

I am tried to restart supervisor but after that site become inaccessible.


#7

You can change the port to your preference like this… (I used 8123 in the example, but you can use anything in the range 1024-65536, as long as it isn’t a reserved port that’s already in use)

bench set-nginx-port site1.local 8123
#nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
bench setup nginx
sudo systemctl reload nginx