[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
This escalation can be closed. A work-around was provided, which satisfies the customer (thanks Torsten!). Vino in precise do not exhibit this bug. We can leave the public bug open, but I will close this one as "Won't Fix". ** Changed in: vino (Ubuntu) Status: In Progress => Won't Fix ** Changed in: vino (Ubuntu) Status: Won't Fix => Confirmed ** Changed in: vino (Ubuntu Lucid) Status: Triaged => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set To manage notifications about this bug go to: https://bugs.launchpad.net/vino/+bug/707705/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
I did some more testing on this problem, and it seems that even changing the port will not work with a network_interface specified. E.g. without network_interface set, and alternate_port set to 5995, I can connect to the server via 'vncviewer :5995'. After setting the network_interface to lo and using ssh tunneling, the connection attempt fails: vncviewer -via ubuntu@ :5995 ubuntu@'s password: channel 3: open failed: connect failed: Connection refused vncviewer: VNC server closed connection However, on there is definitely a process listening on 5995: tcp0 0 127.0.0.1:5995 0.0.0.0:* LISTEN 1115/vino-server tcp6 0 0 ::1:5995:::*LISTEN 1115/vino-server As an experiment, I connected to via ssh -Y for X forwarding, and run vncviewer, which worked: $ vncviewer localhost:5995 Connected to RFB server, using protocol version 3.7 No authentication needed Desktop name "ubuntu@lucid" VNC server default format: 24 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Using default colormap which is TrueColor. Pixel format: 32 bits per pixel. Least significant byte first in each pixel. True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0 Same machine: preferring raw encoding I then tried to use port forwarding with ssh, 'ssh -L 5995::5995 ubuntu@', but this failed with: $ vncviewer localhost:5995 vncviewer: VNC server closed connection With that being unsuccessful, I tried a ssh/ppp tunnel, as a sort of VPN replacement: $ sudo /usr/sbin/pppd updetach noauth silent nodeflate pty "/usr/bin/ssh root@ /usr/sbin/pppd nodetach notty noauth" ipparam vpn 10.0.0.1:10.0.0.254 Note that the root user needs to be enabled on for the above to work. I could not figure out how to use sudo on to get a pppd running. With this crutch, I could connect to both vino servers at different ports: vncviewer 10.0.0.254:5995 vncviewer 10.0.0.254:5999 However, I could not get it running without the alternate_port specification. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set To manage notifications about this bug go to: https://bugs.launchpad.net/vino/+bug/707705/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
** Changed in: vino (Ubuntu) Assignee: Rodrigo Moya (rodrigo-moya) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set To manage notifications about this bug go to: https://bugs.launchpad.net/vino/+bug/707705/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
For now, I've found this patch (http://bazaar.launchpad.net/~ubuntu- desktop/vino/ubuntu/view/head:/debian/patches/01_ipv6-fix.patch) in our package breaks vino for me, it makes it not possible to connect, either using "lo" or not as the network interface -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
** Changed in: vino Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
Ok, after some more debugging and talking with upstream, this bug seems to be related to some other problems there are in vino related to sockets handling, which as of today, don't seem to be too easy to fix. I'll keep trying to get a fix with upstream though -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
I'm starting to think this is a permissions problem, but need more debugging -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
** Changed in: vino (Ubuntu) Status: Triaged => In Progress ** Changed in: vino (Ubuntu) Assignee: (unassigned) => Rodrigo Moya (rodrigo-moya) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
Thanks Etienne, let's see what upstream says about this one ** Changed in: vino (Ubuntu) Status: New => Triaged ** Changed in: vino (Ubuntu Lucid) Importance: Undecided => Low ** Changed in: vino (Ubuntu Lucid) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
** Changed in: vino (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
** Also affects: vino (Ubuntu Lucid) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
** Changed in: vino Status: Unknown => New ** Changed in: vino Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
We've also go the same bug on Debian Squeeze, using vino 2.28.2-2., so it is not Ubuntu-specific. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
Tested on natty, confirmed it still has the bug (vino 2.32.1-0ubuntu1). ** Bug watch added: GNOME Bug Tracker #644924 https://bugzilla.gnome.org/show_bug.cgi?id=644924 ** Also affects: vino via https://bugzilla.gnome.org/show_bug.cgi?id=644924 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
I noticed that I forgot to attach the server output described above. Here it is. ** Description changed: Binary package hint: vino On lucid, when you set the /desktop/gnome/remote_access/network_interfaces gconf key to "lo", Vino - will accept VNC connection only for the first desktop session. If you + will accept VNC connections only for the first desktop session. If you switch user, opening a new session as a different one, it is impossible to connect to that session. It works as expected when the network_interfaces gconf key is not set. = Step to reproduce = 1. On the target machine, open a session as one user, then switch to a second user. - 2. From another machine, witness that you can cannot to both session by - VNC: + 2. From another machine, witness that you can cannot connect to both + session by VNC: - $ vncviewer target:0 # VNC client screen remain black (session is locked), but connection is possible - $ vncviewer target:1 # Connection ok + $ vncviewer target:0 # VNC client screen remain black (session is locked), but connection is possible + $ vncviewer target:1 # Connection ok 3. On the target machine, set the - /desktop/gnome/remote_access/network_interface gconf to default to "lo". - I think you need to reboot the machine at that point, as it seems that - Vino continue to accept connection on non-lo interfaces (but that is not - german to this bug). + /desktop/gnome/remote_access/network_interface gconf key to default to + "lo". I think you need to reboot the machine at that point, as it seems + that Vino continue to accept connection on non-lo interfaces (but that + is not german to this bug). 4. Try to connect remotely using ssh tunneling: - $ vncviewer -via target localhost:0 # VNC client screen remain black (session is locked), but connection otherwise work - $ vncviewer -via target localhost:1 # Connection is refused + $ vncviewer -via target localhost:0 # VNC client screen remain black (session is locked), but connection otherwise work + $ vncviewer -via target localhost:1 # Connection is refused = Expected behavior = Vino should allow incoming connection to the current foreground session, whether directly or through an ssh tunnel when network_interfaces is set to "lo". - vino package is version 2.28.2-0ubuntu2. ** Attachment added: "vino-server.output" https://bugs.launchpad.net/ubuntu/+source/vino/+bug/707705/+attachment/1912026/+files/vino-server.output -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 707705] Re: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set
I did the following test: 1. Log in as user1. 2. Switch session to user2. 3. Check with "netstat -alp --inet". Notice that only the vino-server of user1 is listening, on port 5900. 4. In user2's session, kill the vino-server process. 5. Manually run /usr/lib/vino/vino-server on the console. On stdout, we can see that it tries to bind to port 5900 (see attached output). I guess that, in the above example, user2's vino-server should be trying to bind to port 5901. Correct? ** Attachment added: "vino-server.output" https://bugs.launchpad.net/ubuntu/+source/vino/+bug/707705/+attachment/1828226/+files/vino-server.output -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/707705 Title: Vino not accepting incoming connection to more than a single desktop session when the "network_interfaces=lo" option is set -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs