ssh-action icon indicating copy to clipboard operation
ssh-action copied to clipboard

gettime timeout /io error

Open ralyodio opened this issue 3 years ago • 2 comments

      - name: Restart App Server
        uses: appleboy/ssh-action@master
        with:
          host: ${{ secrets.SSH_HOST }}
          username: ${{ secrets.SSH_USER }}
          key: ${{ secrets.SSH_PRIVATE_KEY }}
          port: ${{ secrets.SSH_PORT }}
          debug: true
          # from ./bin/post-deploy.sh
          #            if [ ${{ contains(github.ref_name, 'release') || github.ref == 'refs/heads/release' }} ]; then
          #           else
          #             cd $HOME/www/${{secrets.HOST_PATH_DEV}}/${{secrets.HOST_PROJECT}}
          #             deno upgrade
          #             sudo /etc/init.d/nginx reload
          #             sudo systemctl daemon-reload
          #             sudo systemctl restart ${{secrets.META_SERVICE_DEV}}
          #           fi
          script: |
            cd $HOME/www/${{secrets.HOST_PATH_DEV}}/${{secrets.HOST_PROJECT}}
            deno upgrade
            sudo /etc/init.d/nginx reload
            sudo systemctl daemon-reload
            sudo systemctl restart ${{secrets.META_SERVICE_DEV}}

It worked yesterday but now its not. I have an rsync command which works fine.

      - name: Deploy with rsync for development
        if: ${{ !contains(github.ref_name, 'release') && github.ref != 'refs/heads/release' }}
        # from ./bin/deploy.sh
        run: rsync -azvP -e "ssh -p ${{ secrets.SSH_PORT }}" --delete --exclude=node_modules --exclude=redis-data --exclude=.idea --exclude=.git --exclude=mongo_data --exclude=data01 --exclude=uploads --exclude=emails.txt --exclude=main --exclude=deno --exclude=app --exclude=database.sqlite --exclude=database.sqlite-journal --exclude=data ./ ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}}:www/${{secrets.HOST_PATH_DEV}}/${{secrets.HOST_PROJECT}}

ralyodio avatar Feb 08 '23 13:02 ralyodio

Please try the latest version and show your output log.

appleboy avatar Apr 14 '23 18:04 appleboy

Hey this is happening for me as well. Using the latest version. I can ssh fine using the same creds.

AnimeshRy avatar Sep 13 '23 16:09 AnimeshRy