Fresh Installation ...
 
Notifications
Clear all

[Sticky] Fresh Installation of Carbonio CE 23.12.0 Workstream Collaboration

61 Posts
21 Users
10 Reactions
10.4 K Views
(@sharif)
Admin
Joined: 2 years ago
Posts: 433
Topic starter  

@thanhhx 

Hi,

Sorry to hear that.

Please tell us more about your server. Like.

root@mail:~# cat /etc/os-release

and 

root@mail:~# apt update

Finally, if you are using an Officially supported OS for Carbonio CE (Ubuntu 22, Ubuntu 20, and RHEL8) and if you have added the zextras repository to your server, then try the following:

root@mail:~# apt clean all
root@mail:~# apt update

Now, try to install the packages again.

Regards,

Sharif


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 433
Topic starter  

@blackberry 

Hi,

Currently, CentOS, Rocky Linux, Alma Linux, and Debian are not officially supported operating systems (OS) for Carbonio CE. Installation on Rocky Linux is strongly discouraged due to potential compatibility issues. As mentioned in the official documentation, it's advised to utilize an officially supported OS such as Ubuntu 20.04LTS or RHEL8. Referring to the current official documentation and using the supported OS is recommended to avoid complications during installation.

I don't want to dishearten you more, but in short, over time, we observed that using other OSs creates unprecedented dependency issues and complications. Hence, we recommend sticking to the official guidelines.

I hope you would understand.

Regards,

Sharif


   
ReplyQuote
(@thanhhx)
Joined: 8 months ago
Posts: 5
 

@sharif 

Thank you for your response. I have rerun the commands following your instructions, but the error still occurs. I am using a server running Ubuntu 22.04 LTS. I have completely rebuild the VPS.

root@mail:~# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
root@mail:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@mail:~# apt clean all
root@mail:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@mail:~# apt install service-discover-server \
carbonio-directory-server \
carbonio-files-db carbonio-mailbox-db \
carbonio-docs-connector-db carbonio-tasks-db \
carbonio-proxy carbonio-webui carbonio-files-ui \
carbonio-tasks-ui carbonio-files-public-folder-ui \
carbonio-user-management carbonio-mta \
carbonio-appserver carbonio-storages-ce \
carbonio-files-ce carbonio-preview-ce \
carbonio-docs-connector-ce carbonio-tasks-ce \
carbonio-docs-editor carbonio-prometheus -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package service-discover-server
E: Unable to locate package carbonio-directory-server
E: Unable to locate package carbonio-files-db
E: Unable to locate package carbonio-mailbox-db
E: Unable to locate package carbonio-docs-connector-db
E: Unable to locate package carbonio-tasks-db
E: Unable to locate package carbonio-proxy
E: Unable to locate package carbonio-webui
E: Unable to locate package carbonio-files-ui
E: Unable to locate package carbonio-tasks-ui
E: Unable to locate package carbonio-files-public-folder-ui
E: Unable to locate package carbonio-user-management
E: Unable to locate package carbonio-mta
E: Unable to locate package carbonio-appserver
E: Unable to locate package carbonio-storages-ce
E: Unable to locate package carbonio-files-ce
E: Unable to locate package carbonio-preview-ce
E: Unable to locate package carbonio-docs-connector-ce
E: Unable to locate package carbonio-tasks-ce
E: Unable to locate package carbonio-docs-editor
E: Unable to locate package carbonio-prometheus
root@mail:~#


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 433
Topic starter  

@thanhhx

Hi,

From your log, I don't see any zextras repository configured in your system.

Regards,

Sharif

Posted by: @thanhhx

root@mail:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.

 


   
thanhhx reacted
ReplyQuote
(@thanhhx)
Joined: 8 months ago
Posts: 5
 

@sharif 

Following your instructions, I managed to fix the initial error. However, I'm still encountering issues during the installation process. Here's the error log:

Deploying CA to /opt/zextras/conf/ca ...done.
Creating SSL carbonio-appserver certificate...done.
Creating new carbonio-directory-server SSL certificate...done.
Creating new carbonio-mta SSL certificate...done.
Creating new carbonio-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Initializing ldap...failed. (28928)

ERROR

Configuration failed

Please address the error and re-run carbonio-bootstrap to
complete the configuration.

Errors have been logged to /tmp/zmsetup.20240505-231228.log

/tmp/zmsetup.20240505-231228.log

Updating local config and LDAP
Sun May 5 23:15:11 2024 done.
Sun May 5 23:15:11 2024 Setting nginx password...
Sun May 5 23:15:11 2024 Running as zextras user: /opt/zextras/bin/zmldappa>
No route to host at /opt/zextras/bin/zmldappasswd line 90, <DATA> line 960.
Updating local config and LDAP
Sun May 5 23:15:17 2024 done.
Sun May 5 23:15:17 2024 checking isEnabled carbonio-directory-server
Sun May 5 23:15:17 2024 carbonio-directory-server is enabled
Sun May 5 23:15:17 2024 Initializing ldap...
Sun May 5 23:15:17 2024
Running as zextras user: /opt/zextras/libexec/zmld>
No route to host at /opt/zextras/libexec/zmldapinit line 128.
Sun May 5 23:16:04 2024 failed. (28928)
Sun May 5 23:16:04 2024

ERROR

Sun May 5 23:16:04 2024


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 433
Topic starter  

@thanhhx 

Hi,

You can take a look at this article and check if you have missed anything else.

https://community.zextras.com/how-to-deploy-a-collaborative-private-e-mail-server-carbonio-community-edition-for-free-using-ubuntu-22-04lts-carbonio-ce/

Thanks and regards,

Sharif


   
ReplyQuote
(@raystinger)
Joined: 3 months ago
Posts: 37
 

im try new version on VM and already set admin pass it says

The authentication policy needs more steps: please contact your administrator for more information

   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 433
Topic starter  

@raystinger 

Hi could you please share the following details:

  • Server OS Version
  • Carbonio CE version
  • zmcontrol status
  • log status of /opt/zextras/mailbox.log

Also the check the screenshot.

Regards,

Sharif


   
ReplyQuote
(@imanudin11)
Joined: 11 years ago
Posts: 13
 

Hello,

I just do apt update -y && apt upgrade -y. Then, I perform pending-setups -a. However, when I do below command, I got this error

<pre>

PGPASSWORD=DB_ADM_PWD carbonio-message-dispatcher-migration carbonio_adm 127.78.0.10 20000
Checking of database schema... Done. The database needs to be updated!
Updating database... Failed!
Cannot run script file '/etc/carbonio/message-dispatcher/sql-scripts/migrations//6.0.0.sql'

</pre>

Are there any steps I'm missing?

<pre>

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal

su - zextras -c 'zmcontrol -v'
Carbonio Release 24.3.0

</pre>


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 433
Topic starter  

@imanudin11 

Hi,

Thank you for writing to us. We are really happy to hear from you. Basically this issue occurs after you setup carbonio-message-dispatcher and then try to bootstrap carbonio-message-dispatcher-migration.

I some cases we observed that after installing carbonio-message-dispatcher-db and carbonio-message-dispatcher when you execute

PGPASSWORD=$DB_ADM_PWD carbonio-message-dispatcher-migration carbonio_adm 127.78.0.10 20000

the script could not connect to the respective DB. Therefore, I would request you to restart following services:

systemctl restart postgresql*
systemctl restart carbonio-message-dispatcher-db-sidecar.service

Then again try:

PGPASSWORD=$DB_ADM_PWD carbonio-message-dispatcher-migration carbonio_adm 127.78.0.10 20000

Now it should work without any issue.

 

BTW, if you d not have any preferences of installing CE manually or automatically, then you could use the script mentioned in this page:

https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/

Try the Fan Made Script and let us know how it goes?

 

Again thank you so much for writing to us and please let know if we could provide you any more information.

I wish you a good day.

