Open fireangel403 opened 1 year ago
Please:
uname -a
cat /etc/apt/sources.list.d/pdns.list
deb [arch=amd64] http://repo.powerdns.com/ubuntu focal-auth-48 main
pdns_control version
4.8.0
uname -a
Linux pdnslmdb 5.4.0-149-generic #166-Ubuntu SMP Tue Apr 18 16:51:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
This might be silly, but if you create a few 'garbage' zones before trying the import, does it work? It looks like it's not creating all the shards (which in and of itself might be a different bug...)
I kind of worked around the issue by recompiling after editing the files
ext/lmdb-safe/lmdb-safe.hh
modules/lmdbbackend/lmdbbackend.cc
and changing the following lines:
std::shared_ptr<MDBEnv> getMDBEnv(const char* fname, int flags, int mode, uint64_t mapsizeMB=(sizeof(void *)==4) ? 100 : 16000);
declare(suffix, "map-size", "LMDB map size in megabytes", (sizeof(void*) == 4) ? "100" : "16000");
replacing 16000
with 70000
recompile and replace the following installed binary files and library file with the recompiled ones in my server.
/usr/bin/pdns_control
/usr/bin/pdnsutil
/usr/sbin/pdns_server
/usr/lib/x86_64-linux-gnu/pdns/liblmdbbackend.so
But that basically means that the value from the config file is not being read properly
If this is a bug (which it seems to be), the issue should be left open and the title changed to reflect that.
Status changed to open.
I updated the config file (
/etc/powerdns/pdns.conf
) to as per the following:service pdns restart
Same error.
Error: putting data: MDB_MAP_FULL: Environment mapsize limit reached
It seems that
lmdb-map-size=128000
has no effect.PDNS Version: 4.8.0
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
Originally posted by @fireangel403 in https://github.com/PowerDNS/pdns/issues/11243#issuecomment-1584541865