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 daemon --mount not working #10340

Open
3 tasks done
gdkrmr opened this issue Feb 14, 2024 · 3 comments
Open
3 tasks done

ipfs daemon --mount not working #10340

gdkrmr opened this issue Feb 14, 2024 · 3 comments
Labels
kind/bug A bug in existing code (including security flaws) P3 Low: Not priority right now

Comments

@gdkrmr
Copy link

gdkrmr commented Feb 14, 2024

Checklist

Installation method

third-party binary

Version

Kubo version: 0.25.0
Repo version: 15
System version: amd64/linux
Golang version: go1.21.5

Config

{
  "API": {
    "HTTPHeaders": {}
  },
  "Addresses": {
    "API": "/ip4/127.0.0.1/tcp/5001",
    "Announce": [],
    "AppendAnnounce": [],
    "Gateway": "/ip4/127.0.0.1/tcp/8082",
    "NoAnnounce": [],
    "Swarm": [
      "/ip4/0.0.0.0/tcp/4001",
      "/ip6/::/tcp/4001",
      "/ip4/0.0.0.0/udp/4001/quic-v1",
      "/ip4/0.0.0.0/udp/4001/quic-v1/webtransport",
      "/ip6/::/udp/4001/quic-v1",
      "/ip6/::/udp/4001/quic-v1/webtransport"
    ]
  },
  "AutoNAT": {},
  "Bootstrap": [
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt",
    "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
    "/ip4/104.131.131.82/udp/4001/quic-v1/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
  ],
  "DNS": {
    "Resolvers": {}
  },
  "Datastore": {
    "BloomFilterSize": 0,
    "GCPeriod": "1h",
    "HashOnRead": false,
    "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"
        },
        {
          "child": {
            "compression": "none",
            "path": "datastore",
            "type": "levelds"
          },
          "mountpoint": "/",
          "prefix": "leveldb.datastore",
          "type": "measure"
        }
      ],
      "type": "mount"
    },
    "StorageGCWatermark": 90,
    "StorageMax": "10GB"
  },
  "Discovery": {
    "MDNS": {
      "Enabled": true
    }
  },
  "Experimental": {
    "FilestoreEnabled": true,
    "GraphsyncEnabled": false,
    "Libp2pStreamMounting": false,
    "OptimisticProvide": false,
    "OptimisticProvideJobsPoolSize": 0,
    "P2pHttpProxy": false,
    "StrategicProviding": false,
    "UrlstoreEnabled": false
  },
  "Gateway": {
    "APICommands": [],
    "DeserializedResponses": null,
    "DisableHTMLErrors": null,
    "ExposeRoutingAPI": null,
    "HTTPHeaders": {},
    "NoDNSLink": false,
    "NoFetch": false,
    "PathPrefixes": [],
    "PublicGateways": null,
    "RootRedirect": ""
  },
  "Identity": {
    "PeerID": "12D3KooWGq9xUywoxFjVUrM4J2SvfEqZULS18oE3hnz3cnqYZ7kZ"
  },
  "Internal": {},
  "Ipns": {
    "RecordLifetime": "",
    "RepublishPeriod": "",
    "ResolveCacheSize": 128
  },
  "Migration": {
    "DownloadSources": [],
    "Keep": ""
  },
  "Mounts": {
    "FuseAllowOther": false,
    "IPFS": "/ipfs",
    "IPNS": "/ipns"
  },
  "Peering": {
    "Peers": null
  },
  "Pinning": {
    "RemoteServices": {}
  },
  "Plugins": {
    "Plugins": null
  },
  "Provider": {
    "Strategy": ""
  },
  "Pubsub": {
    "DisableSigning": false,
    "Router": ""
  },
  "Reprovider": {},
  "Routing": {
    "AcceleratedDHTClient": false,
    "Methods": null,
    "Routers": null
  },
  "Swarm": {
    "AddrFilters": null,
    "ConnMgr": {},
    "DisableBandwidthMetrics": false,
    "DisableNatPortMap": false,
    "RelayClient": {},
    "RelayService": {},
    "ResourceMgr": {},
    "Transports": {
      "Multiplexers": {},
      "Network": {},
      "Security": {}
    }
  }
}

Description

ipfs daemon --mount

does not work. I have seen similar issues reported here but I couldn't find this exact same issue.

kubo is installed through the Manjaro repositories. I have also tested this with the v0.26.0 binary downloaded from Github and a colleague confirmed the issue.

I have created /ipfs and /ipns and the folders belong to me

$ ll / | grep ip                                                                         
drwxr-xr-x   2 gkraemer gkraemer 4.0K Feb 12 22:17 ipfs
drwxr-xr-x   2 gkraemer gkraemer 4.0K Feb 12 22:17 ipns

after launching ipfs daemon --mount, something gets mounted in these folders

$ ll / | grep ip                                                        
d--x--x--x   1 root root    0 Feb 14 21:13 ipfs
d--x--x--x   1 root root    0 Feb 14 21:13 ipns

trying to access anything from these folders tells me "No such file or directory".

I have tried setting user_allow_other and changing the permissions of the directories while unmounted and mounted but to no avail.

@gdkrmr gdkrmr added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Feb 14, 2024
@gdkrmr gdkrmr changed the title /ipfs not accessible ipfs daemon --mount not working Feb 14, 2024
@aschmahmann
Copy link
Contributor

How are you running kubo? Are you running ipfs daemon as root (shouldn't be needed), the folder permissions changing looks suspicious.

@aschmahmann aschmahmann added P3 Low: Not priority right now and removed need/triage Needs initial labeling and prioritization labels Feb 20, 2024
@3ri4nG0ld
Copy link

This feature could be reimplemented using "ipfs filestore", I don't know if something similar is already thought of, or if you plan to keep the --mount, but both methods would seem useful to me.

@gdkrmr
Copy link
Author

gdkrmr commented Feb 21, 2024

How are you running kubo? Are you running ipfs daemon as root (shouldn't be needed), the folder permissions changing looks suspicious.

I don't run kubo as root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) P3 Low: Not priority right now
Projects
None yet
Development

No branches or pull requests

3 participants