Regards,

Sharif


   
ReplyQuote
(@imanudin11)
Joined: 11 years ago
Posts: 13
 

Hi @sharif 

The problem still exists after performing the commands as you mentioned. This is a test server that is still using the old version. I want to upgrade to the new version. However, the upgrade process is having problems. Especially on carbonio-files and ws-collaboration


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 433
Topic starter  

@imanudin11 

Hi,

Sorry to hear that.

Could you please share the output of these commands:

# curl -s -v  http://127.78.0.4:10000/health  | jq

and

# systemctl list-units carbonio*

and

also you can see when I stopped the carbonio-message-dispatcher-db-sidecar.service manually, I got the same error. but after restarting it and giving it sometime the command executed successfully. Though my version is 24.5.0 on Ubuntu 22.04LTS

root@mail:~# systemctl stop carbonio-message-dispatcher-db-sidecar.service
root@mail:~#
root@mail:~#
root@mail:~#
root@mail:~# PGPASSWORD=q carbonio-message-dispatcher-migration carbonio_adm 127.78.0.10 20000
Checking of database schema... Done. The database needs to be updated!
Updating database... Failed!
Cannot run script file '/etc/carbonio/message-dispatcher/sql-scripts/migrations//6.0.0.sql'
root@mail:~#
root@mail:~#
root@mail:~# systemctl start carbonio-message-dispatcher-db-sidecar.service
root@mail:~#
root@mail:~#
root@mail:~# PGPASSWORD=q carbonio-message-dispatcher-migration carbonio_adm 127.78.0.10 20000
Checking of database schema... Done. The database needs to be updated!
Updating database... Failed!
Cannot run script file '/etc/carbonio/message-dispatcher/sql-scripts/migrations//6.0.0.sql'
root@mail:~#
root@mail:~#
root@mail:~# PGPASSWORD=q carbonio-message-dispatcher-migration carbonio_adm 127.78.0.10 20000
Checking of database schema... Done. The database needs to be updated!
Updating database... Failed!
Cannot run script file '/etc/carbonio/message-dispatcher/sql-scripts/migrations//6.0.0.sql'
root@mail:~#
root@mail:~#
root@mail:~#
root@mail:~#
root@mail:~#
root@mail:~#
root@mail:~# PGPASSWORD=q carbonio-message-dispatcher-migration carbonio_adm 127.78.0.10 20000
Checking of database schema... Done. The database is already updated.
root@mail:~#
root@mail:~#

So i apologize for the inconvenience again and would like to request you to check the status of carbonio-message-dispatcher-db-sidecar.service using systemctl and journalctl. And if possible please share them with us.

Check the same for files and workstream collaboration.

I hope you would understand.

I wish you a good day ahead.

Regards,

Sharif

 

 
 

 

 


   
ReplyQuote
(@imanudin11)
Joined: 11 years ago
Posts: 13
 

Hi @sharif,

Below is the result

curl -s -v http://127.78.0.4:10000/health | jq

*   Trying 127.78.0.4:10000...
* TCP_NODELAY set
* connect to 127.78.0.4 port 10000 failed: Connection refused
* Failed to connect to 127.78.0.4 port 10000: Connection refused
* Closing connection 0

systemctl list-units carbonio*

  UNIT                                               LOAD   ACTIVE     SUB          DESCRIPTION                                     
  carbonio-clamav-sidecar.service                    loaded active     running      Carbonio clamav sidecar proxy                   
  carbonio-clamav-signature-provider-sidecar.service loaded active     running      NGINX Carbonio ClamAV signature provider sidecar
  carbonio-docs-editor-sidecar.service               loaded active     running      Carbonio Docs server sidecar proxy              
  carbonio-docs-editor.service                       loaded active     running      Carbonio Docs Server                            
  carbonio-mailbox-sidecar.service                   loaded active     running      Mailbox carbonio proxy sidecar                  
  carbonio-message-dispatcher-auth-sidecar.service   loaded active     running      Carbonio Message Dispatcher auth sidecar proxy  
  carbonio-message-dispatcher-auth.service           loaded active     running      Carbonio Message Dispatcher auth daemon         
  carbonio-message-dispatcher-http-sidecar.service   loaded active     running      Carbonio Message Dispatcher HTTP sidecar proxy  
  carbonio-message-dispatcher-xmpp-sidecar.service   loaded active     running      Carbonio Message Dispatcher XMPP sidecar proxy  
  carbonio-message-dispatcher.service                loaded active     running      Carbonio Message Dispatcher daemon              
  carbonio-mta-sidecar.service                       loaded active     running      Carbonio mta sidecar proxy                      
  carbonio-preview-sidecar.service                   loaded active     running      Carbonio Preview sidecar proxy                  
  carbonio-preview.service                           loaded active     running      Carbonio Preview daemon                         
  carbonio-prometheus-consul-exporter.service        loaded active     running      Carbonio Prometheus Consul exporter             
  carbonio-prometheus-mysqld-exporter.service        loaded active     running      Carbonio Prometheus MySQL exporter              
  carbonio-prometheus-nginx-exporter.service         loaded active     running      Carbonio Prometheus NGINX exporter              
  carbonio-prometheus-node-exporter.service          loaded active     running      Carbonio Prometheus Node Exporter               
  carbonio-prometheus-openldap-exporter.service      loaded active     running      Carbonio Prometheus OpenLDAP exporter           
  carbonio-proxy-sidecar.service                     loaded active     running      NGINX carbonio proxy sidecar                    
  carbonio-storages-sidecar.service                  loaded active     running      Storages-CE sidecar proxy                       
  carbonio-storages.service                          loaded active     running      Carbonio Storages-CE daemon                     
  carbonio-user-management-sidecar.service           loaded active     running      Carbonio User Management sidecar proxy          
  carbonio-user-management.service                   loaded active     running      Carbonio User Management daemon                 
  carbonio-ws-collaboration-sidecar.service          loaded active     running      Carbonio Workstream Collaboration sidecar proxy 
  carbonio-ws-collaboration.service                  loaded activating auto-restart Carbonio Workstream Collaboration daemon        
  carbonio.service                                   loaded active     exited       LSB: Carbonio Services                          

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

Finally, I can update the database after follow your instruction

PGPASSWORD=DB_ADM_PWD carbonio-message-dispatcher-migration carbonio_adm 127.78.0.10 20000
Checking of database schema... Done. The database needs to be updated!
Updating database... Success. The database has been updated.
Updating 'carbonio-message-dispatcher-db' grant... Success.

systemctl status carbonio-message-dispatcher-db-sidecar.service

● carbonio-message-dispatcher-db-sidecar.service - Carbonio Message Dispatcher database sidecar
     Loaded: loaded (/lib/systemd/system/carbonio-message-dispatcher-db-sidecar.service; disabled; vendor preset: enabled)
     Active: active (running) since Wed 2024-06-12 16:25:31 WIB; 1min 40s ago
       Docs:  https://docs.zextras.com/ 
   Main PID: 9974 (envoy)
      Tasks: 12 (limit: 9425)
     Memory: 16.0M
     CGroup: /system.slice/carbonio-message-dispatcher-db-sidecar.service
             └─9974 /usr/bin/envoy --config-path /tmp/envoy-17d8378bf158f3db-bootstrap.json --disable-hot-restart

   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 433
Topic starter  

@imanudin11 

Hi,

Glad this information.

But still we are unable to get service health condition from:

curl -s -v  http://127.78.0.4:10000/health  | jq

But the real issue is why carbonio-ws-collaboration.service is not running?

Can you please share the out put of followings:

Remarks: I do not see any video server related services.

root@mail:~# systemctl status service-discover

root@mail:~# consul members

root@mail:~# systemctl status carbonio-ws-collaboration

root@mail:~# journalctl -u carbonio-ws-collaboration.service


Finally, stop all services and reboot the server.

