Skip to content

IPNS mount does not work after daemon restart and mouting #2142

Open
@Kubuxu

Description

@Kubuxu
2d [@vs1:~/sites/kubuxu.ovh] 130 $ systemctl --user restart ipfs
2d [@vs1:~/sites/kubuxu.ovh] $ ipfs mount
IPFS mounted at: /ipfs
IPNS mounted at: /ipns
2d [@vs1:~/sites/kubuxu.ovh] $ ipfs name resolve
/ipfs/QmRSEt9LqrpBjgf39huPVe1aipGFNH8Qk9u7sUSyQSqt4T
2d [@vs1:~/sites/kubuxu.ovh] $ ls /ipns/local/
ls: reading directory /ipns/local: Input/output error
2d [@vs1:~/sites/kubuxu.ovh] 2 $ ipfs ls /ipfs/QmRSEt9LqrpBjgf39huPVe1aipGFNH8Qk9u7sUSyQSqt4T
QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH 6     404.html
QmNXXmV7XowpDuhsrF96N2ADegyPvwwyMJnW3RMwxqwzHb 4926  about/
QmRCnGA4bYTG1ybN2U7vuaWr3s3vUDtCuE5tpBKqAPd3mz 33804 css/
QmReZDKghnFerokm9vzxFFJ7jSKsz7us5tWD7hzLLzot1b 68778 fonts/
QmVvRjTKyx3UySR1CyjEcnBDEPYcLBoqEFVyT3NAXyFko2 5129  index.html
QmeLs8b61eMw9FceAXT4V6NJJ1gPJuchC7scNxKqjzGjgW 5136  index.xml
QmdcJzyjMYRWXJU1JzdFUvm6huJGMG7PSB4XaGbnAn7hfL 94177 js/
Qmd1LxtACZvQLwTGH9d5muu7Xva7HmS77xhuKo498LysHS 452   page/
QmctpNqLdJZk4YF8FT3urdCyNxoPcvV9qJUUeQ16DidaW4 28338 post/
QmZHgp9zNPGMzVPq8mQE6U7PJ8jjN7SsWuizxpPNaEMtcR 700   sitemap.xml
QmVCnSBtWci1BTUvWigNnTVfbPK1qvRm1SpM1EePYLhuKK 14385 tags/

systemd restarts the daemon by shutting it down and starting again.
Shutdown unmounts FUSE

2d [@vs1:~/sites/kubuxu.ovh] 2 $ ls /ipns/
local  QmdKbeXoXnMbPDfLsAFPGZDJ41bQuRNKALQSydJ66k1FfH
2d [@vs1:~/sites/kubuxu.ovh] $ systemctl --user stop ipfs
2d [@vs1:~/sites/kubuxu.ovh] $ ls /ipns/
2d [@vs1:~/sites/kubuxu.ovh] $

Failing syscall is getdents:

stat("/ipns/QmdKbeXoXnMbPDfLsAFPGZDJ41bQuRNKALQSydJ66k1FfH/", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat("/ipns/QmdKbeXoXnMbPDfLsAFPGZDJ41bQuRNKALQSydJ66k1FfH/", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/ipns/QmdKbeXoXnMbPDfLsAFPGZDJ41bQuRNKALQSydJ66k1FfH/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
getdents(3, 0xc49cd0, 32768)            = -1 EIO (Input/output error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions