CenturyLinkLabs / panamax-ui

The Web GUI for Panamax
http://panamax.io
Apache License 2.0
1.44k stars 150 forks source link

Clean install produces Expected(200..204) <=> Actual(400 Bad Request) #573

Open troykelly opened 7 years ago

troykelly commented 7 years ago

Clean CoreOS install produced the following errors during install, which may have contributed to the UI not working (per screenshot at end).

iws001 panamax # ./coreos install --stable
Installing Panamax...
Failed to stop update-engine-reboot-manager.service: Unit update-engine-reboot-manager.service not loaded.
Unit update-engine-reboot-manager.service does not exist, proceeding anyway.
Created symlink /etc/systemd/system/update-engine-reboot-manager.service → /dev/null.
Created symlink /etc/systemd/system/update-engine.service → /dev/null.
Failed to enable unit: Unit file etcd.service does not exist.
Failed to restart etcd.service: Unit etcd.service not found.

docker pull centurylink/panamax-api:latest
................
docker pull centurylink/panamax-ui:latest
...........
docker pull google/cadvisor:0.13.0
..
docker pull centurylink/redis:latest
.
docker pull centurylink/dray:latest
.Created symlink /etc/systemd/system/multi-user.target.wants/panamax-redis.service → /etc/systemd/system/panamax-redis.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-dray.service → /etc/systemd/system/panamax-dray.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-metrics.service → /etc/systemd/system/panamax-metrics.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-api.service → /etc/systemd/system/panamax-api.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-ui.service → /etc/systemd/system/panamax-ui.service.
Nov 28 03:49:36 iws001.example.com systemd[1]: Starting Panamax Redis...
Nov 28 03:49:36 iws001.example.com env[728]: time="2017-11-28T03:49:36.410503343Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_DRAY_REDIS returned error: No such container: PMX_DRAY_REDIS"
Nov 28 03:49:36 iws001.example.com docker[1860]: Error response from daemon: No such container: PMX_DRAY_REDIS
Nov 28 03:49:36 iws001.example.com systemd[1]: Started Panamax Redis.
Nov 28 03:49:36 iws001.example.com systemd[1]: Starting Panamax Dray...
Nov 28 03:49:36 iws001.example.com env[728]: time="2017-11-28T03:49:36.484020467Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_DRAY returned error: No such container: PMX_DRAY"
Nov 28 03:49:36 iws001.example.com docker[1871]: Error response from daemon: No such container: PMX_DRAY
Nov 28 03:49:36 iws001.example.com systemd[1]: Started Panamax Dray.
Nov 28 03:49:36 iws001.example.com systemd[1]: Starting Panamax Metrics...
Nov 28 03:49:36 iws001.example.com env[728]: time="2017-11-28T03:49:36.568467689Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_CADVISOR returned error: No such container: PMX_CADVISOR"
Nov 28 03:49:36 iws001.example.com docker[1885]: Error response from daemon: No such container: PMX_CADVISOR
Nov 28 03:49:36 iws001.example.com systemd[1]: Started Panamax Metrics.
Nov 28 03:49:36 iws001.example.com systemd[1]: Starting Panamax API...
Nov 28 03:49:36 iws001.example.com env[728]: time="2017-11-28T03:49:36.702971035Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_API returned error: No such container: PMX_API"
Nov 28 03:49:36 iws001.example.com docker[1897]: Error response from daemon: No such container: PMX_API
Nov 28 03:49:36 iws001.example.com systemd[1]: Started Panamax API.
Nov 28 03:49:36 iws001.example.com systemd[1]: Starting Panamax UI...
Nov 28 03:49:36 iws001.example.com env[728]: time="2017-11-28T03:49:36.811510317Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_UI returned error: No such container: PMX_UI"
Nov 28 03:49:36 iws001.example.com docker[1916]: Error response from daemon: No such container: PMX_UI
Nov 28 03:49:36 iws001.example.com systemd[1]: Started Panamax UI.
Panamax install complete

screen shot 2017-11-28 at 1 58 19 pm

xZero707 commented 7 years ago

Exactly the same here, but not so much errors during install.

OS: CoreOS 1576.3.0 (beta)

panamax-coreos-2gb-ams3-01 panamax # ./coreos install --stable
Installing Panamax...
Failed to stop update-engine-reboot-manager.service: Unit update-engine-reboot-manager.service not loaded.
Unit update-engine-reboot-manager.service does not exist, proceeding anyway.
Created symlink /etc/systemd/system/update-engine-reboot-manager.service → /dev/null.
Created symlink /etc/systemd/system/update-engine.service → /dev/null.
Failed to enable unit: Unit file etcd.service does not exist.
Failed to restart etcd.service: Unit etcd.service not found.

docker pull centurylink/panamax-api:latest
.........
docker pull centurylink/panamax-ui:latest
.........
docker pull google/cadvisor:0.13.0
...
docker pull centurylink/redis:latest
..
docker pull centurylink/dray:latest
...Created symlink /etc/systemd/system/multi-user.target.wants/panamax-redis.service → /etc/systemd/system/panamax-redis.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-dray.service → /etc/systemd/system/panamax-dray.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-metrics.service → /etc/systemd/system/panamax-metrics.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-api.service → /etc/systemd/system/panamax-api.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-ui.service → /etc/systemd/system/panamax-ui.service.
Dec 04 08:51:18 panamax-coreos-2gb-ams3-01 docker[1905]: Error response from daemon: No such container: PMX_UI
Dec 04 08:51:18 panamax-coreos-2gb-ams3-01 systemd[1]: Started Panamax UI.
Panamax install complete

Edit: Just installed fresh CoreOS 1520.9.0 (stable), and I'm stuck with the same error, but there was more errors during the install:

coreos-2gb-ams3-01 panamax # ./coreos install --stable
Installing Panamax...
Failed to stop update-engine-reboot-manager.service: Unit update-engine-reboot-manager.service not loaded.
Unit update-engine-reboot-manager.service does not exist, proceeding anyway.
Created symlink /etc/systemd/system/update-engine-reboot-manager.service → /dev/null.
Created symlink /etc/systemd/system/update-engine.service → /dev/null.
Failed to enable unit: Unit file etcd.service does not exist.
Failed to restart etcd.service: Unit etcd.service not found.

docker pull centurylink/panamax-api:latest
..................
docker pull centurylink/panamax-ui:latest
..................
docker pull google/cadvisor:0.13.0
..
docker pull centurylink/redis:latest
..
docker pull centurylink/dray:latest
..Created symlink /etc/systemd/system/multi-user.target.wants/panamax-redis.service → /etc/systemd/system/panamax-redis.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-dray.service → /etc/systemd/system/panamax-dray.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-metrics.service → /etc/systemd/system/panamax-metrics.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-api.service → /etc/systemd/system/panamax-api.service.
Created symlink /etc/systemd/system/multi-user.target.wants/panamax-ui.service → /etc/systemd/system/panamax-ui.service.
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Starting Panamax Metrics...
Dec 04 09:29:57 coreos-2gb-ams3-01 env[998]: time="2017-12-04T09:29:57.062422178Z" level=error msg="Handler for POST /v1.24/containers/create returned error: Could not get container for PMX_DRAY_REDIS"
Dec 04 09:29:57 coreos-2gb-ams3-01 docker[1663]: /run/torcx/bin/docker: Error response from daemon: Could not get container for PMX_DRAY_REDIS.
Dec 04 09:29:57 coreos-2gb-ams3-01 env[998]: time="2017-12-04T09:29:57.076365181Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_CADVISOR returned error: No such container: PMX_CADVISOR"
Dec 04 09:29:57 coreos-2gb-ams3-01 docker[1672]: Error response from daemon: No such container: PMX_CADVISOR
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Started Panamax Metrics.
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Starting Panamax API...
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Stopped Panamax Dray.
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Starting Panamax Dray...
Dec 04 09:29:57 coreos-2gb-ams3-01 env[998]: time="2017-12-04T09:29:57.237318654Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_API returned error: No such container: PMX_API"
Dec 04 09:29:57 coreos-2gb-ams3-01 docker[1692]: Error response from daemon: No such container: PMX_API
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Started Panamax API.
Dec 04 09:29:57 coreos-2gb-ams3-01 env[998]: time="2017-12-04T09:29:57.258895711Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_DRAY returned error: No such container: PMX_DRAY"
Dec 04 09:29:57 coreos-2gb-ams3-01 docker[1699]: Error response from daemon: No such container: PMX_DRAY
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Started Panamax Dray.
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Starting Panamax UI...
Dec 04 09:29:57 coreos-2gb-ams3-01 env[998]: time="2017-12-04T09:29:57.366871271Z" level=error msg="Handler for DELETE /v1.24/containers/PMX_UI returned error: No such container: PMX_UI"
Dec 04 09:29:57 coreos-2gb-ams3-01 docker[1719]: Error response from daemon: No such container: PMX_UI
Dec 04 09:29:57 coreos-2gb-ams3-01 systemd[1]: Started Panamax UI.
Panamax install complete