mmmh. its regarding the user rights….
If I change the runasuser in the configfile to “root” the database is build correctly.
Strange to me that the chmod 777 did not do it’s job ???
The whole directory needs to be writable by the “runas” user. not to mention that if you ran it as root to test, then the db will likely be created root:root, with a restrictive umask, so you’ll have to re-chmod the db after you run it in test as root.
So in summary: check the permissions on the containing directory.