# فشل في تحديث تثبيت أقدم

**URL:** https://meta.discourse.org/t/failing-to-update-an-older-installation/280403
**Category:** Self-hosting
**Created:** [28 سبتمبر 2023، 9:42ص UTC](https://meta.discourse.org/t/failing-to-update-an-older-installation/280403 "2023-09-28T09:42:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![helmi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helmi/32/114772_2.png) [@helmi](https://meta.discourse.org/u/helmi)
#### Post date: [28 سبتمبر 2023، 9:42ص UTC](https://meta.discourse.org/t/failing-to-update-an-older-installation/280403/1 "2023-09-28T09:42:30Z")

</div>

لقد حاولت للتو تحديث تثبيت قديم (الإصدار 2.x) لكنني أفشل مرارًا وتكرارًا.

إليك الخطأ الذي يظهر لي بعد تنفيذ الأمر `./launcher rebuild app` من المسار `/var/discourse`

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development' failed with return #<Process::Status: pid 342 exit 5>
موقع الخطأ: /pups/lib/pups/exec_command.rb:112:in `spawn'
فشلت عملية التنفيذ مع المعاملات {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'"]}
a45e890ca3c9eacab4eb37560638252189690d4fa1a6fea78e6b33cf6f192236

```

لا أعرف ما الذي يحدث - من مخرجات وحدة التحكم قبل الفشل، لا يمكنني قراءة أي شيء مفيد. لاحظت فقط أن Discourse pups في حالة HEAD منفصلة (detached HEAD) أثناء التحقق، لكنني لست متأكداً مما إذا كانت هذه مشكلة…

````plaintext
من https://github.com/discourse/pups
   17f04ec..e0ff889 master -> origin/master
 * [فرع جديد] main -> origin/main
 * [وسم جديد] v1.1.1 -> v1.1.1
 * [وسم جديد] v1.1.0 -> v1.1.0
تحديث 17f04ec..e0ff889
تقديم سريع (Fast-forward)
 .github/workflows/ci.yml | 29 ++++++
 .github/workflows/lint.yml | 27 +++++
 .rubocop.yml | 3 +
 Gemfile | 2 +
 Guardfile | 4 +-
 README.md | 21 ++++
 Rakefile | 14 +--
 bin/pups | 8 +-
 lib/pups.rb | 32 ++++--
 lib/pups/cli.rb | 92 ++++++++++-------
 lib/pups/command.rb | 25 +++--
 lib/pups/config.rb | 240 +++++++++++++++++++++++--------------------
 lib/pups/docker.rb | 69 +++++++++++++
 lib/pups/exec_command.rb | 182 ++++++++++++++++----------------
 lib/pups/file_command.rb | 60 +++++------
 lib/pups/merge_command.rb | 94 ++++++++---------
 lib/pups/replace_command.rb | 70 +++++++------
 lib/pups/runit.rb | 47 +++++----
 lib/pups/version.rb | 4 +-
 pups.gemspec | 37 ++++---
 test/cli_test.rb | 102 +++++++++++++++---
 test/config_test.rb | 215 ++++++++++++++++++++++++++++----------
 test/docker_test.rb | 157 ++++++++++++++++++++++++++++
 test/exec_command_test.rb | 62 ++++++-----
 test/file_command_test.rb | 17 ++-
 test/merge_command_test.rb | 64 ++++++------
 test/replace_command_test.rb | 86 ++++++++--------
 test/test_helper.rb | 2 +
 28 ملفاً تم تغييره، 1158 إدراجاً(+)، 607 حذفاً(-)
 إنشاء وضع 100644 .github/workflows/ci.yml
 إنشاء وضع 100644 .github/workflows/lint.yml
 إنشاء وضع 100644 .rubocop.yml
 إنشاء وضع 100644 lib/pups/docker.rb
 إنشاء وضع 100644 test/docker_test.rb
ملاحظة: التحقق من 'v1.0.3'.

أنت في حالة 'HEAD منفصل' (detached HEAD). يمكنك التصفح، وإجراء تغييرات تجريبية والتثبيت عليها، ويمكنك التخلي عن أي تثبيتات تقوم بها في هذه الحالة دون التأثير على أي فروع عن طريق إجراء عملية تحقق أخرى.

إذا كنت ترغب في إنشاء فرع جديد للاحتفاظ بالتثبيتات التي تقوم بإنشائها، يمكنك
ذلك (الآن أو لاحقاً) باستخدام -b مع أمر التحقق مرة أخرى. مثال:

  git checkout -b <اسم-الفرع-الجديد>

HEAD حدث خطأ في تحديثي

```ruby
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })

````

يرجى مساعدتي في إصلاحه.taller.rb:233:in `block in ensure_specs_are_compatible!' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:165:in `each’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec\_set.rb:165:in `each' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:231:in `ensure\_specs\_are\_compatible!’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:83:in `block in run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:12:in `block in lock’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process\_lock.rb:9:in `open' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:9:in `lock’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:71:in `run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:23:in `install’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli/install.rb:62:in `run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:261:in `block in install’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/settings.rb:131:in `temporary' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:260:in `install’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke\_command’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:34:in `dispatch’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:28:in `start’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/exe/bundle:45:in `block in <top (required)>' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/friendly_errors.rb:117:in `with\_friendly\_errors’  
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/exe/bundle:33:in `<top (required)>' /usr/local/bin/bundle:23:in `load’  
/usr/local/bin/bundle:23:in `<main>' I, [2023-09-28T09:40:10.049549 #1] INFO -- : Running `bundle install --deployment --jobs 4 --retry 3 --verbose --without “test” “development”` with bundler 2.4.13  
مجمّد، باستخدام الحل من ملف القفل  
التعريف يفتقر إلى تبعيات، وفشل في الحل والتكوين محلياً ([GitHub - rails/sprockets: Rack-based asset packaging system · GitHub](https://github.com/rails/sprockets) (at 3.x@f4d3dae) لم يتم استرجاعه بعد)

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [28 سبتمبر 2023، 10:34ص UTC](https://meta.discourse.org/t/failing-to-update-an-older-installation/280403/2 "2023-09-28T10:34:08Z")

</div>

> [@helmi](#):
>
> `colored2-4.0.0 يتطلب إصدار ruby >= 3.1، وهو غير متوافق مع الإصدار الحالي 2.7.2`

هل حاولت ترقية تثبيت ruby الخاص بك؟

> [@helmi](#):
>
> ```plaintext
> I, [2023-09-28T09:40:10.049857 #1] INFO -- : Terminating async processes
> I, [2023-09-28T09:40:10.050088 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 57
> I, [2023-09-28T09:40:10.050130 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 174
> 2023-09-28 09:40:10.050 UTC [57] LOG: received fast shutdown request
> 174:signal-handler (1695894010) Received SIGTERM scheduling shutdown...
> 2023-09-28 09:40:10.052 UTC [57] LOG: aborting any active transactions
> 2023-09-28 09:40:10.053 UTC [57] LOG: background worker "logical replication launcher" (PID 66) exited with exit code 1
> 2023-09-28 09:40:10.055 UTC [61] LOG: shutting down
> 2023-09-28 09:40:10.062 UTC [57] LOG: database system is shut down
> 174:M 28 Sep 2023 09:40:10.083 # User requested shutdown...
> 174:M 28 Sep 2023 09:40:10.083 * Saving the final RDB snapshot before exiting.
> 174:M 28 Sep 2023 09:40:10.113 * DB saved on disk
> 174:M 28 Sep 2023 09:40:10.113 # Redis is now ready to exit, bye bye...
> 
> ```

هل أوقفت الترقية أثناء تشغيلها؟

---

<div class="post-metadata">

### Author: ![helmi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helmi/32/114772_2.png) [@helmi](https://meta.discourse.org/u/helmi)
#### Post date: [28 سبتمبر 2023، 11:13ص UTC](https://meta.discourse.org/t/failing-to-update-an-older-installation/280403/3 "2023-09-28T11:13:00Z")

</div>

> [@Firepup650](#):
>
> ربما حاول ترقية تثبيت روبي الخاص بك؟

هذا من عملية البناء. ليس لدي (وأعتقد أنني لست بحاجة إلى) تشغيل أي روبي محليًا، أليس كذلك؟

> [@Firepup650](#):
>
> هل أوقفت الترقية أثناء تشغيلها؟

لا، لقد تم إنهاؤها بسبب مشكلة على ما يبدو.

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [28 سبتمبر 2023، 11:48ص UTC](https://meta.discourse.org/t/failing-to-update-an-older-installation/280403/4 "2023-09-28T11:48:46Z")

</div>

> [@helmi](#):
>
> هذا من عملية البناء. ليس لدي (وأعتقد أنني لست بحاجة إلى) تشغيل أي روبي محلي، أليس كذلك؟

لست متأكدًا. كل ما أنا متأكد منه هو أنه في مكان ما، يبدو أن إصدارًا ما من روبي قديم.
