<div dir="ltr">Problem was solved<div>See <a href="https://bugs.openvz.org/browse/OVZ-6304">https://bugs.openvz.org/browse/OVZ-6304</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-19 19:45 GMT+08:00 Alkaid <span dir="ltr">&lt;<a href="mailto:zgf574564920@gmail.com" target="_blank">zgf574564920@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well, I tried to debug.<div>I copy created ploop template to  CentOS7, create a container, then gdb vzctl start 101</div><div>With gdb, I found error occured in libvzctl, part of the stack is bellow<br></div><div><div><br></div><div><div>#0  write_data (path=path@entry=0x7fffffff9b90 &quot;/sys/fs/cgroup/ve/101/ve.state&quot;, data=data@entry=0x7ffff7066cfc &quot;START&quot;) at cgroup.c:161</div><div>#1  0x00007ffff7029376 in cg_set_param (ctid=ctid@entry=0x621e70 &quot;101&quot;, subsys=subsys@entry=0x7ffff706aa6d &quot;ve&quot;, name=name@entry=0x7ffff7066d02 &quot;ve.s</div><div>tate&quot;, data=data@entry=0x7ffff7066cfc &quot;START&quot;) at cgroup.c:235</div><div>#2  0x00007ffff703ba6d in start_container (h=0x621e70) at env_nsops.c:199</div><div>#3  real_ns_env_create (arg=0x7fffffffad40) at env_nsops.c:215</div><div>#4  0x00007ffff6d4f1ad in clone () from /lib64/libc.so.6</div></div><div><br></div><div>this thread is cloned from vzctl</div><div><br></div><div>From the source code, I can find in lib/cgroup.c     function write_data    line 161</div><div>        here is &quot;fd = open(path, O_WRONLY);&quot;</div><div><br></div><div>So what on earth makes this &quot;open&quot; Permission Denied, what should I debug next ?</div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-08-19 3:00 GMT+08:00  <span dir="ltr">&lt;<a href="mailto:users-request@openvz.org" target="_blank">users-request@openvz.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Users mailing list submissions to<br>
        <a href="mailto:users@openvz.org" target="_blank">users@openvz.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:users-request@openvz.org" target="_blank">users-request@openvz.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:users-owner@openvz.org" target="_blank">users-owner@openvz.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Users digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Can&#39;t open /sys/fs/cgroup/ve/$UUID/ve.state for writing:<br>
      Permission denied (Alkaid)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 18 Aug 2015 16:53:12 +0800<br>
From: Alkaid &lt;<a href="mailto:zgf574564920@gmail.com" target="_blank">zgf574564920@gmail.com</a>&gt;<br>
To: <a href="mailto:users@openvz.org" target="_blank">users@openvz.org</a><br>
Subject: [Users] Can&#39;t open /sys/fs/cgroup/ve/$UUID/ve.state for<br>
        writing:        Permission denied<br>
Message-ID:<br>
        &lt;<a href="mailto:CAJFQjcM8u-5F23EhhC3OkqHp_DgOT%2BLH6Xa-D0qfmYiet9jhKg@mail.gmail.com" target="_blank">CAJFQjcM8u-5F23EhhC3OkqHp_DgOT+LH6Xa-D0qfmYiet9jhKg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
I am using Centos7+vzkernel+...<br>
When creating ostemplate, it always creates an temporary container to<br>
download and install packages. But vzctl can&#39;t open ve.state with O_WRONLY,<br>
result is EACCES ( Permission denied).<br>
cmd: vzpkg create cache centos-6-x86_64, full log is in the attachment<br>
<br>
I found an issue on <a href="http://bugs.openvz.org" rel="noreferrer" target="_blank">bugs.openvz.org</a> (<a href="https://bugs.openvz.org/browse/OVZ-6304" rel="noreferrer" target="_blank">https://bugs.openvz.org/browse/OVZ-6304</a>),<br>
I wonder why it was treated as &quot;Feature Request&quot; and a &quot;Userspace&quot; problem.<br>
<br>
On the same time, everything works fine in the cloudlinux, they have nearly<br>
the same environment<br>
    kernel 3.10.0-123.1.2.vz7.5.29<br>
    vzctl v.7.0.60-1.vz7<br>
    libvzctl-7.0.89-1.1.vz7.x86_64<br>
    vztt-7.0.22-1.vz7.x86_64<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.html</a>&gt;<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: stdout<br>
Type: application/octet-stream<br>
Size: 2468 bytes<br>
Desc: not available<br>
URL: &lt;<a href="http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.obj" rel="noreferrer" target="_blank">http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.obj</a>&gt;<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
<br>
<br>
End of Users Digest, Vol 118, Issue 15<br>
**************************************<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>