# خطأ أثناء إعادة البناء: لا توجد عمليات فرعية (Errno::ECHILD) من /pups/lib/pups/exec\_command.rb:88:in \`block in spawn'

**URL:** <https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263>\
**Category:** Self-hosting\
**Created:** [19 يونيو 2018، 11:37م UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263 "2018-06-19T23:37:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [19 يونيو 2018، 11:37م UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263/1 "2018-06-19T23:37:50Z")

</div>

مرحبًا. أردت تثبيت إضافة (مستكشف البيانات)، لذا أضفت سطر git في ملف app.yml الخاص بي.  
فشل إعادة البناء:

```plaintext
2018-06-19 23:24:37.160 UTC [74] LOG: shutting down
186:M 19 Jun 23:24:37.218 # User requested shutdown...
186:M 19 Jun 23:24:37.218 * Saving the final RDB snapshot before exiting.
2018-06-19 23:24:37.275 UTC [70] LOG: database system is shut down
#<Thread:0x0000559a6007cd08@/pups/lib/pups/exec_command.rb:87 run> terminated wi
th exception (report_on_exception is true):
/pups/lib/pups/exec_command.rb:88:in `wait': No child processes (Errno::ECHILD)
        from /pups/lib/pups/exec_command.rb:88:in `block in spawn'
186:M 19 Jun 23:24:37.348 * DB saved on disk
186:M 19 Jun 23:24:37.348 # Redis is now ready to exit, bye bye...
#<Thread:0x0000559a6005d548@/pups/lib/pups/exec_command.rb:87 run> terminated wi
th exception (report_on_exception is true):
/pups/lib/pups/exec_command.rb:88:in `wait': No child processes (Errno::ECHILD)
        from /pups/lib/pups/exec_command.rb:88:in `block in spawn'

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:m igrate' failed with return #<Process::Status: pid 554 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su d iscourse -c 'bundle install --deployment --verbose --without test --without deve lopment --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "
su discourse -c 'bundle exec rake assets:precompile'"]}
8a57eae21b61234dab586473e78d042c801df5899b438ab32cc1425eaf5ac9c0
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, 
there may be more than one

```

ظننت أن المشكلة قد تكون بسبب الإضافة، لذا أزلتها من ملف app.yml الخاص بي وأعدت البناء مرة أخرى، لكن ظهرت نفس الخطأ.  
يعمل موقع Discourse الخاص بي حاليًا، لكنني لا أستطيع إعادة البناء، وقد يتسبب ذلك في مشاكل مستقبلية، لذا أحتاج إلى حل هذه المشكلة.

هل لديك أي فكرة عن كيفية إصلاح ذلك؟

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [20 يونيو 2018، 12:01ص UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263/2 "2018-06-20T00:01:14Z")

</div>

This is a known issue in our new image cc @falco @sam there is an error being reported as part of the rebuild, every time.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [20 يونيو 2018، 12:16ص UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263/3 "2018-06-20T00:16:52Z")

</div>

I see what this is:

> **[Ruby 2.5 adds Thread.report\_on\_exception by default](https://www.bigbinary.com/blog/ruby-2-5-enables-thread-report_on_exception-by-default)**
>
> Ruby 2.5 series | Ruby 2.5 enables Thread.report\_on\_exception by default and we get more info when threads die

Will sort out pups to allow for this.

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [20 يونيو 2018، 12:18ص UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263/4 "2018-06-20T00:18:43Z")

</div>

Okay so nothing to do on my side, just waiting for an update I guess 🙂

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [20 يونيو 2018، 12:32ص UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263/5 "2018-06-20T00:32:36Z")

</div>

Oh the particular error you are seeing in the logs (which I just fixed) is unrelated.

`bundle exec rake assets:precompile` is failing for you which is usually due to plugins. I would try rebuilding again and triple check there are no plugins involved.

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [20 يونيو 2018، 10:29ص UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263/6 "2018-06-20T10:29:41Z")

</div>

Yes it was because of a plugin. Weird, it didn’t cause this issue before.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [20 يونيو 2018، 10:50م UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263/7 "2018-06-20T22:50:29Z")

</div>


