Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of IPFS on mirror #22

Open
mitra42 opened this issue Jul 25, 2018 · 5 comments
Open

Installation of IPFS on mirror #22

mitra42 opened this issue Jul 25, 2018 · 5 comments
Labels
Transports IPFS, Webtorrent, Gun etc

Comments

@mitra42
Copy link
Collaborator

mitra42 commented Jul 25, 2018

See #11 (Meta-IPFS)

Notes from @parkan

  • to use filestore just pass &nocopy=truew
  • install from these binaries, needs a bit of platform detection, will look for an automagic script https://dist.ipfs.io/#go-ipfs
  • filestore is an experimental feature so need to run ipfs config --json Experimental.FilestoreEnabled true once after installing & starting daemon
@mitra42 mitra42 added the Transports IPFS, Webtorrent, Gun etc label Aug 28, 2018
@mitra42
Copy link
Collaborator Author

mitra42 commented Feb 11, 2019

Installation is done, (install.sh and ipfs_container_daemon.sh in the #ipfs branch) but still need to figure out how to autostart at same time as mirrorHttp.

@mitra42 mitra42 mentioned this issue Feb 11, 2019
6 tasks
@parkan
Copy link
Member

parkan commented Feb 11, 2019

might be good to use supervisord's groups for this: http://supervisord.org/configuration.html#group-x-section-settings

(will also help with auto-restarts etc)

@mitra42
Copy link
Collaborator Author

mitra42 commented Feb 12, 2019

Yes - that's what we do on the production servers at the IA, there are two challenges - one addressed in ipfs/kubo#5983 was related to knowing whether the daemon was already started. I've now got the workaround I posted there, but its a bit of a kludge!

Second issue is that the platforms we want this to go on don't necessarily have supervisord so for example this isn't going to work on a mac. I think this is my problem, not IPFS's though it would be easier I think if the suggestion I made in 5983 happened.

@parkan
Copy link
Member

parkan commented Feb 12, 2019

it sounds like you want similar functionality (detach) to start-stop-daemon? honestly this is done very inconsistently across different servers and I wouldn't expect super nice behavior in userland without using a harness like supervisord (not really the right place to do daemon wrangling)

checking $? of ipfs swarm addrs is quite sound, it ensures that the startup got to the point of binding addresses, which is something that you want

@mitra42
Copy link
Collaborator Author

mitra42 commented Feb 12, 2019

I agree with you, I'd rather see supervisord, but on some of these platforms they are seriously stripped down (such as the Rachel3+ wifi/storage appliance) and on others (e.g. Mac) its not supervisord and I haven't figured out (just not gotten to it yet) how to insert a daemon start on a Mac.

I've not used start-stop-daemon (more familiar with supervisord). I think having a supported function in IPFS would be good (e.g. appropriate flags to ipfs daemon rather than depending on the return code behaviour of ipfs swarm addrs) since my instinct is that that behavior of swarm addrs could change, which is what I'll use for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Transports IPFS, Webtorrent, Gun etc
Projects
None yet
Development

No branches or pull requests

2 participants