Container Egress Error
Posted by Cthe_Enigma
Hello! I'm pretty new to Linux & Homelabbing, but have some coding experience. During the initial download, I received this Failure Message. I followed the next steps, ran the Sparkbox doctor, and followed the steps it recommended. However, after I completed the steps and re-ran the Sparkbox doctor, I got the same error. I decided to just go back and run the "/opt/sparkbox/sparkbox up" to see if maybe the fix did work, and just failed to register with the doctor, and interestingly enough, it seems to be up and running! However, when I continued the tutorial and tried to install the media center, the apps install failed. After combing through the log this was the only error I could find: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint sb-npm (53b55c3009e1730387f1b63df19edb86eca8d119dfc35bd25c098c318f98b8bb): failed to bind host port 0.0.0.0:80/tcp: address already in use I'm not sure how to move forward or whether these issues are connected, perhaps? Any help would be greatly appreciated!! Just for additional info - Server is running on: Dell Latitude 7480 CPU: Intel Core i7 RAM: 8 GB Storage: ~500 GB (SATA SSD) OS: Ubuntu Server
4 replies
justsomeguy wrote:
Looks like you may already have something running on port 80 (or is an artifact of prev. install attempt). Nginx looks likr its set to port 81 now, perhaps due to 80 being in use. I'd try a few different attempts to resolve while waiting for more knowledgeable guidance: 1. check what's running on port 80 - det. if it's something intentional or something than can be terminated. - if the latter, id kill it & then retry install 2. try updating the 'bind attempt' to point towards port 81 3. if those havent helped, then I'd prob. just un/reinstall.
tomspark wrote:
Hey CtheEnigma — justsomeguy's right on the port. The egress "failure" is actually a non-fatal warning — we just shipped clearer wording for it in v1.6.68. Your real issue is port 80 already in use by something on the host. Run sudo ss -tlnp | grep ':80 ' to see what's bound there (Apache, another Nginx, default Ubuntu setup), then either stop that service (sudo systemctl disable --now apache2 or similar) or change SparkBox's NPM port — edit /opt/sparkbox/.env, set NPMHTTPPORT=8080, and sudo /opt/sparkbox/sparkbox up. Then re-run the media center install.
Cthe_Enigma wrote:
Thank you! I was able to change the Port to another one that was available and everything started up normally!
tomspark wrote:
Nice, glad that worked. If you hit any other issues getting media set up, just post here.