Skip to content
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

Got Permission Denied when access scripts #1

Closed
zuhrulumam opened this issue Oct 29, 2017 · 3 comments
Closed

Got Permission Denied when access scripts #1

zuhrulumam opened this issue Oct 29, 2017 · 3 comments

Comments

@zuhrulumam
Copy link

zuhrulumam commented Oct 29, 2017

I used this tutorial https://jenkins.io/doc/tutorials/using-jenkins-to-build-a-node-js-react-project/ but i got permission denied on deliver stage

[sails-cicd] Running shell script

  • ./jenkins/scripts/deliver.sh
    /var/jenkins_home/workspace/sails-cicd@tmp/durable-fbe0e1fd/script.sh: 2: /var/jenkins_home/workspace/sails-cicd@tmp/durable-fbe0e1fd/script.sh: ./jenkins/scripts/deliver.sh: Permission denied
    Can you help me??

Thanks

@gilesgas
Copy link
Contributor

gilesgas commented Oct 31, 2017

Hi @zuhrulumam ,

When you ran through this tutorial, there were some errors in it which were fixed when this PR was merged.

Essentially, the repository you fork (during the course of this tutorial) was originally named simple-node-js-react-app, but its name was changed to simple-node-js-react-npm-app to reflect that npm is being leveraged by Jenkins to build the app.

Unfortunately at the time, I didn't update all references of simple-node-js-react-app to simple-node-js-react-npm-app in the tutorial. However, as part of renaming this tutorial (in the PR linked above), which happened soon after this tutorial was published, I also updated/fixed all simple-node-js-react-app references to simple-node-js-react-npm-app.

Regardless, the tutorial should work if you use either simple-node-js-react-app OR simple-node-js-react-npm-app (i.e. not a combination of both) for your directory paths consistently throughout the tutorial.

I'm curious to know if you may have used a combination of these directory paths because when I saw your output (above):

  • /var/jenkins_home/workspace/sails-cicd@tmp/durable-fbe0e1fd/script.sh: ...

I was expecting to see either:

  • /var/jenkins_home/workspace/simple-node-js-react-app/...
    or
  • /var/jenkins_home/workspace/simple-node-js-react-npm-app/...

Since the tutorial is now fixed, could I suggest you re-run through it and it should work as expected. Out of interest, what platform (i.e. operating system) are you running through this tutorial on?

Please add a comment to let me know how you go. (If I don't hear back, I'll assume all is fixed and will close this issue early next week.)

Cheers,
Giles.

@gilesgas
Copy link
Contributor

gilesgas commented Nov 1, 2017

Another point worth mentioning ... If you wish to use the Jenkinsfile (created during the course of this tutorial) to build another Node.js and React project with npm, then you may need to tweak the Jenkinsfile (as well as the shell scripts it executes) to suit that other project.

You'll also need to ensure that your shell scripts are executable.

@gilesgas
Copy link
Contributor

gilesgas commented Nov 6, 2017

I'm going to close this issue as I assume there are no problems being encountered throughout the course of the tutorial that uses this repository. I should also mention that I re-ran through this tutorial last week and did not experience any problems.

@gilesgas gilesgas closed this as completed Nov 6, 2017
phongvh added a commit to phongvh/simple-node-js-react-npm-app that referenced this issue Apr 5, 2018
wanghao1891 pushed a commit to wanghao1891/simple-node-js-react-npm-app that referenced this issue Jan 16, 2019
Cold-A-Muse added a commit to Cold-A-Muse/simple-node-js-react-npm-app that referenced this issue May 14, 2019
fletan added a commit to fletan/simple-node-js-react-npm-app that referenced this issue Aug 5, 2022
thelONE added a commit to thelONE/simple-node-js-react-npm-app that referenced this issue Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants