From @SCBuergel on Mon May 15 2017 14:35:49 GMT+0000 (UTC)
I need some ipfs hashes to remain available over months or years, therefore I want to run the ipfs daemon on my own machine. What is the best way to achieve this?
This is what I tried:
- I am running a cloud-hosted VM, installed the latest ipfs and did
ipfs init
, all working fine. - I
ipfs pin
the objects that I want to remain available, all still fine. - I run
ipfs daemon
inside atmux
session to run in background and also when I log out. Since the cloud machine might reboot at times I wantipfs daemon
to run on boot. Therefore I added the following lines to/etc/rc.local
tmux new-session -d -s myipfs
tmux send -t myipfs ipfs\ daemon ENTER
exit 0
Unfortunately ipfs does not seem to be able to launch inside a tmux
session - it gives me the following error:
root@xxx:~# ipfs daemon
Initializing daemon...
Adjusting current ulimit to 2048...
Successfully raised file descriptor limit to 2048.
Error: no IPFS repo found in ~/.ipfs.
please run: 'ipfs init'
root@xxx:~#
When running ipfs daemon
outside of tmux
all is good.
Copied from original issue: https://github.com/ipfs/support/issues/62