Installing Storj Node on Ubuntu

hello does anyone know if its possible to install storj node on Ubuntu 20.04.2 LTS ?
cant seem to find a proper installation guide

These are my personal install instructions. They are written to speed up setting up new nodes. Not in any way official docs.

https://config.storagenode.uk/manual-linux-binary-install.html

3 Likes

thank you i will have a look

when trying to mount drive to /mnt…its not letting me mount to mnt …it only works with /mnt/6726-0990 …is that ok?

Why not keep it simple and make a /storj directory and mount there?

i am totally frustrated by this storj installation on ubuntu …its so complicated …ive done it before on windows

is anyone willing to assist even on team viewer ?

Here’s my install script that worked the last time I set up a node:

This uses Docker instead of the binaries.

Yes, Linux is a bit more complicated than Windows. But you’ll get there :slight_smile:

1 Like

IF you go with the docker Side of storj😄.
It not that hard. Follow the steps and you will get there👍

1 Like

i keep getting this error

Create /user-mounts/st4000vx007-2dt1-vp6p/storagenode
Move identity to /user-mounts/st4000vx007-2dt1-vp6p
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=storjlabs%2Fstoragenode&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

any idea whats causing it ?

You need either add your user to the docker group (see Post-installation steps for Linux | Docker Documentation) or execute docker commands with sudo

here we go again

PRESS ENTER TO CONTINUE IF THIS COMMAND LOOKS RIGHT. CTRL-C TO EXIT OTHERWISE.
Running docker run command
1704d231a0f8e29bf5eb3ffd65c19782d04b78bd201a0f62b2ef4fcb5f5c5571
docker: Error response from daemon: driver failed programming external connectivity on endpoint storagenode-st4000vx007-2dt1-vp6p (f6416baccfbae2e925b7622809a35d5ea30bceac917040fe0a7c6dd01cbeb711): Error starting userland proxy: listen tcp [::]:28967: bind: address already in use.

i have officially given up after 4 days … :frowning_face:

This error mean that you have container running. Please, stop and remove a previous one:

sudo docker stop storagenode
sudo docker rm storagenode

Then run it back with all your parameters include changed ones.

If you had followed the official documentation, you could have completed the setup a few days ago (it’s a step-by-step guide): Introduction - Node Operator, CLI Install - Node Operator in particular.

2 Likes

Hi thanks Alexey i tried the links included in your message and turned up with the following error

mario@mario-System-Product-Name:~$ docker run --rm -e SETUP=“true” \

--mount type=bind,source=/home/mario/.local/share/storj/identity/storagenode,destination=/app/identity \
--mount type=bind,source=/dev/sdb1,destination=/app/config \
--name storagenode storjlabs/storagenode:latest

2021/05/20 17:25:59 failed to check for file existence: stat config/config.yaml: not a directory

i was under the impression that

“/home/mario/.local/share/storj/identity/storagenode” is the identity directory …however i cant find this file r directory anywhere

Unlike Windows you cannot use drive directly, you must mount it first, see: How do I setup static mount via /etc/fstab for Linux? - Storj Docs, and use the mountpoint instead, for example /mnt/storj (if you mounted drive /dev/sdb1 to /mnt/storj).

Please, give me result of the command:

df -HT

mario@mario-System-Product-Name:~$ df -HT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 7.3G 0 7.3G 0% /dev
tmpfs tmpfs 1.5G 1.8M 1.5G 1% /run
/dev/sda2 ext4 235G 11G 213G 5% /
tmpfs tmpfs 7.4G 0 7.4G 0% /dev/shm
tmpfs tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs tmpfs 7.4G 0 7.4G 0% /sys/fs/cgroup
/dev/loop1 squashfs 59M 59M 0 100% /snap/core18/1988
/dev/loop0 squashfs 9.6M 9.6M 0 100% /snap/canonical-livepatch/99
/dev/loop2 squashfs 104M 104M 0 100% /snap/core/11081
/dev/loop3 squashfs 230M 230M 0 100% /snap/gnome-3-34-1804/66
/dev/loop4 squashfs 69M 69M 0 100% /snap/gtk-common-themes/1514
/dev/loop5 squashfs 54M 54M 0 100% /snap/snap-store/518
/dev/loop6 squashfs 33M 33M 0 100% /snap/snapd/11036
/dev/sda1 vfat 536M 8.3M 528M 2% /boot/efi
tmpfs tmpfs 1.5G 70k 1.5G 1% /run/user/1000
/dev/loop7 squashfs 65M 65M 0 100% /snap/core20/1026
/dev/loop8 squashfs 6.6M 6.6M 0 100% /snap/curl/47

this is before i attemp static mounting info you sent me …

As I thought, the /dev/sdb1 is not mounted. So it even could be not formatted.
I would recommend to mount it first: How do I setup static mount via /etc/fstab for Linux? - Node Operator
Perhaps you would need to format it, if you didn’t before. You can Google how to format drives or take a look on article for Raspberry Pi: Install storagenode on Raspberry Pi3 or higher – Storj

i followed every point in that link

mario@mario-System-Product-Name:~$ sudo mkdir /mnt/storagefiles
mario@mario-System-Product-Name:~$ sudo nano /etc/fstab
mario@mario-System-Product-Name:~$ sudo mount -a
mount: /mnt/sdb1: mount point does not exist.
mario@mario-System-Product-Name:~$

/etc/fstab: static file system information.

#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=0a100393-deb2-454f-a6e1-203dd41e84c5 /               ext4    errors=remoun>
# /boot/efi was on /dev/sda1 during installation
UUID=7BA1-463E  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw           >
UUID=9163523c-a144-4009-90d2-190b903939ee /mnt/sdb1 ext4 defaults 0 2

mario@mario-System-Product-Name:~$ df -HT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 7.3G 0 7.3G 0% /dev
tmpfs tmpfs 1.5G 1.8M 1.5G 1% /run
/dev/sda2 ext4 235G 11G 213G 5% /
tmpfs tmpfs 7.4G 0 7.4G 0% /dev/shm
tmpfs tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs tmpfs 7.4G 0 7.4G 0% /sys/fs/cgroup
/dev/loop1 squashfs 59M 59M 0 100% /snap/core18/1988
/dev/loop0 squashfs 9.6M 9.6M 0 100% /snap/canonical-livepatch/99
/dev/loop2 squashfs 104M 104M 0 100% /snap/core/11081
/dev/loop3 squashfs 230M 230M 0 100% /snap/gnome-3-34-1804/66
/dev/loop4 squashfs 69M 69M 0 100% /snap/gtk-common-themes/1514
/dev/loop5 squashfs 54M 54M 0 100% /snap/snap-store/518
/dev/loop6 squashfs 33M 33M 0 100% /snap/snapd/11036
/dev/sda1 vfat 536M 8.3M 528M 2% /boot/efi
tmpfs tmpfs 1.5G 70k 1.5G 1% /run/user/1000
/dev/loop7 squashfs 65M 65M 0 100% /snap/core20/1026
/dev/loop8 squashfs 6.6M 6.6M 0 100% /snap/curl/47
mario@mario-System-Product-Name:~$