Closed piboistudios closed 2 years ago
I'm going to attempt to start a separate ipfsd-ctl server process and create remote factories from that... I have never had problems using the http client from cluster workers, but I need the full functionality of a node...
EDIT:
Creating a remote factory from an ipfsd server returns an ipfsd
instance with a null
api
😀
EDIT EDIT:
I eventually got the ipfsd instance to spawn. I am only able to get OrbitDB to replicate in one direction.. If I open an existing orbit store in the subprocess via the OrbitDB instance listening on an ipfs-client
(connected to the ipfsd
instance I finally got running, the records replicate into the process, but any records I put into the DB inside the process do not replicate outside of it)
EDIT EDIT EDIT: Eventually, I get a pubsub socket hang-up when using the client:
2022-05-15T16:55:05.523Z [ERROR] pubsub: FetchError: request to http://127.0.0.1:37829/api/v0/pubsub/peers?arg=uL29yYml0ZGIvemRwdUFxVnhtU2d6djZWNkhYQ2VmaHo1alNKd3p2V3BOSDVhYUhKaUx1WFhWTDhFbi93ZWIzbWFpbC5oYXJha2EubWFpbHN0b3Jl failed, reason: socket hang up
Well... I was able to finally get an ipfsd-ctl
remote node spawned in the Haraka subprocess.
This should probably be documented in ipfsd-ctl
(although, perhaps it is obvious to anyone that understands how ipfsd-ctl
works internally...), but you can't spawn a remote node without an HTTP API...
@piboistudios : this is a good point. Glad you got unblocked. We'd welcome a PR in ipfsd-ctl to clarify this.
0.62.3
Pop!_OS 21.10
Config
Severity:
Critical
Description:
I simply run an IPFS node from within a Haraka plugin (which runs as a node cluster worker) and get all sorts of errors.
The first error comes as:
Where, for some reason the options object is anything but a "plain object" (as told by
is-plain-obj
), so then I just hack atmerge-options
and skip the check that throws this error...I then get this error:
I then tried to use
ipfsd-ctl
to spawn a Go IPFSD node and get this error:(its also interesting to note that despite passing options to the Go IPFSD node explicitly turning off API, Gateway and RPC... it is still trying to open an API on 5001, which I already have open for another node..)
Steps to reproduce the error:
I am not 100% sure of the circumstances under which this occurs... I would guess the simplest way to reproduce the issue is to spin up a node subprocess starting an IPFS node, but I'm not sure if that's exactly what Haraka is doing that is causing things to be... different.. other than using cluster workers; as this setup works perfectly fine anywhere else.
My IPFS config looks like this:
I ended up explicitly adding the
Keychain
andDatastore
options to attempt to resolve; no avail