Error: Error: EACCES: permission denied, open './_site/.ftp-deploy-sync-state.json'
See original GitHub issueBug Description
I’m running the ftp deploy action after a jekyll action. The directory and all files created by the previous action are owned by root.root
and have 755
permission. I believe this is the default behavior of actions now. However, because of this, the ftp deploy action fails.
I’ve tried both the v4.0.0 and v4.0.1-patch versions of the action.
My Action Config
- name: Deploy site
uses: SamKirkland/FTP-Deploy-Action@4.0.1-patch
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_pw }}
protocol: ftps
local-dir: ./_site/
server-dir: /something/
dry-run: true
My Action Log
Run SamKirkland/FTP-Deploy-Action@4.0.1-patch
----------------------------------------------------------------
🚀 Thanks for using ftp-deploy version 1.0.0. Let's deploy some stuff!
----------------------------------------------------------------
If you found this project helpful, please support it
by giving it a ⭐ on Github --> https://github.com/SamKirkland/FTP-Deploy-Action
or add a badge 🏷️ to your projects readme --> https://github.com/SamKirkland/FTP-Deploy-Action#badge
Error: Error: EACCES: permission denied, open './_site/.ftp-deploy-sync-state.json'
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Open - GitHub
Error: Error: EACCES: permission denied, open './_site/.ftp-deploy-sync-state.json' #254 · Comments · Footer.
Read more >Error: EACCES: permission denied - node.js - Stack Overflow
This command fix the issue. It worked for me: sudo npm install -g --unsafe-perm=true --allow-root.
Read more >FTP-Deploy-Action - Bountysource
Error : Error: EACCES: permission denied, open './_site/.ftp-deploy-sync-state.json' ... I'm running the ftp deploy action after a jekyll action.
Read more >ERROR running auth:web:login: EACCES: permission denied ...
In MacOS Finder, the file info showed that all users have "no access" (no read, no write, etc...) to this file... and the...
Read more >Upgrade to 2.17 not rendering web pages correctly - WeBWorK
npm verb stack Error: EACCES: permission denied, mkdir '/root/.npm/_cacache/tmp' npm verb cwd /opt/webwork/webwork2/htdocs
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ignore my last comment, just add the following to your yml build file:
Quick’n’dirty workaround:
Create in your repo a .ftp-deploy-sync-state.json file and set the state-name to
../.ftp-deploy-sync-state.json