What is the problem?
OctoPrint is not using configured port when started with sudo
I'm trying to host OctoPrint on Azure VM.
So not running on local RP, not port forwarding, etc.
It works fine with default port 5000.
If I change port to 80, or 443 octoprint config set server.port 80 --int
I get error Permission denied
when starting the server, expected because of lower ports.
If I try sudo ~/OctoPrint/venv/bin/octoprint serve --iknowwhatimdoing
server starts, but using default 5000 port, not the one from config.yaml
Why is OctoPrint not using configured port when started with sudo
?
How to make it use port 80/443?
What did you already try to solve it?
Searched in forum / www
Logs (syslog, dmesg, ... no logs, no support)
serve.log (4.0 KB)
Additional information about your network (Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ...)
Ubuntu 20.04.5 LTS VM on Azure.