ej52 / proxmox-scripts

MIT License
587 stars 308 forks source link

Services Not Started (svc_add) #167

Closed OutOfThisPlanet closed 8 months ago

OutOfThisPlanet commented 8 months ago

Script nginx-proxy-manager

Describe the bug

nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed

  • ERROR: openresty failed to start

[ERROR] on line 300 with exit code 1 while executing command svc_add

System info:

Screenshots

image

image

Additional context

nginx.conf has the line commented out

Installed within Alpine, using this command (it doesn't install otherwise)

 rm -rf /usr/local/share/.cache ; export PATH="$PATH:/usr/local/bin" ; sh -c "$(wget --no-cache -qO- https://raw.githubusercontent.com/ej52/proxmox/main/install.sh)" -s --app nginx-proxy-manager

Taken from https://github.com/ej52/proxmox-scripts/issues/153#issuecomment-1891074903

OutOfThisPlanet commented 8 months ago

It appears to be complaining about IPV6?

I have that entirely disabled on proxmox, my switches, my routers, my clients. Why? I don't like it. NAT works fine for me.

I shall comment out the IPV6 entry in /etc/network/interfaces to see if that fixes it. Edit: It didn't.

OutOfThisPlanet commented 8 months ago

Issue fixed by editing the following files:

/usr/local/openresty/nginx/conf.d/default.conf /usr/local/openresty/nginx/conf.d/production.conf

Comment out any lines that looks like this:

listen [::]:80
listen [::]:443 ssl
listen [::]:81 default

Then run rc-service openresty start