When loading the initial configuration from an initialization file where you have an external DB connected to ConfD, you can’t put the XML file in the CDB dbDir or CDB initPath, since you are not utilizing CDB to store that data.
Rather you want to do something like this:
$ confd --start-phase0 -c confd.conf --addloadpath /Users/tailf/confd-6.4.1/etc/confd
$ confd --wait-phase0
$ ./my_extdb_app &
$ confd_load -d -d -m -i -l init.xml
TRACE Connected (maapi) to ConfD
TRACE MAAPI_LOAD_ALL_NS
TRACE Connected (maapi) to ConfD
attaching to init session...
TRACE MAAPI_LOAD_HASH_DB
TRACE MAAPI_ATTACH --> CONFD_OK
TRACE MAAPI_LOAD_CONFIG_FILE TRACE
$ confd_load --start-phase2
...
From the ConfD UG
/confdConfig/cdb/dbDir (string)
dbDir is the directory on disk which CDB use for its storage and any temporary files being used.
It is also the directory where CDB searches for initialization files.
/confdConfig/cdb/initPath
The initPath can contain any number of <dir> items, which should be directories.
When CDB first starts it will first look in these directories for initialization files.
The directories will be searched in the order they are listed, lastly the dbDir is searched.