question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Error: EACCES: permission denied, open './_site/.ftp-deploy-sync-state.json'

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
kevquirkcommented, Jan 6, 2021

Ignore my last comment, just add the following to your yml build file:

state-name: ../.ftp-deploy-sync-state.json
3reactions
llyorshchcommented, Jan 1, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found