CodeDeploy: Script at specified location: scripts/stop_server run as user root failed with exit code 1How do I make bower install work with aws.push?Amazon Web Service CodeDeploy appspec.yml problemsAWS CodeDeploy with gitNPM issue deploying a nodejs instance using AWS codedeployCodeDeploy Script does not exist at specified location - appspec.ymlnode.js with underscore on linux Error: Cannot find module 'underscore'/usr/bin/env: node: Permission denied for nodejs using AWS Code Deployscripts/install_dependencies.sh run as user root failed with exit code 127AWS Code Pipeline Error: Script at specified location: scripts/install_dependencies run as user oracle failed with exit code 127scripts/install_dependencies run as user ubuntu failed with exit code 1
speaker impedence
Is the EU really banning "toxic propellants" in 2020? How is that going to work?
Can I shorten this filter, that finds disk sizes over 100G?
Selecting rows conflicting values in WHERE clause
How to avoid a lengthy conversation with someone from the neighborhood I don't share interests with
Can it be useful for a player block with a hanging piece in a back rank mate situation?
How does Rust's 128-bit integer `i128` work on a 64-bit system?
Why have both: BJT and FET transistors on IC output?
In Haskell, when using the XStrict language extension, is if short-circuiting?
What is the difference between 2/4 and 4/4 when it comes the accented beats?
Protect a 6 inch air hose from physical damage
What's the proper way of indicating that a car has reached its destination during a dialogue?
Word for pulling a punch in karate
Went to a big 4 but got fired for underperformance in a year recently - Now every one thinks I'm pro - How to balance expectations?
What's the term for a group of people who enjoy literary works?
Heinlein story regarding suspended animation and reading newspapers?
Can an alphabet for a Turing machine contain subsets of other alphabets?
UX writing: When to use "we"?
Declaring a visitor to the UK as my "girlfriend" - effect on getting a Visitor visa?
Why do we need a voltage divider when we get the same voltage at the output as the input?
Accurately recalling the key - can everyone do it?
Does the problem of P vs NP come under the category of Operational Research?
Does KNN have a loss function?
Partial Fractions: Why does this shortcut method work?
CodeDeploy: Script at specified location: scripts/stop_server run as user root failed with exit code 1
How do I make bower install work with aws.push?Amazon Web Service CodeDeploy appspec.yml problemsAWS CodeDeploy with gitNPM issue deploying a nodejs instance using AWS codedeployCodeDeploy Script does not exist at specified location - appspec.ymlnode.js with underscore on linux Error: Cannot find module 'underscore'/usr/bin/env: node: Permission denied for nodejs using AWS Code Deployscripts/install_dependencies.sh run as user root failed with exit code 127AWS Code Pipeline Error: Script at specified location: scripts/install_dependencies run as user oracle failed with exit code 127scripts/install_dependencies run as user ubuntu failed with exit code 1
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
No matter what I put inside the stop_server
file the CodeDeploy ends up with the error as above.
I even commented out all the lines to simplify debugging, so now it looks inside like this
#!/bin/bash
# pkill -f node
My appspec.yml
:
version: 0.0
os: linux
files:
- source: /app.js
destination: /home/ec2-user/node-website
- source: /package.json
destination: /home/ec2-user/node-website
- source: /public/
destination: /home/ec2-user/node-website/public
- source: /node_modules
destination: /home/ec2-user/node-website/node_modules
permissions:
- object: /
pattern: "**"
owner: ec2-user
group: ec2-user
hooks:
AfterInstall:
- location: scripts/install_dependencies
timeout: 300
runas: ec2-user
#- location: scripts/codestar_remote_access
# timeout: 300
# runas: ec2-user
- location: scripts/start_server
timeout: 300
runas: ec2-user
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: ec2-user
Any sugestions highly appreciated!
amazon-web-services amazon-ec2 continuous-deployment aws-codepipeline
add a comment |
No matter what I put inside the stop_server
file the CodeDeploy ends up with the error as above.
I even commented out all the lines to simplify debugging, so now it looks inside like this
#!/bin/bash
# pkill -f node
My appspec.yml
:
version: 0.0
os: linux
files:
- source: /app.js
destination: /home/ec2-user/node-website
- source: /package.json
destination: /home/ec2-user/node-website
- source: /public/
destination: /home/ec2-user/node-website/public
- source: /node_modules
destination: /home/ec2-user/node-website/node_modules
permissions:
- object: /
pattern: "**"
owner: ec2-user
group: ec2-user
hooks:
AfterInstall:
- location: scripts/install_dependencies
timeout: 300
runas: ec2-user
#- location: scripts/codestar_remote_access
# timeout: 300
# runas: ec2-user
- location: scripts/start_server
timeout: 300
runas: ec2-user
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: ec2-user
Any sugestions highly appreciated!
amazon-web-services amazon-ec2 continuous-deployment aws-codepipeline
add a comment |
No matter what I put inside the stop_server
file the CodeDeploy ends up with the error as above.
I even commented out all the lines to simplify debugging, so now it looks inside like this
#!/bin/bash
# pkill -f node
My appspec.yml
:
version: 0.0
os: linux
files:
- source: /app.js
destination: /home/ec2-user/node-website
- source: /package.json
destination: /home/ec2-user/node-website
- source: /public/
destination: /home/ec2-user/node-website/public
- source: /node_modules
destination: /home/ec2-user/node-website/node_modules
permissions:
- object: /
pattern: "**"
owner: ec2-user
group: ec2-user
hooks:
AfterInstall:
- location: scripts/install_dependencies
timeout: 300
runas: ec2-user
#- location: scripts/codestar_remote_access
# timeout: 300
# runas: ec2-user
- location: scripts/start_server
timeout: 300
runas: ec2-user
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: ec2-user
Any sugestions highly appreciated!
amazon-web-services amazon-ec2 continuous-deployment aws-codepipeline
No matter what I put inside the stop_server
file the CodeDeploy ends up with the error as above.
I even commented out all the lines to simplify debugging, so now it looks inside like this
#!/bin/bash
# pkill -f node
My appspec.yml
:
version: 0.0
os: linux
files:
- source: /app.js
destination: /home/ec2-user/node-website
- source: /package.json
destination: /home/ec2-user/node-website
- source: /public/
destination: /home/ec2-user/node-website/public
- source: /node_modules
destination: /home/ec2-user/node-website/node_modules
permissions:
- object: /
pattern: "**"
owner: ec2-user
group: ec2-user
hooks:
AfterInstall:
- location: scripts/install_dependencies
timeout: 300
runas: ec2-user
#- location: scripts/codestar_remote_access
# timeout: 300
# runas: ec2-user
- location: scripts/start_server
timeout: 300
runas: ec2-user
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: ec2-user
Any sugestions highly appreciated!
amazon-web-services amazon-ec2 continuous-deployment aws-codepipeline
amazon-web-services amazon-ec2 continuous-deployment aws-codepipeline
asked Mar 27 at 0:30
Adam BubelaAdam Bubela
3,3772 gold badges21 silver badges27 bronze badges
3,3772 gold badges21 silver badges27 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can check the code-deploy logs to find more details, the logs is normally located in:
codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log
Find more detailed error logs and let me know if you still cannot figure it out
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368103%2fcodedeploy-script-at-specified-location-scripts-stop-server-run-as-user-root-f%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can check the code-deploy logs to find more details, the logs is normally located in:
codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log
Find more detailed error logs and let me know if you still cannot figure it out
add a comment |
You can check the code-deploy logs to find more details, the logs is normally located in:
codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log
Find more detailed error logs and let me know if you still cannot figure it out
add a comment |
You can check the code-deploy logs to find more details, the logs is normally located in:
codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log
Find more detailed error logs and let me know if you still cannot figure it out
You can check the code-deploy logs to find more details, the logs is normally located in:
codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log
Find more detailed error logs and let me know if you still cannot figure it out
answered Mar 27 at 9:52
Calvin ZhouCalvin Zhou
1491 silver badge5 bronze badges
1491 silver badge5 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368103%2fcodedeploy-script-at-specified-location-scripts-stop-server-run-as-user-root-f%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown