# Docker: نسخ بيانات التمهيد إلى الأنبوب تسبب خطأ "كتابة init-p: أنبوب مكسور"

**URL:** <https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947>\
**Category:** Self-hosting\
**Created:** [12 فبراير 2019، 12:35م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947 "2019-02-12T12:35:58Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [12 فبراير 2019، 12:35م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/1 "2019-02-12T12:35:58Z")

</div>

مرحباً،

أنا حالياً خارج البلاد، وبشكل غبي، أردت تحديث خادم Discourse الخاص بي — وعادة ما يتم ذلك دون مشاكل.

بعد التحديث، لم يعد المنتدى يعمل. جربت أمر `git pull` وإعادة بناء المُشغّل (launcher rebuild)، لكن هذا الخطأ لا يزال يظهر:

> /usr/bin/docker: Error response from daemon: OCI runtime create failed: container\_linux.go:348: starting container process caused “process\_linux.go:297: copying bootstrap data to pipe caused "write init-p: broken pipe"”: unknown.  
> تثبيت Docker لديك لا يعمل بشكل صحيح
> 
> انظر: [Troubleshoot docker installation issues](https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam)

لم أجد الكثير من خلال البحث في المنتدى — سوى عبارة “تثبيت Docker لديك لا يعمل”. لم أقم بتغيير أي شيء، والجهاز نفسه مخصص لـ Discourse. حاولت إعادة تثبيت Docker، لكن لا شيء تغير…

أي مساعدة لاستعادة عمل المنتدى ستكون موضع تقدير كبير 🙂

النظام يعمل بنظام Ubuntu 14.04.5 LTS على Digital Ocean (لم أكن متأكداً مما إذا كان آمناً الترقية إلى 16.04)…

من الخيط الذي قمت بتشغيله:

```
root@forum:~# docker run --rm -i -a stdin -a stdout ubuntu echo 1
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:297: copying bootstrap data to pipe caused \"write init-p: broken pipe\"": unknown.

```

إصدار Docker:

```
# docker -v
Docker version 18.06.2-ce, build 6d37f41

```

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [12 فبراير 2019، 12:48م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/2 "2019-02-12T12:48:58Z")

</div>

Did you try a reboot on the server?

---

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [12 فبراير 2019، 12:49م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/3 "2019-02-12T12:49:12Z")

</div>

Several, to no avail 😕

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [12 فبراير 2019، 12:50م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/4 "2019-02-12T12:50:33Z")

</div>

If a simple

> [@daath](#):
>
> root@forum:~# docker run --rm -i -a stdin -a stdout ubuntu echo 1

fails, docker is completely broken in your server. Can you share the output of `df -h` ?

---

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [12 فبراير 2019، 12:51م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/5 "2019-02-12T12:51:15Z")

</div>

Sure. There should be enough space:

```
root@forum:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 799M 360K 799M 1% /run
/dev/disk/by-label/DOROOT 158G 117G 34G 78% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 0 3.9G 0% /run/shm
none 100M 0 100M 0% /run/user

```

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [12 فبراير 2019، 12:57م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/6 "2019-02-12T12:57:37Z")

</div>

Is the docker service running? `service docker start`

---

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [12 فبراير 2019، 12:58م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/7 "2019-02-12T12:58:57Z")

</div>

Yep, running:

```
root@forum:/var/discourse# service docker start
start: Job is already running: docker
root@forum:/var/discourse# ps aux | grep docker
root 1687 0.2 0.9 881840 76188 ? Ssl 13:26 0:05 /usr/bin/dockerd --raw-logs
root 1701 0.2 0.4 564568 35080 ? Ssl 13:26 0:05 docker-containerd --config /var/run/docker/containerd/containerd.toml

```

---

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [12 فبراير 2019، 2:45م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/8 "2019-02-12T14:45:38Z")

</div>

لا أستطيع فهم الأمر. هل يمكنني إنشاء خادم جديد (باستخدام Ubuntu 18.04) وتثبيت Docker فقط ثم نسخ /var/discourse؟

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [12 فبراير 2019، 3:15م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/9 "2019-02-12T15:15:05Z")

</div>

Yes. That should work.

---

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [12 فبراير 2019، 3:16م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/10 "2019-02-12T15:16:13Z")

</div>

I hope so. Currently copying over a crapton of data 😜 It’ll take a while 😕

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [12 فبراير 2019، 3:47م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/11 "2019-02-12T15:47:13Z")

</div>

If you’d be satisfied with the latest backup you could copy just that and the containers directory.

---

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [12 فبراير 2019، 3:49م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/12 "2019-02-12T15:49:50Z")

</div>

I need the latest of everything … It looks like it’s working - Waiting for DNS to propagate fully 🙂

---

<div class="post-metadata">

**Author:** ![aye.javier](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@aye.javier](https://meta.discourse.org/u/aye.javier)\
**Post date:** [12 فبراير 2019، 10:56م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/13 "2019-02-12T22:56:23Z")

</div>

The problem is the version of the kernel and docker. It’s a security updete from docker

> **[Docker Engine version 29 release notes](https://docs.docker.com/engine/release-notes/29/)**
>
> Learn about the new features, bug fixes, and breaking changes for Docker Engine

[https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-5736](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-5736)

---

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [13 فبراير 2019، 12:07ص UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/14 "2019-02-13T00:07:26Z")

</div>

Man, I wish I had seen that… I spent 5 hours debugging, searching, then creating a new droplet and copying everything over and waiting for DNS to propagate 😜 Oh, well, now I have a 18.04 droplet running the forum…

---

<div class="post-metadata">

**Author:** ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)\
**Post date:** [7 مايو 2021، 1:28م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/15 "2021-05-07T13:28:08Z")

</div>

تم تقسيم 29 منشورًا إلى موضوع جديد: [أدى تشغيل docker 18.09.2 (تحديث docker) إلى تعطيل المنتدى الخاص بي، وهو الآن لا يعمل](https://meta.discourse.org/t/running-docker-18-09-2-docker-update-broke-my-forum-and-it-is-not-loading/189639)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [7 مايو 2021، 1:26م UTC](https://meta.discourse.org/t/docker-copying-bootstrap-data-to-pipe-caused-write-init-p-broken-pipe/108947/44 "2021-05-07T13:26:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
