LoginSignup
0
0

More than 3 years have passed since last update.

WinSCPでエラーコード4になった

Last updated at Posted at 2019-10-19

あらすじ

はじめてのwindows環境、はじめてのWinSCPたらいうツールでファイルをコピー中にいきなりエラーに直面しちゃいました。

error code 4 is 何

SFTP Status/Error Codes - Code 4 (Failure)

In this case the server is required to provide meaningful description of the error itself (see above). Unfortunately, OpenSSH SFTP server uses always description “Failure”. Is such case, there is unfortunately no way to tell a reason of the failure.

環境とかなんやかんやで原因は多岐に渡るみたいで特定は困難みたいです。代表的なもので以下のようなことが考えられるっぽい

  • 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.

my case

自分の場合は上記の最後にある、ディスククォータの上限を越えたことが原因だったようです。

適当に作ったCentOS7で雑にrootで作業していて発生したのですが、自動ディスクパーティションでrootに割り振られたぶんがデフォルトの50GBだけになってました。これはdfコマンドにて同定しました。

df -h

なるほどね。

ぜんぶ/に割り当てる

勝手に作られていた/homeに450GB割り振られていたのでこれを/にもっていきます1

以下の記事を参考にさせていただきました。以上。ありがとうございます。終了。

CentOS7で/と/homeを別に作られたので対処する


  1. 一応書いとくとrootでなんやかんやするのは非推奨ですが、なんかしらんけど今回アサインしたプロジェクトでそういうことになっていました 

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0