franchise icon indicating copy to clipboard operation
franchise copied to clipboard

connect postgresql but cann't connect

Open jameswangcnbj opened this issue 7 years ago • 3 comments

i run i Run npx [email protected] in centos6.5 machine,and i got this message. npx: 138 安装成功,用时 27.67 秒 franchise-client listening on port 14645

but in browse,the connect button is cann't use still, how to resolve it

jameswangcnbj avatar Nov 01 '17 06:11 jameswangcnbj

i got the same bug, i run the franchise client and i dont get the connection

nicolkill avatar Dec 13 '17 20:12 nicolkill

In my case it connect well to the local mysql database, but not to the remote. So some part of remote database access might be blocked.

senpl avatar Jun 29 '18 14:06 senpl

I'm also getting a similar response when running franchise via the python simple http server start in franchise/bundle:

Connect the Database Bridge
Run npx [email protected] in your terminal to start the franchise database bridge.
If the npx command is not found, install the latest version of node and try again.
These instructions will automatically collapse as soon as the bridge is detected.

I started the bridge, and it seems to be running fine, but the message doesn't collapse.

Restarting the franchise server after starting the bridge service has the same result: the error message is still there.

Looking in browser console, I get error:

bridge.js:26 WebSocket connection to 'ws://localhost:14645/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

The offending line is:

clientConnectorSocket = new WebSocket(BRIDGE_URL);

with line 13 of the same file setting const BRIDGE_URL = 'ws://localhost:14645';

(See also https://github.com/HVF/franchise/issues/66 .)

My server is running on 127.0.0.1 rather than localhost. That shouldn't make a difference, right, unless there's an explicit string match going on somewhere?

If I start in franchise/ with yarn start I get an Invalid Host header error (see also: https://github.com/HVF/franchise/issues/61 )

psychemedia avatar Feb 02 '19 11:02 psychemedia