[ 
https://issues.apache.org/jira/browse/MESOS-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14388649#comment-14388649
 ] 

Konrad Scherer commented on MESOS-1837:
---------------------------------------

I ran into this issue as well with Mesos 0.22 and Docker 1.5. I am doing builds 
inside the docker containers and short tasks were fine, but longer builds were 
triggering this error.

I was "upgrading" from a custom docker executor to the standard mesos docker 
containerizer and I noticed that my scheduler was setting the Docker memory 
limit to 32MB (actually 0.0, but mesos has 32MB as the minimum). My custom 
docker executor interpreted the memory setting of 0.0 as unlimited (no memory 
limit set), but the docker containerizer does not. After setting the memory 
limit to a reasonable amount for the build, the "failed to determine cgroup" 
error was not triggered and the task transitioned to Finished state properly.

I hope that helps create a reproducer.

> failed to determine cgroup for the 'cpu' subsystem
> --------------------------------------------------
>
>                 Key: MESOS-1837
>                 URL: https://issues.apache.org/jira/browse/MESOS-1837
>             Project: Mesos
>          Issue Type: Bug
>          Components: docker
>    Affects Versions: 0.20.1
>         Environment: Ubuntu 14.04
>            Reporter: Chris Fortier
>            Assignee: Timothy Chen
>
> Attempting to launch Docker container with Marathon. Container is launched 
> then fails. 
> A search of /var/log/syslog reveals:
> Sep 27 03:01:43 vagrant-ubuntu-trusty-64 mesos-slave[1409]: E0927 
> 03:01:43.546957  1463 slave.cpp:2205] Failed to update resources for 
> container 8c2429d9-f090-4443-8108-0206ca37f3fd of executor 
> hello-world.970dbe74-45f2-11e4-8b1d-56847afe9799 running task 
> hello-world.970dbe74-45f2-11e4-8b1d-56847afe9799 on status update for 
> terminal task, destroying container: Failed to determine cgroup for the 'cpu' 
> subsystem: Failed to read /proc/9792/cgroup: Failed to open file 
> '/proc/9792/cgroup': No such file or directory



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to