su - zextras -c 'zmcontrol restart'
systemctl restart carbonio-tasks
systemctl restart carbonio-message-broker
systemctl restart carbonio-message-dispatcher
systemctl restart carbonio-ws-collaboration

then check again.

 

Regards,

Sharif


   
ReplyQuote
(@imanudin11)
Joined: 11 years ago
Posts: 13
 

Hi @sharif ,

Thank you for your hint regarding status service-discover. I can see what service that still problem. So, I start them manually. Now, all services has been running

UNIT                                               LOAD   ACTIVE SUB     DESCRIPTION                                       
  carbonio-clamav-sidecar.service                    loaded active running Carbonio clamav sidecar proxy                     
  carbonio-clamav-signature-provider-sidecar.service loaded active running NGINX Carbonio ClamAV signature provider sidecar  
  carbonio-docs-connector-sidecar.service            loaded active running Carbonio docs connector sidecar proxy             
  carbonio-docs-connector.service                    loaded active running Carbonio docs connector daemon                    
  carbonio-docs-editor-sidecar.service               loaded active running Carbonio Docs server sidecar proxy                
  carbonio-docs-editor.service                       loaded active running Carbonio Docs Server                              
  carbonio-files-db-sidecar.service                  loaded active running Carbonio Files database sidecar                   
  carbonio-files-sidecar.service                     loaded active running Carbonio Files sidecar proxy                      
  carbonio-files.service                             loaded active running Carbonio Files daemon                             
  carbonio-mailbox-admin-sidecar.service             loaded active running Carbonio Mailbox Admin proxy sidecar              
  carbonio-mailbox-nslookup-sidecar.service          loaded active running Carbonio Mailbox NSLookup proxy sidecar           
  carbonio-mailbox-sidecar.service                   loaded active running Mailbox carbonio proxy sidecar                    
  carbonio-message-broker-sidecar.service            loaded active running Carbonio message broker sidecar proxy             
  carbonio-message-broker.service                    loaded active running Carbonio message broker daemon                    
  carbonio-message-dispatcher-auth-sidecar.service   loaded active running Carbonio Message Dispatcher auth sidecar proxy    
  carbonio-message-dispatcher-auth.service           loaded active running Carbonio Message Dispatcher auth daemon           
  carbonio-message-dispatcher-db-sidecar.service     loaded active running Carbonio Message Dispatcher database sidecar      
  carbonio-message-dispatcher-http-sidecar.service   loaded active running Carbonio Message Dispatcher HTTP sidecar proxy    
  carbonio-message-dispatcher-xmpp-sidecar.service   loaded active running Carbonio Message Dispatcher XMPP sidecar proxy    
  carbonio-message-dispatcher.service                loaded active running Carbonio Message Dispatcher daemon                
  carbonio-mta-sidecar.service                       loaded active running Carbonio mta sidecar proxy                        
  carbonio-preview-sidecar.service                   loaded active running Carbonio Preview sidecar proxy                    
  carbonio-proxy-sidecar.service                     loaded active running NGINX carbonio proxy sidecar                      
  carbonio-storages-sidecar.service                  loaded active running Storages-CE sidecar proxy                         
  carbonio-storages.service                          loaded active running Carbonio Storages-CE daemon                       
  carbonio-user-management-sidecar.service           loaded active running Carbonio User Management sidecar proxy            
  carbonio-user-management.service                   loaded active running Carbonio User Management daemon                   
  carbonio-videoserver-sidecar.service               loaded active running Carbonio Videoserver sidecar proxy                
  carbonio-videoserver.service                       loaded active running Zextras Videoserver                               
  carbonio-ws-collaboration-db-sidecar.service       loaded active running Carbonio Workstream Collaboration database sidecar
  carbonio-ws-collaboration-sidecar.service          loaded active running Carbonio Workstream Collaboration sidecar proxy   
  carbonio-ws-collaboration.service                  loaded active running Carbonio Workstream Collaboration daemon   

   
ReplyQuote
Page 4 / 5