keyhole icon indicating copy to clipboard operation
keyhole copied to clipboard

snap package: using the `--web` option makes keyhole to exit with listen tcp error

Open zoltanp opened this issue 1 year ago • 2 comments

Hi,

On Ubuntu 22.04, when installed keyhole from snap package, the --web option makes keyhole to not to start. It seems to fail to bind to a network interface to listen on:

$ sudo keyhole --web --diag ./diagnostic.data/ 
2024/06/26 12:21:05 listen tcp :5408: listen: operation not permitted

Using sudo or not seems to be irrelevant:

$ keyhole --web --diag ./diagnostic.data/ 
2024/06/26 12:24:41 listen tcp :5408: listen: operation not permitted

The snap version is:

$  snap list
Name     Version        Rev    Tracking       Publisher   Notes
core18   20240612       2829   latest/stable  canonical✓  base
keyhole  0+git.80b6ce8  2      latest/stable  mdgrogan    -

keyhole built from sources on the same machine works fine.

I assume that the snap interface network-bind [1] might be needed to be added to the snap package. I have not tested this.

[1] https://snapcraft.io/docs/network-bind-interface

$ snap connections | grep -e keyhole -e Interf
Interface       Plug                Slot             Notes
home            keyhole:home        :home            -
network         keyhole:network     :network         -

Would it be possible to fix the snap package?

zoltanp avatar Jun 26 '24 12:06 zoltanp

Not sure which contributor build the snap package. You can feel free to contribute.

simagix avatar Jun 27 '24 02:06 simagix

Okay, if I manage to fix the snap package, I will open a merge request

zoltanp avatar Jun 28 '24 16:06 zoltanp