Skip to content

Skip hidden files ( Lotus-worker ) when scanning the storage #11320

Open
@cryptowhizzard

Description

@cryptowhizzard

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the Latest release, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus fvm/fevm - Lotus FVM and FEVM interactions
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt/WinningPoSt)
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Lotus Version

lotus-worker version 1.23.4-dev+mainnet+git.1358d7012

Repro Steps

Running NFS on PC1 / PC2 storage

Describe the Bug

When lotus-worker is scanning the storage it stumbles on Hidden files from NFS / Other workers.

Please have lotus-worker skip the hidden files from NFS.

Logging Information

2023-10-10T14:20:07.596+0200	INFO	paramfetch	go-paramfetch@v0.0.4/paramfetch.go:233	parameter and key-fetching complete
2023-10-10T14:20:07.602+0200	INFO	badger	v2@v2.2007.4/levels.go:183	All 0 tables opened in 0s

2023-10-10T14:20:07.603+0200	INFO	badger	v2@v2.2007.4/value.go:1158	Replaying file id: 0 at offset: 0

2023-10-10T14:20:07.603+0200	INFO	badger	v2@v2.2007.4/value.go:1178	Replay took: 1.907µs

2023-10-10T14:20:07.604+0200	INFO	badger	v2@v2.2007.4/levels.go:183	All 0 tables opened in 0s

2023-10-10T14:20:07.604+0200	INFO	badger	v2@v2.2007.4/value.go:1158	Replaying file id: 0 at offset: 0

2023-10-10T14:20:07.604+0200	INFO	badger	v2@v2.2007.4/value.go:1178	Replay took: 2.954µs

2023-10-10T14:20:07.604+0200	INFO	main	lotus-worker/main.go:531	Opening local storage; connecting to master
2023-10-10T14:20:07.691+0200	WARN	main	lotus-worker/main.go:114	opening path /mnt/PC1Worker0009-s3/core8/:
    github.com/filecoin-project/lotus/storage/paths.(*Local).open
        /root/lotus/storage/paths/local.go:235
  - parse sector id .nfs000000000045cb370000042c:
    github.com/filecoin-project/lotus/storage/paths.(*Local).declareSectors
        /root/lotus/storage/paths/local.go:334
  - sscanf sector name ('.nfs000000000045cb370000042c'):
    github.com/filecoin-project/lotus/storage/sealer/storiface.ParseSectorID
        /root/lotus/storage/sealer/storiface/filetype.go:216
  - input does not match format
2023-10-10T14:20:07.774+0200	WARN	main	lotus-worker/main.go:114	could not get API info for Worker:
    github.com/filecoin-project/lotus/cli/util.GetRawAPIMulti
        /root/lotus/cli/util/api.go:149
  - could not get api endpoint:
    github.com/filecoin-project/lotus/cli/util.GetAPIInfoMulti
        /root/lotus/cli/util/api.go:101
  - API not running (no endpoint)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions