pycharm Failed to transfer file 红色提示 上传文件失败

pycharm远程开发修改服务器文件上传(upload)时报错

报错:

[2019/9/29 9:49] Upload to [email protected]:22
[2019/9/29 9:49] Upload file 'D:\projects\folder1\utee\misc.py' to '/home/xxx/folder1/utee/misc.py'
[2019/9/29 9:49] Failed to transfer file 'D:\projects\folder1\utee\misc.py': could not write to "sftp://10.167.175.43/home/xxx/folder1/utee/misc.py". (Permission denied)
...
[2019/9/29 9:51] Upload to [email protected]:22 completed in less than a minute: 7 items failed

原因:可能是你对那个文件或文件夹没有权限,需要修改权限。比如你从别人目录那里拷贝过来的。

解决:

$ sudo chmod 777 -R folder1 # 注意使用R,否则只修改文件夹的权限是不行的,还要修改文件夹下的每一个文件的权限。
参考:https://blog.csdn.net/qxqxqzzz/article/details/89175005

 

 

报错:
[2020/2/18 11:50] Upload to count_repeat_times
[2020/2/18 11:50] Upload file 'C:\projects\count_repeat_times\show_poor_clips.py' to '/home/user1/projects/count_repeat_times/show_poor_clips.py'
[2020/2/18 11:50] Failed to transfer file 'C:\projects\count_repeat_times\show_poor_clips.py': could not close the output stream for file "sftp://xx.xx.xx.xx/home/user1/projects/count_repeat_times/show_poor_clips.py".
 

可能是目标磁盘满了。。。

你可能感兴趣的:(Linux,#,DL-基础,Python)