Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

iroh-one fails to start #185

Closed
rklaehn opened this issue Sep 30, 2022 · 4 comments · Fixed by n0-computer/iroh#256 or n0-computer/iroh#317
Closed

iroh-one fails to start #185

rklaehn opened this issue Sep 30, 2022 · 4 comments · Fixed by n0-computer/iroh#256 or n0-computer/iroh#317
Assignees

Comments

@rklaehn
Copy link
Contributor

rklaehn commented Sep 30, 2022

When starting iroh-one, it bails out with an error message:

iroh % cargo run --bin iroh-one                       
   Compiling iroh-bitswap v0.1.0 (/Users/rklaehn/projects_git/iroh/iroh-bitswap)
   Compiling iroh-store v0.1.0 (/Users/rklaehn/projects_git/iroh/iroh-store)
   Compiling iroh-gateway v0.1.0 (/Users/rklaehn/projects_git/iroh/iroh-gateway)
   Compiling iroh-p2p v0.1.0 (/Users/rklaehn/projects_git/iroh/iroh-p2p)
   Compiling iroh-one v0.1.0 (/Users/rklaehn/projects_git/iroh/iroh-one)
    Finished dev [unoptimized + debuginfo] target(s) in 16.12s
     Running `target/debug/iroh-one`
Error: IO error: No such file or directory: While mkdir if missing: No such file or directory

Looking into it a bit, it seems the default config that is being used when starting without config is lacking some things. When manually setting the three parameters config.store.path, config.p2p.key_store_path and config.gateway.rpc_client.gateway_addr, it works.

It might be that there is something wrong with how the default args are being constructed.

Tried this both on m1 mac and amd64 linux. Exactly the same behaviour.

@Arqu
Copy link
Collaborator

Arqu commented Sep 30, 2022

Hmmm, so the only required bit should be the store path which you should be able to pass in with cargo run --bin iroh-one -- --store-path=some_path. Also think that a recent update (think b5 did it) should have sane defaults so this should have worked out of the box.
Either case it should at least be documented in a readme or something.

@Arqu
Copy link
Collaborator

Arqu commented Sep 30, 2022

Reopening just to wrap up the readme later.

@Arqu Arqu reopened this Sep 30, 2022
@rklaehn
Copy link
Contributor Author

rklaehn commented Oct 2, 2022

Yes, when passing just the store path it is working now.

I think it would be nice to print a nicer error message when it is run without any parameters, but that can be done separately. The current error is a bit cryptic.

Error: IO error: No such file or directory: While mkdir if missing: No such file or directory

@b5
Copy link
Member

b5 commented Oct 10, 2022

This will be fixed by #157

b5 referenced this issue in n0-computer/iroh Oct 10, 2022
use store exported path in iroh-one

closes #255, closes #309
@b5 b5 self-assigned this Oct 10, 2022
b5 referenced this issue in n0-computer/iroh Oct 10, 2022
use store exported path in iroh-one

closes #255, closes #309
b5 referenced this issue in n0-computer/iroh Oct 10, 2022
use store exported path in iroh-one

closes #255, closes #309
b5 referenced this issue in n0-computer/iroh Oct 10, 2022
…nt (#317)

use store exported path in iroh-one

closes #255, closes #309
@dignifiedquire dignifiedquire transferred this issue from n0-computer/iroh Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
3 participants