I have set up a new Ubuntu 18 Cloud Server and installed Discourse like I did it all times, the Standard under 30 Min setup. When I now want to first create a admin, I am calling the installation in my browser and getting error that server is not reachable. 2 things are different to my other servers, 1. I changed to Hetzner Cloud, 2. I can only call the installtion with the IP adress at the moment, as I want to switch another existing server to the new one.
The Hetzner Ubuntu Image is minimal I think, nothing installed. I am out of knowledge now and hope that someone could point me the right direction
thx for reply. I think I explained wrong. I tried only to access via IP, the domain name is still not pointed on the new server. The result of trying to access via IP is the error I said before.
Discourse is up and running but the server somehow diesn´t point to the docker container. I don´t have clue.
I have another stupid question, really stupid
Do I need an an apache or any other webserver installed additionally? Or does the mentioned install method supports everything needed for launching? Sorry for that dumb question
The server is complete fresh, minimal installation of ubuntu, so nothing more is installed.
I recommend opening a ticket with the provider and/or checking their settings to see if you need to do something to open up ports. Sometimes all ports are closed by default.
My provider Hetzner doesn´t offers a extern firewall for the cloud server structure. The only I can do is to check up my system configuration, ufw for example.
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00013s latency).
Not shown: 131065 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
6010/tcp open x11
68/udp open|filtered dhcpc
Nmap done: 1 IP address (1 host up) scanned in 4851.83 seconds
root@crazy-geek:~# ufw status
Status: inactive
As I said, its a standard configuration. I am sure I am missing a small thing (
One or both of those should return a bunch of html. If they don’t, go look at the log files in /var/discourse/shared/standalone/log/var-log/nginx/ and /var/discourse/shared/standalone/log/rails/production.log for clues about what could be wrong
You could try ./launcher enter app in the discourse directory and running the top command to verify that nginx, redis, postmaster and ruby are all running. curl is available to test inside the container too.
root@crazy-geek:~# cd /var/discourse
root@crazy-geek:/var/discourse# ./launcher enter app
root@crazy-geek-app:/var/www/discourse# curl http://localhost/
curl: (7) Failed to connect to localhost port 80: Connection refused
root@crazy-geek-app:/var/www/discourse# curl http://172.17.0.2/
curl: (7) Failed to connect to 172.17.0.2 port 80: Connection refused
Outside the container:
root@crazy-geek:/var/discourse# curl http://localhost/
curl: (56) Recv failure: Connection reset by peer
root@crazy-geek:/var/discourse# curl http://172.17.0.2/
curl: (7) Failed to connect to 172.17.0.2 port 80: Connection refused
Error Logs from inside the container:
Nginx (whole error.log is full of the same message):
Thanks a lot. That was a noob mistake actually. I needed to deactivate ssl templates in app.yml and rebuild new. Problem was that letsencrypt couldn´t verify the cert for the domain, as the domain is still pointed to the old server
Sorry for my mistakes and thx a lot for the provided help!
وعليك بعد ذلك الدخول إلى ملف app.yml، وتعليق سطر البريد الإلكتروني الخاص بـ Let’s Encrypt وقوالب SSL، ثم إعادة بناء launcher. أعتقد أنه ينبغي اعتبار هذا عيبًا في discourse-setup. كما ينبغي أن يدعم discourse-setup تثبيت شهادتك الخاصة لـ SSL المستحقة من جهة أخرى منذ البداية، حتى لا تضطر إلى إعادة البناء.
إعداد Discourse مخصص فقط لأكثر عمليات التثبيت شيوعًا. إذا كنت قادرًا على الحصول على شهادة خاصة بك، فإنك تتحمل مسؤولية تثبيتها. أتفق بأن الأمر محيرًا بعض الشيء لأن Let’s Encrypt يتم تثبيته افتراضيًا، لكنه أكثر أمانًا، وقد كان الأمر على هذا النحو لفترة طويلة جدًا مع تقارير قليلة جدًا عن مشاكل.
عندئذٍ، يجب ألا يظهر زر التخطي (SKIP) في قسم Let’s Encrypt في النافذة المنبثقة، لأن الضغط على ENTER لا يتخطى العملية فعليًا. أو يجب تقديم تلميح حول ما يجب فعله إذا لم يتم استخدام Let’s Encrypt.
لكن في رأيي، يجب دعم خيار التخطي (SKIP)، وإذا تم تخطيه، فيجب إعداد Discourse بدون شهادة SSL في تلك المرحلة، ليعمل فقط على المنفذ 80، بدلاً من عدم العمل على الإطلاق في حالة غامضة وصعبة التصحيح كما تُظهر المنشورات أعلاه.
سأحتاج إلى النظر في الأمر بدقة أكبر، لكنني أعتقد أنك محق. أظن أن ما يجب أن يحدث هو عدم طلب أي شيء منك واستخدام عنوان البريد الإلكتروني للمطور مباشرةً لـ Let’s Encrypt. المشكلة تكمن في أنه من القانوني تضمين عناوين بريد إلكتروني متعددة لبيانات المطور، لكن ليس لـ Let’s Encrypt، لذا سيكون الأمر معقدًا بعض الشيء، لكنه قابل للتنفيذ.
@Stephen حسنًا، كما يُذكر في بداية هذا الموضوع، لم يعمل ما كان “تلقائيًا”. كان النظام في حالة لا يخدم فيها صفحات الويب على الإطلاق على المنفذ 80 أو 443. بمجرد أن قمت بتعليق قوالب SSL وإعادة البناء، عمل بشكل جيد على المنفذ 80.