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

ttyd floods the log with failure messages when it can't bind causing the "Disk full" condition #1435

Open
yurivict opened this issue Apr 4, 2025 · 0 comments
Labels

Comments

@yurivict
Copy link

yurivict commented Apr 4, 2025

Describe the bug
When bind fails (for example because of permissions issue) ttyd writes these messages into the log over and over:

Apr  4 14:47:16 yv ttyd[71465]: [2025/04/04 14:47:16:1248] E: [null wsi]: lws_socket_bind: ERROR on binding fd 10 to port 444 (-1 13)
Apr  4 14:47:16 yv ttyd[71465]: [2025/04/04 14:47:16:1249] E: [null wsi]: lws_socket_bind: ERROR on binding fd 10 to port 444 (-1 13)
Apr  4 14:47:16 yv syslogd: last message repeated 1 times
Apr  4 14:47:16 yv ttyd[71465]: [2025/04/04 14:47:16:1250] E: [null wsi]: lws_socket_bind: ERROR on binding fd 10 to port 444 (-1 13)
Apr  4 14:47:16 yv ttyd[71465]: [2025/04/04 14:47:16:1251] E: [null wsi]: lws_socket_bind: ERROR on binding fd 10 to port 444 (-1 13)
Apr  4 14:47:16 yv syslogd: last message repeated 1 times
Apr  4 14:47:16 yv ttyd[71465]: [2025/04/04 14:47:16:1252] E: [null wsi]: lws_socket_bind: ERROR on binding fd 10 to port 444 (-1 13)
Apr  4 14:47:16 yv ttyd[71465]: [2025/04/04 14:47:16:1253] E: [null wsi]: lws_socket_bind: ERROR on binding fd 10 to port 444 (-1 13)
Apr  4 14:47:16 yv ttyd[71465]: [2025/04/04 14:47:16:1254] E: [null wsi]: lws_socket_bind: ERROR on binding fd 10 to port 444 (-1 13)

This eventually leads to the disk being full and the server becoming unusable.

The expected behavior is to exit with an error code after the first bind failure.

To Reproduce
Obvious.

Environment:

  • OS: FreeBSD 14.2
  • Browser: not applicable
@yurivict yurivict added the bug label Apr 4, 2025
@yurivict yurivict changed the title ttyd floods the log with failure messages when it can't bind causing "Disk full" condition ttyd floods the log with failure messages when it can't bind causing the "Disk full" condition Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant