0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

`appleboy/ssh-action` でエラー。dial tcp: lookup example.example on 192.0.2.1:53: i/o timeout

Posted at

発生したこと

今まで問題なく動いていたが、以下のような謎のエラーが出た。

2022/01/18 22:51:31 dial tcp: lookup example.example on 192.0.2.1:53: read udp 192.0.2.2:37138->192.0.2.1:53: i/o timeout

i/o timeout · Issue #32 · appleboy/ssh-action

似たような issue があったが、これは :22 ポートの話であり少し今回の事象とは異なる。

一応、上記のコメントに従って鍵ファイルを更新してみたが、効果はなかった。

解決方法

DNS 周りの問題っぽかったので、ドメイン名で指定していたホスト名を IPアドレスに変更した。とりあえず動くようになった。

      uses: appleboy/ssh-action@master
      with:
        host: ${{ secrets.HOST }}
        username: ${{ secrets.USER }}
        key: ${{ secrets.KEY }}
        port: 22

根本的な原因はわからないまま。

補足

  • ドメイン名、 IPアドレスは置き換えています。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?