OpenBazaar / OpenBazaar-Client

(DEPRECATED) Front-end Electron application for talking with the OpenBazaar-Server daemon
MIT License
414 stars 177 forks source link

Yet another one that can't connect but with the latest versions. Checked everything I could think of. #1585

Open Rocks333 opened 8 years ago

Rocks333 commented 8 years ago

I installed it just few days ago from source so I should be with the latest version.

OpenBazaar Server is v0.1 and is hosted on ubuntu 14.04 vps.

The OpenBazaar-client say just can't connect. No error message. Hey I can't even find logs in the dir with proper reason? It runs from Debian

server firewall is disabled
checked with host provider that they do NOT block any ports
ssl is off
im starting ob-server with "python openbazaard.py start -da 0.0.0.0" to eliminate my local PC changing IP as potential reason
double checked username and pass from ob.cfg are matching and # removed
double checked ob-server is actually running on the server (with "top" command)

Since I don't know what else to check I'm posting this hoping someone will help me. I know many people had this problem with previous version but I'm with the last one.

rmisio commented 8 years ago

Which Server Configuration are you trying to connect to? If you're setting a custom password in ob.cfg, make sure you're not using the 'default' server configuration, since it might not have the correct creds stored. Your best bet is to create a new configuration, filling in the details (including creds) to match your server.

Rocks333 commented 8 years ago

Of course I created new. I had to enter the IP of the server (it's separate) and username and password that I set in the ob.cfg

i left the default ports though

Rocks333 commented 8 years ago

What else I could check as a potential reason?

rmisio commented 8 years ago

I'm not really sure. If you run a basic web server on your server, are you able to connect to it?

python -m SimpleHTTPServer 8000

Then from a browser on your client machine, try accessing <your-server-ip>:8000. If you connect successfully, it should return a directory listing.

Rocks333 commented 8 years ago

Nope, OB is the only thing I have there. All I know is I can ssh just fine.

How come OB doesn't even give the reason for not connecting?

Is there a way to access my store from outside to see if it's even visible? Is there a way to get the guid without being able to connect to it with the client?

hoffmabc commented 8 years ago

On the server machine can you see if the ports are listening?

netstat -an

See if the 18467 and 18466 and other OB ports are even listening.

Rocks333 commented 8 years ago

here it is

udp 0 0 0.0.0.0:18467 0.0.0.0: tcp 0 0 0.0.0.0:18466 0.0.0.0:\ LISTEN

hoffmabc commented 8 years ago

If you do his what do you get?

telnet localhost 18467
Rocks333 commented 8 years ago

ob-server and ob-client are on different computers i ssh@ip to it since i'm on linux on both ends

ssh works just fine

it's only the ob-client that keeps haning on "connecting...." forever without saying anything

hoffmabc commented 8 years ago

I'm saying make sure those ports are even listening on your ssh machine.

Rocks333 commented 8 years ago

well looks like they are: udp 0 0 0.0.0.0:18467 0.0.0.0: tcp 0 0 0.0.0.0:18466 0.0.0.0:\ LISTEN

Rocks333 commented 8 years ago

A little more info

If the server at the VPS is stopped, it denies the connection right away and says can't connect if it's started it hangs on "connecting.." forever

so it's seeing the server somehow.....

edit: here is what netstat says tcp 476 0 VPSIP:18470 CLIENTIP:29499 ESTABLISHED tcp6 0 0 :::22 :::* LISTEN
udp 214656 0 0.0.0.0:18467 0.0.0.0:*

so they are connected but the client hangs on "connecting...."

Rocks333 commented 8 years ago

well I'll be trying on new server then since seems like nobody has ideas what else to check :)

Rocks333 commented 8 years ago

Ok i just changed the host and all worked right away

and the previous host was confident there are no blocked ports

go figure lol