Comments (5)
Fixed by redirecting all output:
nohup python script.py > nohup.out 2> nohup.err < /dev/null &
from ssh-action.
@asymness thank you! I faced the same problem. Do you know why it works like this? I tried to find an answer to this question for several hours but found nothing.
from ssh-action.
@Saljooq moving nohup
to a command directly under the list of commands on the action worked for me for some reason.
some something like:
.github/deploy.yaml
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.KEY }}
host: ${{ secrets.HOSTNAME }}
username: ${{ secrets.USERNAME }}
script: |
./some_script
./some_script
nohup ./some_other_script > nohup.out 2> nohup.err < /dev/null &
I changed it to:
.github/deploy.yaml
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.KEY }}
host: ${{ secrets.HOSTNAME }}
username: ${{ secrets.USERNAME }}
script: |
nohup ./some_script > nohup.out 2> nohup.err < /dev/null &
from ssh-action.
For some reason, the action keeps waiting for stdin, stdout, and stderr. That's why we need to redirect all three outputs to free the terminal. That's all I could gather from this...
from ssh-action.
So I've had a very similar issue with docker compose. As per the suggestion I tried redirecting all three fds (input, output and error), but no luck, my github actions keep running and then timing out and failing.
Here's the script:
nohup sudo docker compose --env-file ./.config/.env up > nohup.out 2> nohup.err < /dev/null &
Any help would be appreciated :)
from ssh-action.
Related Issues (20)
- mvn: command not found HOT 3
- Switch User (su) not working HOT 6
- ssh i/i timeout HOT 1
- Should I allow all IP for ssh? HOT 2
- File and command not found error
- OAuth 403 Forbidden Error HOT 2
- Getting a timeout using the private ssh key on github and keeping public key on remote HOT 2
- github action run shell script err: sudo: a password is required HOT 3
- Pass envs to scripts not working in v1.0.3 HOT 2
- docker: Error response from daemon: Mounts denied: HOT 2
- ssh: handshake failed: read tcp *****:*** ->*****:***: read: connection reset by peer HOT 1
- ssh.ParsePrivateKey: ssh: this private key is passphrase protected HOT 4
- Using username and password getting ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain HOT 1
- Repository env variables are empty HOT 1
- dial tcp ***:***: i/o timeout bastion host to private ec2 HOT 3
- ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain HOT 12
- ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain HOT 4
- Image not building HOT 2
- Error: missing server host HOT 6
- Command not recognised HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssh-action.