brig icon indicating copy to clipboard operation
brig copied to clipboard

brig remote add Fail?

Open chasingegg opened this issue 5 years ago • 7 comments

Hi there, I use two machines to connect each other by following the instructions on the official website(brig remote add fingerprint in both machines). However, when I test by using the command brig remote list, it shows not authenticated?

brig remote list
NAME FINGERPRINT ROUNDTRIP  ONLINE  AUTHENTICATED  LASTSEEN   AUTO-UPDATE  ACCEPT PUSH  CONFLICT STRATEGY  FOLDERS  
***    *****      0s         ✔       ✘              Sun Jun 30 19:29:19 CST 2019  no           no           marker             *   

chasingegg avatar Jun 30 '19 11:06 chasingegg

Hello @chasingegg,

this shouldn't happen. A few points to check:

  • You are sure to have used the opposite fingerprint for the each side? (I have to ask)
  • Do both sides have the same version (including ipfs version)?
  • Does this happen on both sides?
  • Can you try to run brig remote ping <remote-name> on both sides?
  • Did you try to restart daemons on both sides?

sahib avatar Jun 30 '19 18:06 sahib

@sahib Thanks. I did all these things... but still not works on both sides... When I run brig remote ping <remote-name>, I got the following result.

ping to xxx: ✘ (server/capnp/local_api.capnp:Net.remotePing: rpc exception: dial: by-addr: auth: read tcp 127.0.0.1:37758->127.0.0.1:34355: read: connection reset by peer)

chasingegg avatar Jul 04 '19 13:07 chasingegg

Hello @chasingegg,

that is quite weird. Can you post the output of brig bug -s (preferably in a pastebin). Also, please paste the output of this command:

$ ipfs id $(brig id -a)

sahib avatar Jul 07 '19 14:07 sahib

@sahib Below is the result if brig bug -s.

System details:
go version:     ``go version go1.11 darwin/amd64``
uname -s -v -m: ``Darwin Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64``
IPFS config:    ``{
  "API": {
    "HTTPHeaders": {}
  },
  "Addresses": {
    "API": "/ip4/127.0.0.1/tcp/5001",
    "Announce": [],
    "Gateway": "/ip4/127.0.0.1/tcp/8080",
    "NoAnnounce": [],
    "Swarm": [
      "/ip4/0.0.0.0/tcp/4001",
      "/ip6/::/tcp/4001"
    ]
  },
  "Bootstrap": [
    "/dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
    "/dnsaddr/bootstrap.libp2p.io/ipfs/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
    "/dnsaddr/bootstrap.libp2p.io/ipfs/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
    "/dnsaddr/bootstrap.libp2p.io/ipfs/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt",
    "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
    "/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
    "/ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
    "/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
    "/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
    "/ip6/2604:a880:1:20::203:d001/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
    "/ip6/2400:6180:0:d0::151:6001/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
    "/ip6/2604:a880:800:10::4a:5001/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
    "/ip6/2a03:b0c0:0:1010::23:1001/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd"
  ],
  "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,
      "Interval": 10
    }
  },
  "Experimental": {
    "FilestoreEnabled": false,
    "Libp2pStreamMounting": true,
    "P2pHttpProxy": false,
    "PreferTLS": false,
    "QUIC": true,
    "ShardingEnabled": false,
    "UrlstoreEnabled": false
  },
  "Gateway": {
    "APICommands": [],
    "HTTPHeaders": {
      "Access-Control-Allow-Headers": [
        "X-Requested-With",
        "Range",
        "User-Agent"
      ],
      "Access-Control-Allow-Methods": [
        "GET"
      ],
      "Access-Control-Allow-Origin": [
        "*"
      ]
    },
    "NoFetch": false,
    "PathPrefixes": [],
    "RootRedirect": "",
    "Writable": false
  },
  "Identity": {
    "PeerID": "Qmc7sgSVqrwQvMRmykiqHuFgKLhV5jBafEeCEfpgFPL6PV"
  },
  "Ipns": {
    "RecordLifetime": "",
    "RepublishPeriod": "",
    "ResolveCacheSize": 128
  },
  "Mounts": {
    "FuseAllowOther": false,
    "IPFS": "/ipfs",
    "IPNS": "/ipns"
  },
  "Pubsub": {
    "DisableSigning": false,
    "Router": "",
    "StrictSignatureVerification": false
  },
  "Reprovider": {
    "Interval": "1h",
    "Strategy": "all"
  },
  "Routing": {
    "Type": "dht"
  },
  "Swarm": {
    "AddrFilters": null,
    "ConnMgr": {
      "GracePeriod": "60s",
      "HighWater": 900,
      "LowWater": 600,
      "Type": "basic"
    },
    "DisableBandwidthMetrics": false,
    "DisableNatPortMap": false,
    "DisableRelay": false,
    "EnableAutoNATService": false,
    "EnableAutoRelay": true,
    "EnableRelayHop": false
  }
}``

brig client version: ``v0.4.1+68f8766 [build: 2019-03-31T00:11:19+01:00]``

And the result of ipfs id $(brig id -a) is as follows,

{
	"ID": "Qmc7sgSVqrwQvMRmykiqHuFgKLhV5jBafEeCEfpgFPL6PV",
	"PublicKey": "CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCc9q3g0Efv2WRSNVvCJ6+7hcz1jz/iVR3YqcuAImtKnZ6tUbATWLllsdatyzDWMVCVl1Q/Ha337vEcVmfU7ijwU8Xwx7W6zHcTFyRTe8GSR6f6+fR2J2iVUZfSzmKzGb/J7Nyshr9d37jvSZ0cDX9rXColfsaYrXZZBpiRuZDZJs8w0uffm0o7yumPjQgJy2E2EAnp9k7G3mH+KYmaYvvXcXlhwM1c2/mxYz2mFIbZ2lAlMud+IScQjY9N+BRhEpoy0anilbZgvkfjblGe1lOlz5cCEBlUJnNm6udL09jU+6OdGXogjqVmDMjsAP8vvUirHJNaeXQOa7IruaSoc72tAgMBAAE=",
	"Addresses": [
		"/ip4/127.0.0.1/tcp/4001/ipfs/Qmc7sgSVqrwQvMRmykiqHuFgKLhV5jBafEeCEfpgFPL6PV",
		"/ip4/192.168.50.125/tcp/4001/ipfs/Qmc7sgSVqrwQvMRmykiqHuFgKLhV5jBafEeCEfpgFPL6PV",
		"/ip6/::1/tcp/4001/ipfs/Qmc7sgSVqrwQvMRmykiqHuFgKLhV5jBafEeCEfpgFPL6PV",
		"/ip6/2002:dac1:bd01:0:87d:39c3:a1e:f1e3/tcp/4001/ipfs/Qmc7sgSVqrwQvMRmykiqHuFgKLhV5jBafEeCEfpgFPL6PV",
		"/ip6/2002:dac1:bd01:0:6c33:426a:374c:4dbf/tcp/4001/ipfs/Qmc7sgSVqrwQvMRmykiqHuFgKLhV5jBafEeCEfpgFPL6PV",
		"/ip4/218.193.189.1/tcp/58307/ipfs/Qmc7sgSVqrwQvMRmykiqHuFgKLhV5jBafEeCEfpgFPL6PV"
	],
	"AgentVersion": "go-ipfs/0.4.21/",
	"ProtocolVersion": "ipfs/0.1.0"
}

chasingegg avatar Jul 07 '19 15:07 chasingegg

i have same problem too, any solution?

ivanhertanto avatar Oct 07 '19 21:10 ivanhertanto

Same issue here.

brig client version: ``v0.4.1+68f8766 [build: 2019-03-31T00:10:39+01:00]``
brig server version: ``v0.4.1+68f8766+68f8766fd9fe8929e8b3fc6cefca01454f380a5b``
IPFS Version:        ``0.4.23+6ce9a355f``

even deleted the whole .brig and .ipfs folder on both sides, re-initialized them and added both remotes with

brig r add -a -p name fingerprint```

eyenx avatar Apr 21 '20 12:04 eyenx

The problem seems not to happen if I let brig start up ipfs and not start ipfs standalone beforehand.

Can you guys verify that @ivanhertanto @chasingegg ?

eyenx avatar Apr 23 '20 06:04 eyenx