DEV Community

tarohida
tarohida

Posted on

Error on appleboy/ssh-action. dial tcp: lookup example.example on 192.0.2.1:53: i/o timeout

Problem

One day, I get Error like below.

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 
Enter fullscreen mode Exit fullscreen mode

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

I found this nearly issue. But error in this issue is about 22 port.

My error is about 53 port.

Just be sure, I recreate and replace ssh key. But Problem was not solved.

How to solve it

I think it is related to DNS, so I change host address from domain name to IP address.

And then, pipeline finished successfully.

I don't know cause, but problem was solved.

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

Additional Information

  • I replaced actual IP address and domain name to example IP address and domain name.

Top comments (0)