-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
I/O Timeout Error #53
Comments
Please post your config and help to try the latest version? |
Hi thank you for your reply my workflow file; name: KantERP APP Container its return ======END====== ======END====== I tried to upgrade the timeout not working thats. |
Can you make sure that you can ssh to the remote server using the following config? host: ${{ secrets.KANT_SSH_HOST }}
username: ${{ secrets.KANT_SSH_USERNAME }}
password: ${{ secrets.KANT_SSH_PASSWORD }}
port: ${{ secrets.KANT_SSH_PORT }} |
It’s working on my macbook air terminal |
@emiryumak I will add some debug information in the plugin. |
Hi @appleboy i test this for @master branch your plugin. I can not see another debug information. Thats all log;
|
I am having the same issue, although it has to work before.. I can ssh using my mac with the same private key, user and port |
I have same issue as well. |
duplicated of #32 |
I'm getting the same error. Trying to connect to a Windows Server 2008 r2 with freesshd on it. |
I have this same error, Although I checked my secrets three times. |
Same error here, using fully valid SSH credentials (username, host + secret key) |
I faced the same issue as well (while having none with Running sudo ufw allow ssh fixed it for me. |
Using GCP where I have ssh allowed on instance firewall and executed |
I had the same issue, occurs sometimes, no always. But is frustacting. I check my secrets and is correct, the ufw allow ssh is set. So.. is an issue intermittent. When re run all jobs fix the problem, but sometimes no. |
This fixed my issue, |
The ProblemAfter several hours trying to solve this problem, I came to the next conclusion: Apparently there are some commands like This may be because the command Possible SolutionMy recommendation would be to keep the commands as simple as possible or use them as shown in official documentation. Also make sure you configure the credentials correctly. In case you use an ssh key make sure to add the public key on the server and the private key in the repository as a secret. Some examples of how to use the commands correctly. Delete a specific container# ❌ do not this
docker rm -f $(docker ps -aq -f name=erp-front) # ✅ do this
docker rm my_super_app -f
# or this
docker run --name my_super_app -d --rm -p 80:80 octocat/myimage:latest
docker stop my_super_app Delete old and unused images# ❌ do not this
docker rmi $(docker images | grep 'emiryumak/erp-front' | awk '{print $3}') # ✅ do this
docker image prune -a -f Workflow FileThis is the configuration that I am using to run a docker container on a server via ssh every time I publish a new release name: CD
on:
release:
types: [published]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Deploy to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
docker system prune -a -f
docker stop my_super_app
docker run --name my_super_app -d --rm -p 80:80 octocat/myimage:latest With environment variablesname: CD
on:
release:
types: [published]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get repository metadata
uses: varunsridharan/action-repository-meta@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
docker system prune -a -f
docker stop ${{ env.REPOSITORY_OWNER }}_${{ env.REPOSITORY_SLUG }}
docker run --name ${{ env.REPOSITORY_OWNER }}_${{ env.REPOSITORY_SLUG }} -d --rm -p ${{ secrets.APP_PORT }} ${{ env.REPOSITORY_FULL_NAME }}:latest I hope this information has been useful to you 😉 |
I tried to connect with key, not password. And I added the private key to authorized_keys in /root/.ssh. Finally it worked :) |
I just started getting this issue as well. The commands I was executing on the remote server was a series of docker commands as part of my deployment process. I connected to the server and ran them manually and they ran fine. @luisfalconmx's comment stood out to me since I was also running docker commands. I connected to a box and ran I suspect the machine may have slowed down due to all the images on disk. I'm going to try incorporating |
I was facing the same issue and I have solved it.. |
In my case, it was a conflict because I was declaring to use it for the Node app, while this was affecting the
The solution was to rename the variable from |
Thank you for this, it helped me. |
guys, i resolved my problem switch version uses: appleboy/ssh-action@master to appleboy/ssh-action@v.0.1.3 and waiting deploy action, after switch again to appleboy/ssh-action@master and run e enjoy. When changing to the version 0.1.3 action, it will give an error, but after going back to master, it will work. Resolved with me. |
I will remove the unused global variable on |
- Modify the `EnvVars` slice to include `INPUT_` prefix when needed - Remove unused environment variables from the `EnvVars` slice - Update the `EnvVars` slice to include `PROXY_` prefix when needed - Modify the `EnvVars` slice to include `PLUGIN_SSH_CIPHERS` as `PROXY_SSH_CIPHERS` - Modify the `EnvVars` slice to include `PLUGIN_PROXY_USE_INSECURE_CIPHER` as `PROXY_SSH_USE_INSECURE_CIPHER` - Modify the `EnvVars` slice to include `PLUGIN_PROXY_FINGERPRINT` as `PROXY_SSH_FINGERPRINT` - Remove the environment variable `PROXY_HOST` - Modify the `EnvVars` slice to include `PLUGIN_DEBUG` as `INPUT_DEBUG` * appleboy/ssh-action#53 (comment) * appleboy/ssh-action#32 (comment) * appleboy/ssh-action#213
Getting this
If I remove PROXY Part it will work till Bastion but for proxy it start giving timeout This is my ssh cnfg and it's working fine from here Host NEWRICH-BASTION Host APP-Graphics-CO What exactly is the error I'm not getting it |
It doesn't just make any other error:
`======CMD======
docker rm -f $(docker ps -aq -f name=erp-front)
docker rmi $(docker images | grep 'emiryumak/erp-front' | awk '{print $3}')
docker pull emiryumak/erp-front:latest
docker run --name erp-front -p 5000:80 --restart=always -d emiryumak/erp-front
======END======
======ENV======
======END======
2020/05/16 20:31:15 dial tcp :: i/o timeout`
I don't understand thats error. Its meaning can not connect to my server?
The text was updated successfully, but these errors were encountered: