简体   繁体   English

谷歌云第一次通过 ftp 连接,但在几秒钟内恢复为写入权限被拒绝(在这种情况下文件变为空白)

[英]Google Cloud connecting first time through ftp but in few seconds reverting to permission denied on write (the file is going blank on this case)

I am connecting to my project files through FileZilla (hosted in Google Cloud).我正在通过 FileZilla(托管在 Google Cloud 中)连接到我的项目文件。 It was working fine until yesterday.直到昨天它工作正常。 Starting yesterday I am getting issues:从昨天开始,我遇到了问题:

  1. When I restart the compute engine FileZilla is working for fine few seconds.当我重新启动计算引擎 FileZilla 工作了几秒钟。 Then it reverts back to permission issue or showing Failed while saving files.然后它恢复到权限问题或在保存文件时显示失败。
  2. I checked with permissions and everything looks fine.我检查了权限,一切看起来都很好。 My project files is inside var/www/html我的项目文件在var/www/html里面
Status: Connected to {cloud_ip_here}
Status: Starting download of /var/www/html/{app_name}/api/application/controllers/Test.php
Status: File transfer successful, transferred 1,920 bytes in 1 second
Status: Starting upload of C:\Users\{my_pc_name}\AppData\Local\Temp\fz3temp-2\Test.php
Command:    put "C:\Users\{my_pc_name}\AppData\Local\Temp\fz3temp-2\Test.php" "Test.php"
Error:  /var/www/html/{app_name}/api/application/controllers/Test.php: open for write: permission denied
Error:  File transfer failed

Permission denied errors occur when you don't have the required permissions to make changes to a file that you're trying to edit over FTP.当您没有所需的权限来更改您尝试通过 FTP 编辑的文件时,会出现权限被拒绝错误。 You can follow the steps in link given below in order to rectify the issue,您可以按照下面给出的链接中的步骤来纠正问题,

fix-ftp-permission-errors-google-cloud 修复 ftp 权限错误-谷歌云

Weirdly, the issue was server ran out of space and that's the reason it was showing permission denied.奇怪的是,问题是服务器空间不足,这就是它显示权限被拒绝的原因。 It has nothing to do with permissions.它与权限无关。 To check space in ssh of Compute Engine instance go for "df" command.检查 Compute Engine 实例 go 的 ssh 中“df”命令的空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM