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

On Fedora 33 the daemon cannot connect to DBus #453

Closed
j-silver opened this issue Jan 13, 2021 · 3 comments · Fixed by #1122
Closed

On Fedora 33 the daemon cannot connect to DBus #453

j-silver opened this issue Jan 13, 2021 · 3 comments · Fixed by #1122
Labels
p2 Medium Criticality Issues

Comments

@j-silver
Copy link

j-silver commented Jan 13, 2021

I managed to build the client on Fedora 33 without particular problems.

When I try to run it I have this error:

sudo ./build/bin/mozillavpn linuxdaemon
[sudo] password for username: 
[13.01.2021 14:41:53.777] (main - LogHandler) Log file: /root/.local/share/mozillavpn.txt
[13.01.2021 14:41:53.777] (main - Command) MozillaVPN 2.0.2
[13.01.2021 14:41:53.778] (main - CryptoSettings) Read the settings file
[13.01.2021 14:41:53.778] (main - SettingsHolder) Creating SettingsHolder instance
[13.01.2021 14:41:53.778] (main - Localizer) Loading language: en-GB
[13.01.2021 14:41:53.778] (main - SettingsHolder) Setting languageCode
[13.01.2021 14:41:53.780] (linux - main) Connecting to DBus...
[13.01.2021 14:41:53.781] (linux - main) Connection failed - name: org.freedesktop.DBus.Error.AccessDenied message: Request to own name refused by policy
[13.01.2021 14:41:53.788] (main - CryptoSettings) Writing the settings file
[13.01.2021 14:41:53.788] (main - CryptoSettings) Write plaintext JSON file

This is clearly due to some more restrictive policy on Fedora. Does anybody know how to fix it?

Note: the log file /root/.local/share/mozillavpn.txt contains exactly the same output as above.

┆Issue is synchronized with this Jira Task

@bakulf
Copy link
Collaborator

bakulf commented Jan 13, 2021

I don't know if it helps, but, do you mind to test this: https://stackoverflow.com/questions/11170118/dbus-systembus-policies ?

@bakulf bakulf added linux p2 Medium Criticality Issues labels Jan 13, 2021
@j-silver
Copy link
Author

j-silver commented Jan 13, 2021

I've noticed that the build directory has this structure:

build/
├── bin
│   └── mozillavpn
└── share
├── dbus-1
│ ├── system.d
│ │   └── org.mozilla.vpn.conf
│ └── system-services
| └── org.mozilla.vpn.dbus.service
└── polkit-1
└── actions
└── org.mozilla.vpn.policy

So I've copied those files under /usr/share

It turned out to be a naive move... My installation has SELinux enabled which broke dbus and made the system unbootable.

I managed to recover it, but clearly it's a bit more complicated than this. At least when SELinux is on.

Edit: one possible solution could be disabling SELinux and copying those files again into /usr/share.
Another one is re-labelling them in such a way that SELinux recognises them as valid and doesn't lock the system.

If anybody has more experience/knowledge of SELinux and wants to suggest how to proceed, I'm happy to discuss it.

@ltratcliff
Copy link

ltratcliff commented Mar 11, 2021

Built on Fedora 33 as well. Attempting to connect just cycles through connecting -> disconnecting -> VPN is off. (tried with both selinux enabled/disabled)

~/.local/share/mozillavpn.txt:

