evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
9.88k stars 490 forks source link

UI issue communicating with service on startup #849

Closed dissona closed 1 year ago

dissona commented 1 year ago

Manjaro KDE 5.26.5 Kernel 5.15.93-1-MANJARO opensnitch 1.5.5

I updated a few packages on manjaro and the UI is now broken on startup

im running opensnitch-ui on startup Status on opensnitch-ui is bugged, just says nothing and start/stop button does nothing running systemctl status opensnitchd.service says the service is running fine

I have tried reinstalling and deleting cache and /etc/opensnitchd

The only way to fix it is restart opensnitchd.service, then everything works fine

Here are the logs:

`[2023-02-13 10:54:56]  WAR  Error while pinging UI service: rpc error: code = DeadlineExceeded desc = Deadline Exceeded, state: READY [2023-02-13 10:54:58]  WAR  Error while pinging UI service: rpc error: code = DeadlineExceeded desc = context deadline exceeded, state: READY [2023-02-13 10:55:00]  WAR  Error while pinging UI service: rpc error: code = DeadlineExceeded desc = context deadline exceeded, state: READY [2023-02-13 10:55:02]  WAR  Error while pinging UI service: rpc error: code = DeadlineExceeded desc = context deadline exceeded, state: READY [2023-02-13 10:55:04]  WAR  Error while pinging UI service: rpc error: code = DeadlineExceeded desc = context deadline exceeded, state: READY

[2023-02-13 10:55:04]  IMP  Got signal: terminated [2023-02-13 10:55:05]  ERR  getting notifications: rpc error: code = Unavailable desc = error reading from server: read unix @->/tmp/osui.sock: read: connection reset by peer [2023-02-13 10:55:10]  WAR  queue stuck, closing by timeout [2023-02-13 10:55:10]  WAR  Queue.destroy(), nfq_close() not closed: -1

[2023-02-13 11:47:40]  IMP  Start writing logs to /var/log/opensnitchd.log [2023-02-13 11:47:40]  ERR  eBPF Failed to load /etc/opensnitchd/opensnitch.o: open /etc/opensnitchd/opensnitch.o: no such file or directory [2023-02-13 11:47:40]  WAR  error starting ebpf monitor method: open /etc/opensnitchd/opensnitch.o: no such file or directory [2023-02-13 11:47:40]  WAR  Unable to set new process monitor method from disk: open /etc/opensnitchd/opensnitch.o: no such file or directory`

-- Opensnitch-ui was originally using proc for process monitor method, now it uses ebpf as default after reinstall

grawlinson commented 1 year ago

Hi, this is a dupe of #833

gustavo-iniguez-goya commented 1 year ago

Thank you @dissona for reporting this issue.

It has been already solved by @grawlinson :heart: , but it may take some time to propagate to Manjaro.