Skip to content

ChildProcessError: [Errno 10] No child processes #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gieljnssns opened this issue May 19, 2025 · 0 comments
Open

ChildProcessError: [Errno 10] No child processes #545

gieljnssns opened this issue May 19, 2025 · 0 comments

Comments

@gieljnssns
Copy link
Contributor

Describe the bug
Sometimes I see this errors in the log of Emhass.
This one happens after a forecast model fit (look at the time of the logs)

[2025-05-19 01:31:00 +0200] [27] [INFO]  >> Obtaining params: 
[2025-05-19 01:31:00 +0200] [27] [INFO] Passed runtime parameters: {'days_to_retrieve': 360, 'model_type': 'load_forecast', 'var_model': 'sensor.huidig_verbruik_zonder_wp', 'sklearn_model': 'KNeighborsRegressor', 'num_lags': 96, 'split_date_delta': '96h', 'perform_backtest': 'True'}
[2025-05-19 01:31:00 +0200] [27] [INFO]  >> Setting input data dict
[2025-05-19 01:31:00 +0200] [27] [INFO] Setting up needed data
[2025-05-19 01:31:00 +0200] [27] [INFO] Retrieve hass get data method initiated...
[2025-05-19 01:33:24 +0200] [27] [INFO]  >> Performing a machine learning forecast model fit...
[2025-05-19 01:33:24 +0200] [27] [INFO] Performing a forecast model fit for load_forecast
[2025-05-19 01:33:24 +0200] [27] [INFO] Training a KNeighborsRegressor model
[2025-05-19 01:33:27 +0200] [27] [INFO] Elapsed time for model fit: 3.235527753829956
[2025-05-19 01:33:28 +0200] [27] [INFO] Prediction R2 score of fitted model on test data: -0.18087471169736968
[2025-05-19 01:33:28 +0200] [27] [INFO] Performing simple backtesting of fitted model

  0%|          | 0/356 [00:00<?, ?it/s]
  4%|▍         | 14/356 [00:08<03:29,  1.63it/s]
  6%|▌         | 21/356 [00:10<02:39,  2.10it/s]
  8%|▊         | 28/356 [00:11<01:54,  2.86it/s]
 10%|▉         | 35/356 [00:12<01:29,  3.60it/s]
 12%|█▏        | 42/356 [00:13<01:12,  4.32it/s]
 14%|█▍        | 49/356 [00:14<01:03,  4.86it/s]
 16%|█▌        | 56/356 [00:15<00:55,  5.37it/s]
 18%|█▊        | 63/356 [00:16<00:50,  5.75it/s]
 20%|█▉        | 70/356 [00:17<00:47,  5.98it/s]
 22%|██▏       | 77/356 [00:18<00:45,  6.15it/s]
 24%|██▎       | 84/356 [00:19<00:42,  6.40it/s]
 26%|██▌       | 91/356 [00:20<00:40,  6.52it/s]
 28%|██▊       | 98/356 [00:21<00:37,  6.79it/s]
 29%|██▉       | 105/356 [00:22<00:37,  6.67it/s]
 31%|███▏      | 112/356 [00:23<00:36,  6.62it/s]
 33%|███▎      | 119/356 [00:24<00:34,  6.90it/s]
 35%|███▌      | 126/356 [00:25<00:33,  6.83it/s]
 37%|███▋      | 133/356 [00:26<00:32,  6.93it/s]
 39%|███▉      | 140/356 [00:27<00:30,  7.19it/s]
 41%|████▏     | 147/356 [00:28<00:29,  6.97it/s]
 43%|████▎     | 154/356 [00:29<00:29,  6.82it/s]
 45%|████▌     | 161/356 [00:30<00:28,  6.76it/s]
 47%|████▋     | 168/356 [00:31<00:27,  6.75it/s]
 49%|████▉     | 175/356 [00:32<00:26,  6.87it/s]
 51%|█████     | 182/356 [00:33<00:24,  7.15it/s]
 53%|█████▎    | 189/356 [00:34<00:23,  7.03it/s]
 55%|█████▌    | 196/356 [00:35<00:22,  7.03it/s]
 57%|█████▋    | 203/356 [00:36<00:20,  7.30it/s]
 59%|█████▉    | 210/356 [00:37<00:20,  7.24it/s]
 61%|██████    | 217/356 [00:38<00:19,  7.06it/s]
 63%|██████▎   | 224/356 [00:39<00:17,  7.44it/s]
 65%|██████▍   | 231/356 [00:40<00:17,  7.25it/s]
 67%|██████▋   | 238/356 [00:41<00:16,  7.14it/s]
 69%|██████▉   | 245/356 [00:42<00:15,  7.02it/s]
 71%|███████   | 252/356 [00:43<00:14,  7.18it/s]
 73%|███████▎  | 259/356 [00:44<00:13,  6.94it/s]
 75%|███████▍  | 266/356 [00:45<00:13,  6.79it/s]
 77%|███████▋  | 273/356 [00:46<00:12,  6.78it/s]
 79%|███████▊  | 280/356 [00:47<00:10,  7.23it/s]
 81%|████████  | 287/356 [00:48<00:09,  7.30it/s]
 83%|████████▎ | 294/356 [00:49<00:08,  7.22it/s]
 85%|████████▍ | 301/356 [00:50<00:07,  7.07it/s]
 87%|████████▋ | 308/356 [00:51<00:06,  7.06it/s]
 88%|████████▊ | 315/356 [00:52<00:05,  6.89it/s]
 90%|█████████ | 322/356 [00:53<00:04,  6.82it/s]
 92%|█████████▏| 329/356 [00:54<00:03,  6.83it/s]
 94%|█████████▍| 336/356 [00:55<00:02,  7.03it/s]
 96%|█████████▋| 343/356 [00:56<00:01,  7.12it/s]
 98%|█████████▊| 350/356 [00:57<00:00,  7.15it/s]
100%|██████████| 356/356 [00:57<00:00,  6.19it/s]
[2025-05-19 01:34:28 +0200] [27] [INFO] Elapsed backtesting time: 60.23148775100708
[2025-05-19 01:34:28 +0200] [27] [INFO] Backtest R2 score:    neg_r2_score
0      0.295155
Exception ignored in: <function ResourceTracker.__del__ at 0x7f080fdea2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f7aa1cee2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f84c2fde2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f2df4dde2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f89834e22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f1c596f22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7feba40e22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
[2025-05-19 02:29:00 +0200] [27] [INFO]  >> Obtaining params: 
[2025-05-19 02:29:00 +0200] [27] [INFO] Passed runtime parameters: {'prod_price_forecast': [-0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11], 'load_cost_forecast': [0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535], 'pv_power_forecast': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 147, 366, 591, 804, 1051, 1306, 1567, 1826, 2076, 2332, 2578, 2809, 3030, 3241, 3544, 3838, 4114, 4380, 4629, 4865, 5075, 5267, 5438, 5595, 5721, 5831, 5919, 5994, 6043, 6069, 6069, 6049, 6000, 5930, 5848, 5740, 5611, 5463, 5293, 5095, 4884, 4651, 4400, 4142, 3867, 3577, 3275, 2969, 2679, 2420, 2148, 1875, 1600, 1342, 1134, 977, 810], 'prediction_horizon': 72, 'model_type': 'load_forecast', 'alpha': 1, 'beta': 0, 'num_def_loads': 5, 'p_deferrable_nom': [2000, 2000, 1700, 900, 2000], 'def_total_hours': [0.0, 0.0, 2.5, 2.5, 0.0], 'set_def_constant': [True, True, True, True, True], 'def_start_timestep': [0, 0, 0, 0, 0], 'def_end_timestep': [0, 0, 64, 182, 0], 'def_current_state': [False, False, False, False, False]}
[2025-05-19 02:29:00 +0200] [27] [INFO]  >> Setting input data dict
[2025-05-19 02:29:00 +0200] [27] [INFO] Setting up needed data
[2025-05-19 02:29:00 +0200] [27] [INFO] Retrieve hass get data method initiated...
[2025-05-19 02:29:00 +0200] [27] [INFO] Retrieving weather forecast data using method = list
[2025-05-19 02:29:00 +0200] [27] [INFO] Retrieving data from hass for load forecast using method = mlforecaster
[2025-05-19 02:29:00 +0200] [27] [INFO] Retrieve hass get data method initiated...
[2025-05-19 02:29:02 +0200] [27] [INFO]  >> Performing naive MPC optimization...
[2025-05-19 02:29:02 +0200] [27] [INFO] Performing naive MPC optimization
[2025-05-19 02:29:02 +0200] [27] [INFO] Perform an iteration of a naive MPC controller
[2025-05-19 01:33:24 +0200] [27] [INFO] Performing a forecast model fit for load_forecast
[2025-05-19 01:33:24 +0200] [27] [INFO] Training a KNeighborsRegressor model
[2025-05-19 01:33:27 +0200] [27] [INFO] Elapsed time for model fit: 3.235527753829956
[2025-05-19 01:33:28 +0200] [27] [INFO] Prediction R2 score of fitted model on test data: -0.18087471169736968
[2025-05-19 01:33:28 +0200] [27] [INFO] Performing simple backtesting of fitted model

  0%|          | 0/356 [00:00<?, ?it/s]
  4%|▍         | 14/356 [00:08<03:29,  1.63it/s]
  6%|▌         | 21/356 [00:10<02:39,  2.10it/s]
  8%|▊         | 28/356 [00:11<01:54,  2.86it/s]
 10%|▉         | 35/356 [00:12<01:29,  3.60it/s]
 12%|█▏        | 42/356 [00:13<01:12,  4.32it/s]
 14%|█▍        | 49/356 [00:14<01:03,  4.86it/s]
 16%|█▌        | 56/356 [00:15<00:55,  5.37it/s]
 18%|█▊        | 63/356 [00:16<00:50,  5.75it/s]
 20%|█▉        | 70/356 [00:17<00:47,  5.98it/s]
 22%|██▏       | 77/356 [00:18<00:45,  6.15it/s]
 24%|██▎       | 84/356 [00:19<00:42,  6.40it/s]
 26%|██▌       | 91/356 [00:20<00:40,  6.52it/s]
 28%|██▊       | 98/356 [00:21<00:37,  6.79it/s]
 29%|██▉       | 105/356 [00:22<00:37,  6.67it/s]
 31%|███▏      | 112/356 [00:23<00:36,  6.62it/s]
 33%|███▎      | 119/356 [00:24<00:34,  6.90it/s]
 35%|███▌      | 126/356 [00:25<00:33,  6.83it/s]
 37%|███▋      | 133/356 [00:26<00:32,  6.93it/s]
 39%|███▉      | 140/356 [00:27<00:30,  7.19it/s]
 41%|████▏     | 147/356 [00:28<00:29,  6.97it/s]
 43%|████▎     | 154/356 [00:29<00:29,  6.82it/s]
 45%|████▌     | 161/356 [00:30<00:28,  6.76it/s]
 47%|████▋     | 168/356 [00:31<00:27,  6.75it/s]
 49%|████▉     | 175/356 [00:32<00:26,  6.87it/s]
 51%|█████     | 182/356 [00:33<00:24,  7.15it/s]
 53%|█████▎    | 189/356 [00:34<00:23,  7.03it/s]
 55%|█████▌    | 196/356 [00:35<00:22,  7.03it/s]
 57%|█████▋    | 203/356 [00:36<00:20,  7.30it/s]
 59%|█████▉    | 210/356 [00:37<00:20,  7.24it/s]
 61%|██████    | 217/356 [00:38<00:19,  7.06it/s]
 63%|██████▎   | 224/356 [00:39<00:17,  7.44it/s]
 65%|██████▍   | 231/356 [00:40<00:17,  7.25it/s]
 67%|██████▋   | 238/356 [00:41<00:16,  7.14it/s]
 69%|██████▉   | 245/356 [00:42<00:15,  7.02it/s]
 71%|███████   | 252/356 [00:43<00:14,  7.18it/s]
 73%|███████▎  | 259/356 [00:44<00:13,  6.94it/s]
 75%|███████▍  | 266/356 [00:45<00:13,  6.79it/s]
 77%|███████▋  | 273/356 [00:46<00:12,  6.78it/s]
 79%|███████▊  | 280/356 [00:47<00:10,  7.23it/s]
 81%|████████  | 287/356 [00:48<00:09,  7.30it/s]
 83%|████████▎ | 294/356 [00:49<00:08,  7.22it/s]
 85%|████████▍ | 301/356 [00:50<00:07,  7.07it/s]
 87%|████████▋ | 308/356 [00:51<00:06,  7.06it/s]
 88%|████████▊ | 315/356 [00:52<00:05,  6.89it/s]
 90%|█████████ | 322/356 [00:53<00:04,  6.82it/s]
 92%|█████████▏| 329/356 [00:54<00:03,  6.83it/s]
 94%|█████████▍| 336/356 [00:55<00:02,  7.03it/s]
 96%|█████████▋| 343/356 [00:56<00:01,  7.12it/s]
 98%|█████████▊| 350/356 [00:57<00:00,  7.15it/s]
100%|██████████| 356/356 [00:57<00:00,  6.19it/s]
[2025-05-19 01:34:28 +0200] [27] [INFO] Elapsed backtesting time: 60.23148775100708
[2025-05-19 01:34:28 +0200] [27] [INFO] Backtest R2 score:    neg_r2_score
0      0.295155
Exception ignored in: <function ResourceTracker.__del__ at 0x7f080fdea2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f7aa1cee2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f84c2fde2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f2df4dde2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f89834e22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f1c596f22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7feba40e22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
[2025-05-19 02:29:00 +0200] [27] [INFO]  >> Obtaining params: 
[2025-05-19 02:29:00 +0200] [27] [INFO] Passed runtime parameters: {'prod_price_forecast': [-0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11], 'load_cost_forecast': [0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535], 'pv_power_forecast': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 147, 366, 591, 804, 1051, 1306, 1567, 1826, 2076, 2332, 2578, 2809, 3030, 3241, 3544, 3838, 4114, 4380, 4629, 4865, 5075, 5267, 5438, 5595, 5721, 5831, 5919, 5994, 6043, 6069, 6069, 6049, 6000, 5930, 5848, 5740, 5611, 5463, 5293, 5095, 4884, 4651, 4400, 4142, 3867, 3577, 3275, 2969, 2679, 2420, 2148, 1875, 1600, 1342, 1134, 977, 810], 'prediction_horizon': 72, 'model_type': 'load_forecast', 'alpha': 1, 'beta': 0, 'num_def_loads': 5, 'p_deferrable_nom': [2000, 2000, 1700, 900, 2000], 'def_total_hours': [0.0, 0.0, 2.5, 2.5, 0.0], 'set_def_constant': [True, True, True, True, True], 'def_start_timestep': [0, 0, 0, 0, 0], 'def_end_timestep': [0, 0, 64, 182, 0], 'def_current_state': [False, False, False, False, False]}
[2025-05-19 02:29:00 +0200] [27] [INFO]  >> Setting input data dict

This one happens after a publish

[2025-05-19 06:05:43 +0200] [27] [INFO]  >> Obtaining params: 
[2025-05-19 06:05:43 +0200] [27] [INFO] Passed runtime parameters: {'custom_deferrable_forecast_id': [{'entity_id': 'sensor.emhass_wasmachien', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass wasmachien'}, {'entity_id': 'sensor.emhass_droogkast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass droogkast'}, {'entity_id': 'sensor.emhass_afwasmachien', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass afwasmachien'}, {'entity_id': 'sensor.emhass_warmtepompboiler', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass warmtepompboiler'}, {'entity_id': 'sensor.emhass_warmtepomp', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass warmtepomp'}], 'custom_pv_forecast_id': {'entity_id': 'sensor.emhass_pv_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass pv forecast'}, 'custom_load_forecast_id': {'entity_id': 'sensor.emhass_load_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass load forecast'}, 'custom_grid_forecast_id': {'entity_id': 'sensor.emhass_grid_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass grid forecast'}, 'custom_unit_load_cost_id': {'entity_id': 'sensor.emhass_load_cost', 'unit_of_measurement': '€/kWh', 'friendly_name': 'Emhass load cost'}, 'custom_unit_prod_price_id': {'entity_id': 'sensor.emhass_prod_price', 'unit_of_measurement': '€/kWh', 'friendly_name': 'Emhass production price'}, 'custom_pv_curtailment_id': {'entity_id': 'sensor.emhass_curtailment', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass curtailment'}, 'publish_prefix': ''}
[2025-05-19 06:05:43 +0200] [27] [INFO]  >> Setting input data dict
[2025-05-19 06:05:43 +0200] [27] [INFO] Setting up needed data
[2025-05-19 06:05:43 +0200] [27] [INFO]  >> Publishing data...
[2025-05-19 06:05:43 +0200] [27] [INFO] Publishing data to HASS instance
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_pv_forecast = 0
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_load_forecast = 467.0
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_wasmachien = 0.0
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_droogkast = 0.0
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_afwasmachien = 0.0
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_warmtepompboiler = 0.0
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_warmtepomp = 0.0
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_grid_forecast = 467.0
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.total_cost_fun_value = -4.65
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.optim_status = Optimal
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_load_cost = 0.1645
[2025-05-19 06:05:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_prod_price = -0.11
Exception ignored in: <function ResourceTracker.__del__ at 0x7ff1735ee2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7fd0957ea2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7fb4108e22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f55e6ae22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f6c1b9de2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7f3c8f4ee2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7fd7707de2a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x7fae169e22a0>
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
  File "/root/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
[2025-05-19 06:10:00 +0200] [27] [INFO]  >> Obtaining params: 

To Reproduce
Run Emhass

Expected behavior
No errors

Screenshots
If applicable, add screenshots to help explain your problem.

Home Assistant installation type

  • Home Assistant OS

Your hardware

  • OS: HA OS
  • Architecture: amd64

EMHASS installation type

  • Add-on

Additional context
Emhass config

{
  "adjusted_pv_regression_model": "LassoRegression",
  "adjusted_pv_solar_elevation_threshold": 10,
  "battery_charge_efficiency": 0.95,
  "battery_charge_power_max": 1000,
  "battery_discharge_efficiency": 0.95,
  "battery_discharge_power_max": 1000,
  "battery_dynamic_max": 0.9,
  "battery_dynamic_min": -0.9,
  "battery_maximum_state_of_charge": 0.9,
  "battery_minimum_state_of_charge": 0.3,
  "battery_nominal_energy_capacity": 5000,
  "battery_target_state_of_charge": 0.6,
  "compute_curtailment": false,
  "continual_publish": false,
  "costfun": "profit",
  "delta_forecast_daily": 1,
  "end_timesteps_of_each_deferrable_load": [
    0,
    0,
    0,
    0,
    0
  ],
  "historic_days_to_retrieve": 360,
  "inverter_is_hybrid": false,
  "load_cost_forecast_method": "hp_hc_periods",
  "load_forecast_method": "mlforecaster",
  "load_negative": false,
  "load_offpeak_hours_cost": 0.164497535,
  "load_peak_hour_periods": {
    "period_hp_1": [
      {
        "start": "08:00"
      },
      {
        "end": "09:00"
      }
    ],
    "period_hp_2": [
      {
        "start": "09:00"
      },
      {
        "end": "10:00"
      }
    ],
    "period_hp_3": [
      {
        "start": "11:00"
      },
      {
        "end": "12:00"
      }
    ],
    "period_hp_4": [
      {
        "start": "13:00"
      },
      {
        "end": "14:00"
      }
    ],
    "period_hp_5": [
      {
        "start": "15:00"
      },
      {
        "end": "16:00"
      }
    ]
  },
  "load_peak_hours_cost": 0.164497535,
  "logging_level": "INFO",
  "lp_solver": "COIN_CMD",
  "lp_solver_path": "/usr/bin/cbc",
  "lp_solver_timeout": 45,
  "maximum_power_from_grid": 14000,
  "maximum_power_to_grid": 9000,
  "method_ts_round": "first",
  "minimum_power_of_deferrable_loads": [
    0,
    0
  ],
  "modules_per_string": [
    16
  ],
  "nominal_power_of_deferrable_loads": [
    2000,
    2000,
    1700,
    900,
    2000
  ],
  "num_threads": 0,
  "number_of_deferrable_loads": 5,
  "open_meteo_cache_max_age": 30,
  "operating_hours_of_each_deferrable_load": [
    2,
    2,
    2.5,
    1,
    0
  ],
  "optimization_time_step": 15,
  "photovoltaic_production_sell_price": 0,
  "production_price_forecast_method": "constant",
  "pv_inverter_model": [
    "SolarEdge_Technologies_Ltd___SE3000__240V_",
    "Chint_Solar_Zhejiang__CHPI4KTL_US__240V_"
  ],
  "pv_module_model": [
    "CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M"
  ],
  "sensor_linear_interp": [
    "sensor.emhass_huidige_opbrengst",
    "sensor.huidig_verbruik_zonder_wp"
  ],
  "sensor_power_load_no_var_loads": "sensor.huidig_verbruik_zonder_wp",
  "sensor_power_photovoltaics": "sensor.emhass_huidige_opbrengst",
  "sensor_power_photovoltaics_forecast": "sensor.emhass_pv_forecast",
  "sensor_replace_zero": [
    "sensor.emhass_huidige_opbrengst"
  ],
  "set_battery_dynamic": false,
  "set_deferrable_load_single_constant": [
    true,
    true,
    true,
    false,
    false
  ],
  "set_deferrable_startup_penalty": [
    0,
    0,
    0,
    0,
    0
  ],
  "set_nocharge_from_grid": false,
  "set_nodischarge_to_grid": true,
  "set_total_pv_sell": false,
  "set_use_adjusted_pv": false,
  "set_use_battery": false,
  "set_use_pv": true,
  "set_zero_min": true,
  "start_timesteps_of_each_deferrable_load": [
    0,
    0,
    0,
    0,
    0
  ],
  "strings_per_inverter": [
    1
  ],
  "surface_azimuth": [
    205
  ],
  "surface_tilt": [
    30
  ],
  "treat_deferrable_load_as_semi_cont": [
    true,
    true,
    true,
    true,
    true
  ],
  "weather_forecast_method": "open-meteo",
  "weight_battery_charge": 0,
  "weight_battery_discharge": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant