Skip to content
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

ipfs/kubo:master-latest docker causing error #10558

Open
3 tasks done
ehsan6sha opened this issue Oct 23, 2024 · 1 comment
Open
3 tasks done

ipfs/kubo:master-latest docker causing error #10558

ehsan6sha opened this issue Oct 23, 2024 · 1 comment
Labels
need/author-input Needs input from the original author

Comments

@ehsan6sha
Copy link

Checklist

Installation method

built from source

Version

Kubo version: 0.32.0-dev-56c68a1
Repo version: 16
System version: arm64/linux
Golang version: go1.23.2

Config

No response

Description

the latest update starts to show
Error: invalid or no prefix in shard identifier: �������������������������������������

even when started fresh

@ehsan6sha ehsan6sha added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Oct 23, 2024
@gammazero
Copy link
Contributor

gammazero commented Oct 29, 2024

@ehsan6sha

Check Config

It seems like something is wrong with the config in the Docker container. Are you using the default config? If you are, the config should be located in the container at /data/ipfs/config. Could you post the output from the command:

docker exec -ti <container_id> /bin/cat /data/ipfs/config 

If the IPFS repo is mounted outside of the container, then check for faults in the storage where the repo is mounted. If this is the case, them please run disk diagnostics to check for faults.

Error Detail

The error comes from here because the shard identifier above does not start with "/repo/flatfs/shard/".

Kubo calls this from the flatfs plugin, here, getting the shard identifier from the "shardFunc" parameter in the fsrepo datastore config. Normally the config should contain something like:

 "Datastore": {                                                                                                           
    "Spec": {                                                                                                              
      "mounts": [                                                                                                          
        {                                                                                                                  
          "child": {                                                                                                       
            "path": "blocks",                                                                                              
            "shardFunc": "/repo/flatfs/shard/v1/next-to-last/2",                                                           
            "sync": true,                                                                                                  
            "type": "flatfs"                                                                                               
          },                                                                                                               
          "mountpoint": "/blocks",                                                                                         
          "prefix": "flatfs.datastore",                                                                                    
          "type": "measure"                                                                                                
        },
    ...
}

@gammazero gammazero added need/author-input Needs input from the original author and removed kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/author-input Needs input from the original author
Projects
None yet
Development

No branches or pull requests

2 participants