This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Can't disable preload for CLI daemon #1529
Copy link
Copy link
Closed
Labels
P3Low: Not priority right nowLow: Not priority right nowexp/expertHaving worked on the specific codebase is importantHaving worked on the specific codebase is importanthelp wantedSeeking public contribution on this issueSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)
Description
- Version: js-ipfs version: 0.31.7
- Platform: Linux 4.18.5-arch1-1-ARCH Add to cli:
ipfs pin [-r] <ipfs-path>#1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux - Subsystem: Preload
Type:
Bug
Severity:
Low
Description:
Can't disable preloading when running the daemon via the CLI. Even with preload.enabled set to false, the daemon seems to not respect it and when adding data, automatically does the preloading requests.
Steps to reproduce the error:
$ export IPFS_PATH=/tmp/tmp.1MVJtmJWT0
$ node src/cli/bin.js init
$ node src/cli/bin.js config --bool preload.enabled false
$ node src/cli/bin.js config preload.enabled
false
$ jq .preload $IPFS_PATH/config
{
"enabled": false
}
$ # run daemon with debug to see if preloading is happening
$ DEBUG=jsipfs:preload node src/cli/bin.js daemonNow in new terminal window
$ export IPFS_PATH=/tmp/tmp.1MVJtmJWT0
$ node src/cli/bin.js add -r node_modules/async # can be anything, just add itAnd look back in the first terminal window, there will be bunch of preloading happening, even though preloading is supposed to be off.
Metadata
Metadata
Assignees
Labels
P3Low: Not priority right nowLow: Not priority right nowexp/expertHaving worked on the specific codebase is importantHaving worked on the specific codebase is importanthelp wantedSeeking public contribution on this issueSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)