Bonjour aux membres du forum Discourse.
J’ai installé Discourse avec succès auparavant en suivant ce lien, mais cette fois, j’ai rencontré l’erreur suivante. J’ai donc besoin de votre aide pour l’installation.
Une fois ce problème résolu, je partagerai la méthode que j’ai utilisée pour le corriger.
Depuis un navigateur web, j’ai obtenu l’erreur suivante lors de l’installation de Discourse.
[Error] Failed to load resource: the server responded with a status of 404 () (wizard_c4aee3fa9261fde8baf9c596832d10e16a40c298.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (wizard-vendor-e639f7bedb553c62a51539714bacf10a7bb9c2a68ee57d9d9e9da130ede31d8b.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (tada.svg, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (ember_jquery-57d09ec67e9e407d9b0d42aa1fefd1a470c45310d953b07793a3ca8adc6ec599.js, line 0)
[Error] Refused to execute https://forum.sangean.co.kr/assets/ember_jquery-57d09ec67e9e407d9b0d42aa1fefd1a470c45310d953b07793a3ca8adc6ec599.js as script because “X-Content-Type: nosniff” was given and its Content-Type is not a script MIME type.
[Error] Refused to execute https://forum.sangean.co.kr/assets/wizard-vendor-e639f7bedb553c62a51539714bacf10a7bb9c2a68ee57d9d9e9da130ede31d8b.js as script because “X-Content-Type: nosniff” was given and its Content-Type is not a script MIME type.
[Error] Failed to load resource: the server responded with a status of 404 () (tada.svg, line 0)
Mon environnement : Ubuntu 18.94, proxy inverse Nginx.
J’ai effectué toute l’installation en tant que root. Voici donc les informations de “ls -al” pour le répertoire /var/discourse/shared/standalone :
Je pense qu’il s’agit d’un problème lié aux permissions, mais je ne suis pas certain.
drwxr-xr-x 11 root root 4096 Apr 4 05:50 .
drwxr-xr-x 3 root root 4096 Apr 4 04:45 ..
drwxr-xr-x 2 1000 www-data 4096 Apr 4 04:45 backups
drwxr-xr-x 4 root root 4096 Apr 4 04:45 log
drwxr-xr-x 2 uuidd uuidd 4096 Apr 4 04:45 postgres_backup
drwx------ 19 uuidd uuidd 4096 Apr 4 05:50 postgres_data
drwxrwxr-x 3 uuidd uuidd 4096 Apr 4 05:50 postgres_run
drwxr-xr-x 2 landscape ssh 4096 Apr 4 06:00 redis_data
drwxr-xr-x 4 root root 4096 Apr 4 05:50 state
drwxr-xr-x 4 1000 www-data 4096 Apr 4 05:50 tmp
drwxr-xr-x 3 1000 www-data 4096 Apr 4 04:47 uploads
Ma configuration /nginx/sites-available/forum.sangean.co.kr :
server {
listen 80; listen [::]:80;
server_name forum.sangean.co.kr;return 301 https://$host$request_uri;}
server {
server_name forum.sangean.co.kr www.forum.sangean.co.kr;access_log /var/log/nginx/forum.sangean.co.kr.access.log ; error_log /var/log/nginx/forum.sangean.co.kr.error.log; include common/locations-wo.conf; include /var/www/forum.sangean.co.kr/conf/nginx/*.conf; location / { proxy_pass http://forum.sangean.co.kr:25654/; proxy_set_header Host $http_host; proxy_http_version 1.1; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect http://forum.sangean.co.kr:25654/ https://forum.sangean.co.kr; }}
Si vous avez besoin des fichiers de configuration nginx ou des fichiers de configuration Discourse, je peux les modifier ou répondre à ce post.
Merci beaucoup.
