Skip to content
Contents
GuidesOpenWrt

ttyd exits immediately after starting its listener with libwebsockets 5.1.0

ttyd prints log messages upon listening, then exits immediately—this indicates that startup and sustained session availability are two separate validation points. Do not consider a single listening log as proof that the service has resumed.

Applies to · GL-MT5000 · ttyd 1.7.7-r1 · libwebsockets-full23 5.1.0-r1

What to check

Place Listening on port, exit code, and procd restart time on the same timeline.

Connect over Ethernet and run the following commands in an SSH session on the router.

logread -e ttyd
/etc/init.d/ttyd status

How to interpret the result

Compare the listening timestamp, process exit time, and service status. When the process has terminated, read the first library error prior to exit and verify the packet combination. If the process is still running, validate a terminal session once from a trusted LAN. Maintain a separate SSH channel.

Verify and recover

Complete a terminal session from the trusted network and check that ttyd still listens after disconnecting. Keep independent SSH access and the earlier working package combination.

Related guide · Identify a new device from OpenWrt lease and access logs

Explore hardware

Comments