Looks like some issues now with the publish:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
* Serving Flask app 'app_server' (lazy loading)
* Environment: development
* Debug mode: off
* Running on all addresses (0.0.0.0)
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://127.0.0.1:5000
* Running on http://172.30.33.4:5000 (Press CTRL+C to quit)
[2022-04-18 06:58:25,055] WARNING in optimization: Failed LP solve with PULP_CBC_CMD solver, falling back to default Pulp
[2022-04-18 06:58:25,100] WARNING in optimization: Failed LP solve with default Pulp solver, falling back to GLPK_CMD
192.168.86.50 - - [18/Apr/2022 06:58:27] "GET / HTTP/1.1" 200 -
192.168.86.50 - - [18/Apr/2022 06:58:28] "GET /static/style.css HTTP/1.1" 304 -
[2022-04-18 06:58:35,888] WARNING in optimization: Failed LP solve with PULP_CBC_CMD solver, falling back to default Pulp
[2022-04-18 06:58:35,919] WARNING in optimization: Failed LP solve with default Pulp solver, falling back to GLPK_CMD
[2022-04-18 06:58:53,243] WARNING in optimization: Failed LP solve with PULP_CBC_CMD solver, falling back to default Pulp
[2022-04-18 06:58:53,276] WARNING in optimization: Failed LP solve with default Pulp solver, falling back to GLPK_CMD
192.168.86.50 - - [18/Apr/2022 06:58:55] "POST /action/dayahead-optim HTTP/1.1" 201 -
192.168.86.50 - - [18/Apr/2022 06:59:05] "POST /action/dayahead-optim HTTP/1.1" 201 -
192.168.86.50 - - [18/Apr/2022 06:59:06] "GET / HTTP/1.1" 200 -
192.168.86.50 - - [18/Apr/2022 06:59:06] "GET /static/style.css HTTP/1.1" 304 -
192.168.86.50 - - [18/Apr/2022 06:59:15] "POST /action/dayahead-optim HTTP/1.1" 201 -
[2022-04-18 07:01:55,969] ERROR in command_line: File not found error, run the dayahead_forecast_optim first.
[2022-04-18 07:01:55,969] ERROR in app: Exception on /action/publish-data [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/src/app_server.py", line 146, in action_call
_ = publish_data(input_data_dict, app.logger)
File "/usr/local/lib/python3.9/dist-packages/emhass/command_line.py", line 162, in publish_data
idx_closest = opt_res_dayahead.index.get_loc(now_precise, method='ffill')
UnboundLocalError: local variable 'opt_res_dayahead' referenced before assignment
192.168.86.50 - - [18/Apr/2022 07:01:55] "POST /action/publish-data HTTP/1.1" 500 -
192.168.86.50 - - [18/Apr/2022 07:02:55] "GET / HTTP/1.1" 200 -
192.168.86.50 - - [18/Apr/2022 07:02:55] "GET /static/style.css HTTP/1.1" 304 -
[2022-04-18 08:34:56,133] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1526, in full_dispatch_request
return self.finalize_request(rv)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1545, in finalize_request
response = self.make_response(rv)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1701, in make_response
raise TypeError(
TypeError: The view function for 'index' did not return a valid response. The function either returned None or ended without a return statement.
192.168.86.22 - - [18/Apr/2022 08:34:56] "GET / HTTP/1.1" 500 -
192.168.86.22 - - [18/Apr/2022 08:34:56] "GET /favicon.ico HTTP/1.1" 404 -
[2022-04-18 08:35:27,591] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1526, in full_dispatch_request
return self.finalize_request(rv)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1545, in finalize_request
response = self.make_response(rv)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1701, in make_response
raise TypeError(
TypeError: The view function for 'index' did not return a valid response. The function either returned None or ended without a return statement.
192.168.86.22 - - [18/Apr/2022 08:35:27] "GET / HTTP/1.1" 500 -
192.168.86.22 - - [18/Apr/2022 08:35:27] "GET /favicon.ico HTTP/1.1" 404 -
[2022-04-18 08:35:34,258] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1526, in full_dispatch_request
return self.finalize_request(rv)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1545, in finalize_request
response = self.make_response(rv)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1701, in make_response
raise TypeError(
TypeError: The view function for 'index' did not return a valid response. The function either returned None or ended without a return statement.
192.168.86.22 - - [18/Apr/2022 08:35:34] "GET / HTTP/1.1" 500 -
192.168.86.50 - - [18/Apr/2022 08:42:33] "GET /static/style.css HTTP/1.1" 304 -
192.168.86.50 - - [18/Apr/2022 08:42:39] "GET /favicon.ico HTTP/1.1" 404 -
192.168.86.50 - - [18/Apr/2022 08:42:50] "GET /static/style.css HTTP/1.1" 304 -
192.168.86.50 - - [18/Apr/2022 08:43:00] "GET /static/style.css HTTP/1.1" 304 -