-
-
Notifications
You must be signed in to change notification settings - Fork 577
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
update.sh works properly when triggered manual, but not when triggered via this GitHub shh-action #202
Comments
I have a very similar problem.
but my Version on my vServer is v16.2.0 and npm v8.19.2. Manually it builds and installs without errors. |
Same problem here. I am logging into EC2 with the username
And the deploy.sh is this:
Tried master and locked version Script works when I login as |
I am having the same issue. I can't run a script after gaining ssh access via shh-action. But everything works fine when I access my server manually. err: bash: line 8: yarn: command not found
err: bash: line 9: yarn: command not found
err: bash: line 10: yarn: command not found
out: Running PM2
err: bash: line 12: pm2: command not found
err: bash: line 13: pm2: command not found
2023/01/20 19:23:42 Process exited with status 127 @vygandas were you able to get it to work? |
Did anyone fix this issue? |
Please refer to #70 |
MY SOLUTION: obviously the Node.js version was wrong. But why would that happen, if we execute the same script? The solution that worked for me, was to make sure the correct Node version is used in the .sh script. This can be done by adding these two lines at the top of the script (add the Node version you want):
|
It all worked fine for a simple repo with a Node.js server that provides an index.html. However in my first complex project, after installing the Node.js NPM's, the script navigates into the client folder and tries to install the NPM's here aswell and get errors of this kind:
the weird thing: when i log into the ubuntu server with the same credentials by hand and run the .sh file with bash, it works perfectly fine. the installed Node version is v18.12.1, npm is 8.19.2. So I really dont understand why the error state that node version 12 is used. Ubuntu is Version 22.04.1 LTS.
any ideas?
The text was updated successfully, but these errors were encountered: