OpenBazaar / openbazaar-go

OpenBazaar 2.0 Server Daemon in Go
MIT License
993 stars 283 forks source link

Error: Failed to connect to root. The username and / or password are incorrect. #1159

Closed i-am-vivek closed 6 years ago

i-am-vivek commented 6 years ago

I'm using Ubuntu 16.04 OpenBazaar Server v0.12.3 OpenBazar Desktop 2.2.4(as per package.json) I've downloaded OpenBazaar server using this link. I've configured username and password using the command which is setapicreds

When I try to connect the desktop with server using valid credentials.

I'm getting following error. In Desktop:

Error: Failed to connect to root. The username and / or password are incorrect.

In Server:

2018/09/05 11:54:26 http: response.WriteHeader on hijacked connection

jjeffryes commented 6 years ago

I was able to reproduce this error a few minutes ago on 0.12.4.

placer14 commented 6 years ago

Logs from a local instance operated by @jjeffryes with the same issue:

C:\GoWork\src\github.com\OpenBazaar\openbazaar-go>go run openbazaard.go start --bitcoincash -v -c asddfafsdfdsfadsfdf
________                      __________
\_____  \ ______   ____   ____\______   \_____  _____________  _____ _______
 /   |   \\____ \_/ __ \ /    \|    |  _/\__  \ \___   /\__  \ \__  \\_  __ \
/    |    \  |_> >  ___/|   |  \    |   \ / __ \_/    /  / __ \_/ __ \|  | \/
\_______  /   __/ \___  >___|  /______  /(____  /_____ \(____  (____  /__|
        \/|__|        \/     \/       \/      \/      \/     \/     \/

OpenBazaar Server v0.12.4
10:29:49.220 [INFO] [cmd/Execute] Peer ID:  QmRzqLhC1KYoZV2u5k5LdpSwcDZM9c9qNMC2sKB8Csp7Qi
10:29:49.224 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/10.30.10.6/tcp/4001
10:29:49.225 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/10.30.10.6/tcp/9005/ws
10:29:49.225 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/127.0.0.1/tcp/4001
10:29:49.225 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/127.0.0.1/tcp/9005/ws
10:29:49.226 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/169.254.49.153/tcp/4001
10:29:49.226 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/169.254.49.153/tcp/9005/ws
10:29:49.227 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/169.254.49.170/tcp/4001
10:29:49.227 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/169.254.49.170/tcp/9005/ws
10:29:49.227 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/169.254.49.91/tcp/4001
10:29:49.228 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/169.254.49.91/tcp/9005/ws
10:29:49.228 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/192.168.1.174/tcp/4001
10:29:49.228 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/192.168.1.174/tcp/9005/ws
10:29:49.229 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/192.168.56.1/tcp/4001
10:29:49.229 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip4/192.168.56.1/tcp/9005/ws
10:29:49.230 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip6/::1/tcp/4001
10:29:49.230 [INFO] [cmd/printSwarmAddrs] Swarm listening on /ip6/::1/tcp/9005/ws
10:29:49.252 [INFO] [cmd/newHTTPGateway] Gateway/API server listening on /ip4/127.0.0.1/tcp/4002
10:30:09.223 [INFO] [service/New] OpenBazaar service running at /openbazaar/app/1.0.0
10:30:09.223 [INFO] [cmd/func4] Starting bitcoin cash spv wallet
10:30:09.225 [DEBUG] [recordAgingNotifier/PerformTask] notifications created/records updated: purchaseTimeout: 0/0, purchaseExpire: 0/0, dispute: 0/0, sales: 0/0
10:30:09.234 [DEBUG] [service/SendRequest] Sending STORE request to QmY8puEnVx66uEet64gAf4VZRo7oUyMCwG6KdB9KM92EGQ
10:30:09.234 [DEBUG] [service/SendRequest] Sending STORE request to QmPPg2qeF3n2KvTRXRZLaTwHCw8JxzF4uZK93RfMoDvf2o
10:30:09.596 [DEBUG] [service/SendRequest] Received response from QmY8puEnVx66uEet64gAf4VZRo7oUyMCwG6KdB9KM92EGQ
10:30:09.596 [DEBUG] [service/SendRequest] Received response from QmPPg2qeF3n2KvTRXRZLaTwHCw8JxzF4uZK93RfMoDvf2o
10:30:09.596 [DEBUG] [core/SendStore] Peer QmY8puEnVx66uEet64gAf4VZRo7oUyMCwG6KdB9KM92EGQ requested no blocks
10:30:09.597 [DEBUG] [core/SendStore] Peer QmPPg2qeF3n2KvTRXRZLaTwHCw8JxzF4uZK93RfMoDvf2o requested no blocks
10:30:09.598 [DEBUG] [service/DisconnectFromPeer] Disconnecting from QmY8puEnVx66uEet64gAf4VZRo7oUyMCwG6KdB9KM92EGQ
10:30:09.598 [DEBUG] [service/DisconnectFromPeer] Disconnecting from QmPPg2qeF3n2KvTRXRZLaTwHCw8JxzF4uZK93RfMoDvf2o
10:31:50.043 [INFO] [ipfs/Publish] Published zdj7WXAdxi8RdsVLJs1G4RxbjWaDAczearMBa3932QdeKvdvQ to IPNS
10:40:09.225 [DEBUG] [recordAgingNotifier/PerformTask] notifications created/records updated: sales: 0/0, purchaseTimeout: 0/0, purchaseExpire: 0/0, dispute: 0/0
10:50:09.225 [DEBUG] [recordAgingNotifier/PerformTask] notifications created/records updated: purchaseTimeout: 0/0, purchaseExpire: 0/0, dispute: 0/0, sales: 0/0
2018/09/05 10:50:54 http: response.WriteHeader on hijacked connection
2018/09/05 10:50:54 http: response.Write on hijacked connection
2018/09/05 10:50:57 http: response.WriteHeader on hijacked connection
2018/09/05 10:50:57 http: response.Write on hijacked connection
placer14 commented 6 years ago

@i-am-vivek The error is due to having an incorrect username and password configured on the client (or otherwise failing authentication). The error is esoteric and the change above should remove the confusing errors as it relates to authentication. I'll add some better logging to the error output in the upcoming release.

i-am-vivek commented 6 years ago

Thank you for your response. I've corrected it now. it is working perfectly.