On storj-up start my containers are running the node api is also working correctly at http://localhost:<STORJ_CONSOLE_ADDRESS>/api however the UI isn’t showing on http://localhost:<STORJ_CONSOLE_ADDRESS>
I have run npm run build
Am I missing something?
If you haven’t already, check out the instructions here
Specifically the frontend section.
A couple things to look out for:
Make sure you have the latest version of storj-up.
If you are bind mounting your own version of the storagenode web directory, try to make sure the binary used in the compose file, is as close of a match as possible to the version of your web source. If these are very different versions, or there are a lot of changes to the binary in comparison to the version of the frontend you’re bind mounting, you can run into issues like these.
I tried it with just after cloning the repo. The satellite and the multinode are working fine but some reason only the storagenode UI not working.
I tried with both binding my local frontend and without binding local frontend. Here is my storagenode docker compose
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. markup.js:250:53
GET
http://localhost:30000/static/dist/assets/index-DaMTcPfc.js
NS_ERROR_CORRUPTED_CONTENT
GET
http://localhost:30000/static/dist/assets/index-B7WRvI_m.css
NS_ERROR_CORRUPTED_CONTENT
Loading module from “http://localhost:30000/static/dist/assets/index-DaMTcPfc.js” was blocked because of a disallowed MIME type (“text/plain”). localhost:30000
Loading failed for the module with source “http://localhost:30000/static/dist/assets/index-DaMTcPfc.js”. localhost:30000:12:85
The resource from “http://localhost:30000/static/dist/assets/index-B7WRvI_m.css” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff). localhost:30000
GET
http://localhost:30000/static/dist/assets/apple-touch-icon-D1HCd98j.png
[HTTP/1.1 404 Not Found 0ms]
GET
http://localhost:30000/static/dist/assets/favicon-16x16-CA0GT-fi.png
[HTTP/1.1 404 Not Found 0ms]
storagenode1 here would change this only for this node, but not all. Actually, you may want to set the static dir for all storagenodes to be able to compare (by default it’s not set for some reason, so the web UI is absent for nodes):
storj-up env setenv storagenode STORJ_CONSOLE_STATIC_DIR=/var/lib/storj/web/storagenode
docker compose up -d
This version perhaps is too old for the main branch. You may want to build your own image from the main branch using