Closed BHK-Industry closed 3 weeks ago
Hello, can you share the logs of storj? Also can you try shell'ing into the container and curl localhost:14002
?
2024-11-05 19:38:09.936869+00:00Waiting for Storj to be setup...
2024-11-05 19:38:14.938175+00:00Waiting for Storj to be setup...
2024-11-05 19:38:19.939861+00:00Waiting for Storj to be setup...
2024-11-05 19:38:24.941858+00:00Waiting for Storj to be setup...
2024-11-05 19:38:29.943697+00:00Waiting for Storj to be setup...
2024-11-05 19:38:34.944975+00:00Waiting for Storj to be setup...
2024-11-05 19:38:39.945988+00:00Waiting for Storj to be setup...
2024-11-05 19:38:44.947486+00:00Waiting for Storj to be setup...
24-11-05 19:38:08.207475+00:00Checking for identity certificate...
2024-11-05 19:38:08.207528+00:00Downloading identity generator tool...
2024-11-05 19:38:32.742857+00:00Archive: /tmp/identity-tool/identity_linux_amd64.zip
2024-11-05 19:38:33.088858+00:00inflating: /tmp/identity-tool/identity
2024-11-05 19:38:33.090935+00:00Generating identity certificate...
2024-11-05 19:38:33.114894+00:002024-11-05T19:38:33Z INFO Anonymized tracing enabled
2024-11-05 19:38:52.995636+00:00Error: CA certificate and/or key already exists, NOT overwriting!
2024-11-05 19:38:52.996676+00:00Identity generated successfully at /app/identity
2024-11-05 19:38:52.998467+00:00/app/identity:
2024-11-05 19:38:52.998492+00:00total 512
2024-11-05 19:38:52.998498+00:00drwxr--r-- 2 568 568 6 Nov 5 18:39 storagenode
2024-11-05 19:38:52.998503+00:002024-11-05T19:38:52.998503656Z
2024-11-05 19:38:52.998508+00:00/app/identity/storagenode:
2024-11-05 19:38:52.998513+00:00total 18K
2024-11-05 19:38:52.998519+00:00-rw-r--r-- 1 568 568 558 Nov 5 18:39 ca.cert
2024-11-05 19:38:52.998530+00:00-rw------- 1 568 568 241 Nov 5 18:39 ca.key
2024-11-05 19:38:52.998538+00:00-rw-r--r-- 1 568 568 1.1K Nov 5 18:39 identity.cert
2024-11-05 19:38:52.998543+00:00-rw------- 1 568 568 241 Nov 5 18:39 identity.key
2024-11-05 19:38:52.998551+00:00Authorizing identity certificate...
2024-11-05 19:38:53.009045+00:002024-11-05T19:38:53Z INFO Anonymized tracing enabled
2024-11-05 19:37:55.403576+00:00Path [/mnt/storj/identity] is not empty, skipping...
2024-11-05 19:37:55.403839+00:00Path [/mnt/storj/temporary] is a temporary directory, ensuring it is empty...
2024-11-05 19:37:55.405123+00:00Current Ownership and Permissions on [/mnt/storj/temporary]:
2024-11-05 19:37:55.405876+00:00chown: 568 568
2024-11-05 19:37:55.406612+00:00chmod: 755
2024-11-05 19:37:55.407973+00:00Ownership is correct. Skipping...
2024-11-05 19:37:55.407997+00:00Skipping permissions check, chmod is false
2024-11-05 19:45:43.627672+00:002024-11-05 19:45:43 (55.1 MB/s) - '/tmp/storagenode.zip' saved [34556971/34556971]
2024-11-05 19:45:43.627683+00:002024-11-05T19:45:43.627683773Z
2024-11-05 19:45:44.456711+00:00Running ./storagenode setup --config-dir config --identity-dir identity --metrics.app-suffix=-alpha --metrics.interval=30m --version.server-address=https://version.storj.io --console.address=:14002 --storage.allocated-disk-space=500GB --contact.external-address=185.113.120.195:28967 --operator.email=bjorn@bhkcloud.com --operator.wallet=0x5E62d42D9184C2a6b8bf554b0C8CaA630232697a
2024-11-05 19:45:44.509710+00:002024-11-05T19:45:44Z INFO Anonymized tracing enabled {"Process": "storagenode"}
2024-11-05 19:45:44.519533+00:00Error: open /app/config/config.yaml3662553914: permission denied
2024-11-05 19:45:44.522604+00:00touch: cannot touch '/app/config/setup.done': Permission denied
2024-11-05 19:45:44.522715+00:00Failed to create setup.done file.
2024-11-05 20:20:11.137668+00:002024-11-05 20:20:11 (26.4 MB/s) - '/tmp/storagenode.zip' saved [34556971/34556971]
2024-11-05 20:20:11.137692+00:002024-11-05T20:20:11.137692616Z
2024-11-05 20:20:11.951549+00:00Running ./storagenode setup --config-dir config --identity-dir identity --metrics.app-suffix=-alpha --metrics.interval=30m --version.server-address=https://version.storj.io --console.address=:14002 --storage.allocated-disk-space=500GB --contact.external-address=185.113.120.195:28967 --operator.email=bjorn@bhkcloud.com --operator.wallet=0x5E62d42D9184C2a6b8bf554b0C8CaA630232697a
2024-11-05 20:20:12.019440+00:002024-11-05T20:20:12Z INFO Anonymized tracing enabled {"Process": "storagenode"}
2024-11-05 20:20:12.030525+00:00Error: open /app/config/config.yaml512662112: permission denied
2024-11-05 20:20:12.033663+00:00touch: cannot touch '/app/config/setup.done': Permission denied
2024-11-05 20:20:12.034038+00:00Failed to create setup.done file.
Okay, looks like the permissions are not correct for the data directory. id 568 should have read/write access to it.
I'll add a check before the identity generation, so it will fail early if something is wrong.
Okay, looks like the permissions are not correct for the data directory. id 568 should have read/write access to it.
I'll add a check before the identity generation, so it will fail early if something is wrong.
Great, thanks for the update!
I still get a crash with 1.1.13.
2024-11-07 06:00:48.605639+00:00Config directory is not writable
Hello, yes you still need to fix your permissions. The only change made here is to add a check early in the process instead of waiting the full identity generation
Hello everyone,
I’m currently running Storj on TrueNAS SCALE, but I’m experiencing issues accessing the Storj Web UI. Here’s the setup and troubleshooting steps I’ve taken so far:
Setup Details
TrueNAS Version: TrueNAS SCALE Storj Version: 1.1.11 (installed via the TrueNAS Applications) Configured Port: Web UI Port: 14002 (tcp://0.0.0.0:14002) P2P Port: 28967 (tcp/udp) Network Interface: enp1s0 (192.168.178.28) with port forwarding enabled for the necessary ports.
Problem
After setting up Storj, I tried accessing the Web UI using http://xxxxx:14002, but I keep getting a “Connection Refused” error. The Storj application status shows “Running,” but I can’t access the interface.
Troubleshooting Steps Taken
Checked Ports and Configuration: Verified that the Web UI port is set to 14002 and that it’s listening on 0.0.0.0. Confirmed that TrueNAS is using the correct IP (xxxxxxx) on the enp1s0 interface. Tested Network Connectivity: Attempted to access the Web UI from multiple devices on the same network with the same result. Tried connecting directly via telnet and curl to see if port 14002 is open, but it appears to be inaccessible externally. Checked Firewall and Router Settings: Ensured that port 14002 is allowed on the network firewall. Configured port forwarding on the router to allow incoming connections to xxxxxx:14002**. Restarted Storj Application: Restarted the Storj application multiple times after making configuration changes, but the issue persists. Verified Network Interface: Verified that enp1s0 is active and correctly configured as the main interface for TrueNAS. Additional Information
I’ve also tried switching to other ports (like 20909 previously) and enabling/disabling the “Host Network” option to see if that resolves the issue, but nothing seems to work.
Does anyone have experience with this or know of any additional settings I might need to check? I’d appreciate any guidance on getting the Storj Web UI accessible on TrueNAS SCALE.
Thanks in advance!