Discussion:
[Proftpd-user] Every transfer logged with: "error adding 'XXX' to config ID table: No space left on device
Søren Bang
2016-12-15 09:10:05 UTC
Permalink
Greetings

If I am barking in the wrong place just yell at me, but I am having a problem with a stock Debian Proftpd server

Every transfer is logged in proftpd.log with "error adding 'XXX' to config ID table: No space left on device" (XXX being the file transferred)

I have plenty of free space (150G+) on the disk and I have also checked the node count/status (1% used)

Running v1.3.5 on Debian (Jessie)

Any idea where I find information about the 'config ID table' mentioned in the error? I have checked the source files and the config ID table is only mentioned when it can't be emptied or removed (in dirtree.c)


Thanks!

Søren Bang
Matus UHLAR - fantomas
2016-12-15 11:03:16 UTC
Permalink
Post by Søren Bang
If I am barking in the wrong place just yell at me, but I am having a problem with a stock Debian Proftpd server
Every transfer is logged in proftpd.log with "error adding 'XXX' to config ID table: No space left on device" (XXX being the file transferred)
I have plenty of free space (150G+) on the disk and I have also checked the node count/status (1% used)
does this apply for all filesystems?
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
LSD will make your ECS screen display 16.7 million colors
Søren Bang
2016-12-15 12:38:18 UTC
Permalink
Thanks for responding Matus

Our files only on an ext4 partition (if that is what you mean?).

:S:



-----Original Message-----
From: Matus UHLAR - fantomas [mailto:***@fantomas.sk]
Sent: Thursday, December 15, 2016 12:03 PM
To: proftp-***@lists.sourceforge.net
Subject: Re: [Proftpd-user] Every transfer logged with: "error adding 'XXX' to config ID table: No space left on device
Post by Søren Bang
If I am barking in the wrong place just yell at me, but I am having a
problem with a stock Debian Proftpd server
Every transfer is logged in proftpd.log with "error adding 'XXX' to
config ID table: No space left on device" (XXX being the file
transferred)
I have plenty of free space (150G+) on the disk and I have also checked
the node count/status (1% used)
does this apply for all filesystems?
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
LSD will make your ECS screen display 16.7 million colors

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________
ProFTPD Users List <proftpd-***@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
Matus UHLAR - fantomas
2016-12-15 12:42:48 UTC
Permalink
Post by Søren Bang
Our files only on an ext4 partition (if that is what you mean?).
most of installations, if not all, have more filesystems mounted on e.g. /dev
etc
Post by Søren Bang
-----Original Message-----
Sent: Thursday, December 15, 2016 12:03 PM
Subject: Re: [Proftpd-user] Every transfer logged with: "error adding 'XXX' to config ID table: No space left on device
Post by Søren Bang
If I am barking in the wrong place just yell at me, but I am having a
problem with a stock Debian Proftpd server
Every transfer is logged in proftpd.log with "error adding 'XXX' to
config ID table: No space left on device" (XXX being the file
transferred)
I have plenty of free space (150G+) on the disk and I have also checked
the node count/status (1% used)
does this apply for all filesystems?
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Windows found: (R)emove, (E)rase, (D)elete
TJ Saunders
2016-12-16 15:46:49 UTC
Permalink
Post by Søren Bang
If I am barking in the wrong place just yell at me, but I am having a
problem with a stock Debian Proftpd server
Every transfer is logged in proftpd.log with "error adding 'XXX' to
config ID table: No space left on device" (XXX being the file
transferred)
Any idea where I find information about the 'config ID table' mentioned
in the error? I have checked the source files and the config ID table is
only mentioned when it can't be emptied or removed (in dirtree.c)
This error is somewhat misleading, and has nothing to do with disk
space.

Internally, ProFTPD maintains an in-memory table of configuration
directives.
For comparison purposes when merging bits of configuration together
(e.g.
when handing .ftpaccess files), each entry in that table is assigned a
numeric
ID.This table is that "config ID table" mentioned in the log message.

The in-memory table implementation that ProFTPD uses sets a limit on the
maximum
number of entries in the table, to prevent memory leaks/undue memory
usage. The
default max number of entries in a table is 8192. And when that limit
is reached,
attempting to add more entries to the table fails with the ENOSPC errno
value
("No spaceleft on device").

There a couple of different things that, to me, the logging behavior you
encounter suggest that we should do. First, that particular error
message, while
logged at the DEBUG0 log level, should probably be made even less
verbose, such as
DEBUG9 (or maybe even just a TraceLog message). The error in question is
more
benign than anything else; it will not cause the file transfer to fail.
In addition,
the maximum number of entries for that config ID table should be made
higher, to
decrease the chance of the error being logged.

I'll make the above tweaks in the master branch today.

All that said, I would be curious to hear more about your particular
setup, that
would lead to the log message in the first place. Are you using
.ftpaccess files?
Do you only see this message for particularly long-running sessions
(i.e. only
after a certain number of file transfers)?

Cheers,
TJ
TJ Saunders
2016-12-16 16:32:24 UTC
Permalink
Post by TJ Saunders
There a couple of different things that, to me, the logging behavior you
encounter suggest that we should do. First, that particular error
message, while logged at the DEBUG0 log level, should probably be made
even less verbose, such as DEBUG9 (or maybe even just a TraceLog message).
The error in question is more benign than anything else; it will not
cause the file transfer to fail. In addition, the maximum number of
entries for that config ID table should be made higher, to decrease the
chance of the error being logged.
I'll make the above tweaks in the master branch today.
And done; see:

https://github.com/proftpd/proftpd/commit/ea231878a9069952ce9174ce53f5ebd603528bed

Cheers,
TJ

Loading...