Value too large for defined data type

Place to discuss Fedora and/or Red Hat
Post Reply
User avatar
Basher52
guru
guru
Posts: 916
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Value too large for defined data type

Post by Basher52 » Fri Oct 21, 2011 2:26 pm

Just wanted to check the mail on my server and got this error:

Code: Select all

[basher52@unknown ~]$ mail
/var/spool/mail/basher52: Value too large for defined data type
[basher52@unknown ~]$ 
[basher52@unknown ~]$ ls /var/spool/mail/ -al
total 3177624
drwxrwxr-x.  2 root       mail       4096 Oct 21 09:45 .
drwxr-xr-x. 13 root       root       4096 Apr 19  2010 ..
-rw-rw----   1 basher52   mail 3250692415 Oct 21 09:45 basher52
-rw-rw----   1 drftpd     mail          0 Dec 17  2010 drftpd
-rw-rw----   1 polkituser mail          0 Feb 21  2008 polkituser
-rw-rw----   1 pulse      mail          0 Feb 21  2008 pulse
-rw-rw----   1 rpc        mail          0 Feb 21  2008 rpc
-rw-rw----   1 tcpdump    mail          0 Feb 21  2008 tcpdump
[basher52@unknown ~]$ 
Have no clue what to do?
Been googling some but only found stuff that are related to file storage that are bigger then 2G
and THAT can't be true, can it?

Anyone knows how to fix this?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Re: Value too large for defined data type

Post by Void Main » Fri Oct 21, 2011 8:25 pm

Dude, your friggin' inbox is over 3GB! That doesn't appear to match any file size limit but maybe the number of messages is reaching some sort of limit. Maybe try a different mail program to read it other than the basic mail program. But why would you want to have 3GB in your inbox?

User avatar
Basher52
guru
guru
Posts: 916
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Re: Value too large for defined data type

Post by Basher52 » Sat Oct 22, 2011 9:44 am

I wonder that myself, how can I just empty it?
I 'echo "" > basher52' and it's clean and works :)

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Re: Value too large for defined data type

Post by Void Main » Sat Oct 22, 2011 12:44 pm

Believe it or not just the following will do the same thing (don't need the "echo"):

> /var/spool/mail/basher52

User avatar
Basher52
guru
guru
Posts: 916
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Re: Value too large for defined data type

Post by Basher52 » Sun Oct 23, 2011 10:45 am

I believe you and sure looks more cool :P

Post Reply