# Mariadb docker log file took 126G space

**URL:** <https://help.nextcloud.com/t/mariadb-docker-log-file-took-126g-space/221391>\
**Category:** ℹ️ Support\
**Tags:** docker, nc30, nextcloudlog\
**Created:** [March 29, 2025, 8:18pm UTC](https://help.nextcloud.com/t/mariadb-docker-log-file-took-126g-space/221391 "2025-03-29T20:18:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weiyan\_Cheng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/weiyan_cheng/32/70603_2.png) [@Weiyan\_Cheng](https://help.nextcloud.com/u/Weiyan_Cheng)\
**Post date:** [March 29, 2025, 8:18pm UTC](https://help.nextcloud.com/t/mariadb-docker-log-file-took-126g-space/221391/1 "2025-03-29T20:18:35Z")

</div>

as show in the image, i got a 126G mariadb log file in /var/lib/docker/containers. i don’t know how to deall with it. can i just delete it?

my system: debian 12  
nextcloud version: 30.0.4  
mariadb version: 10.11

 ![Screenshot 2025-03-30 at 00.11.07](https://help.nextcloud.com/uploads/default/original/3X/c/5/c50f8f5b8ef27628a861441bce52c863233d6eb9.png)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [March 29, 2025, 8:22pm UTC](https://help.nextcloud.com/t/mariadb-docker-log-file-took-126g-space/221391/2 "2025-03-29T20:22:57Z")

</div>

Hello @Weiyan_Cheng, welcome to the Nextcloud community! 🤝  
I think you better ask MariaDB support… but nevertheless look at docker logging options: [Local file logging driver | Docker Docs](https://docs.docker.com/engine/logging/drivers/local/#usage)

---

<div class="post-metadata">

**Author:** ![Weiyan\_Cheng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/weiyan_cheng/32/70603_2.png) [@Weiyan\_Cheng](https://help.nextcloud.com/u/Weiyan_Cheng)\
**Post date:** [March 30, 2025, 2:01pm UTC](https://help.nextcloud.com/t/mariadb-docker-log-file-took-126g-space/221391/3 "2025-03-30T14:01:53Z")

</div>

hi wwe, thanks for your reply. i got the answer from an old post. for those who need it:

> [@Incorrect definition of table mysql.column\_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255)](https://help.nextcloud.com/t/incorrect-definition-of-table-mysql-column-stats-expected-column-histogram-at-position-10-to-have-type-longblob-found-type-varbinary-255/145513/5):
>
> I got this error after attempting to upgrade my nextcloud database that was build using the same compose file as Nextcloud. I was using yobasystems mariadb-alpine:10.x.x. After upgrading via building a new container, I had that error. To fix it I needed to actually run the upgrade command docker exec -it nextcloud-db /bin/sh -c ‘mysql\_upgrade -u root -p nextcloud -h db’ I also had to enter the password when prompt, which should be best practice anyways so important keys dont wind up in your te…

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [April 7, 2025, 2:02pm UTC](https://help.nextcloud.com/t/mariadb-docker-log-file-took-126g-space/221391/4 "2025-04-07T14:02:39Z")

</div>

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
