tribeca icon indicating copy to clipboard operation
tribeca copied to clipboard

Unable to connect to web interface

Open 590812345782903762-3 opened this issue 9 years ago • 13 comments

Hi, I have mongodb and tribeca up and running in docker, one instance on windows and one on ubuntu. Unfortunately on both platforms I cannot connect to the web interface. I tried all the addresses I could think of: localhost:3000 127.0.0.1:3000 172.17.0.1:3000 172.17.0.3:3000 0.0.0.0:3000 and every time I'm getting an "Unable to connect" error.

There are no logs in the tribeca/service folder. I pasted my tribeca configuration below in case it helps. Thanks for your help.

d01d7773c00f tribeca "forever main.js" About an hour ago Up About a minute 0.0.0.0:3000->3000/tcp, 5000/tcp tribeca 207d9a3ba726 mongo "docker-entrypoint..." 3 hours ago Up About a minute 0.0.0.0:27017->27017/tcp tribeca-mongo

@ubuntu:~/Desktop/tribeca-master$ sudo docker inspect tribeca

[ { "Id": "d01d7773c00f7d4fe546ae2d6e17f97be73bd1030017042afaa3eece9c68f668", "Created": "2017-04-25T17:49:36.414552763Z", "Path": "forever", "Args": [ "main.js" ], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 4836, "ExitCode": 0, "Error": "", "StartedAt": "2017-04-25T17:49:37.006643489Z", "FinishedAt": "0001-01-01T00:00:00Z" }, "Image": "sha256:c975bc485f646cba3081e59c71f5f2435ee9d617340254e3589b8c8261819955", "ResolvConfPath": "/var/lib/docker/containers/d01d7773c00f7d4fe546ae2d6e17f97be73bd1030017042afaa3eece9c68f668/resolv.conf", "HostnamePath": "/var/lib/docker/containers/d01d7773c00f7d4fe546ae2d6e17f97be73bd1030017042afaa3eece9c68f668/hostname", "HostsPath": "/var/lib/docker/containers/d01d7773c00f7d4fe546ae2d6e17f97be73bd1030017042afaa3eece9c68f668/hosts", "LogPath": "/var/lib/docker/containers/d01d7773c00f7d4fe546ae2d6e17f97be73bd1030017042afaa3eece9c68f668/d01d7773c00f7d4fe546ae2d6e17f97be73bd1030017042afaa3eece9c68f668-json.log", "Name": "/tribeca", "RestartCount": 0, "Driver": "aufs", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": null, "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "default", "PortBindings": { "3000/tcp": [ { "HostIp": "", "HostPort": "3000" } ] }, "RestartPolicy": { "Name": "no", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "CapAdd": null, "CapDrop": null, "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": null, "GroupAdd": null, "IpcMode": "", "Cgroup": "", "Links": [ "/tribeca-mongo:/tribeca/mongo" ], "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": [], "DiskQuota": 0, "KernelMemory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": -1, "OomKillDisable": false, "PidsLimit": 0, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0 }, "GraphDriver": { "Name": "aufs", "Data": null }, "Mounts": [], "Config": { "Hostname": "d01d7773c00f", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "3000/tcp": {}, "5000/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "NPM_CONFIG_LOGLEVEL=info", "NODE_VERSION=7.9.0", "YARN_VERSION=0.23.2", "TRIBECA_MODE=dev", "EXCHANGE=null", "TradedPair=BTC/USD", "WebClientUsername=NULL", "WebClientPassword=NULL", "WebClientListenPort=3000", "MongoDbUrl=mongodb://tribeca-mongo:27017/tribeca", "HitBtcPullUrl=http://demo-api.hitbtc.com", "HitBtcOrderEntryUrl=ws://demo-api.hitbtc.com:8080", "HitBtcMarketDataUrl=ws://demo-api.hitbtc.com:80", "HitBtcSocketIoUrl=https://demo-api.hitbtc.com:8081", "HitBtcApiKey=NULL", "HitBtcSecret=NULL", "HitBtcOrderDestination=HitBtc", "CoinbaseRestUrl=https://api-public.sandbox.gdax.com", "CoinbaseWebsocketUrl=wss://ws-feed-public.sandbox.gdax.com", "CoinbasePassphrase=NULL", "CoinbaseApiKey=NULL", "CoinbaseSecret=NULL", "CoinbaseOrderDestination=Coinbase", "OkCoinWsUrl=wss://real.okcoin.com:10440/websocket/okcoinapi", "OkCoinHttpUrl=https://www.okcoin.com/api/v1/", "OkCoinApiKey=NULL", "OkCoinSecretKey=NULL", "OkCoinOrderDestination=OkCoin", "BitfinexHttpUrl=https://api.bitfinex.com/v1", "BitfinexKey=NULL", "BitfinexSecret=NULL", "BitfinexOrderDestination=Bitfinex" ], "Cmd": [ "forever", "main.js" ], "ArgsEscaped": true, "Image": "tribeca", "Volumes": null, "WorkingDir": "/tribeca/tribeca/service", "Entrypoint": null, "OnBuild": null, "Labels": {} }, "NetworkSettings": { "Bridge": "", "SandboxID": "e491745c6acb2f6e3d92b8d4c0557150676f4a9d1a256aa807eb2fbdb03b97ce", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": { "3000/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "3000" } ], "5000/tcp": null }, "SandboxKey": "/var/run/docker/netns/e491745c6acb", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "050432eb0b2cdd80461c30124a7dbc3eb889d91abab538d5bab51fd88ff302b3", "Gateway": "172.17.0.1", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "172.17.0.3", "IPPrefixLen": 16, "IPv6Gateway": "", "MacAddress": "02:42:ac:11:00:03", "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, "NetworkID": "db1d6f3bc8034c45d5f824d852df6316bef540cabd7b30930df1fda2e8c1b72e", "EndpointID": "050432eb0b2cdd80461c30124a7dbc3eb889d91abab538d5bab51fd88ff302b3", "Gateway": "172.17.0.1", "IPAddress": "172.17.0.3", "IPPrefixLen": 16, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "02:42:ac:11:00:03" } } } } ]

590812345782903762-3 avatar Apr 25 '17 19:04 590812345782903762-3

It's been a while since I've ran tribeca in Docker, so my knowledge might be out of date. I think you cannot point to localhost but must point to some address that Docker knows about. Try connecting to the output of docker-machine ip default

michaelgrosner avatar Apr 29 '17 18:04 michaelgrosner

I am running from source not docker, get prompt for user and pass on port 3000 and connection then refused

cbanowsky avatar Apr 29 '17 19:04 cbanowsky

I have a similar issue. But logs contains error: Config does not have property NullGatewayTick Does anybody have an idea how to fix it?

7flash avatar Apr 29 '17 22:04 7flash

@7flash in your tribeca.json config file, change your "exchange" to something other than "null"

michaelgrosner avatar Apr 29 '17 22:04 michaelgrosner

Having weird issue too decided to just go fresh deleted repo re cloned and get error during node-gyp rebuild (yes python deps installed), so it finishes with errors. I can compile ts to js but still server not serving the public folder in admin.

cbanowsky avatar Apr 29 '17 22:04 cbanowsky

@cbanowsky Hmm, can you tell me which version of node are you running? $ node -v

michaelgrosner avatar Apr 29 '17 23:04 michaelgrosner

Yeah cause I used two versions on two fresh clones. 7.9.0 and then with LTS (6.10.x) sorry off top of my head can't remember exact version it's Boron or something.

6.10.2 can see version now

cbanowsky avatar Apr 29 '17 23:04 cbanowsky

@cbanowsky You need to run at least 7.8

michaelgrosner avatar May 04 '17 00:05 michaelgrosner

I did with version 7.9.0 but had same issue on npm install

cbanowsky avatar May 04 '17 01:05 cbanowsky

Same problem. I use docker and set the mongoURL to docker-machine, but it still doesn't work.

Eixcis420 avatar May 04 '17 19:05 Eixcis420

Are you using "https://"? Docs aren't very clear on this.

budbach avatar May 04 '17 19:05 budbach

@talarrr you haven't set your exchange env variables @budbach http @Eixcis420 run docker logs tribeca for some potential useful info

ileathan avatar May 06 '17 02:05 ileathan

I had an issue with the password having a $ symbol in it (for obvious reasons). Try removing special characters from you password. 👍

MannieJay avatar Jun 05 '17 12:06 MannieJay