Closed SimonHova closed 2 years ago
Good news, now it registers an error in the error.log file, that /ample/public/build/bundle.js is not found. It looks (to my very untrained eye) that it's being dynamically built? Not sure where it gets called from.
Sorry I deleted my comment just before yours as I didn't think it was right, are you saying you tried what I suggested?
I did what you said, unfortunately there was no change to the page or the page source, but now it's reporting an error to the error log that the bundle.js file is not found; before it wasn't even reporting an error.
Ah ok, I'm leaning towards it being an nginx issue as it works on a test machine with localhost:8888/ampache/ample
Otherwise, are you using one of the pre-built Ample releases? Its built with Svelte which requires compiling, so if you're just using the raw git repo that could be why
Yes! The problem was indeed that I was cloning directly from git, the pre-built release works brilliantly. Sorry, I should have read the installation directions closer. Looking forward to digging into this now!
I host my ampache server on a non-standard port (5006), so I would access it at http://xxx.xxx.net:5006/ample . When I get there, I just get a blank page, and the line in page source looks for a link that isn't there:
<link
rel='stylesheet' href='//xxx.xxx.net:5006/ample/public/build/bundle.css'>`Interestingly, when trying to load the stable demo override line by uncommenting the line:
detectedURL = "https://demo.ampache.dev";
from ample/src/stores/server.js I now get an entry in my nginx error log:2022/09/01 08:15:37 [error] 19063#19063: *209 open() "/opt/ampache/public/ample/public/build/bundle.css" failed (2: No such file or directory), client: xx.xx.xx.xx, server: xxx.xxx.net, request: "GET /ample/public/build/bundle.css HTTP/1.1", host: "xxx.xxx.net:5006"
Could the port number in the url be throwing the script off? Or is there more rewriting that needs to be done in the nginx config file? Config file included below for completeness:
`server {
location /rest { limit_except GET POST { deny all; } }
location ^~ /bin/ { deny all; return 403; }
location ^~ /config/ { deny all; return 403; }
location / { limit_except GET POST HEAD{ deny all; } }
location ~ ^/.*.php { fastcgi_index index.php;
}
Rewrite rule for WebSocket
location /ws { rewrite ^/ws/(.*) /$1 break; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_pass http://127.0.0.1:8100/; } } `