Open Kubuxu opened 8 years ago
It wasn't the issue
I've found the issue:
-r--r--r-- 1 kubuxu kubuxu 0 Jan 1 13:33 404.html
dr-xr-xr-x 1 kubuxu kubuxu 0 Jan 1 13:33 about
dr-xr-xr-x 1 kubuxu kubuxu 0 Jan 1 13:33 css
dr-xr-xr-x 1 kubuxu kubuxu 0 Jan 1 13:33 fonts
-r--r--r-- 1 kubuxu kubuxu 0 Jan 1 13:33 index.html
-r--r--r-- 1 kubuxu kubuxu 5072 Jan 1 13:33 index.xml
dr-xr-xr-x 1 kubuxu kubuxu 0 Jan 1 13:33 js
dr-xr-xr-x 1 kubuxu kubuxu 0 Jan 1 13:33 page
dr-xr-xr-x 1 kubuxu kubuxu 0 Jan 1 13:33 post
-r--r--r-- 1 kubuxu kubuxu 636 Jan 1 13:33 sitemap.xml
dr-xr-xr-x 1 kubuxu kubuxu 0 Jan 1 13:33 tags
The directory is getting corrupted for some reason. It might be connected with fact that my leveldb was corrupted some time ago.
Still doesn't work. This time it fails on getting about
, it's content is fine.
Can someone try recreating it?
ipfs mount
ls /ipns/local/
Expected: list of files
Result: ls: reading directory /ipns/local/: Input/output error
It was able to track it down to this line: https://github.com/ipfs/go-ipfs/blob/master/fuse/ipns/ipns_unix.go#L275
Fails with error: file does not exist
, and file is about
(which is directory), and previously it was index.html
empty at the time.
The site works as you can see on: https://ipfs.io/ipfs/QmS66gxnpRxHDF1YnChjjpBm2KhCbh3TSfJKRyo2PovjTy/
my guess is that the mountpoint doesnt get fully unmounted before the daemon process is killed, resulting in fuse being in a weird state. We are working on getting fuse tests working on CI so we can test these things better
It is probably that as published hash changed after restart.
systemd restarts the daemon by shutting it down and starting again. Shutdown unmounts FUSE
Failing syscall is
getdents
: