Hello Discourse forum members.
I install the Discourse successfully before using this link, but in this time, I got the following error, so I need your help for installation.
When I solve this problem, I would like to share how can I fix it.
From Web browser, I got the following error when I install 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)
My environment - Ubuntu 18.94, Nginx Reverse proxy.
I install all the process using root, so Here is “ls -al” information of /var/discourse/shared/standalone
I guess it is permission related problem, but I am not sure.
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
My /nginx/sites-available/forum.sangean.co.kr configuration
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; }
}
If you need included nginx conf files or Discourse configuration files, I can edit or reply for this post.
Thank you so much.