# Dpkg error not enought space even there is a space

**URL:** <https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531>\
**Category:** General Discussion\
**Created:** [6 October 2022 04:27 UTC](https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531 "2022-10-06T04:27:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eskimos2000](https://dietpi.com/forum/user_avatar/dietpi.com/eskimos2000/32/2639_2.png) [@Eskimos2000](https://dietpi.com/forum/u/Eskimos2000)\
**Post date:** [6 October 2022 04:27 UTC](https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531/1 "2022-10-06T04:27:02Z")

</div>

Hi,

I recently encoutered strange error when installing new software like mopidy

```auto
Setting up python3-alsaaudio (0.8.4-1.1+b3) ...
dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
Setting up mopidy-alsamixer (2.0.1-1) ...
dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device
E: Write error - ~LZMAFILE (28: No space left on device)

```

I check card and it is 27GB free out of 32 so I do not get it why this error exists?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 October 2022 04:54 UTC](https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531/2 "2022-10-06T04:54:33Z")

</div>

Your log directory seems to be full. [Apt upgrade fails "No space left on device" - #2 by Joulinar](https://dietpi.com/forum/t/apt-upgrade-fails-no-space-left-on-device/14297/2)

---

<div class="post-metadata">

**Author:** ![Eskimos2000](https://dietpi.com/forum/user_avatar/dietpi.com/eskimos2000/32/2639_2.png) [@Eskimos2000](https://dietpi.com/forum/u/Eskimos2000)\
**Post date:** [6 October 2022 05:22 UTC](https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531/3 "2022-10-06T05:22:33Z")

</div>

Ok, so why is not emptied by itself like by rotation to last log only or something?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 October 2022 05:46 UTC](https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531/4 "2022-10-06T05:46:39Z")

</div>

Maybe it is filling up fast. Check what is inside using the command I posted on the other thread

---

<div class="post-metadata">

**Author:** ![Eskimos2000](https://dietpi.com/forum/user_avatar/dietpi.com/eskimos2000/32/2639_2.png) [@Eskimos2000](https://dietpi.com/forum/u/Eskimos2000)\
**Post date:** [6 October 2022 08:51 UTC](https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531/5 "2022-10-06T08:51:18Z")

</div>

Thx I have found it. Sonarr is creating huge logs but I have only Info set in sonarr not debbug and there is no option to turn to log off completely. So what kind of stack what to do?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 October 2022 09:05 UTC](https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531/6 "2022-10-06T09:05:07Z")

</div>

did you check sonarr logs? There would need to be a reason why sonarr is creating them.

---

<div class="post-metadata">

**Author:** ![Eskimos2000](https://dietpi.com/forum/user_avatar/dietpi.com/eskimos2000/32/2639_2.png) [@Eskimos2000](https://dietpi.com/forum/u/Eskimos2000)\
**Post date:** [6 October 2022 23:05 UTC](https://dietpi.com/forum/t/dpkg-error-not-enought-space-even-there-is-a-space/14531/7 "2022-10-06T23:05:18Z")

</div>

Oh, it is weird Sonarr does not have permission to: /mnt/ssd1/media/tv/ !

I have fixed it and all good, thanks for direction.

Cheers
