-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛 Dynamic sidecar: failing service on freshly started node #3836
🐛 Dynamic sidecar: failing service on freshly started node #3836
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
6383fc4
to
8a4d1d3
Compare
Code Climate has analyzed commit 8a4d1d3 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix the issue but we could export environs more reliably using the env
and even add the values as contants? next refactoring perhapse :-)
Codecov Report
@@ Coverage Diff @@
## master #3836 +/- ##
=========================================
- Coverage 84.9% 68.5% -16.5%
=========================================
Files 927 416 -511
Lines 39701 21498 -18203
Branches 836 137 -699
=========================================
- Hits 33741 14731 -19010
- Misses 5740 6718 +978
+ Partials 220 49 -171
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This fix should solve logs like: 023-02-07T10:11:08.964392399Z Creating network "dy-sidecar_d1138a1d-948c-5fea-ae57-c136ec4366cb_back----end" with the default driver
2023-02-07T10:11:08.964392910Z Creating dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-2-s4l-core-stre ...
2023-02-07T10:11:08.964393589Z Creating dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-3-sym-server ...
2023-02-07T10:11:08.964394231Z Creating dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-1-s4l-core ...
2023-02-07T10:11:08.964394662Z
2023-02-07T10:11:08.964395069Z ERROR: for dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-3-sym-server UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
2023-02-07T10:11:08.964395596Z
2023-02-07T10:11:08.964395966Z ERROR: for dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-2-s4l-core-stre UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
2023-02-07T10:11:08.964396510Z
2023-02-07T10:11:08.964396895Z ERROR: for dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-1-s4l-core UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
2023-02-07T10:11:08.964397320Z
2023-02-07T10:11:08.964397812Z ERROR: for dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-3-sym-server UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
2023-02-07T10:11:08.964398121Z
2023-02-07T10:11:08.964398389Z ERROR: for dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-2-s4l-core-stre UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
2023-02-07T10:11:08.964398832Z
2023-02-07T10:11:08.964399095Z ERROR: for dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-1-s4l-core UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
2023-02-07T10:11:08.964399515Z An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
2023-02-07T10:11:08.964399901Z If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
2023-02-07T10:11:08.964400262Z '
2023-02-07T10:11:08.964400863Z File "/home/scu/.venv/lib/python3.9/site-packages/servicelib/long_running_tasks/_task.py", line 418, in _progress_task
2023-02-07T10:11:08.964401255Z return await handler(progress, **task_kwargs)
2023-02-07T10:11:08.964401680Z
2023-02-07T10:11:08.964402090Z File "/home/scu/.venv/lib/python3.9/site-packages/simcore_service_dynamic_sidecar/modules/long_running_tasks.py", line 138, in task_create_service_containers
2023-02-07T10:11:08.964402680Z await _retry_docker_compose_create(shared_store.compose_spec, settings)
2023-02-07T10:11:08.964403065Z
2023-02-07T10:11:08.964403447Z File "/home/scu/.venv/lib/python3.9/site-packages/tenacity/_asyncio.py", line 86, in async_wrapped
2023-02-07T10:11:08.964403818Z return await fn(*args, **kwargs)
2023-02-07T10:11:08.964404175Z
2023-02-07T10:11:08.964404783Z File "/home/scu/.venv/lib/python3.9/site-packages/tenacity/_asyncio.py", line 48, in __call__
2023-02-07T10:11:08.964405251Z do = self.iter(retry_state=retry_state)
2023-02-07T10:11:08.964405931Z
2023-02-07T10:11:08.964406312Z File "/home/scu/.venv/lib/python3.9/site-packages/tenacity/__init__.py", line 349, in iter
2023-02-07T10:11:08.964406844Z return fut.result()
2023-02-07T10:11:08.964407198Z
2023-02-07T10:11:08.964407505Z File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 439, in result
2023-02-07T10:11:08.964407864Z return self.__get_result()
2023-02-07T10:11:08.964408147Z
2023-02-07T10:11:08.964408560Z File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
2023-02-07T10:11:08.964408851Z raise self._exception
2023-02-07T10:11:08.964409312Z
2023-02-07T10:11:08.964409685Z File "/home/scu/.venv/lib/python3.9/site-packages/tenacity/_asyncio.py", line 51, in __call__
2023-02-07T10:11:08.964409980Z result = await fn(*args, **kwargs)
2023-02-07T10:11:08.964410418Z
2023-02-07T10:11:08.964411013Z File "/home/scu/.venv/lib/python3.9/site-packages/simcore_service_dynamic_sidecar/modules/long_running_tasks.py", line 89, in _retry_docker_compose_create
2023-02-07T10:11:08.964411413Z _raise_for_errors(result, "up")
2023-02-07T10:11:08.964411763Z
2023-02-07T10:11:08.964412169Z File "/home/scu/.venv/lib/python3.9/site-packages/simcore_service_dynamic_sidecar/modules/long_running_tasks.py", line 61, in _raise_for_errors
2023-02-07T10:11:08.964412489Z raise RuntimeError(command_result.message)
2023-02-07T10:11:08.964412942Z
2023-02-07T10:11:14.758789102Z WARNING:simcore_service_director_v2.modules.dynamic_sidecar.scheduler._core._events_utils:Could not remove service containers for dy-sidecar_d1138a1d-948c-5fea-ae57-c136ec4366cb
2023-02-07T10:11:14.758795127Z Task simcore_service_dynamic_sidecar.modules.long_running_tasks.task_runs_docker_compose_down.189254e2-9608-4fae-a398-2b8c053c2857 finished with exception: ''dy-sidecar-d1138a1d-948c-5fea-ae57-c136ec4366cb-0-rt-web-lite''
2023-02-07T10:11:14.758795866Z File "/home/scu/.venv/lib/python3.9/site-packages/servicelib/long_running_tasks/_task.py", line 418, in _progress_task
2023-02-07T10:11:14.758796565Z return await handler(progress, **task_kwargs)
2023-02-07T10:11:14.758797072Z
2023-02-07T10:11:14.758797677Z File "/home/scu/.venv/lib/python3.9/site-packages/simcore_service_dynamic_sidecar/modules/long_running_tasks.py", line 175, in task_runs_docker_compose_down
2023-02-07T10:11:14.758798109Z await stop_log_fetching(app, container_name)
2023-02-07T10:11:14.758798608Z
2023-02-07T10:11:14.758799030Z File "/home/scu/.venv/lib/python3.9/site-packages/simcore_service_dynamic_sidecar/core/docker_logs.py", line 94, in stop_log_fetching
2023-02-07T10:11:14.758800223Z await background_log_fetcher.stop_log_fetching(container_name)
2023-02-07T10:11:14.758800612Z
2023-02-07T10:11:14.758800894Z File "/home/scu/.venv/lib/python3.9/site-packages/simcore_service_dynamic_sidecar/core/docker_logs.py", line 65, in stop_log_fetching
2023-02-07T10:11:14.758801388Z task = self._log_processor_tasks.pop(container_name)
2023-02-07T10:11:14.758801793Z . Will continue to save the data from the service! |
What do these changes do?
COMPOSE_HTTP_TIMEOUT
env variable when calling docker-compose from the dynamic sidecar on a freshly created node. NOTE: this will be deprecated with docker-compose V2references:
Related issue/s
How to test
Checklist