# Installing Storj Node on Ubuntu

**URL:** <https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921>\
**Category:** troubleshooting\
**Tags:** linux\
**Created:** [May 19, 2021, 12:40am UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921 "2021-05-19T00:40:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 19, 2021, 12:40am UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/1 "2021-05-19T00:40:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![will.topping](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/will.topping/32/6387_2.png) [@will.topping](https://forum.storj.io/u/will.topping)\
**Post date:** [May 19, 2021, 1:04am UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/2 "2021-05-19T01:04:29Z")

</div>

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](https://config.storagenode.uk/manual-linux-binary-install.html)

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 19, 2021, 1:05am UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/3 "2021-05-19T01:05:01Z")

</div>

thank you i will have a look

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 19, 2021, 1:18am UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/4 "2021-05-19T01:18:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![penfold](https://storj.bcdn.literatehosting.com/letter_avatar/penfold/32/5_5575768a8748004e209b776fc1b2916d.png) [@penfold](https://forum.storj.io/u/penfold)\
**Post date:** [May 19, 2021, 8:50am UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/5 "2021-05-19T08:50:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 19, 2021, 9:05am UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/6 "2021-05-19T09:05:10Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![konsou](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/konsou/32/6522_2.png) [@konsou](https://forum.storj.io/u/konsou)\
**Post date:** [May 19, 2021, 1:07pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/7 "2021-05-19T13:07:10Z")

</div>

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

> **[konsou/storj-node-setup](https://github.com/konsou/storj-node-setup)**
>
> A script to make setting up a Storj node easier. Contribute to konsou/storj-node-setup development by creating an account on GitHub.

This uses Docker instead of the binaries.

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

---

<div class="post-metadata">

**Author:** ![John.A](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/john.a/32/60_2.png) [@John.A](https://forum.storj.io/u/John.A)\
**Post date:** [May 19, 2021, 1:48pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/8 "2021-05-19T13:48:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 19, 2021, 7:59pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/9 "2021-05-19T19:59:36Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 19, 2021, 10:10pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/10 "2021-05-19T22:10:51Z")

</div>

You need either add your user to the `docker` group (see [Post-installation steps for Linux | Docker Documentation](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user)) or execute docker commands with `sudo`

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 19, 2021, 11:28pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/11 "2021-05-19T23:28:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 19, 2021, 11:33pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/12 "2021-05-19T23:33:37Z")

</div>

i have officially given up after 4 days … ☹

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 20, 2021, 7:39am UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/13 "2021-05-20T07:39:10Z")

</div>

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

```auto
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](https://docs.storj.io/node/), [CLI Install - Node Operator](https://docs.storj.io/node/setup/cli) in particular.

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 20, 2021, 6:00pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/14 "2021-05-20T18:00:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 20, 2021, 6:41pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/15 "2021-05-20T18:41:54Z")

</div>

> [@marioahing2001](#):
>
> `/dev/sdb1`

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](https://docs.storj.io/node/resources/faq/linux-static-mount), 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:

```auto
df -HT

```

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 20, 2021, 6:52pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/16 "2021-05-20T18:52:39Z")

</div>

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 …

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 20, 2021, 6:56pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/17 "2021-05-20T18:56:36Z")

</div>

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](https://docs.storj.io/node/resources/faq/linux-static-mount)  
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](https://support.storj.io/hc/en-us/articles/360026612332-Install-storagenode-on-Raspberry-Pi3-or-higher)

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 20, 2021, 7:11pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/18 "2021-05-20T19:11:07Z")

</div>

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:~$

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 20, 2021, 7:11pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/19 "2021-05-20T19:11:35Z")

</div>

/etc/fstab: static file system information.

```auto
#
# 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

```

---

<div class="post-metadata">

**Author:** ![marioahing2001](https://storj.bcdn.literatehosting.com/letter_avatar/marioahing2001/32/5_5575768a8748004e209b776fc1b2916d.png) [@marioahing2001](https://forum.storj.io/u/marioahing2001)\
**Post date:** [May 20, 2021, 7:12pm UTC](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921/20 "2021-05-20T19:12:43Z")

</div>

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:~$

[Next page](https://forum.storj.io/t/installing-storj-node-on-ubuntu/13921.md?page=2)
