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?

【Django】エラー「Create table/tablespace 'xxx' failed, as disk is full」の原因と解決方法

Posted at

概要

Djangoでmigrationを実施したら以下のエラーに。

django.db.utils.OperationalError: (3675, "Create table/tablespace 'xxx' failed, as disk is full") Sentry is attempting to send 2 pending events

解決方法を紹介します。

原因・解決方法

ディスク容量が不足しているためにテーブルの作成が失敗した、ということらしい。このエラーは初めてでした。

不要なDockerイメージやコンテナを削除すればいいかと思い、docker system pruneを実施すると今度は以下のエラー。

Error response from daemon: Bad response from Docker engine

ではビルドキャッシュがディスクスペースを消費しているのか?と思い、docker builder pruneを実施すると、無事に18GB削除完了。

これでマイグレーション時にエラーが出なくなりました。
解決!

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?