Salut, je suis débutant et j’aimerais essayer d’installer Discourse pour un projet, mais j’ai du mal à installer Discourse dans une VM Ubuntu 22.04. J’ai suivi le tutoriel à l’adresse discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub, mais après avoir terminé les étapes, je ne vois rien sur mon navigateur Web (j’obtiens le message « Ce site est inaccessible »). J’ai opté pour la solution Brevo pour le SMTP.
Salut, bienvenue ![]()
Le processus de build s’est-il terminé sans erreur ?
Vos DNS pointent-ils vers le serveur ? Avez-vous exécuté discourse-setup ? Quelle est l’URL ?
Oui, le serveur de pointage DNS (je peux pinger avec le nom d’hôte), j’exécute et j’utilise la commande ./discourse-setup et l’URL est http://forum.crio-dauphine.dynv6.net\nmais parfois j’obtiens une page nginx qui s’affiche pendant 2 minutes.
J’ai un message de fin :
, [2023-12-21T10:19:01.450496 #1] INFO -- : Terminating async processes
I, [2023-12-21T10:19:01.481983 #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: 56
I, [2023-12-21T10:19:01.493459 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 125
2023-12-21 10:19:01.493 UTC [56] LOG: received fast shutdown request
125:signal-handler (1703153941) Received SIGTERM scheduling shutdown...
125:M 21 Dec 2023 10:19:01.509 # User requested shutdown...
125:M 21 Dec 2023 10:19:01.509 * Saving the final RDB snapshot before exiting.
125:M 21 Dec 2023 10:19:01.515 * DB saved on disk
2023-12-21 10:19:01.553 UTC [56] LOG: aborting any active transactions
125:M 21 Dec 2023 10:19:01.569 # Redis is now ready to exit, bye bye...
2023-12-21 10:19:01.844 UTC [56] LOG: background worker \"logical replication launcher\" (PID 65) exited with exit code 1
2023-12-21 10:19:02.147 UTC [60] LOG: shutting down
2023-12-21 10:19:02.675 UTC [56] LOG: database system is shut down
sha256:82b631cd7bcf53be0ac50326b816f4b538913cb8f7cefdfa9b6e183e42f0d952
27a8cacb031be6d76894e19fb488d534e1e8298abc4e2f8f38ade078653621b8
+ /usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=4 -e UNICORN_SIDEKIQS=1 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e LETSENCRYPT_DIR=/shared/letsencrypt -e DISCOURSE_FORCE_HTTPS=true -e LC_ALL=en_US.UTF-8 -e LANGUAGE=en_US.UTF-8 -e DISCOURSE_HOSTNAME=forum.crio-dauphine.dynv6.net -e DISCOURSE_DEVELOPER_EMAILS=hassan.mahmood@dauphine.psl.eu -e DISCOURSE_SMTP_ADDRESS=smtp-relay.brevo.com -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_USER_NAME=hassan.mahmood@dauphine.psl.eu -e DISCOURSE_SMTP_PASSWORD=J7YKTUfxhpZBkGaN -e DISCOURSE_SMTP_DOMAIN=forum.crio-dauphine.dynv6.net -e DISCOURSE_NOTIFICATION_EMAIL=noreply@forum.crio-dauphine.dynv6.net -e LETSENCRYPT_ACCOUNT_EMAIL=me@example.com -h forum-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 80:80 -p 443:443 -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address 02:96:f4:e6:e7:14 local_discourse/app /sbin/boot
db41dedf0fc70e0be04d202626b0203c824e0a12b9322129fc1450362f05c891
mais le conteneur docker est en cours d’exécution :
root@forum:/var/discourse# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
db41dedf0fc7 local_discourse/app “/sbin/boot” About a minute ago Up About a minute 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp app
Pinger forum.crio-dauphine.dynv6.net me donne une adresse locale, probablement une qui se connecte à un routeur. ![]()
L’adresse IP de la VM Ubuntu est 192.168.0.115/24, j’utilise une IP privée pour les tests.
À moins de commenter les modèles let’s encrypt et ssl, cela échouera car il n’y a pas de certificat.
Et je ne suis pas sûr qu’il soit encore possible de fonctionner sans https.
Bonjour ;
Ça fonctionne, j’ai suivi une vidéo YouTube (https://www.youtube.com/watch?v=EaUIsIYivE8), j’ai fait l’étape réalisée dans la vidéo et j’ai laissé la ligne cochée (#) pour la partie https let’s encrypt sur le fichier app.yml.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.