Hello,
I am running Mac OS Ventura 13.4, and have Parallels Virtual Machine (VM) running Ubuntu 22.04. VM is running in bridge network mode, so it gets assigned its own internal network IP which is different than Mac OS IP.
I installed ERPNext on the virtual machine, and when i use the command “bench start” I can access the development server using the VM Local network IP address, from within Ubuntu VM and from my Mac OS browsers.
I then followed this https://codewithkarani.com/2021/09/16/setup-erpnext-for-production/
, to setup production server.
The production server is running based on nginx status, on port 80, but I am unable to access the production server using the same ip address neither from within Ubunt VM not Mac OS.
Here is the output of netstat -plnt
ctive Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1464/sshd: /usr/sbi
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1075/cupsd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 11208/nginx: master
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 858/systemd-resolve
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1187/mariadbd
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1081/redis-server 1
tcp6 0 0 ::1:6379 :::* LISTEN 1081/redis-server 1
tcp6 0 0 :::22 :::* LISTEN 1464/sshd: /usr/sbi
tcp6 0 0 :::80 :::* LISTEN 11208/nginx: master
tcp6 0 0 ::1:631 :::* LISTEN 1075/cupsd
This is the output of “bench setup nginx” which shows the site is running on port 80.
bench setup nginx
nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Port configuration list:
Site frappesiteurl.com
assigned port: 80
I am also able to ping the VM from Mac OS, as well as SSH into Ubuntu VM from Mac os.
This is the /etc/hosts file on my Ubuntu VM running on Parallels
127.0.0.1 localhost
127.0.1.1 ubuntu-linux-22-04-02-desktop
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
And this is the /etc/hosts output of Mac OS
Host Database
localhost is used to configure the loopback interface
when the system is booting. Do not change this entry.
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
Currentsite.txt has my site name in it.
If I run “bench start” the development server runs perfectly, but unable to access production server.
I am new to this self-hosting process, so I apologize for any information which I may have skipped. I would really appreciate if you can please help me on this.
Once I get past this issue and am able to access my locally hosted production server from VM, then I will try to work out a way to access the production server through internet using custom domain, through DNS, but if any of the gurus here know a way would also appreciate some information on that.