[lxc-users] lxc-copy doesn't work under root

Serge E. Hallyn serge at hallyn.com
Thu Dec 7 21:29:37 UTC 2017


Quoting Yuri Kanivetsky (yuri.kanivetsky at gmail.com):
> Hi,
> 
> Consider this:
> 
> $ su -
> Password:
> 
> # lxc-destroy -n c2 && lxc-copy -n c1 -N c2; n
> Destroyed container c2
> no server running on /tmp/tmux-0/default
> Failed to open connection to "session" message bus: Using X11 for

I don't think this has anything to do with lxc.  It's either 'n',
or it's something in your shell config?

Perhaps try this under strace to see what is trying to talk to tmux.

> dbus-daemon autolaunch was disabled at compile time, set your
> DBUS_SESSION_BUS_ADDRESS instead
> E: dbus-send failed.
> 
> # export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus   #
> from the non-root user
> # lxc-destroy -n c2 && lxc-copy -n c1 -N c2; n
> Destroyed container c2
> no server running on /tmp/tmux-0/default
> Failed to open connection to "session" message bus: Did not receive a
> reply. Possible causes include: the remote application did not send a
> reply, the message bus security policy blocked the reply, the reply
> timeout expired, or the network connection was broken.
> E: dbus-send failed.
> 
> # export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
> # lxc-destroy -n c2 && lxc-copy -n c1 -N c2; n
> Destroyed container c2
> no server running on /tmp/tmux-0/default
> Failed to open connection to "session" message bus: Failed to connect
> to socket /run/user/0/bus: No such file or directory
> E: dbus-send failed.
> 
> # exit
> $ sudo lxc-destroy -n c2 && sudo lxc-copy -n c1 -N c2; n
> [sudo] password for yuri:
> Destroyed container c2
> 
> Can you explain what's the proper way to use it please? What does it
> need dbus for?
> 
> Regards,
> Yuri
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list