-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR bitswap: Error writing block to datastore: sync /ipfs/blocks: invalid argument bitswap.go:303 #3799
Comments
Invalid argument is a new one. After a small amount of research i see that some filesystems (particularly on virtualbox for some reason?) do not support calling fsync on directories. This might be a lead here. What filesystem are you using? |
I'm using vboxsf.
The host (Windows 8.1) is using NTFS. |
You should be able to work it around by switching |
@Kubuxu |
not sure, but it might help |
@starrychloe any update here? does this still happen? |
Yes, it seems to help. No invalid argument errors in the console.
|
hey all I'd like to draw attention to this bug again. This still happening for setups that have point the More details of the failure: pi@raspberrypi:~/src $ ipfs version
ipfs version 0.4.13
pi@raspberrypi:~/src $ IPFS_LOGGING=debug ipfs init
19:20:35.934 DEBUG cmd/ipfs: config path is /mnt/ext-dsk/ipfs main.go:257
19:20:35.938 INFO cmd/ipfs: IPFS_PATH /mnt/ext-dsk/ipfs main.go:301
19:20:35.940 DEBUG cmd/ipfs: calling pre-command hooks... main.go:295
19:20:35.941 DEBUG lock: Checking lock lock.go:32
19:20:35.949 DEBUG lock: File doesn't exist: /mnt/ext-dsk/ipfs/repo.lock lock.go:34
19:20:35.950 INFO cmd/ipfs: checking if daemon is running... init.go:66
19:20:35.951 DEBUG cmd/ipfs: executing command locally main.go:342
initializing IPFS node at /mnt/ext-dsk/ipfs
generating 2048-bit RSA keypair...done
peer identity: QmT7o2Mhh1KAkKwCVGFGru6saus3WdpYnwNVKEVbekNAA9
Error: sync /mnt/ext-dsk/ipfs/datastore: invalid argument
pi@raspberrypi:~/src $ ipfs daemon
Initializing daemon...
Adjusting current ulimit to 2048...
Successfully raised file descriptor limit to 2048.
19:22:23.899 ERROR cmd/ipfs: error from node construction: failure writing to dagstore: sync /mnt/ext-dsk/ipfs/blocks: invalid argument daemon.go:320
Error: failure writing to dagstore: sync /mnt/ext-dsk/ipfs/blocks: invalid argument
pi@raspberrypi:~/src $ ipfs config show |grep Datastore -A 10
"Datastore": {
"BloomFilterSize": 0,
"GCPeriod": "1h",
"HashOnRead": false,
"NoSync": true,
"Spec": {
"mounts": [
{
"child": {
"path": "blocks",
"shardFunc": "/repo/flatfs/shard/v1/next-to-last/2", Here is another instance of the problem: https://unix.stackexchange.com/questions/329894/is-it-possible-to-mount-ipfs-folder-to-an-external-drive Perhaps I can lend a hand fixing the issue, pointing me in the right direction would help get me started |
@eginez Does the issue persist if you init with |
@whyrusleeping unfortunately yes I get the same error |
Alright I think I got to the bottom of it. I think there is a bug while parsing the config file around these lines: https://github.com/ipfs/go-ipfs/blob/master/repo/fsrepo/fsrepo.go#L398. The We should either warn/fail on the presence of |
…pfs#3799 License: MIT Signed-off-by: Esteban Ginez <eginez@gmail.com>
…pfs#3799 License: MIT Signed-off-by: Esteban Ginez <eginez@gmail.com>
…pfs#3799 License: MIT Signed-off-by: Esteban Ginez <eginez@gmail.com>
…pfs#3799 License: MIT Signed-off-by: Esteban Ginez <eginez@gmail.com>
…3799 License: MIT Signed-off-by: Esteban Ginez <eginez@gmail.com>
and it just repeats...
Version information:
Type:
Error during running. Must be a bug somewhere.
Priority:
P4
Description:
IPFS daemon leaves errors in the console as it runs. I don't know what causes it, but clicking on big, old IPFS links seems to cause it. I can view
/ipfs/datastore/
and/ipfs/blocks
fine. I can access the cat pic http://127.0.0.1:8080/ipfs/QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ/cat.jpg fine. These links seem to cause the error to print:http://127.0.0.1:8080/ipfs/QmcYKHpcBJNL9uaxxTZJGuk9QYBfS3cDuYKoELPhfdmRqn
http://127.0.0.1:8080/ipfs/QmbzpQmRULESivRvpP9SZL2vsu1dGkmczwVKCWzD2oXdMP
http://127.0.0.1:8080/ipfs/QmRcsML93Bwi8V9DiGhX4Zs9ypDgHSCWCpAMxd7cpHcS1f
The text was updated successfully, but these errors were encountered: