✅ Problem
After following the guide described in: <a title="Carbonio - Single Server Installation" href=" removed link " target="_blank" rel="noopener">carbonio-single-server-install
When executing the command:
PGPASSWORD=$DB_ADM_PWD carbonio-mailbox-db-bootstrap carbonio_adm 127.0.0.1
This is on a fresh installation of Carbonio Community Edition, the following error appears and the mailbox service fails to start:
Token file "/etc/carbonio/mailbox-db/service-discover/token" missing, Unable to proceed without consul token. Exiting!
This can happen even on supported OSes if the bootstrap process didn't complete correctly—but it's more common on unsupported systems like CentOS 9 Stream.
🎯 Solution
You can manually retrieve and place the required Consul token with the following steps:
🔧 Step-by-step Fix:
-
Generate the bootstrap token:
service-discover bootstrap-token
This will print something like:
ee1443d8-3f82-29ec-8920-2385ed7d43bd
- Copy the token, and then create the file and paste the token in this path:
vim /etc/carbonio/mailbox-db/service-discover/token
I used vim, you can use nano or any other CLI editor.
After that repeat the command again, and all will go as expected.
📝 Notes
-
✔️ Tested successfully on CentOS 9 Stream — even though it's not officially supported, this fix gets it working.