0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CakePHPでWarning: file_put_contents() [function.file-put-contents]: Only 0 of 1209 bytes written, possibly out of free disk space in…という警告が出た場合の対処

Posted at

出力していたエラー

Warning: file_put_contents() [function.file-put-contents]: Only 0 of 1209 bytes written, possibly out of free disk space in [FileLog.phpのディレクトリパス]
Warning (512): _cake_core_ cache was unable to write 'cake_dev_ja' to File cache [CORE/Cake/Cache/Cache.php, line 327]

結論

容量がいっぱいなのでキャッシュが書き込めない状態です。
いらないファイルを削除する必要があります。

バージョン

CentOS 6.6
Apache 2.2.15
PHP 7.3.15
CakePHP 2.10.20

削除するファイルの候補

  • キャッシュ、アクセスログ、エラーログ
    app/tmp/以下にあるキャッシュやログが不要であれば削除します。

  • Rewritelog
    開発環境だといつの間にか肥大しているようなので削除候補でしょうか。
    ファイルパスは/tmp/httpd.rewrite.logです。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?