Skip to content
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

Stack trace when editing syslog (e.g. Papertrail) #19

Open
antoineleclair opened this issue Jan 17, 2025 · 0 comments
Open

Stack trace when editing syslog (e.g. Papertrail) #19

antoineleclair opened this issue Jan 17, 2025 · 0 comments

Comments

@antoineleclair
Copy link
Member

antoineleclair commented Jan 17, 2025

It works, but there's a stack trace in the logs.

disco syslog:add syslog+tls://logs.papertrailapp.com:12345 --disco disco.example.com
INFO:disco.utils.syslog:Adding syslog URL syslog+tls://logs.papertrailapp.com:12345 by API_KEY_47aa8ebe287ff974bb9c3ec1c3abd0cb (antoine)
INFO:     10.1.21.4:39480 - "POST /api/syslog HTTP/1.1" 200 OK
INFO:disco.utils.docker:Getting Docker Swarm node count
INFO:disco.utils.docker:Output: 1
INFO:disco.utils.docker:Updating syslog service
INFO:disco.utils.docker:Output: disco-syslog
INFO:disco.utils.docker:Output: overall progress: 0 out of 1 tasks
INFO:disco.utils.docker:Output: overall progress: 0 out of 1 tasks
INFO:disco.utils.docker:Output: overall progress: 0 out of 1 tasks
INFO:disco.utils.docker:Output: overall progress: 0 out of 1 tasks
INFO:disco.utils.docker:Output: overall progress: 0 out of 1 tasks
INFO:disco.utils.docker:Output: overall progress: 0 out of 1 tasks
INFO:disco.utils.docker:Output: overall progress: 0 out of 1 tasks
INFO:disco.utils.docker:Output: verify: Waiting 5 seconds to verify that tasks are stable...
INFO:disco.utils.docker:Output: verify: Waiting 5 seconds to verify that tasks are stable...
INFO:disco.utils.docker:Output: verify: Waiting 5 seconds to verify that tasks are stable...
INFO:disco.utils.docker:Output: verify: Waiting 5 seconds to verify that tasks are stable...
INFO:disco.utils.docker:Output: verify: Waiting 4 seconds to verify that tasks are stable...
INFO:disco.utils.docker:Output: verify: Waiting 4 seconds to verify that tasks are stable...
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 75, in app
    await response(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/responses.py", line 162, in __call__
    await self.background()
  File "/usr/local/lib/python3.12/site-packages/starlette/background.py", line 45, in __call__
    await task()
  File "/usr/local/lib/python3.12/site-packages/starlette/background.py", line 28, in __call__
    await self.func(*self.args, **self.kwargs)
  File "/disco/app/disco/utils/docker.py", line 703, in set_syslog_service
    await _update_syslog_service(disco_host, syslog_urls)
  File "/disco/app/disco/utils/docker.py", line 798, in _update_syslog_service
    raise Exception("Starting task failed, too many failed attempts")
Exception: Starting task failed, too many failed attempts
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