# Rancher agent failed after reboot system

**URL:** <https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999>\
**Category:** Rancher 1.x\
**Created:** [December 22, 2016, 5:03pm UTC](https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999 "2016-12-22T17:03:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.gottie](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@m.gottie](https://forums.suse.com/u/m.gottie)\
**Post date:** [December 22, 2016, 5:03pm UTC](https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999/1 "2016-12-22T17:03:00Z")

</div>

Hi !

Sorry for my english.  
I expose my problem :

1. I’ve installed successfuly rancher server with private registry.
2. I’ve installed an agent rancher on my server (CentOS 7) and i’ve deployed two custom containers

At this moment, that’s work perfectly but, if i restart the service docker or if i reboot the system (my server), the container “network-services-network-manager-1” won’t start (always restart)

Logs of the container :

```
Code: System error

Message: mkdir /var/lib/docker/devicemapper/mnt/f68ad5c2af2526b26c771f2188c6485f143d99b164416d2f7aa423ee765076bb/rootfs/run/secrets: read-only file system

Frames:
---
0: setupRootfs
Package: github.com/opencontainers/runc/libcontainer
File: rootfs_linux.go@41
---
1: Init
Package: github.com/opencontainers/runc/libcontainer.(*linuxStandardInit)
File: standard_init_linux.go@59
---
2: StartInitialization
Package: github.com/opencontainers/runc/libcontainer.(*LinuxFactory)
File: factory_linux.go@247
---
3: initializer
Package: github.com/docker/docker/daemon/execdriver/native
File: init.go@35
---
4: Init
Package: github.com/docker/docker/pkg/reexec
File: reexec.go@26
---
5: main
Package: main
File: docker.go@20
---
6: main
Package: runtime
File: proc.go@188
---
7: goexit
Package: runtime
File: asm_amd64.s@1998
Timestamp: 2016-12-22 17:45:51.250886808 +0100 CET
Code: System error

Message: mkdir /var/lib/docker/devicemapper/mnt/f68ad5c2af2526b26c771f2188c6485f143d99b164416d2f7aa423ee765076bb/rootfs/run/secrets: read-only file system

```

Thanks for advance.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [December 27, 2016, 5:13pm UTC](https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999/2 "2016-12-27T17:13:55Z")

</div>

Yes, there was an issue with restarting agents. This was addressed in v1.2.2.

Please try and upgrade and let me know if you still hit the issue.

---

<div class="post-metadata">

**Author:** ![m.gottie](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@m.gottie](https://forums.suse.com/u/m.gottie)\
**Post date:** [January 11, 2017, 4:02pm UTC](https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999/3 "2017-01-11T16:02:40Z")

</div>

Hi,

I’ved resolve my problem by following this instruction :

> **[Choose Docker CE or Docker EE on CentOS](https://docs.docker.com/engine/installation/linux/centos/)**
>
> The instructions for installing Docker on CentOS depend on whether you are using Docker Enterprise Edition (Docker EE) or Docker Community Edition (Docker CE). Learn more about Docker EE and...

Uninstall ur docker service and install this with use my previous link.

Best regards

---

<div class="post-metadata">

**Author:** ![occasl](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/occasl/32/2168_2.png) [@occasl](https://forums.suse.com/u/occasl)\
**Post date:** [February 22, 2017, 6:01pm UTC](https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999/4 "2017-02-22T18:01:59Z")

</div>

I ran into this problem too. Are you suggesting to switch it on the docker run command?

sudo docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher **rancher/agent:v1.2.0** [https://rancher.myco.com/v1/scripts/79D301FABD1BEFD7AA9C:1483142400000:NzraAMCPF0fWq4ZTpeo3z](https://rancher.myco.com/v1/scripts/79D301FABD1BEFD7AA9C:1483142400000:NzraAMCPF0fWq4ZTpeo3z)

---

<div class="post-metadata">

**Author:** ![Giles\_Gamon](https://avatars.discourse-cdn.com/v4/letter/g/e68b1a/32.png) [@Giles\_Gamon](https://forums.suse.com/u/Giles_Gamon)\
**Post date:** [March 16, 2017, 3:45pm UTC](https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999/5 "2017-03-16T15:45:48Z")

</div>

Am I being dim? I assume you’re referring to rancher/agent v1.2.2 but I can not find this. Please advise.

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [March 16, 2017, 5:03pm UTC](https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999/6 "2017-03-16T17:03:00Z")

</div>

Denise was referring to Rancher 1.2.2, the agent has it’s own unrelated (but in this case close) version number.

---

<div class="post-metadata">

**Author:** ![Conan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/conan/32/3700_2.png) [@Conan](https://forums.suse.com/u/Conan)\
**Post date:** [April 24, 2017, 12:02pm UTC](https://forums.suse.com/t/rancher-agent-failed-after-reboot-system/4999/7 "2017-04-24T12:02:19Z")

</div>

Is this problem fixed in 1.2.2?  
I ran into the same problem with Redhat 7.3 devicemapper storage and docker 1.12.6
