Fresh install of cu...
 
Notifications
Clear all

[Solved] Fresh install of current version fails due to missing message-dispatcher-db etc.

5 Posts
4 Users
1 Reactions
1,673 Views
(@zottel)
Joined: 9 months ago
Posts: 21
Topic starter  

Hi,

I'm trying to install Carbonio CE for the first time and followed the instructions closely.

OS: Ubuntu 20
Single Server system

However, the pending-setups step fails with

Carbonio Message Dispatcher database password not found.
Please install carbonio-message-dispatcher-db and run carbonio-message-dispatcher-db-bootstrap command

So I did the Postgres setup steps and installed carbonio-message-dispatcher-db. Also, as mentioned in https://community.zextras.com/forum/postid/6771/ , I found that the rabbitmq binaries were missing in /opt/carbonio/common/bin/ and symlinked them.

But running carbonio-message-dispatcher-db-boostrap fails:

root@carbonio:/etc/carbonio# PGPASSWORD=$DB_ADM_PWD carbonio-message-dispatcher-db-bootstrap carbonio_adm 127.0.0.1
Database: 127.0.0.1:5432 user carbonio_adm
Error connecting to Consul agent: Error loading token file: open /etc/carbonio/message-dispatcher-db/service-discover/token: no such file or directory

So I copied over the token file from /etc/carbonio/message-dispatcher/service-discover/ , but that only leads to a 403:

root@carbonio:/etc/carbonio# cp message-dispatcher/service-discover/token message-dispatcher-db/service-discover/
root@carbonio:/etc/carbonio# PGPASSWORD=$DB_ADM_PWD carbonio-message-dispatcher-db-bootstrap carbonio_adm 127.0.0.1
Database: 127.0.0.1:5432 user carbonio_adm
Error! Failed writing data: Unexpected response code: 403 (Permission denied)

What could I do to get it to run?

Why does a fresh install fail in such spectacular ways at all?

Thanks, zottel


   
Quote
(@harajukakei)
Joined: 9 months ago
Posts: 1
 

having same issue too like this. try to clean install too.


   
ReplyQuote
(@marcin_kfam)
Joined: 9 months ago
Posts: 15
 

I did a clean install and didn't helped also.

PGPASSWORD=$DB_ADM_PWD carbonio-files-db-bootstrap carbonio_adm 127.0.0.1
Database: 127.0.0.1:5432 user carbonio_adm
Check postgres connection: psql: FATAL ERROR (exit code 2).
(see EXIT STATUS section in psql man documentation)
Error connecting to Consul agent: Error loading token file: open /etc/carbonio/files-db/service-discover/token: no such file or directory
psql: error: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?


   
ReplyQuote
(@khaled)
Joined: 8 months ago
Posts: 1
 

Have anyone resolved this? I am facing the same.

Also not able to send emails from web client, SMTP works.

Error:

root@mail:/# pending-setups -a
Insert the cluster credential password: 

Executing all setup scripts...

--------------------------------------------------------------------------------
Executing /etc/zextras/pending-setups.d/carbonio-message-dispatcher.sh
Insert the cluster credential password: 
ID:           027f973b-dfa7-34fa-3020-f968e2a1f76c
Name:         carbonio-message-dispatcher-policy
Description:  Carbonio Message Dispatcher policy for service and sidecar proxy
Datacenters:  
Rules:
{
  "key_prefix": [
    {
      "carbonio-message-dispatcher/": {
        "policy": "write"
      },
      "carbonio-message-dispatcher-db/": {
        "policy": "read"
      }
    }
  ],
  "node_prefix": [
    {
      "": {
        "policy": "read"
      }
    }
  ],
  "service": [
    {
      "carbonio-message-dispatcher-xmpp": {
        "policy": "write"
      },
      "carbonio-message-dispatcher-http": {
        "policy": "write"
      },
      "carbonio-message-dispatcher-auth": {
        "policy": "write"
      },
      "carbonio-message-dispatcher-http-sidecar-proxy": {
        "policy": "write"
      },
      "carbonio-message-dispatcher-xmpp-sidecar-proxy": {
        "policy": "write"
      },
      "carbonio-message-dispatcher-auth-sidecar-proxy": {
        "policy": "write"
      }
    }
  ]
}

Config entry written: service-defaults/carbonio-message-dispatcher-http
Config entry written: service-intentions/carbonio-message-dispatcher-http
Config entry written: service-defaults/carbonio-message-dispatcher-xmpp
Config entry written: service-intentions/carbonio-message-dispatcher-xmpp
Carbonio Message Dispatcher database password not found.
Please install carbonio-message-dispatcher-db and run carbonio-message-dispatcher-db-bootstrap command.
Script for Message Dispatcher terminated with error
Setup script failed, keeping it

   
ReplyQuote
(@zottel)
Joined: 9 months ago
Posts: 21
Topic starter  

I used the steps as described inΒ  https://community.zextras.com/forum/carbonio-setup/fresh-installation-of-carbonio-ce-23-12-0-workstream-collaboration/#post-6847 now, and it works. πŸ™‚


   
ReplyQuote