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

error while loading shared libraries: libmoosenordvpnapp.so #698

Open
mr-unix01 opened this issue Nov 28, 2024 · 14 comments
Open

error while loading shared libraries: libmoosenordvpnapp.so #698

mr-unix01 opened this issue Nov 28, 2024 · 14 comments
Assignees

Comments

@mr-unix01
Copy link

mr-unix01 commented Nov 28, 2024

after the latest update 3.19.2
connect root:

/run/nordvpn/nordvpnd.sock not found.
The NordVPN background service isn't running. Execute the "systemctl enable --now nordvpnd" command with root privileges to start the background service. If you're using NordVPN in an environment without systemd (a container, for example), use the "/etc/init.d/nordvpn start" command

systemctl status nordvpnd.service
● nordvpnd.service - NordVPN Daemon
Loaded: loaded (/lib/systemd/system/nordvpnd.service; enabled; preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2024-11-28 20:13:09 CET; 2s ago
TriggeredBy: ● nordvpnd.socket
Process: 178694 ExecStart=/usr/sbin/nordvpnd (code=exited, status=127)
Main PID: 178694 (code=exited, status=127)
CPU: 4ms

connect a normal user:
nordvpnd connect
nordvpnd: error while loading shared libraries: libmoosenordvpnapp.so: cannot open shared object file: No such file or directory

@noisecode3
Copy link

noisecode3 commented Nov 28, 2024

that is because it was not installed correctly, that is maybe it was not package correctly. or you did some crazy stuff with sudo ?? also list the files from you package how you installed them what scripts was running and so on. Ans use a better title for the bug. like I have this problem is better to say /run/nordvpn/nordvpnd.sock not found and libmoosenordvpnapp.so missing or something.. but that is probably your distributions fault. probably

@devzbysiu
Copy link
Contributor

Hi, thanks for reporting.

As @noisecode3 suggests, it would be super useful to know more details. We had similar issue some time ago while developing, so maybe there is something wrong

I'll try to reproduce this, but I need more info:

  • what distribution are you using?
  • how did you install the app initially and how did you update to 3.19.2?
  • did you execute any related commands or something that even remotely could affect the installation?

I'm also updating the title

@devzbysiu devzbysiu self-assigned this Nov 29, 2024
@devzbysiu devzbysiu changed the title I have this problem error while loading shared libraries: libmoosenordvpnapp.so Nov 29, 2024
@mr-unix01
Copy link
Author

mr-unix01 commented Nov 29, 2024

hello,
hi use debian 12, i have updated from terminal,
the library is now OK
sudo find / -name ‘libmoosenordvpnapp.so’ 2>/dev/null
[sudo] flavio's password
/usr/lib/nordvpn/libmoosenordvpnapp.so
ldd /usr/lib/nordvpn/libmoosenordvpnapp.so
linux-vdso.so.1 (0x00007ffe17afc000)
libsqlite3.so => /lib/x86_64-linux-gnu/libsqlite3.so (0x00007faa31ca1000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007faa320b2000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007faa320ad000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007faa31bc2000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007faa320a8000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faa319e1000)
/lib64/ld-linux-x86-64.so.2 (0x00007faa320ea000)
now the problem is this:
nordvpn login
/run/nordvpn/nordvpnd.sock not found.
The NordVPN service in the background is not running. Run the command ‘systemctl enable --now nordvpnd’ with root privileges to start the background service. If using NordVPN in an environment without systemd (e.g. a container), use the command ‘/etc/init.d/nordvpn start’.

/run/nordvpn/nordvpnd
does not exist
exist /var/run
but there is no nordvpn in it

@mr-unix01
Copy link
Author

for the time being I solved it I installed the old
nordvpn_3.17.0
so there is a bug in nordvpn_3.19.2_

@devzbysiu
Copy link
Contributor

Hmm, it's kind of weird what you are experiencing 🤔 , I tried to reproduce this on my machine but it's working properly. I'm installing debian in VM and I'll try again.

In the meantime, could you get logs from the app when you are trying to restart it?
After installing 3.19.2, you can do it like this for example:

terminal 1

journalctl -u nordvpnd.service -f | tee nordvpnd.log

terminal 2

sudo systemctl restart nordvpnd.service

@mr-unix01
Copy link
Author

mr-unix01 commented Nov 29, 2024

nordvpn_log.zip

this log is from yesterday

@mr-unix01
Copy link
Author

the problem is this:
var/run/nordvpn is now OK
Schermata del 2024-11-29 15-32-54

@devzbysiu
Copy link
Contributor

Your logs show that the daemon still can't load properly because of missing *.so

nov 28 18:24:05 debian12 systemd[1]: Stopped nordvpnd.service - NordVPN Daemon.
nov 28 18:24:05 debian12 systemd[1]: Started nordvpnd.service - NordVPN Daemon.
nov 28 18:24:05 debian12 nordvpnd[120121]: /usr/sbin/nordvpnd: error while loading shared libraries: libmoosenordvpnapp.so: cannot open shared object file: No such file or directory
nov 28 18:24:05 debian12 systemd[1]: nordvpnd.service: Main process exited, code=exited, status=127/n/a
nov 28 18:24:05 debian12 systemd[1]: nordvpnd.service: Failed with result 'exit-code'.
nov 28 18:24:10 debian12 systemd[1]: nordvpnd.service: Scheduled restart job, restart counter is at 95.

The error saying /run/nordvpn/nordvpnd.sock not found. is because daemon is not started so the socket is not there and the CLI tries to communicate with the daemon through this socket.

This is what I see in /usr/lib/nordvpn after installing the app:

λ ls /usr/lib/nordvpn/*
.rwxr-xr-x 2,4M root  1 sty  1970  /usr/lib/nordvpn/libmoosenordvpnapp.so
.rwxr-xr-x 1,6M root  1 sty  1970  /usr/lib/nordvpn/libmooseworker.so
.rwxr-xr-x 4,6M root  1 sty  1970  /usr/lib/nordvpn/libnorddrop.so
.rw-r--r-- 786k root  1 sty  1970  /usr/lib/nordvpn/libsqlite3.so
.rw-r--r--  12M root  1 sty  1970  /usr/lib/nordvpn/libtelio.so
.rwxr-xr-x  16M root  1 sty  1970  /usr/lib/nordvpn/nordfileshare
.rwxr-xr-x  13M root  1 sty  1970  /usr/lib/nordvpn/norduserd
.rwxr-xr-x 5,6M root  1 sty  1970  /usr/lib/nordvpn/openvpn

Do you see all those files?

If those files are in place, then next place to check is to see if you have file /etc/ld.so.conf.d/nordvpn.conf and it contains this:

/usr/lib/nordvpn

This file informs the system linker where to look for the *.so when loading the app.

You can also use ldconfig -p | grep libmoose to see if the system linker can reach those libs. This is the output on my machine for the libmoose* libs:

λ ldconfig -p | grep libmoose
        libmooseworker.so (libc6,x86-64) => /usr/lib/nordvpn/libmooseworker.so
        libmoosenordvpnapp.so (libc6,x86-64) => /usr/lib/nordvpn/libmoosenordvpnapp.s

Do you have similar results?

@mr-unix01
Copy link
Author

mr-unix01 commented Dec 2, 2024

hello,
this I have in my configuration
ldconfig -p | grep libmoose
returns nothing
/usr/lib/nordvpn /usr/lib/nordvpn
contains what you see in the print scren
Schermata del 2024-12-02 11-29-48
Schermata del 2024-12-02 11-28-40
Schermata del 2024-12-02 11-33-36

@mr-unix01
Copy link
Author

these are the files in my system

/etc
/etc/init.d
/etc/init.d/nordvpn
/usr
/usr/bin
/usr/bin/nordfileshared
/usr/bin/nordvpn
/usr/lib
/usr/lib/systemd
/usr/lib/systemd/system
/usr/lib/systemd/system/nordfileshared.service
/usr/lib/systemd/system/nordfileshared.socket
/usr/lib/systemd/system/nordvpnd.service
/usr/lib/systemd/system/nordvpnd.socket
/usr/lib/systemd/user
/usr/lib/systemd/user/nordfileshared.service
/usr/lib/systemd/user/nordfileshared.socket
/usr/lib/tmpfiles.d
/usr/lib/tmpfiles.d/nordvpn.conf
/usr/sbin
/usr/sbin/nordvpnd
/usr/share
/usr/share/applications
/usr/share/applications/nordvpn.desktop
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/nordvpn
/usr/share/doc
/usr/share/doc/nordvpn
/usr/share/doc/nordvpn/changelog.Debian.gz
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/scalable
/usr/share/icons/hicolor/scalable/apps
/usr/share/icons/hicolor/scalable/apps/nordvpn.svg
/usr/share/licenses
/usr/share/licenses/nordvpn
/usr/share/licenses/nordvpn/LICENSE.md
/usr/share/licenses/nordvpn/THIRD-PARTY-NOTICES.md
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/nordvpn.1.gz
/usr/share/zsh
/usr/share/zsh/functions
/usr/share/zsh/functions/Completion
/usr/share/zsh/functions/Completion/Unix
/usr/share/zsh/functions/Completion/Unix/_nordvpn_auto_complete
/var
/var/lib
/var/lib/nordvpn
/var/lib/nordvpn/data
/var/lib/nordvpn/data/countries.dat
/var/lib/nordvpn/data/cybersec.dat
/var/lib/nordvpn/data/insights.dat
/var/lib/nordvpn/data/ovpn_template.xslt
/var/lib/nordvpn/data/ovpn_xor_template.xslt
/var/lib/nordvpn/data/rsa-key-1.pub
/var/lib/nordvpn/data/servers.dat
/var/lib/nordvpn/openvpn

@devzbysiu
Copy link
Contributor

Nice, thank you for the quick updates.

So it looks like the installation process did not work properly. After installation you should see libraries in the /usr/lib/nordvpn directory.

I tried to reproduce what you are experiencing this on the VM with debian 12, but without success

Can you show me the logs from the installation process? Specifically, logs printed when you run sudo apt install nordvpn - maybe there is some silent error which is not detected by package manager 🤔

@mr-unix01
Copy link
Author

hello,
the file nordvpn_3.19.2_amd64.deb does not install
‘file installation failed:not supported
if i update from terminal i still have the same problem
i am using the nordvpn_3.17.0_amd64.deb
Schermata del 2024-12-03 07-09-40
Schermata del 2024-12-03 07-02-18

@devzbysiu
Copy link
Contributor

Hi, sorry for late response

I don't see any issues with installation process on your screen. The package installer GUI shows the file installation failed:not supported on my side, but installing from terminal works without issues.

What is super weird in your case is that sometimes you have *.so libraries as you wrote here, but next time you don't have them. That suggests that there may be something wrong with your environment.

What we can also do is to see if your package is not damage somehow when you download it (I highly doubt that case). Could you send the package which is failing to install on your side?

@mr-unix01
Copy link
Author

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

3 participants