The issues while in...
 
Notifications
Clear all

[Solved] The issues while installing follow the oficial guide.

4 Posts
3 Users
0 Reactions
995 Views
(@phuongnd678)
Joined: 1 year ago
Posts: 2
Topic starter  

I build a carrbonio CE system with 4 servers following  the oficial guide. Everything is Ok, no problem while installing.
After finish installing, I use command line: journalctl -u carbonio* to check. No problem with server 1,3,4. On server 2 I have an error about carbonio-prometheus-nginx-exporter.service.
This is the link guide: https://docs.zextras.com/carbonio-ce/html/multi-server-installation.html#four-nodes-scenario
Error detail on server 2 the following:

Started Carbonio Prometheus NGINX exporter.
Sep 19 09:25:18 srv2.example.com carbonio-prometheus-nginx-exporter[4539]: 2023/09/19 09:25:18 Starting NGINX Prometheus Exporter version=0.10.0 commit=7a03d0314425793cf4001f0d9b0b2cfd19563433 date>
Sep 19 09:25:18 srv2.example.com carbonio-prometheus-nginx-exporter[4539]: 2023/09/19 09:25:18 Could not create Nginx Client: failed to get  https://localhost/nginx_status:  Get "https://localhost/ng>
Sep 19 09:25:18 srv2.example.com systemd[1]: carbonio-prometheus-nginx-exporter.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 09:25:18 srv2.example.com systemd[1]: carbonio-prometheus-nginx-exporter.service: Failed with result 'exit-code'.

Started Carbonio Prometheus NGINX exporter.
Sep 19 09:25:18 srv2.example.com carbonio-prometheus-nginx-exporter[4539]: 2023/09/19 09:25:18 Starting NGINX Prometheus Exporter version=0.10.0 commit=7a03d0314425793cf4001f0d9b0b2cfd19563433 date>
Sep 19 09:25:18 srv2.example.com carbonio-prometheus-nginx-exporter[4539]: 2023/09/19 09:25:18 Could not create Nginx Client: failed to get https://localhost/nginx_status: Get "https://localhost/ng>
Sep 19 09:25:18 srv2.example.com systemd[1]: carbonio-prometheus-nginx-exporter.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 09:25:18 srv2.example.com systemd[1]: carbonio-prometheus-nginx-exporter.service: Failed with result 'exit-code'.

Please, tell me how to fix this error and show me how can I access to webmail and admin web. Maybe this error makes me cannot access webmain and admin mail.

Thank you everyone.

 

Additional the information of 4 server the following:

* Server 1:

root@srv1:/home/lab# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 mail-node1

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback localhost
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.16.1.11  srv1.example.com
172.16.1.12  srv2.example.com
172.16.1.13  srv3.example.com
172.16.1.14  srv4.example.com
root@srv1:/home/lab# su - zextras
zextras@srv1:~$ zmcontrol status
Host srv1.example.com
	directory-server        Running
	service-discover        Running
	stats                   Running
	config service          Running

* Server 2:

root@srv2:/home/lab# cat /etc/hosts
127.0.0.1 localhost
127.0.0.1 example.com

# The following lines are desirable for IPv6 capable hosts
#::1     ip6-localhost ip6-loopback localhost
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
172.16.1.12  srv2.example.com
172.16.1.11  srv1.example.com
172.16.1.13  srv3.example.com
172.16.1.14  srv4.example.com
root@srv2:/home/lab# su - zextras
zextras@srv2:~$ zmcontrol status
Host srv2.example.com
	amavis                  Running
	antispam                Running
	antivirus               Running
	memcached               Running
	mta                     Running
	opendkim                Running
	proxy                   Running
	stats                   Running
	config service          Running

* Server 3:

zextras@srv3:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 mail-node1

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback localhost
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.16.1.13  srv3.example.com
172.16.1.11  srv1.example.com
172.16.1.12  srv2.example.com
172.16.1.14  srv4.example.com
zextras@srv3:~$ zmcontrol status
Host srv3.example.com
	mailbox                 Running
	service webapp          Running
	stats                   Running
	config service          Running

* Server 4:

zextras@srv4:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 mail-node1

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback localhost
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.16.1.14  srv4.example.com
172.16.1.11  srv1.example.com
172.16.1.12  srv2.example.com
172.16.1.13  srv3.example.com

zextras@srv4:~$ zmcontrol status
Host srv4.example.com
	stats                   Running
	config service          Running

   
Quote
(@stefanodavid)
Joined: 3 years ago
Posts: 203
 

@phuongnd678

you should restart the nginx exporter. We wrote this here

https://docs.zextras.com/carbonio-ce/html/single-server-installation.html#step-3-system-upgrade-and-package-installation

As you see, this is the Single-Server doc, for some reason we did not add it to the Multi-Server... We will add this in the Multi-SErver as well, thank you for pointing it out!


   
ReplyQuote
(@phuongnd678)
Joined: 1 year ago
Posts: 2
Topic starter  

@stefanodavid I have restarted the nginx exporter many time, but the problem still hasn't improved. Please tell me more if you have any other ideas.


   
ReplyQuote
(@sys-ngstars)
Joined: 10 months ago
Posts: 1
 

@phuongnd678 

 

Hi I am doing single server Installation and having the same issue.

Did you found a way out?

 

thanks for sharing


   
ReplyQuote