question

izeman avatar image
izeman asked

Value too large for defined data type

I got goe-charger addon running and it seems it made the log file too big, rendering the /data directory useless as it's 100% full now, and the log file is not accessible.

/data/dbus-goecharger/current.log: Value too large for defined data type

How can I get rid of that file now?


Venus OS
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

4 Answers
pantau avatar image
pantau answered ·

Did you ever find a solution?

Have the same issue right now.

Thanks!

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Kevin Windrem avatar image
Kevin Windrem answered ·

You can simply delete the file.

Logs should go into /data/log and be managed by multilog. This will keep the log file from taking all the space on /data

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

pantau avatar image
pantau answered ·

No, you can't delete the file, at least not with "rm current.log", hence the error "Value too large for defined data type" and the question here in this forum :-)

After a lot of searching, I found that this works:

cat /dev/null > current.log

I hope that helps others who will find this topic with Google search.

Agree with your second comment, just some of the additional packages do not respect this convention. So you either use them as stock or you modify the code.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

halma avatar image
halma answered ·

Hi,

I encountered the same problem, Google search did not show your solution yet :)

I fixed it by making a python script that removes the file place it in the same directory as the current.log file and run the script.


import os
from pathlib import Path
myfile = "current.log"
print("Files in a directory -->",os.listdir())
print("-----------------------------------------------------")
# If file exists, delete it.
if os.path.isfile(myfile):
os.remove(myfile)
print("Favtutor file deleted using remove() function")
print("Current files in directory -->",os.listdir())
print("-----------------------------------------------------")
else:
# If it fails, inform the user.
print("Error: %s file not found" % myfile)



2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources