Hoi All,
Yesterday may system stopt working with this errors. I do not no why.
[2025-07-26 11:29:25 +0200] [95642] [INFO] Successfully posted to sensor.total_cost_fun_value = 5.36
[2025-07-26 11:29:25 +0200] [95642] [INFO] Successfully posted to sensor.optim_status = Optimal
[2025-07-26 11:29:25 +0200] [95642] [INFO] Successfully posted to sensor.unit_load_cost = 0.239
[2025-07-26 11:29:25 +0200] [95642] [INFO] Successfully posted to sensor.unit_prod_price = 0.239
[2025-07-26 11:30:00 +0200] [95642] [INFO] >> Obtaining params:
[2025-07-26 11:30:00 +0200] [95642] [INFO] Passed runtime parameters: {'prediction_horizon': 13, 'prod_price_forecast': [0.239, 0.231, 0.213, 0.212, 0.232, 0.239, 0.251, 0.267, 0.293, 0.307, 0.314, 0.304, 0.293], 'load_cost_forecast': [0.239, 0.231, 0.213, 0.212, 0.232, 0.239, 0.251, 0.267, 0.293, 0.307, 0.314, 0.304, 0.293], 'operating_hours_of_each_deferrable_load': [0, 0, 0, 0], 'start_timesteps_of_each_deferrable_load': [0, 0, 0, 0], 'end_timesteps_of_each_deferrable_load': [0, 0, 0, 0], 'treat_deferrable_load_as_semi_cont': [0, 0, 0, 0], 'set_deferrable_load_single_constant': [1, 1, 1, 1], 'def_current_state': [1, 1, 1, 1], 'nominal_power_of_deferrable_loads': [2000, 2000, 0, 2000], 'alpha': 0.25, 'beta': 0.75, 'continual_publish': 0}
[2025-07-26 11:30:00 +0200] [95642] [INFO] >> Setting input data dict
[2025-07-26 11:30:00 +0200] [95642] [INFO] Setting up needed data
[2025-07-26 11:30:00 +0200] [95642] [INFO] Retrieve hass get data method initiated...
[2025-07-26 11:30:04 +0200] [95642] [INFO] Retrieving weather forecast data using method = open-meteo
[2025-07-26 11:30:04 +0200] [95642] [INFO] Loading existing cached Open-Meteo JSON file: /data/cached-open-meteo-forecast.json
[2025-07-26 11:30:04 +0200] [95642] [INFO] The cached Open-Meteo JSON file is recent (age=27m, max_age=30m)
[2025-07-26 11:30:12 +0200] [95642] [INFO] Retrieving data from hass for load forecast using method = naive
[2025-07-26 11:30:12 +0200] [95642] [INFO] Retrieve hass get data method initiated...
[2025-07-26 11:30:19 +0200] [95642] [INFO] >> Performing naive MPC optimization...
[2025-07-26 11:30:19 +0200] [95642] [INFO] Performing naive MPC optimization
[2025-07-26 11:30:19 +0200] [95642] [INFO] Perform an iteration of a naive MPC controller
[2025-07-26 11:30:24 +0200] [95642] [INFO] Status: Optimal
[2025-07-26 11:30:24 +0200] [95642] [INFO] Total value of the Cost function = 5.35
[2025-07-26 11:30:24 +0200] [95642] [INFO] Optimization status: Optimal
[2025-07-26 11:30:25 +0200] [22] [ERROR] Worker (pid:95642) was sent SIGKILL! Perhaps out of memory?
[2025-07-26 11:30:25 +0200] [97240] [INFO] Booting worker with pid: 97240
[2025-07-26 11:30:47 +0200] [97240] [INFO] Obtaining parameters from config.json:
[2025-07-26 11:30:47 +0200] [97240] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
worker.init_process()
File "/app/.venv/lib/python3.12/site-packages/gunicorn/workers/gthread.py", line 94, in init_process
super().init_process()
File "/app/.venv/lib/python3.12/site-packages/gunicorn/workers/base.py", line 135, in init_process
self.load_wsgi()
File "/app/.venv/lib/python3.12/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/gunicorn/app/base.py", line 66, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/gunicorn/util.py", line 423, in import_app
app = app(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/app/src/emhass/web_server.py", line 64, in create_app
main()
File "/app/src/emhass/web_server.py", line 650, in main
injection_dict = pickle.load(fid)
^^^^^^^^^^^^^^^^
EOFError: Ran out of input
[2025-07-26 11:30:47 +0200] [97240] [INFO] Worker exiting (pid: 97240)
[2025-07-26 11:30:48 +0200] [22] [ERROR] Worker (pid:97240) exited with code 3
[2025-07-26 11:30:48 +0200] [22] [ERROR] Shutting down: Master





