Mount path must be absolute

Hello there I’m trying to setup my node to run but im receiving error that mount path must be absolute when i try to connect my 35TB NAS to my storj node. I am using Linux ubuntu as my OS the error info is blow please help.
sudo docker run --rm -e SETUP=“true”
–user $(id -u):$(id -g)
–mount type=bind,source=“/home/server4/.local/share/storj/identity/storagenode”,destination=/app/identity
–mount type=bind,source=“smb://truenas.local/data%20nas/storj_node_1_data”,destination=/app/config
–name storagenode storjlabs/storagenode:latest
docker: Error response from daemon: invalid mount config for type “bind”: invalid mount path: ‘smb://truenas.local/data%20nas/storj_node_1_data’ mount path must be absolute

Run ‘docker run --help’ for more information

I am no expert but I suspect the problem is the “smb://truenas.local” bit.
You should probably just mount the NAS into some mount point in the filesystem and then just use that.

Also, lots of cautionary tales about using network mount points for running nodes. It’ll probably be better to run Storj on the TrueNAS machine directly if you have that possibility.

2 Likes

First, learn the secrets of the forum; it’s easier for for everybody to communicate, describe the problem and offer the solution.
Meaning… post the commands between 3 back thicks or use the <> preformated text button.
Because I see that you use ’ and curly quotes, but for docker you need only straight quotes.
So I don’t know if you posted the command as is or used those just on this forum.

2 Likes

so having your data on network shares is not officially supported on storj (except for iscsi). you’ll get scolded and may get errors.

it’s VERY likely you’ll get an error if your databases are on a network mount. But I run SSD’s on local drive so not a problem.

That being said, the way I handle my NFS shares is I mount them in /etc/fstab. So as far as storj is concerned they are just normal folders /mnt/storj1 , /mnt/storj2, etc.

1 Like

Run the node directly on TrueNAS.

Otherwise:

  • You can’t use protocol as mount point.
  • Don’t use SMB. Use NFS at least.
  • Don’t host databases over network.

Not really a secret if it’s in public facing manual: Posting code or preformatted text - Using Discourse - Discourse Meta