使用WinSCP将文件上传到CentOS时出现“错误代码:4(失败)”

维沙尔

最近六个月以来,我几乎定期使用WinSCP。

突然我遇到了一个问题,就是我无法使用它在服务器中上传文件。

其抛出以下错误消息:

General failure (server should provide error description).
Error code: 4
Error message from server: Failure

Common reasons for the Error code 4 are:
- Renaming a file to a name of already existing file. 
- Creating a directory that already exists.
- Moving a remote file to a different filesystem (HDD).
- Uploading a file to a full filesystem (HDD).
- Exceeding a user disk quota.

WinSCP日志消息:

. 2017-12-15 18:06:03.081 Cached directory change via ".." to "/home/centos".
. 2017-12-15 18:06:03.081 Getting current directory name.
. 2017-12-15 18:06:03.095 Directory content loaded from cache.
. 2017-12-15 18:06:03.714 Changing directory to "..".
. 2017-12-15 18:06:03.715 Getting real path for '/home/centos/..'
> 2017-12-15 18:06:03.715 Type: SSH_FXP_REALPATH, Size: 24, Number: 41232
< 2017-12-15 18:06:03.723 Type: SSH_FXP_STATUS, Size: 24, Number: 40964
. 2017-12-15 18:06:03.723 Discarding reserved response
< 2017-12-15 18:06:04.504 Type: SSH_FXP_NAME, Size: 31, Number: 41232
. 2017-12-15 18:06:04.504 Real path is '/home'
. 2017-12-15 18:06:04.504 Trying to open directory "/home".
> 2017-12-15 18:06:04.504 Type: SSH_FXP_LSTAT, Size: 14, Number: 41479
< 2017-12-15 18:06:04.791 Type: SSH_FXP_ATTRS, Size: 37, Number: 41479
. 2017-12-15 18:06:04.791 Getting current directory name.
. 2017-12-15 18:06:04.791 Listing directory "/home".
> 2017-12-15 18:06:04.792 Type: SSH_FXP_OPENDIR, Size: 14, Number: 41739
< 2017-12-15 18:06:05.074 Type: SSH_FXP_HANDLE, Size: 13, Number: 41739
> 2017-12-15 18:06:05.075 Type: SSH_FXP_READDIR, Size: 13, Number: 41996
< 2017-12-15 18:06:05.358 Type: SSH_FXP_NAME, Size: 423, Number: 41996
> 2017-12-15 18:06:05.359 Type: SSH_FXP_READDIR, Size: 13, Number: 42252
< 2017-12-15 18:06:05.643 Type: SSH_FXP_STATUS, Size: 28, Number: 42252
< 2017-12-15 18:06:05.643 Status code: 1
> 2017-12-15 18:06:05.644 Type: SSH_FXP_CLOSE, Size: 13, Number: 42500
. 2017-12-15 18:06:05.644 ..;d;0;2015-07-07T11:20:17.000Z;3;"root" [0];"root" [0];r-xr-xr-x;0
. 2017-12-15 18:06:05.644 centos;d;0;2017-12-15T12:24:52.000Z;3;"centos" [1000];"centos" [1000];rwx------;0
. 2017-12-15 18:06:05.644 nagios;d;0;2016-08-23T12:06:16.000Z;3;"nagios" [1001];"nagios" [1001];rwx------;0
. 2017-12-15 18:06:08.658 Cached directory change via "centos" to "/home/centos".
. 2017-12-15 18:06:08.658 Getting current directory name.
. 2017-12-15 18:06:08.773 Directory content loaded from cache.
. 2017-12-15 18:06:49.957 Copying 1 files/directories to remote directory "/home/centos/" - total size: 871
. 2017-12-15 18:06:49.957   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2017-12-15 18:06:49.957   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2017-12-15 18:06:49.957   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-12-15 18:06:49.959 File: 'C:\Documents\C_Programs\Bsearch_using_recursion.txt' [2016-05-03T09:58:13.902Z] [871]
. 2017-12-15 18:06:49.972 Copying "C:\Documents\C_Programs\Bsearch_using_recursion.txt" to remote directory started.
. 2017-12-15 18:06:49.973 Binary transfer mode selected.
. 2017-12-15 18:06:49.973 Opening remote file.
> 2017-12-15 18:06:49.973 Type: SSH_FXP_OPEN, Size: 65, Number: 42755
< 2017-12-15 18:06:49.973 Type: SSH_FXP_STATUS, Size: 24, Number: 42500
. 2017-12-15 18:06:49.973 Discarding reserved response
< 2017-12-15 18:06:50.256 Type: SSH_FXP_STATUS, Size: 24, Number: 42755
< 2017-12-15 18:06:50.256 Status code: 4, Message: 42755, Server: Failure, Language:  
. 2017-12-15 18:06:50.256 Cannot create new file "/home/centos/Bsearch_using_recursion.txt", checking if it exists already
> 2017-12-15 18:06:50.256 Type: SSH_FXP_LSTAT, Size: 49, Number: 43015
< 2017-12-15 18:06:50.543 Type: SSH_FXP_STATUS, Size: 29, Number: 43015
< 2017-12-15 18:06:50.543 Status code: 2, Message: 43015, Server: No such file, Language:  
* 2017-12-15 18:06:50.544 (ETerminal) General failure (server should provide error description).
* 2017-12-15 18:06:50.544 Error code: 4
* 2017-12-15 18:06:50.544 Error message from server: Failure
* 2017-12-15 18:06:50.544 
* 2017-12-15 18:06:50.544 Common reasons for the Error code 4 are:
* 2017-12-15 18:06:50.544 - Renaming a file to a name of already existing file.
* 2017-12-15 18:06:50.544 - Creating a directory that already exists.
* 2017-12-15 18:06:50.544 - Moving a remote file to a different filesystem (HDD).
* 2017-12-15 18:06:50.544 - Uploading a file to a full filesystem (HDD).
* 2017-12-15 18:06:50.544 - Exceeding a user disk quota.
. 2017-12-15 18:06:50.544 Asking user:
. 2017-12-15 18:06:50.545 Cannot create remote file '/home/centos/Bsearch_using_recursion.txt'. ("General failure (server should provide error description).
. 2017-12-15 18:06:50.545 Error code: 4
. 2017-12-15 18:06:50.545 Error message from server: Failure
. 2017-12-15 18:06:50.545 
. 2017-12-15 18:06:50.545 Common reasons for the Error code 4 are:
. 2017-12-15 18:06:50.545 - Renaming a file to a name of already existing file.
. 2017-12-15 18:06:50.545 - Creating a directory that already exists.
. 2017-12-15 18:06:50.545 - Moving a remote file to a different filesystem (HDD).
. 2017-12-15 18:06:50.545 - Uploading a file to a full filesystem (HDD).
. 2017-12-15 18:06:50.545 - Exceeding a user disk quota.")
> 2017-12-15 18:06:52.975 Type: SSH_FXP_OPEN, Size: 65, Number: 43267
< 2017-12-15 18:06:53.259 Type: SSH_FXP_STATUS, Size: 24, Number: 43267
< 2017-12-15 18:06:53.260 Status code: 4, Message: 43267, Server: Failure, Language:  
. 2017-12-15 18:06:53.260 Cannot create new file "/home/centos/Bsearch_using_recursion.txt", checking if it exists already
> 2017-12-15 18:06:53.260 Type: SSH_FXP_LSTAT, Size: 49, Number: 43527
< 2017-12-15 18:06:53.543 Type: SSH_FXP_STATUS, Size: 29, Number: 43527
< 2017-12-15 18:06:53.543 Status code: 2, Message: 43527, Server: No such file, Language:  
* 2017-12-15 18:06:53.544 (ETerminal) General failure (server should provide error description).
* 2017-12-15 18:06:53.544 Error code: 4
* 2017-12-15 18:06:53.544 Error message from server: Failure

我在Google上搜索了此问题,发现可能是由于100%的文件系统已满。

我在centos中使用以下命令检查了内存:

free -m

命令输出:

              total        used        free       shared  buff/cache   available
Mem:          32014       28612         310        1553        3091        1533
Swap:             0           0           0

看来我有1533 MP可用空间。但是我仍然无法上传1 Mb的小文件。

df命令输出:

Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/vda1       52416860 52416840        20 100% /
devtmpfs        16374100        0  16374100   0% /dev
tmpfs           16391320        0  16391320   0% /dev/shm
tmpfs           16391320  1597928  14793392  10% /run
tmpfs           16391320        0  16391320   0% /sys/fs/cgroup
tmpfs            3278268        0   3278268   0% /run/user/1000
tmpfs            3278268        0   3278268   0% /run/user/0

任何人都可以提供这方面的任何信息。

马丁·普里克里(Martin Prikryl)

如此看来,你的文件系统确实是全:Use%100%文件系统/dev/vda1,它应该由使用/home/centos路径

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

将图像上传到FTP时出现错误

来自分类Dev

在Excel中已打开时,使用QFile写入文件失败,没有错误代码

来自分类Dev

图片的Phonegap文件传输在所有其他图片上均失败:FileTransfer上传时出现错误代码3

来自分类Dev

使用Google App Engine将文件上传到Blobstore时出现HTTP 400错误

来自分类Dev

将较大的文件上传到Parse时可能出现OutOfMemoryException

来自分类Dev

将5G文件上传到Amazon S3时出现EntityTooLarge错误

来自分类Dev

将PHP文件上传到服务器时出现语法错误

来自分类Dev

在生产环境中使用查询字符串将文件上传到GCS时出现404错误

来自分类Dev

使用Ruby将大文件上传到S3时出现内存不足错误,如何批量读取和上传?

来自分类Dev

安装scipy时出现“错误代码1失败”

来自分类Dev

将文件从真实设备上传到服务器时出现错误

来自分类Dev

尝试使用此代码将图像上传到网页上,但会不断出现错误

来自分类Dev

使用签名的URL将图像文件上传到Google Cloud时出现CORS错误

来自分类Dev

将新的Appbundle上传到Forge时出现“ ConnectionAborted错误”

来自分类Dev

将文件上传到Firebase存储时出现身份验证错误

来自分类Dev

尝试将图像上传到Firebase时出现错误(Swift)

来自分类Dev

使用Google App Engine将文件上传到Blobstore时出现HTTP 400错误

来自分类Dev

上传后关闭文件时WinSCP代码4错误

来自分类Dev

使用BITS协议将文件上传到OneDrive时出现400错误

来自分类Dev

使用FTP将文件上传到Debian机器时出现505错误

来自分类Dev

res.forbidden在将文件上传到Sails时出现错误

来自分类Dev

使用Flask将文件上传到目录时出现内部服务器错误代码500

来自分类Dev

将更改上传到模板文件时出现Laravel错误500

来自分类Dev

Ionic android-使用预签名的URL将文件上传到S3(错误代码:3)

来自分类Dev

将文件上传到服务器时,WinSCP错误“无此文件”

来自分类Dev

为什么将 zip 文件上传到 phonegap 服务时出现错误?

来自分类Dev

将文件从 JSP 上传到 Servlet 时出现的奇怪问题

来自分类Dev

上传到 Play 商店时出现无效的 APK 文件错误

来自分类Dev

将应用程序上传到 Windows 应用商店时出现“此提交失败,错误代码为 1004”

Related 相关文章

  1. 1

    将图像上传到FTP时出现错误

  2. 2

    在Excel中已打开时,使用QFile写入文件失败,没有错误代码

  3. 3

    图片的Phonegap文件传输在所有其他图片上均失败:FileTransfer上传时出现错误代码3

  4. 4

    使用Google App Engine将文件上传到Blobstore时出现HTTP 400错误

  5. 5

    将较大的文件上传到Parse时可能出现OutOfMemoryException

  6. 6

    将5G文件上传到Amazon S3时出现EntityTooLarge错误

  7. 7

    将PHP文件上传到服务器时出现语法错误

  8. 8

    在生产环境中使用查询字符串将文件上传到GCS时出现404错误

  9. 9

    使用Ruby将大文件上传到S3时出现内存不足错误,如何批量读取和上传?

  10. 10

    安装scipy时出现“错误代码1失败”

  11. 11

    将文件从真实设备上传到服务器时出现错误

  12. 12

    尝试使用此代码将图像上传到网页上,但会不断出现错误

  13. 13

    使用签名的URL将图像文件上传到Google Cloud时出现CORS错误

  14. 14

    将新的Appbundle上传到Forge时出现“ ConnectionAborted错误”

  15. 15

    将文件上传到Firebase存储时出现身份验证错误

  16. 16

    尝试将图像上传到Firebase时出现错误(Swift)

  17. 17

    使用Google App Engine将文件上传到Blobstore时出现HTTP 400错误

  18. 18

    上传后关闭文件时WinSCP代码4错误

  19. 19

    使用BITS协议将文件上传到OneDrive时出现400错误

  20. 20

    使用FTP将文件上传到Debian机器时出现505错误

  21. 21

    res.forbidden在将文件上传到Sails时出现错误

  22. 22

    使用Flask将文件上传到目录时出现内部服务器错误代码500

  23. 23

    将更改上传到模板文件时出现Laravel错误500

  24. 24

    Ionic android-使用预签名的URL将文件上传到S3(错误代码:3)

  25. 25

    将文件上传到服务器时,WinSCP错误“无此文件”

  26. 26

    为什么将 zip 文件上传到 phonegap 服务时出现错误?

  27. 27

    将文件从 JSP 上传到 Servlet 时出现的奇怪问题

  28. 28

    上传到 Play 商店时出现无效的 APK 文件错误

  29. 29

    将应用程序上传到 Windows 应用商店时出现“此提交失败,错误代码为 1004”

热门标签

归档