error on command : sudo setcap CAP_NET_BIND_SERVICE+eip /home/pi/.pyenv/versions/3.9.2/bin/python3.9

87 views
Skip to first unread message

Luigi Vogliobene

unread,
Dec 25, 2025, 12:02:52 PM12/25/25
to PicoChess
Hi,
trying to install picochess on a Debian 13.2 amd64 laptop I got, for the subject command, the error:

ERROR  picochess - main: Could not start webserver - port 80 not allowed by operating system

I am not able to get the webserver working.

Please help me to solve this problem.

Thank you.

Luigi

Randy Reade

unread,
Dec 25, 2025, 12:17:29 PM12/25/25
to pico...@googlegroups.com
Is pi the actual user account on your laptop? That command looks like you are building a v3.4 version.

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picochess/d84a9144-330c-4ed0-a75f-d59effa29a6bn%40googlegroups.com.

Luigi Vogliobene

unread,
Dec 25, 2025, 2:24:30 PM12/25/25
to PicoChess
Yes, user account pi password picochess.

On a fresh installed Debian 13.2 I tried to :

1. sudo git clone https://github.com/JohanSjoblom/picochess.git  (from Johan 4.1.9 github picochess environment)
2. sudo ./install-picochess.sh

All was OK but after the reboot I got the above error  and the webserver do not work.

Luigi

Randy Reade

unread,
Dec 25, 2025, 2:41:06 PM12/25/25
to pico...@googlegroups.com
Strange. V4 doesn't use pyenv. Did you try to install v3 previously? It looks like the install is corrupted somehow.

You can rename /opt/picochess or delete it then install v4 using the wget command way:

Luigi Vogliobene

unread,
Dec 25, 2025, 4:12:29 PM12/25/25
to PicoChess
Hi Randy,

I follow your hints but I got the same problem.

I attached the picochess.log file that shows the problem.

Thank you.

Luigi

picochess.log

RandyR

unread,
Dec 25, 2025, 4:25:44 PM12/25/25
to PicoChess
Ok. Try this command:

sudo setcap 'cap_sys_boot,cap_net_bind_service,cap_sys_rawio,cap_dac_override+eip' $(readlink -f "/opt/picochess/venv/bin/python")

Luigi Vogliobene

unread,
Dec 25, 2025, 4:36:14 PM12/25/25
to PicoChess
Thank you so much, Randy, now the webserver works.

Luigi

RandyR

unread,
Dec 25, 2025, 4:42:33 PM12/25/25
to PicoChess
Maybe you don't need to apply all those capabilities on your laptop, just cap-net_bind_service. The other ones are mainly for the DGTPi. You might want to remove them and just go with the one given in the log. To do this you would enter 2 commands:

sudo setcap 'cap_sys_boot,cap_net_bind_service,cap_sys_rawio,cap_dac_override-eip' $(readlink -f "/opt/picochess/venv/bin/python")

sudo setcap 'cap_net_bind_service=+ep' $(readlink -f $(which python3))

Luigi Vogliobene

unread,
Dec 25, 2025, 5:24:50 PM12/25/25
to PicoChess
Done! it does work.

Thank you again, Randy.

Luigi

Johan Sjöblom

unread,
Dec 26, 2025, 6:20:06 AM12/26/25
to PicoChess
I will try to make the install script more Linux aware so that it runs the setcaps differently on aarch64 and x86_64... Thanks for the testing, I can use the information from this discusson to do that.

Johan Sjöblom

unread,
Dec 26, 2025, 6:36:51 AM12/26/25
to PicoChess
install-picochess script now has different setcap handling for aarch64 (Pi) and x86_64 (Linux). The Pi part is unchanged, and in the Linux part I followed the learnings from above... This way the next brave installer should not get a problem to run port 80.

Luigi Vogliobene

unread,
Dec 26, 2025, 7:05:36 AM12/26/25
to PicoChess
Thank you Johan
Reply all
Reply to author
Forward
0 new messages