Closed Sjors closed 4 months ago
Update: the installer finished after about 15 minutes total. If this can't be made faster, then at least I think it should be more verbose and show some progress.
I suspect that was was cargo build --quiet --bin ...
to take long time? I have the same behavior
This can be caused if you change your rust version, and the recompilation of all the crates (that are a few) is trigger
The lightning
user has its own rust installation. I didn't change it, but maybe CLN did?
Current version is cargo 1.67.1 (8ecd4f20a 2023-01-10)
i think i saw a commit for cln that updated the rust version and it might be that cargo updated its repo which takes a long time (git resolving deltas). I gave it a quick search and found this: https://github.com/rust-lang/cargo/issues/11014
The lightning user has its own rust installation. I didn't change it, but maybe CLN did?
No, we did not, we do not force the rustc version at the moment but it is possible that cargo is rebuilding.
If this happens could you run a patch version of the Makefile
where you remove the cargo build --silent
and use just cargo build
? I can make a patch for you if you like
Good idea, I'll try that if it happens again.
It's being slow again while upgrading to v24.02, but I can't find the cargo build --silent
line.
Cargo version before install: cargo 1.67.1
It was a bit faster than last time, only about 5 minutes. Cargo version after install is unchanged.
git grep returned some item
cln-rpc/Makefile:12: cargo build ${CARGO_OPTS} --example cln-rpc-getinfo
cln-rpc/Makefile:15: cargo build ${CARGO_OPTS} --example cln-plugin-startup
cln-rpc/Makefile:18: cargo build ${CARGO_OPTS} --example cln-plugin-reentrant
plugins/Makefile:257: cargo build ${CARGO_OPTS} --bin cln-grpc
Cargo version after install is unchanged.
The cln-rust library is changed in this case, causing rebuilding (maybe) but I do not know why it is taking all this time :/
Oh I guess --silent
is in CARGO_OPTS
? Will try that next time.
I did a git clean -dfx
, ./configure ...
after this to see what would happen. This time it built quickly.
I'm trying to install
v23.11rc1
on Ubuntu 23.04, but the installer seems to get stuck.Log for the latter command:
1 CPU seems to be 100% busy with
cargo build --quiet --bin cln-grpc
for 10+ minutes now. I guess I'll just wait, but the whole build never took more than a few minutes on this machine.