[Bug 1767469] Re: Failed to connect to local LXD

2018-05-22 Thread Stéphane Graber
You don't, if run through sudo, you don't need to be in the lxd group. If it failed for you with sudo, I'm guessing it wasn't a permission denied error but more likely it was just that LXD wasn't done starting up yet (socket didn't exist). -- You received this bug notification because you are a

[Bug 1767469] Re: Failed to connect to local LXD

2018-05-21 Thread Robin Winslow
I found it rather surprising that you need to be in the LXD group to run this initial configuration command - with sudo. Is there a good reason why it needs to be the case? Could we at least add some messaging prompting the user to add themselves to the lxd group? -- You received this bug notifi

[Bug 1767469] Re: Failed to connect to local LXD

2018-04-27 Thread Number7
Thank you for your help. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1767469 Title: Failed to connect to local LXD To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/

[Bug 1767469] Re: Failed to connect to local LXD

2018-04-27 Thread Number7
Still does not work. You were correct about the user not being in the lxd group. Same error as before. And running the same command as root produces the same error. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchp

[Bug 1767469] Re: Failed to connect to local LXD

2018-04-27 Thread Number7
Nevermind, missed your comment that I had to rerun the newgrp command. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1767469 Title: Failed to connect to local LXD To manage notifications about this

[Bug 1767469] Re: Failed to connect to local LXD

2018-04-27 Thread Stéphane Graber
** Changed in: lxd (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1767469 Title: Failed to connect to local LXD To manage notifications about this bug go to: h

[Bug 1767469] Re: Failed to connect to local LXD

2018-04-27 Thread Stéphane Graber
Your user isn't in the LXD group. You can add it with "adduser USERNAME lxd", after which the newgrp command will work fine. To have it apply to all your user's shell, logout and back in or restart the system. If that's too much trouble for now, you can just run the LXD commands as the root user t