502 Proxy error

after collabora configuration i get this error message

Proxy Error
The proxy server received an invalid
response from an upstream server.

The proxy server could not handle the request GET /hosting/discovery.
Reason: Error reading from remote server

Apache/2.4.18 (Ubuntu) Server at office.tailinsubic.com Port 443

problem in Apache config

is there any specific way how to troubleshoot

thanks

Hi

i stop my docker and start
but here is the message when i access https://office.tailinsubic.com/hosting/discovery

Service Unavailable
The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.

Apache/2.4.18 (Ubuntu) Server at office.tailinsubic.com Port 443

here is the error log

[Sat Jan 21 09:21:18.149680 2017] [proxy:error] [pid 12695:tid 3032468288] AH00959: ap_proxy_connect_backend disabling worker for (127.0.0.1) for 1s
[Sat Jan 21 09:21:18.149699 2017] [proxy_http:error] [pid 12695:tid 3032468288] [client 192.168.50.208:35981] AH01114: HTTP: failed to make connection to backend: 127.0.0.1

[Sat Jan 21 15:54:22.562244 2017] [proxy_http:error] [pid 8575:tid 3050302272] (103)Software caused connection abort: [client 192.168.50.208:44290] AH01102: error reading status line from remote server 127.0.0.1:9980
[Sat Jan 21 15:54:22.586624 2017] [proxy_http:error] [pid 8575:tid 3041909568] (103)Software caused connection abort: [client 192.168.50.208:44291] AH01102: error reading status line from remote server 127.0.0.1:9980
[Sat Jan 21 15:54:22.586683 2017] [proxy:error] [pid 8575:tid 3041909568] [client 192.168.50.208:44291] AH00898: Error reading from remote server returned by /hosting/discovery

any ideas?

thanks

Have you update your docker image?
Check it meets the code 2.0 config.

Hello Arka74

i run this command to check my docker version

sudo docker version

Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Mon, 19 Dec 2016 09:20:48 +1300
OS/Arch: linux/386

Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Mon, 19 Dec 2016 09:20:48 +1300
OS/Arch: linux/386

its not latest version as CODE 2.0
I tried to update but it says
Using default tag: latest
latest: Pulling from collabora/code
Digest: sha256:7f68893581bff3537d7c2b7e62a8813181da9ab45b94e64ff838b3dff4f893f8
Status: Image is up to date for collabora/code:latest

please advise

thanks

Yeah few commands and also in your proxy logs up the log level.(Apache)

With docker.

docker ps -a (list all even stopped)
docker logs (container-id) #view container logs
docker exec -i -t (container-id) /bin/sh #run shell inside container
docker stop (container-id)
docker rm (container-id) #remove container
docker images #list images
docker rmi (image-id) #remove image
docker info #environment info

Check your certs openssl s_client -connect example.com:443 run from server and container
nslookup example.com check your dns also

It would look like your docker container isn’t running, but… !?

thanks Stuart_Naylor

sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7e4d419c85d3 hello-world β€œ/hello” About an hour ago Exited (0) About an hour ago kickass_hawking
e0d2b85a90d5 collabora/code β€œ/bin/sh -c 'bash sta” 42 hours ago Restarting (1) 2 minutes ago 127.0.0.1:9980->9980/tcp hopeful_jepsen

sudo docker logs e0d2b85a90d5
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor
write pipe: bad file descriptor

sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2017-01-23 10:20:35 PHT; 10min ago
Docs: https://docs.docker.com
Main PID: 1576 (dockerd)
CGroup: /system.slice/docker.service
β”œβ”€1576 /usr/bin/dockerd -H fd://
β”œβ”€2027 containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim containerd-shim --metrics-interval=0 --start-timeout 2m --state-dir /va
└─2501 /usr/bin/docker-proxy -proto tcp -host-ip 127.0.0.1 -host-port 9980 -container-ip 172.17.0.2 -container-port 9980

Jan 23 10:20:27 office.tailinsubic.com dockerd[1576]: time=β€œ2017-01-23T10:20:27.087894365+08:00” level=info msg="Loading containers: start."
Jan 23 10:20:27 office.tailinsubic.com dockerd[1576]: …time=β€œ2017-01-23T10:20:27.801784309+08:00” level=info msg="Firewalld running: false"
Jan 23 10:20:29 office.tailinsubic.com dockerd[1576]: time=β€œ2017-01-23T10:20:29.080507298+08:00” level=info msg="Default bridge (docker0) is assigned with an IP address 1
Jan 23 10:20:30 office.tailinsubic.com dockerd[1576]: time=β€œ2017-01-23T10:20:30.046434580+08:00” level=info msg="No non-localhost DNS nameservers are left in resolv.conf.
Jan 23 10:20:30 office.tailinsubic.com dockerd[1576]: time=β€œ2017-01-23T10:20:30.046477932+08:00” level=info msg="IPv6 enabled; Adding default IPv6 external servers : [nam
Jan 23 10:20:34 office.tailinsubic.com dockerd[1576]: time=β€œ2017-01-23T10:20:34.950222400+08:00” level=info msg="Loading containers: done."
Jan 23 10:20:35 office.tailinsubic.com dockerd[1576]: time=β€œ2017-01-23T10:20:35.020547716+08:00” level=info msg="Daemon has completed initialization"
Jan 23 10:20:35 office.tailinsubic.com dockerd[1576]: time=β€œ2017-01-23T10:20:35.020605340+08:00” level=info msg=β€œDocker daemon” commit=6b644ec graphdriver=aufs version=1.
Jan 23 10:20:35 office.tailinsubic.com systemd[1]: Started Docker Application Container Engine.
Jan 23 10:20:35 office.tailinsubic.com dockerd[1576]: time=β€œ2017-01-23T10:20:35.043512097+08:00” level=info msg="API listen on /var/run/docker.sock"
lines 1-20/20 (END)

what do you think i have an error on docker logs bad file descriptor and status of docker

thanks

You already have CODE 2.0

thanks Arka74