Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade from Opensnitch version 1.3.6 to 1.5.2 was not successful #863

Closed
Golddouble opened this issue Feb 26, 2023 · 2 comments
Closed

Comments

@Golddouble
Copy link

Describe the bug
Opensnitch 1.5.2 does not work (in my VM)

Include the following information:

To Reproduce

  1. Install the version from MX package Installer (test-repo) Opensnitch v.1.3.6
  2. copy the simlink ~/.config/autostart/opensnitch_ui.desktop from another PC with a working Opensnitch version 1.5.2 into the VM to the same location.
    -> Opensnitch works
  3. Download and install "opensnitch_1.5.2-1_amd64.deb"
  4. Download and install "python3-opensnitch-ui_1.5.2-1_all.deb"
    -> Error:
Unpacking python3-opensnitch-ui (1.5.2-1) ...
dpkg: Error processing archive /home/user/Downloads/python3-opensnitch-ui_1.5.2-1_all.deb (--unpack):
 Attempt to overwrite "/usr/bin/opensnitch-ui", which is also in package opensnitch-ui 1.3.6-1~mx19+1
dpkg-deb: error: "insert" subprocess was killed by signal (data transfer broken (broken pipe))
Errors occurred when editing:
 /home/user/Downloads/python3-opensnitch-ui_1.5.2-1_all.deb
N: The download is performed as root and not sandbox protected, because the file "/home/user/Downloads/python3-opensnitch-ui_1.5.2-1_all.deb" cannot be accessed by the user "_apt". - pkgAcquire::Run (13: No permission)
E: Sub-process /usr/bin/dpkg returned an error code (1)
  1. uninstall "opensnitch-ui" via MX package Installer
  2. install again manually "opensnitch_1.5.2-1_amd64.deb" and "python3-opensnitch-ui_1.5.2-1_all.deb"
    -> Installation looks successful.

But after a new start it does not work:
How the GUI looks like:
k20230226-113830

Here is another thing:
k20230226-113713

Post error logs:
Start from terminal:

$ /bin/sh -c "pkill -15 opensnitch-ui; opensnitch-ui"
Themes not available. Install qt-material if you want to change GUI's appearance: pip3 install qt-material.
Loading translations: /usr/lib/python3/dist-packages/opensnitch/i18n locale: de_CH
exception loading ipasn db: No module named 'pyasn'
Install python3-pyasn to display IP's network name.

If the daemon doesn't start:

  • Post last 15 lines of the log file /var/log/opensnitchd.log
�[2m[2023-02-26 09:50:17]�[0m �[97m�[104m IMP �[0m Start writing logs to /var/log/opensnitchd.log

�[2m[2023-02-26 09:50:39]�[0m �[97m�[104m IMP �[0m Got signal: terminated
�[2m[2023-02-26 08:51:34]�[0m �[97m�[104m IMP �[0m Start writing logs to /var/log/opensnitchd.log

�[2m[2023-02-26 09:55:03]�[0m �[97m�[104m IMP �[0m Got signal: terminated
�[2m[2023-02-26 09:55:19]�[0m �[97m�[104m IMP �[0m Start writing logs to /var/log/opensnitchd.log
�[2m[2023-02-26 09:55:35]�[0m �[97m�[104m IMP �[0m Added new rule: �[32mallow�[0m if �[1mprocess.path�[0m is '�[33m/usr/sbin/ntpd�[0m'
�[2m[2023-02-26 09:55:42]�[0m �[97m�[104m IMP �[0m Added new rule: �[32mallow�[0m if �[1mprocess.path�[0m is '�[33m/usr/sbin/cups-browsed�[0m'
�[2m[2023-02-26 09:55:47]�[0m �[97m�[104m IMP �[0m Saved new rule: �[32mallow�[0m if �[1mprocess.path�[0m is '�[33m/usr/sbin/avahi-daemon�[0m'
�[2m[2023-02-26 09:55:47]�[0m �[97m�[104m IMP �[0m Ruleset changed due to allow-always-simple-usr-sbin-avahi-daemon.json, reloading ...
�[2m[2023-02-26 09:56:42]�[0m �[97m�[104m IMP �[0m Saved new rule: �[32mallow�[0m if �[1mprocess.path�[0m is '�[33m/usr/sbin/nmbd�[0m'
�[2m[2023-02-26 09:56:42]�[0m �[97m�[104m IMP �[0m Ruleset changed due to allow-always-simple-usr-sbin-nmbd.json, reloading ...
�[2m[2023-02-26 09:56:53]�[0m �[97m�[104m IMP �[0m Saved new rule: �[32mallow�[0m if �[1mprocess.path�[0m is '�[33m/opt/firefox/firefox-bin�[0m'
�[2m[2023-02-26 09:56:53]�[0m �[97m�[104m IMP �[0m Ruleset changed due to allow-always-simple-opt-firefox-firefox-bin.json, reloading ...
�[2m[2023-02-26 09:57:26]�[0m �[97m�[104m IMP �[0m Saved new rule: �[32mallow�[0m if �[1mprocess.path�[0m is '�[33m/opt/firefox/pingsender�[0m'
�[2m[2023-02-26 09:57:26]�[0m �[97m�[104m IMP �[0m Ruleset changed due to allow-always-simple-opt-firefox-pingsender.json, reloading ...
�[2m[2023-02-26 09:59:54]�[0m �[97m�[41m ERR �[0m getting notifications: rpc error: code = Unavailable desc = transport is closing <nil>
�[2m[2023-02-26 09:59:54]�[0m �[97m�[41m ERR �[0m Connection to the UI service lost.

�[2m[2023-02-26 10:00:14]�[0m �[97m�[104m IMP �[0m Got signal: quit
�[2m[2023-02-26 10:00:16]�[0m �[97m�[104m IMP �[0m Start writing logs to /var/log/opensnitchd.log
�[2m[2023-02-26 10:00:19]�[0m �[97m�[43m WAR �[0m queue stuck, closing by timeout
�[2m[2023-02-26 10:00:19]�[0m �[97m�[43m WAR �[0m Queue.destroy(), nfq_close() not closed: -1

Thank you.

@gustavo-iniguez-goya
Copy link
Collaborator

Hi @Golddouble ,

Attempt to overwrite "/usr/bin/opensnitch-ui", which is also in package opensnitch-ui 1.3.6-1~mx19+1

This error could have been resolved with this command: $ sudo dpkg -i --force-all /home/user/Downloads/python3-opensnitch-ui_1.5.2-1_all.deb

Try starting the daemon with this command: $ sudo bash /etc/init.d/opensnitch start

@Golddouble
Copy link
Author

Thank you. It's working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants