AlmaLinux / AlmaLinux/build-system

Fix logging errors in sign-file

Đang mở
#446 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug good first issue
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
32
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I pulled the last version of albs-sign-file and I'm seeing the following logging errors:

```
sign_file-1 | INFO: Application startup complete.
sign_file-1 | --- Logging error ---
sign_file-1 | Traceback (most recent call last):
sign_file-1 | File "/usr/lib64/python3.9/logging/handlers.py", line 978, in emit
sign_file-1 | self.socket.send(msg)
sign_file-1 | OSError: [Errno 9] Bad file descriptor
sign_file-1 |
sign_file-1 | During handling of the above exception, another exception occurred:
sign_file-1 |
sign_file-1 | Traceback (most recent call last):
sign_file-1 | File "/usr/lib64/python3.9/logging/handlers.py", line 899, in _connect_unixsocket
sign_file-1 | self.socket.connect(address)
sign_file-1 | FileNotFoundError: [Errno 2] No such file or directory
sign_file-1 |
sign_file-1 | During handling of the above exception, another exception occurred:
sign_file-1 |
sign_file-1 | Traceback (most recent call last):
sign_file-1 | File "/usr/lib64/python3.9/logging/handlers.py", line 981, in emit
sign_file-1 | self._connect_unixsocket(self.address)
sign_file-1 | File "/usr/lib64/python3.9/logging/handlers.py", line 910, in _connect_unixsocket
sign_file-1 | self.socket.connect(address)
sign_file-1 | FileNotFoundError: [Errno 2] No such file or directory
sign_file-1 | Call stack:
sign_file-1 | File "", line 1, in
sign_file-1 | File "/usr/lib64/python3.9/multiprocessing/spawn.py", line 116, in spawn_main
sign_file-1 | exitcode = _main(fd, parent_sentinel)
sign_file-1 | File "/usr/lib64/python3.9/multiprocessing/spawn.py", line 129, in _main
sign_file-1 | return self._bootstrap(parent_sentinel)
sign_file-1 | File "/usr/lib64/python3.9/multiprocessing/process.py", line 315, in _bootstrap
sign_file-1 | self.run()
sign_file-1 | File "/usr/lib64/python3.9/multiprocessing/process.py", line 108, in run
sign_file-1 | self._target(*self._args, **self._kwargs)
sign_file-1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started
sign_file-1 | target(sockets=sockets)
sign_file-1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 68, in run
sign_file-1 | return asyncio.run(self.serve(sockets=sockets))
sign_file-1 | File "/usr/lib64/python3.9/asyncio/runners.py", line 44, in run
sign_file-1 | return loop.run_until_complete(main)
sign_file-1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 86, in serve
sign_file-1 | await self.startup(sockets=sockets)
sign_file-1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 97, in startup
sign_file-1 | await self.lifespan.startup()
sign_file-1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/lifespan/on.py", line 59, in startup
sign_file-1 | self.logger.info("Application startup complete.")
sign_file-1 | Message: 'Application startup complete.'
sign_file-1 | Arguments: ()
```

Looks like a problem when attaching the SysLog handler

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.