I had an annoying issue while trying to start my Storj node. I have a Raspberry Pi3 with a 120GB SSD drive connected trough usb. Sadly, while starting the daemon and the node seemed to work, I kept getting the error: daemon is not running, try: strojshare daemon.
It seemed that this was caused by not having the correct permissions set which made the Storj client unable to write data to the connected SSD.
To fix this annoying ‘daemon is not running, try: storjshare daemon’, you should be setting the right permissions on your external drive. How? Read on below.
First (if you haven’t done already) you need to format the drive with. At ssd enter the desired name for the volume. In this case, I chose for ssd so it’s easily recognizable for me in the list of drives.
sudo mkfs.ext4 /dev/sda -L ssd
Next, you will mount the drive. This is done by entering the following commands in your shell. At /mnt you can enter your own desired mountpoint. In this case I chose for /mnt.
sudo mount /dev/sda /mnt
Then you need the correct permissions on the drive. To do this, you should enter the following. Pay attention that you point to the correct mountpoint that you set in the last step though.
sudo chown pi:pi /mnt sudo chmod 777 /mnt
Fixed the: daemon is not running, try: storjshare daemon
If followed the steps above correctly you now should have fixed the problem. You can create a new config using the following command.
storjshare create --storj=0x68245d58F0e0A55C4d55b0495315f507D1D82C07 --storage=/mnt --size=110GB --rpcport 5008 --rpcaddress xxx.xxx.xxx.xxx --maxtunnels 3 --tunnelportmin 5009 --tunnelportmax 5012
Set the parameters to your own desired values and don’t forget to forward the port on your router. Forward the port entered at –rpcport to your raspberry’s IP address.
Next you can start the daemon and the Storj node.
storjshare daemon storjshare start --config /home/pi/.config/storjshare/configs/_the_name_of_the_config_file.json
Now the node should start connecting though the desired port and after a few seconds you can enter the status command to see if all is working well.
After a few seconds you should be presented with a table that shows the status of your Storj node!