I am getting SSH2_FX_PERMISSION_DENIED while attempting to upload files to our website.
This is a very strange issue that we have just discovered when we attempted to update our websites.
But we were unable to upload any files to any website being served on that Linode. The error we are getting is strange:
Couldn't get handle : SSH2_FX_PERMISSION_DENIED - Permission denied
We do not have this issue on any other Linode. The issue is also very cryptic. I first thought that the User and Group settings were off. But when I compare to another one of our Linodes, they are mostly identical. I just verified that I was able to upload files fine to another one of my Linodes.
1 Reply
Thinking about this problem from end to end, I'd say we would want to check the following things:
- Is there sufficient disk space free on the Linode?:
df -h
- Do you have your filesystem mounted as read only?
sudo mount
- Can you obtain a more detailed error message? (PuTTY)
Check your PuTTY configuration and make sure that under Logging under Session that you are grabbing everything (the exact wording of the option varies between versions). Keep track of the path to the log file so you can check it later)
- Can we get a more detailed error message? (SSH client on Windows Command Line, Mac, or Linux)
Add -vvv
to your command option to get very very very verbose output.
- You may want to check that your production environment is not using some kind of cache that might have those files open while you are trying to write to them
You can check out this article to see which processes are using which files and vice-versa
I hope this helps! Any more details you can provide about which program you are using to upload files, the ssh client you are using, which web server, and extra information about any additional components in your setup may be helpful and relevant to getting to the bottom of your issue.