Hi Jens,
Thanks for your reply.
I cannot ping to https://sg-dev.imaginando.pt:4984/
➜ devops git:(master) ✗ ping https://sg-dev.imaginando.pt:4984
ping: cannot resolve https://sg-dev.imaginando.pt:4984: Unknown host
But I can curl to https://sg-dev.imaginando.pt/
➜ devops git:(master) ✗ curl https://sg-dev.imaginando.pt
{"couchdb":"Welcome","vendor":{"name":"Couchbase Sync Gateway","version":"2.1"},"version":"Couchbase Sync Gateway/2.1.2(2;35fe28e)"}%
Curling to https://sg-dev.imaginando.pt:4984 results in eternal waiting without reply:
➜ devops git:(master) ✗ curl https://sg-dev.imaginando.pt:4984
I can only get out doing CTR+C.
In my docker-compose.yml I have the port 4984 exposed to outside via traefik:
sync-gateway:
build: sync-gateway
labels:
- traefik.backend=sg-dev
- traefik.enable=true
- traefik.frontend.rule=Host:sg-dev.imaginando.pt
- traefik.frontend.entryPoints=https
- traefik.port=4984
ports:
- "4984"
Using the repUrl ws://sg-dev.imaginando.pt:4984/couchbase_qt the output is like this:
12:49:13.990660| [DB]: {DB#3} Opening database
12:49:13.992112| [Sync]: {Repl#4}==> litecore::repl::Replicator /tmp/database/ ->ws://sg-dev.imaginando.pt:4984/db/_blipsync @0x7feed4e32268
12:49:13.992153| [Sync]: {Repl#4} Push=continuous, Pull=continuous, Options={{}}
12:49:13.995843| [Sync]: {Repl#4} No local checkpoint 'cp-wdtxdcPx2QIbMaCcu5E2iJnfRs0='
Using the repUrl ws://sg-dev.imaginando.pt/couchbase_qt without the port, the output is like this:
12:50:43.781591| [Sync]: {Repl#4}==> litecore::repl::Replicator /tmp/database/ ->ws://sg-dev.imaginando.pt:80/db/_blipsync @0x7fba43d83988
12:50:43.781619| [Sync]: {Repl#4} Push=continuous, Pull=continuous, Options={{}}
12:50:43.784201| [Sync]: {Repl#4} No local checkpoint 'cp-T7IBRB3XCF9OKrkxHLn9dxjxZE4='
12:50:43.932494| [WS] WARNING: {C4SocketImpl#5}==> litecore::repl::C4SocketImpl ws://sg-dev.imaginando.pt:80/db/_blipsync @0x7fba43d83d40
12:50:43.932549| [WS] WARNING: {C4SocketImpl#5} WebSocket closed abnormally with status 301
12:50:43.932649| [Sync]: {Repl#4} Connection closed with WebSocket status 301: "Unexpected response status 301 Moved Permanently" (state=1)
It seems to be able to connect with the first repUrl but then, nothing happens. I don’t know how to debug it further.
Do you think this is related to the fact that I’m exposing the ports directly to the main address using traefik?
Thanks in advance.
Best regards,
Nuno