mxschmitt / action-tmate

Debug your GitHub Actions via SSH by using tmate to get access to the runner system itself.
https://mxschmitt.github.io/action-tmate/
MIT License
2.95k stars 289 forks source link

tmate fails to connect #203

Open aaron-siegel opened 1 month ago

aaron-siegel commented 1 month ago

I tried using tmate for the first time today, with the suggested minimal configuration:

    - name: Setup tmate session
      uses: mxschmitt/action-tmate@v3

On all my runners, tmate simply went into an infinite loop (and blocked progress on the remaining workflow steps). The output looks like this:

Run mxschmitt/action-tmate@v3
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Hit:6 https://packages.microsoft.com/repos/azure-cli jammy InRelease
Get:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3632 B]
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:8 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main armhf Packages [15.6 kB]
Get:9 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [43.5 kB]
Get:10 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [173 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2066 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [357 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [17.8 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2504 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [432 kB]
Get:[16](https://github.com/pixeltable/pixeltable/actions/runs/11060569333/job/30731380861#step:3:17) http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1128 kB]
Get:[17](https://github.com/pixeltable/pixeltable/actions/runs/11060569333/job/30731380861#step:3:18) http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [263 kB]
Get:[18](https://github.com/pixeltable/pixeltable/actions/runs/11060569333/job/30731380861#step:3:19) http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [26.3 kB]
Get:[19](https://github.com/pixeltable/pixeltable/actions/runs/11060569333/job/30731380861#step:3:20) http://azure.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [91.6 kB]
Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [31.3 kB]
Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [672 B]
Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1848 kB]
Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [299 kB]
Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [13.3 kB]
Get:26 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2444 kB]
Get:27 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [4[21](https://github.com/pixeltable/pixeltable/actions/runs/11060569333/job/30731380861#step:3:22) kB]
Get:28 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [907 kB]
Get:29 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [179 kB]
Get:30 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [19.4 kB]
Fetched 13.7 MB in 2s (7814 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
xz-utils is already the newest version (5.2.5-2ubuntu1).
openssh-client is already the newest version (1:8.9p1-3ubuntu0.10).
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
or: ssh -i <path-to-private-SSH-key> K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io
SSH: ssh K9pP7zf7QGpDdNVpZWnStHXTp@nyc1.tmate.io

[continues indefinitely, until I cancel the workflow]

In this case, the action was running on a standard ubuntu-22.04 instance.

Thanks! Aaron

bohdanbinahai commented 1 month ago

Same story