socfortress / CoPilot

SOCFortress CoPilot
https://www.socfortress.co
GNU Affero General Public License v3.0
155 stars 25 forks source link

Copilot frontend container - Error [emerg] 1#1: socket() [::]:80 failed (97: Address family not supported by protocol) #226

Closed pkul1997 closed 1 month ago

pkul1997 commented 1 month ago

Describe the bug The CoPilot front end container starts then almost immediately stops. The containers log shows [emerg] 1#1: socket() [::]:80 failed (97: Address family not supported by protocol)

To Reproduce Follow setup instructions

Expected behavior Container to stay up and running

Resolved by I was able to resolve the issue but just wanted to put something up in case anyone else runs into it.

The issue was caused by disabling ipv6 on my Ubuntu 22.04 Server, due to the nginx config trying to listen on IPv6 port [::]:80. I was unable to find the nginx config file in the container to disable this so I will have to keep IPv6 enabled.

I re-nabled it by editing the grub file sudo vi /etc/default/grub set value GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=0"

taylorwalton commented 1 month ago

Thanks for that!