Unable to enable file or screen sharing with unmanaged network connection

Bug #1733322 reported by Emil Styrke
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnome-control-center
Expired
Medium
gnome-control-center (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I have installed Ubuntu Server 17.10. At request from a colleague I then tried to install ubuntu-desktop and enable screen sharing. However, this did not work as expected. When trying to enable screen sharing (same goes for file sharing), the enable button just jumps straight back to disabled when toggling it. I assumed this had something to do with the fact that the "networks" list at the bottom of the sharing dialog was empty. This appears in the syslog when trying to toggle:

Nov 20 11:31:06 bcubuntu3 gnome-control-c[1054]: Failed to enable service vino-server: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Sharing cannot be enabled on this network, status is '0'

This computer has only a single wired network connection (no wifi). This connection shows in the system menu as "Wired unmanaged" which seems to be the reason that it doesn't show up in the sharing dialogs.

As a workaround, I tried the following things:

1. Change "managed=false" to "managed=true" in /etc/NetworkManager/NetworkManager.conf as suggested in https://askubuntu.com/a/2905
2. Touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf as suggested in https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1676547
3. Change renderer to NetworkManager in /etc/netplan/01-netcfg.yaml

1 and 2 was not enough to get NetworkManager to manage the wired interface, but 3, possibly together with one or both of the previous steps did the trick.

When I finally got NetworkManager to manage the wired connection, it did show up in the sharing dialogs, and I was able to enable screen sharing. However, it would seem reasonable to be able to enable sharing even on unmanaged interfaces by some mechanism, especially since unmanaged interfaces seem to be the norm these days.

~$ lsb_release -rd
Description: Ubuntu 17.10
Release: 17.10

gnome-control-center:
  Installed: 1:3.26.1-0ubuntu5
  Candidate: 1:3.26.1-0ubuntu5
  Version table:
 *** 1:3.26.1-0ubuntu5 500
        500 http://se.archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:3.26.1-0ubuntu4 500
        500 http://se.archive.ubuntu.com/ubuntu artful/main amd64 Packages

Tags: bionic
Revision history for this message
In , Zdzichu (zdzichu) wrote :

Sumary says it all. The ON/OFF switch in screen sharing tab is stuck in OFF position and is not reacting to clicks. Thus, screen sharing cannot be enabled.

Logs show only:
2017-09-24T16:11:34+0200 mother.pipebreaker.pl gnome-control-c[25851] Failed to enable service vino-server: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Sharing cannot be enabled on this network, status is '0'

control-center-3.26.0-1.fc27.x86_64
vino-3.22.0-4.fc27.x86_64

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

the error and lack of proper feedback is also mentioned upstream in https://bugzilla.gnome.org/show_bug.cgi?id=785617

Revision history for this message
In , Emil Styrke (emil-styrke) wrote :

This happens to me as well. In my case it is because I have only wired network access, but the network connection is "unmanaged" by NetworkManager (and does not show up on the networks page of gnome-control-center). This in turn leads to the networks list in the sharing dialog being empty.

I had to jump through various hoops to get NetworkManager to manage the wired connection (I'm running Ubuntu 17.10 'Artful'), but as soon as the connection showed up on the networks page, the sharing dialog started working too.

This exact same issue also affects the file sharing dialog, btw.

Revision history for this message
Emil Styrke (emil-styrke) wrote :

Sebastien, thanks for the quick response. I found an existing upstream bug (https://bugzilla.gnome.org/show_bug.cgi?id=788097) which, while lacking detail, seemed to match. I linked it to this issue.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks

Changed in gnome-control-center (Ubuntu):
status: New → Triaged
Changed in gnome-control-center:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Jeremy Bícha (jbicha) wrote :

To clarify, Emil installed Ubuntu 17.10 starting from a server install which I believe does not use NetworkManager by default. I believe the vast majority of people using Ubuntu won't be affected by this issue.

https://launchpad.net/bugs/1733322

Revision history for this message
In , 45you-pop999grunt (45you-pop999grunt) wrote :

I have this problem too for my wired connection only.
It is managed by Network Manager and yet it doesn't appear on the the Network List.
If I connect to a Wifi network that will appear on the list and allow me to toggle on/off.

Ubuntu 17.10 (not headless server edition!)
vino 3.8.1-0ubuntu12
gnome 3.26

Revision history for this message
In , 45you-pop999grunt (45you-pop999grunt) wrote :

I have tried the workaounds listed here
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1733322

> 1. Change "managed=false" to "managed=true" in /etc/NetworkManager/NetworkManager.conf as suggested in https://askubuntu.com/a/2905
> 2. Touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf as suggested in https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1676547
> 3. Change renderer to NetworkManager in /etc/netplan/01-netcfg.yaml

(I didn't need to do 3 as it was already set like that)

But its still broken.

Revision history for this message
In , 45you-pop999grunt (45you-pop999grunt) wrote :

Just realized I have the same error in my syslog as Tomasz:

gnome-control-c[27434]: Failed to enable service vino-server: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Sharing cannot be enabled on this network, status is '0'

Revision history for this message
laluz (laluz) wrote :

The bug is still there for
lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

Changed in gnome-control-center:
importance: Medium → Unknown
status: Confirmed → Unknown
tags: added: bionic
Changed in gnome-control-center:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Ricardo Biloti (biloti) wrote :

I have been experiencing the same. Is there any workaround meanwhile?

Just to mention, I am using Debian 10.

Revision history for this message
In , Andre Klapper (a9016009) wrote :

GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new bug report at
  https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/

Thank you for your understanding and your help.

Changed in gnome-control-center:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.