<div dir="ltr">following is the debug log:<div><div><br></div><div>MovePid: Client fd is: 6 (pid=10783, uid=111, gid=117)</div><div>cgmanager: Invalid path /run/cgmanager/fs/hugetlb/user/1001.user/83.session/go</div><div>cgmanager:do_move_pid_main: Invalid path /run/cgmanager/fs/hugetlb/user/1001.user/83.session/go</div><div>Disconnected from private client</div></div><div><br></div><div>1001 is wrong user (my login user), not `go` user's UID, which is 100. /run/cgmanager/fs/hugetlb/ directory is empty,</div><div><br></div><div> <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 5, 2015 at 8:15 AM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Quoting Ranjib Dey (<a href="mailto:dey.ranjib@gmail.com">dey.ranjib@gmail.com</a>):<br>
> I was able to resolve the lock issue, today. It seems like the environment<br>
> variable XDG_RUNTIME_DIR holds the value of that directory per-user. while<br>
<br>
</span>Oh, nm my last response :)<br>
<div><div class="h5"><br>
> using sudo it didn't change the directory, and still set to the login user.<br>
> I found the correct directory using `ls -alh /run/user/*` (the one thats<br>
> owned by the lxc user), and then manually setting the XDG_RUNTIME_DIR to<br>
> that path. Afterwards lxc-create works.<br>
> But now im getting a different error due to dbus, it looks like cgmanager<br>
> call to create cgroup is failing<br>
><br>
><br>
>   lxc-start 1420309721.946 ERROR    lxc_cgmanager - call to<br>
> cgmanager_create_sync failed: invalid request<br>
>   lxc-start 1420309721.946 ERROR    lxc_cgmanager - Failed to create<br>
> hugetlb:testx<br>
>   lxc-start 1420309721.946 ERROR    lxc_cgmanager - Error creating cgroup<br>
> hugetlb:testx<br>
><br>
> I have tried the cgm commands, as a different user since the user which<br>
> needs to run lxc dont have sudo access. Following are the output<br>
> -- ranjib@agent01:~ $ sudo cgm create all go<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
>    int32 1<br>
><br>
> -- ranjib@agent01:~ $ sudo cgm chown all go 111 117<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
> method return sender=(null sender) -> dest=(null destination) reply_serial=1<br>
<br>
</div></div>Once you've done this it's easier to just do cgm movepid as<br>
the 'go' user from the shell, i.e.<br>
<br>
cgm movepid all go $$<br>
<span class=""><br>
> -- ranjib@agent01:~ $ sudo cgm movepid all go 18764<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
> Error org.freedesktop.DBus.Error.InvalidArgs: invalid request<br>
><br>
><br>
> Clearly the last one is failing, but im not sure why. I have installed<br>
> libpam-systemd and reboot the server, without any effect. Also i dont know<br>
> if the previous two cgm calls were successful, but their exit code was 0.<br>
><br>
><br>
> any help?<br>
<br>
</span>Edit /etc/default/cgmanager and set 'cgmanager_opts="--debug"' there.  Try<br>
again, and then look at /var/log/upstart/cgmanager.log for info on what<br>
happened.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div><br></div>