[10.03.2021 19:06:53.873] (linux - LinuxNetworkWatcher) Properties changed for interface org.freedesktop.NetworkManager.Device.Wireless
[10.03.2021 19:06:53.874] (linux - LinuxNetworkWatcher) Not active. Ignoring the changes
[10.03.2021 19:06:54.590] (main - MozillaVPN) VPN tunnel activation
[10.03.2021 19:06:54.591] (main|controller - TaskControllerAction) TaskControllerAction created for activation
[10.03.2021 19:06:54.591] (main - MozillaVPN) Scheduling task:  TaskControllerAction
[10.03.2021 19:06:54.591] (main - MozillaVPN) Tasks:  1
[10.03.2021 19:06:54.591] (main|controller - TaskControllerAction) TaskControllerAction run
[10.03.2021 19:06:54.591] (controller - Controller) Activation 1
[10.03.2021 19:06:54.591] (controller - Controller) Setting state: 2
[10.03.2021 19:06:54.597] (main - MozillaVPN) Controller state changed
[10.03.2021 19:06:54.597] (main - StatusIcon) Show notification
[10.03.2021 19:06:54.598] (networking - ConnectionHealth) Connection state changed
[10.03.2021 19:06:54.599] (networking - ConnectionHealth) ConnectionHealth deactivated
[10.03.2021 19:06:54.599] (networking - PingHelper) PingHelper deactivated
[10.03.2021 19:06:54.599] (captiveportal - CaptivePortalDetection) Controller/Stability state changed
[10.03.2021 19:06:54.599] (networking - ConnectionDataHolder) state changed
[10.03.2021 19:06:54.599] (networking - ConnectionDataHolder) Resetting the data
[10.03.2021 19:06:54.599] (networking - ConnectionDataHolder) Updating IP address
[10.03.2021 19:06:54.599] (networking - ConnectionDataHolder) Skip Updating IP address, not connected
[10.03.2021 19:06:54.599] (main - SystemTrayHandler) Update context menu
[10.03.2021 19:06:54.600] (main - NotificationHandler) Show notification
[10.03.2021 19:06:54.600] (main|controller - TaskControllerAction) stateChanged received by to be ignored
[10.03.2021 19:06:54.600] (networking - ConnectionCheck) Stopping a connection check
[10.03.2021 19:06:54.600] (networking - PingHelper) PingHelper deactivated
[10.03.2021 19:06:54.600] (controller - Controller) Activation internal
[10.03.2021 19:06:54.600] (controller - Controller) Computing the allowed ip addresses
[10.03.2021 19:06:54.600] (controller - Controller) Catch all IPv4
[10.03.2021 19:06:54.600] (controller - Controller) Catch all IPv6
[10.03.2021 19:06:54.600] (linux|controller - LinuxController) LinuxController activated
[10.03.2021 19:06:54.601] (linux - DBusClient) Activate via DBus
[10.03.2021 19:06:54.791] (linux|controller - LinuxController) DBus service says: error.
[10.03.2021 19:06:54.792] (main - MozillaVPN) Handling error 4
[10.03.2021 19:06:54.792] (main - MozillaVPN) Alert: 5 State: 3
[10.03.2021 19:06:54.793] (controller - TimerController) TimerController - Operation completed: 1 0
[10.03.2021 19:06:55.551] (controller - TimerController) TimerController - Timeout: 4
[10.03.2021 19:06:55.551] (controller - Controller) Disconnected from state: 2
[10.03.2021 19:06:55.551] (networking - ConnectionCheck) Stopping a connection check
[10.03.2021 19:06:55.551] (networking - PingHelper) PingHelper deactivated
[10.03.2021 19:06:55.551] (controller - Controller) Setting state: 5
[10.03.2021 19:06:55.554] (main - MozillaVPN) Controller state changed
[10.03.2021 19:06:55.555] (main - StatusIcon) Show notification
[10.03.2021 19:06:55.555] (networking - ConnectionHealth) Connection state changed
[10.03.2021 19:06:55.555] (networking - ConnectionHealth) ConnectionHealth deactivated
[10.03.2021 19:06:55.555] (networking - PingHelper) PingHelper deactivated
[10.03.2021 19:06:55.555] (captiveportal - CaptivePortalDetection) Controller/Stability state changed
[10.03.2021 19:06:55.556] (networking - ConnectionDataHolder) state changed
[10.03.2021 19:06:55.556] (networking - ConnectionDataHolder) Resetting the data
[10.03.2021 19:06:55.556] (networking - ConnectionDataHolder) Updating IP address
[10.03.2021 19:06:55.556] (networking - ConnectionDataHolder) Skip Updating IP address, not connected
[10.03.2021 19:06:55.556] (main - SystemTrayHandler) Update context menu
[10.03.2021 19:06:55.557] (main - NotificationHandler) Show notification
[10.03.2021 19:06:56.981] (controller - Controller) Disconnected from state: 5
[10.03.2021 19:06:56.982] (networking - ConnectionCheck) Stopping a connection check
[10.03.2021 19:06:56.982] (networking - PingHelper) PingHelper deactivated
[10.03.2021 19:06:56.982] (controller - Controller) Setting state: 1
[10.03.2021 19:06:56.984] (main - MozillaVPN) Controller state changed
[10.03.2021 19:06:56.984] (main - StatusIcon) Show notification
[10.03.2021 19:06:56.985] (networking - ConnectionHealth) Connection state changed
[10.03.2021 19:06:56.985] (networking - ConnectionHealth) ConnectionHealth deactivated
[10.03.2021 19:06:56.985] (networking - PingHelper) PingHelper deactivated
[10.03.2021 19:06:56.985] (captiveportal - CaptivePortalDetection) Controller/Stability state changed
[10.03.2021 19:06:56.985] (networking - ConnectionDataHolder) state changed
[10.03.2021 19:06:56.985] (networking - ConnectionDataHolder) Resetting the data
[10.03.2021 19:06:56.985] (networking - ConnectionDataHolder) Updating IP address
[10.03.2021 19:06:56.986] (networking - ConnectionDataHolder) Skip Updating IP address, not connected
[10.03.2021 19:06:56.986] (main - SystemTrayHandler) Update context menu
[10.03.2021 19:06:56.986] (main - NotificationHandler) Show notification
[10.03.2021 19:06:57.451] (main - MozillaVPN) Task completed
[10.03.2021 19:06:57.451] (main - MozillaVPN) Tasks:  0
[10.03.2021 19:06:59.872] (linux - LinuxNetworkWatcher) Properties changed for interface org.freedesktop.NetworkManager.Device.Wireless
[10.03.2021 19:06:59.873] (linux - LinuxNetworkWatcher) Not active. Ignoring the changes

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

Successfully merging a pull request may close this issue.

3 participants