kynic
30 يناير 2022، 5:16م
1
لقد اتبعت هذا وقمت بتحديث discourse عبر ssh
This guide provides step-by-step instructions for manually updating Discourse, the Docker container, and the Ubuntu operating system on a self-hosted setup.
Required user level: System Administrator
SSH access to the server.
If you self-host Discourse, you occasionally need to run a manual update via the command line to get the latest security releases newest libraries.
These updates are not picked up in admin/update, which is why you’ll occasiona…
بعد القيام بذلك، تعطل الموقع، من فضلكم ساعدوني أنا متوتر، من فضلكم ساعدوني
يظهر هذا عندما أحاول بدء المشغل
./launcher start app
x86_64 arch detected.
starting up existing container
+ /usr/bin/docker start app
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: sethostname: invalid argument: unknown
Error: failed to start containers: app
جرب هذا بدلاً من ذلك:
cd /var/discourse
git pull
./launcher rebuild app
kynic
30 يناير 2022، 6:12م
10
تم بالفعل، لا يزال نفس الشيء؛
git pull
Already up to date.
./launcher rebuild app
في النهاية يظهر هذا:
ess 02:fc:33:3e:fd:f6 local_discourse/app /sbin/boot
589988dcb7e5e026f29b8af3b507e51a260e9de2f1ddfaea0620e1fbd2ea80e7
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: sethostname: invalid argument: unknown.
هل جربت Discourse Doctor؟
Following the example from Discourse-doctor , I’ve created discourse-doctor, now included in discourse_docker. If you run ./discourse-doctor, you’ll see something like:
DISCOURSE DOCTOR Tue Jul 24 08:50:32 UTC 2018
OS: Linux twonames 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Found containers/app.yml
==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=twonames.ltcmp.net
SMTP_ADDRESS=mail.domain.com
DEVELOPER_EMAILS=…
kynic
30 يناير 2022، 6:23م
12
لقد فعلت ذلك للتو بعد أن قلت هذا ما حصلت عليه في السطور الأخيرة:
sudo: unable to resolve host discourse-ubuntu-s-1vcpu-1gb-nyc1-01-1606640043912-s-2vcpu-4gb-n: Name or service not known
Error response from daemon: Container 387d78b520911e93647a157c578f479a9b4ceaf4fef60b19c638a03de162444c is not running
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to
==================== DONE! ====================
ثم تقوم بإعادة البناء مرة أخرى، وماذا يحدث؟
kynic
30 يناير 2022، 7:29م
14
لقد قمت بتغيير اسم المضيف إلى ‘discourse-ubuntu’ سابقًا كان اسمًا طويلاً، عن طريق تعديل هذه الملفات…
nano /etc/hostname
discourse-ubuntu
nano etc/hosts
127.0.1.1 discourse-ubuntu
127.0.0.1 localhost
بعد ذلك، قمت بإعادة التشغيل وإعادة البناء، ثم تم إصلاحه أخيرًا.
شكراً جزيلاً على كل مساعدتكم.
3 إعجابات
system
(system)
تم إغلاقه في
1 مارس 2022، 7:29م
15
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.