nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.71k stars 2.37k forks source link

Permission denied when deploy to vercel after adding ignore-vercel-build.sh #9200

Closed norassystemes closed 1 year ago

norassystemes commented 2 years ago
Cloning completed: 840.035ms -- 04:46:10.679 | Running "./tools/ignore-vercel-build.sh" 04:46:10.684 | /bin/sh: ./tools/ignore-vercel-build.sh: Permission denied 04:46:10.688 | Error: Command failed with exit code 126: ./tools/ignore-vercel-build.sh 04:46:10.688 | at a1t (/var/task/sandbox.js:182:57) 04:46:10.688 | at /var/task/sandbox.js:182:9995 04:46:10.688 | at processTicksAndRejections (internal/process/task_queues.js:95:5) 04:46:10.688 | at async kLt (/var/task/sandbox.js:214:390) 04:46:10.688 | at async YUe (/var/task/sandbox.js:212:398) 04:46:10.688 | at async MLt (/var/task/sandbox.js:216:4840) 04:46:10.688 | at async LLt (/var/task/sandbox.js:216:4540) { 04:46:10.688 | shortMessage: 'Command failed with exit code 126: ./tools/ignore-vercel-build.sh', 04:46:10.688 | command: './tools/ignore-vercel-build.sh', 04:46:10.688 | exitCode: 126, 04:46:10.689 | signal: undefined, 04:46:10.689 | signalDescription: undefined, 04:46:10.689 | stdout: undefined, 04:46:10.689 | stderr: undefined, 04:46:10.689 | failed: true, 04:46:10.689 | timedOut: false, 04:46:10.689 | isCanceled: false, 04:46:10.689 | killed: false 04:46:10.690 | }
AgentEnder commented 2 years ago

Hey @norassystemes, can you make sure the shell script is marked as executable? You'll need to run something like chmod +x tools/scripts/ignore-vercel-build.sh and commit the results.

Jesperson commented 2 years ago

I'm having the same issue, my file is marked as executable. I got help from a friend and git update-index --add --chmod=+x filename.sh worked.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

Jacqueline-Kelly commented 1 year ago

Where do we run this chmod +x tools/scripts/ignore-vercel-build.sh command?

github-actions[bot] commented 1 year ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.