nebulous / infinitude

Open control of Carrier/Bryant thermostats
MIT License
225 stars 50 forks source link

Docker Issues #102

Closed HarrisonWilson closed 4 years ago

HarrisonWilson commented 4 years ago

I will take some time to see if I can make the changes, but two issues I am working to resolve with Docker at the moment.

Currently the Dockerfile uses Ubuntu:Latest. It seems a recent change to one of the dependencies is forcing a required interaction for establishing region. Simple fix is just to pick a stable version of the Ubuntu image to mitigate (i.e. built without incident using Ubuntu:18.04).

Next, the serial_socket environment variable is not coming in. Built on a Raspberry Pi I can use a ~$20 Waveshare RS485 ethernet adapter in lieu of a direct serial connection, but can't get docker build to do the same. It appears other environment variables are not being carried in, but didn't want to speak before I had a change to validate.

nebulous commented 4 years ago

I made a few simplifications to the docker files which may serve to ameliorate or exacerbate your issues. 😄 Most notably probably, is I finally set up a build on hub.docker.com based on this repo - so hopefully people won't need to build images* themselves anymore.

*though I'm not sure how that works for arm-based systems like the rpi.

If you're game for testing then we can use this issue as a thread to work out any quirks.

bdf0506 commented 4 years ago

Seems to work with a production mode, though when running in development mode, it's pretty angry when I access the front end web interface over port 3000. Not sure if this is related to what modifications you did or something else.

root@unraid:~$ docker logs infinitude
MODE is set to development
[Mon Jul  6 17:28:25 2020] [info] Listening at "http://*:3000"
[Mon Jul  6 17:28:28 2020] [debug] No cache for systems-********-status. Make Carrier request
[Mon Jul  6 17:28:28 2020] [debug] /systems/********/status
[Mon Jul  6 17:28:28 2020] [debug] Saving status
[Mon Jul  6 17:28:28 2020] [debug] POST "/systems/********/status"
[Mon Jul  6 17:28:28 2020] [debug] Routing to a callback
[Mon Jul  6 17:28:28 2020] [debug] ********** There are changes. ****************
[Mon Jul  6 17:28:28 2020] [debug] 200 OK (0.001029s, 971.817/s)
[Mon Jul  6 17:28:28 2020] [debug] No cache for systems-********-config. Make Carrier request
[Mon Jul  6 17:28:28 2020] [debug] /systems/********/config
[Mon Jul  6 17:28:28 2020] [debug] GET "/systems/********/config"
[Mon Jul  6 17:28:28 2020] [debug] Routing to a callback
[Mon Jul  6 17:28:28 2020] [debug] 200 OK (0.000652s, 1533.742/s)
[Mon Jul  6 17:28:30 2020] [debug] No cache for systems-********. Make Carrier request
[Mon Jul  6 17:28:31 2020] [debug] /systems/********
[Mon Jul  6 17:28:31 2020] [debug] Saving ********
[Mon Jul  6 17:28:31 2020] [debug] POST "/systems/********"
[Mon Jul  6 17:28:31 2020] [debug] Routing to a callback
[Mon Jul  6 17:28:31 2020] [debug] 200 OK (0.001038s, 963.391/s)
[Mon Jul  6 17:28:31 2020] [debug] systems-********-status cached or passthru disabled
[Mon Jul  6 17:28:31 2020] [debug] /systems/********/status
[Mon Jul  6 17:28:31 2020] [debug] Saving status
[Mon Jul  6 17:28:31 2020] [debug] POST "/systems/********/status"
[Mon Jul  6 17:28:31 2020] [debug] Routing to a callback
[Mon Jul  6 17:28:31 2020] [debug] 200 OK (0.000574s, 1742.160/s)
[Mon Jul  6 17:28:48 2020] [debug] systems-********-status cached or passthru disabled
[Mon Jul  6 17:28:48 2020] [debug] /systems/********/status
[Mon Jul  6 17:28:48 2020] [debug] Saving status
[Mon Jul  6 17:28:48 2020] [debug] POST "/systems/********/status"
[Mon Jul  6 17:28:48 2020] [debug] Routing to a callback
[Mon Jul  6 17:28:48 2020] [debug] 200 OK (0.000565s, 1769.912/s)
[Mon Jul  6 17:28:51 2020] [debug] GET "/api/status"
[Mon Jul  6 17:28:51 2020] [debug] Routing to a callback
[Mon Jul  6 17:28:51 2020] [debug] 200 OK (0.002188s, 457.038/s)
[Mon Jul  6 17:28:51 2020] [debug] GET "/api/config"
[Mon Jul  6 17:28:51 2020] [debug] Routing to a callback
[Mon Jul  6 17:28:51 2020] [debug] 200 OK (0.048576s, 20.586/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 304 Not Modified (0.000531s, 1883.239/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/serial"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] Websocket opened, but no serial device found
[Mon Jul  6 17:29:03 2020] [debug] Template "serial.html.ep" not found
[Mon Jul  6 17:29:03 2020] [debug] GET "/systems.json"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 200 OK (0.000933s, 1071.811/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/status.json"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 200 OK (0.000435s, 2298.851/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/notifications.json"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 200 OK (0.000352s, 2840.909/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/energy.json"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 200 OK (0.000340s, 2941.176/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/systems.json"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 200 OK (0.000772s, 1295.337/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/notifications.json"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 200 OK (0.000195s, 5128.205/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/status.json"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 200 OK (0.000289s, 3460.208/s)
[Mon Jul  6 17:29:03 2020] [debug] GET "/energy.json"
[Mon Jul  6 17:29:03 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:03 2020] [debug] 200 OK (0.000206s, 4854.369/s)
[Mon Jul  6 17:29:08 2020] [debug] systems-********-status cached or passthru disabled
[Mon Jul  6 17:29:08 2020] [debug] /systems/********/status
[Mon Jul  6 17:29:08 2020] [debug] Saving status
[Mon Jul  6 17:29:08 2020] [debug] POST "/systems/********/status"
[Mon Jul  6 17:29:08 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:08 2020] [debug] 200 OK (0.000563s, 1776.199/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/"
[Mon Jul  6 17:29:10 2020] [debug] Routing to a callback
[Mon Jul  6 17:29:10 2020] [debug] 200 OK (0.000295s, 3389.831/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/bootstrap/dist/css/bootstrap.css"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.010397s, 96.182/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/fontawesome/css/font-awesome.css"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003156s, 316.857/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/angular-chart.js/dist/angular-chart.css"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003070s, 325.733/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/c3/c3.css"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003047s, 328.192/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/jquery/dist/jquery.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003085s, 324.149/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/angular/angular.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003131s, 319.387/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/bootstrap/dist/js/bootstrap.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003091s, 323.520/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/angular-sanitize/angular-sanitize.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003156s, 316.857/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/angular-cookies/angular-cookies.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003082s, 324.465/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/angular-resource/angular-resource.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003069s, 325.839/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/angular-route/angular-route.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003094s, 323.206/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/d3/d3.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003138s, 318.674/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/jdataview/dist/browser/jdataview.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003068s, 325.945/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/angular-dialgauge/src/angular-dialgauge.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003068s, 325.945/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/angular-timeago/src/timeAgo.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:10 2020] [debug] 404 Not Found (0.003054s, 327.439/s)
[Mon Jul  6 17:29:10 2020] [debug] GET "/bower_components/c3/c3.js"
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:10 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003140s, 318.471/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/ngTimepicker/src/js/ngTimepicker.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003742s, 267.237/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/angular-chart.js/dist/angular-chart.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.004193s, 238.493/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/Chart.js/Chart.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003323s, 300.933/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/ng-knob/dist/ng-knob.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003491s, 286.451/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/angular-cookies/angular-cookies.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003290s, 303.951/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/angular-sanitize/angular-sanitize.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003167s, 315.756/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/angular-route/angular-route.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003061s, 326.691/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/d3/d3.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003076s, 325.098/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/c3/c3.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003068s, 325.945/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/jdataview/dist/browser/jdataview.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003091s, 323.520/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/angular-timeago/src/timeAgo.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003225s, 310.078/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/angular-dialgauge/src/angular-dialgauge.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003131s, 319.387/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/ng-knob/dist/ng-knob.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003048s, 328.084/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/Chart.js/Chart.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003043s, 328.623/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/angular-chart.js/dist/angular-chart.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003071s, 325.627/s)
[Mon Jul  6 17:29:11 2020] [debug] GET "/bower_components/ngTimepicker/src/js/ngTimepicker.js"
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.development.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Template "not_found.html.ep" not found
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "fd403ab55a4c875e35b42428816134c7"
[Mon Jul  6 17:29:11 2020] [debug] Rendering cached inline template "5c56e02d3f6bef1b561eb2fd795ceacc"
[Mon Jul  6 17:29:11 2020] [debug] 404 Not Found (0.003802s, 263.019/s)
scyto commented 4 years ago

given i was building my own, i am game to test

I know a little about multi-arch builds (i am scyto on dockerhub...) clever programming folks (like you) use pre and post routing hooks in github / docker to run multiple build variantions by scrip.

I am not clever and instead of automated building i just use the docker buildx command instead - it takes a fee commands to setup buildx as it is experimental but it easy enough to use and push.

Here are couple of examples I used (and yes even a windows one!) https://github.com/scyto/NodeLink/blob/master/multi-arch-linx-build.ps1 https://github.com/scyto/multicast-relay/blob/master/multi-arch-linx-build.ps1

I actually tried decomposing your docker a few weeks ago to see if it could get it smaller and on FROM: alpine:latest but couldn't find all the right packages.

Also you docker file is not to spec - for example all those ENV vars in your YAML should also be in the docker file - you shouldn't assume everyone can or should use the yaml, there are platforms that don't support it in GUI tools for example.

I am happy to make the changes and suggest a PR for your consideration ?

I fixed the TZ prompt issue in my homegrown (forked from yours) by switching to Debian:latest
I prefer using Debian as it tends, as a base, to work on more hosts I have found. But thats just me :-)

scyto commented 4 years ago

in fact for a giggle i am building a multiarch one now just as an example, lets see if we fail any dependencies! image

scyto commented 4 years ago

Retrying with the new dockerfile and entrypoint.sh - realized doing anything with old fork was pointless. Also I messed up my local dirs it seems.

  1. I like what you are doing with the entrypoint script
  2. if you are not pulling in anything using git can't git be removed from the apt-get install line?
  3. if not using apt to uninstall stuff (usual thing to uninstall it git) I am unclear if the autoremove and clean does much - though no harm in keeping them)
nebulous commented 4 years ago
  1. mostly cribbed from what a contributor(possibly you) had already done
  2. yep. git isn't needed anymore
  3. autoremove was done in hopes that some intermediate packages could be removed to shrink the image size a bit. Probably does little to nothing, but also costs little to nothing.
scyto commented 4 years ago

@nebulous I was having a whole bunch of weird issues trying to use the dockerfile and entrypoint.sh

I eventually realized that every file in the repo when i forked it and then used git desktop to sync locally has a CRLF EOL instead of LF EOL.

I have never seen github on windows do a conversion on fork or clone, did you upload the files with CRLFs?

scyto commented 4 years ago

ok fixed it, they must have changed the default behavior of github desktop on windows for some fucking reason, running these commands at a command prompt fixed the EOL issues, ok now to make some actual progress due to the hours lost.

git config --global core.eol lf git config --global core.autocrlf false

scyto commented 4 years ago

@nebulous I have progressed my multiarch image is at https://hub.docker.com/repository/docker/scyto/infinitude the image when downloaded and uncompressed is around ~272MB.

Interestingly the proxy is working perfectly - it is sending data to the myinfity server and the themostat shows as connected.

however the infinitude web pages are not working: image

Only things i have done that are non-standard:

  1. uninstalled cpanminus after it was used to install termios
  2. set all languages to en_us.UTF8
  3. set a null TTY andsocket
  4. used debian instead of ubuntu

the logs only show the following error ... Use of uninitialized value in pattern match (m//) at ./infinitude line 93.

scyto commented 4 years ago

Removing the null serial variables stopped the line 93 error from happening (i guess the code didn't account for the var being set but null? which is ok). oops no it didn't its just generating less of them less frequently

didn't resolve the UI issues

I am assuming the UI issue is the same root cause as this (some change you made about the weather?) https://github.com/nebulous/infinitude/issues/103#issuecomment-654588375

scyto commented 4 years ago

@nebulous I pulled your image from docker hub just to see - it has the same issues.

nebulous commented 4 years ago

This issue has pivoted fairly far from @HarrisonWilson 's original request - which I believe has now been addressed and more.

Thanks to @scyto for working on multiarch docker builds! I've cleaned up the frontend building code a bit so that people can more easily rebuild the frontend for development mode and increased logging in production mode so that hopefully they don't have to (@bdf0506 I think you wanted this).

So any further items can have their own more targeted issues.

HarrisonWilson commented 4 years ago

It was a good pivot - I was just short on time, but making sure Docker was appropriately supported with environment variables was the big thing for me. Multi-arch is huge, I just don't have as much experience publicly making a container available then adding multi-arch and auto-build support with Git, etc. so happy to see this was done!

scyto commented 4 years ago

for reference my docker file https://github.com/scyto/infinitude/blob/master/docker/Dockerfile and the container is here https://hub.docker.com/r/scyto/infinitude

I will try and clean it up, i figure no one would need " linux/riscv64, linux/ppc64le, linux/s390x," but can add those too if needed (heck technically I could add a windows variant, fun but utterly pointless).

BTW once buildx is setup correctly (takes 5 mins with 3 cryptic command) this is literally all that is needed to do multiarch assuming there is no architecture dependent binary in the source. If there was then some logic is needed during build time to just compile or copy the right file. I haven't figured that out.

docker buildx build -t scyto/infinitude:latest --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 .

This instructs buildx to build each platform and when finished push it to docker hub, it doesn't push metadata like readme.md unfortunately. Note for this to work the FROM image must support all these tags natively too.

This is the reference doc i use each time i forget how to setup buildx https://www.docker.com/blog/multi-arch-images/

rmertz3282 commented 3 years ago

Scyto,

I pulled your container and it is working but the logs are filling up with the following. Any thoughts?

[2021-01-19 19:16:36.30181] [6] [info] systems-3518W000183-status cached or passthru disabled
[2021-01-19 19:16:36.30313] [6] [info] /systems/3518W000183/status
scyto commented 3 years ago

it is just an info message not a warning. i see it on mine and everything is working (my official carrier app on the phone, using infinitude webpage, and using the home assistant integration).

I think you can ignore it - i think it just shows that each poll is fine. personally i let this go to std out and don't log it. aka this is what it says when everything is working ok.

rmertz3282 commented 3 years ago

Thank you for the response.

I recently moved to a different HA server and had to rebuild the infinitude proxy. I couldn’t remember if my old system did this or not.

Best regards,

Randall Mertz

On Jan 19, 2021, at 2:31 PM, scyto notifications@github.com wrote:

 it is just an info message not a warning. i see it on mine and everything is working (my official carrier app on the phone, using infinitude webpage, and using the home assistant integration).

I think you can ignore it - i think it just shows that each poll is fine. personally i let this go to std out and don't log it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.