CBPolicyD doesn't s...
 
Notifications
Clear all

[Solved] CBPolicyD doesn't start Carbonio CE 24.7.0

3 Posts
2 Users
0 Reactions
180 Views
(@jmg-mlp)
Joined: 3 months ago
Posts: 2
Topic starter  

After installing Carbonio CE 24.7.0 on Ubuntu 22.04 and trying to enable CBPolicyD, it does not start.

cbpolicyd.log

[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: Process Backgrounded
[2024/08/08-11:54:25 - 494462] [CBPOLICYD] NOTICE: PolicyD v2 / Cluebringer - v2.1.x-201205100639
[2024/08/08-11:54:25 - 494462] [CBPOLICYD] NOTICE: Initializing system modules.
[2024/08/08-11:54:25 - 494462] [CBPOLICYD] NOTICE: System modules initialized.
[2024/08/08-11:54:25 - 494462] [CBPOLICYD] NOTICE: Module load started...
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: => AccessControl: disabled
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: => Accounting: disabled
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: => Amavis: disabled
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: => CheckHelo: disabled
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: => CheckSPF: disabled
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: => Greylisting: disabled
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: => Quotas: enabled
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: => Protocol(Postfix): enabled
[2024/08/08-11:54:25 - 494462] [CBPOLICYD] NOTICE: Module load done.
[2024/08/08-11:54:25 - 494462] [CBPOLICYD] NOTICE: Session tracking is ENABLED.
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: 2024/08/08-11:54:25 cbp (type Net::Server::PreFork) starting! pid(494462)
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: Resolved [localhost]:10031 to [127.0.0.1]:10031, IPv4
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: Binding to TCP port 10031 on host 127.0.0.1 with IPv4
[2024/08/08-11:54:25 - 494462] [CORE] NOTICE: Setting gid to "998 998"
[2024/08/08-11:54:25 - 494462] [CORE] INFO: Setting up serialization via flock
[2024/08/08-11:54:25 - 494462] [CORE] INFO: Beginning prefork (4 processes)
[2024/08/08-11:54:25 - 494462] [CORE] INFO: Starting "4" children
[2024/08/08-11:54:59 - 494718] [CORE] ERROR: 2024/08/08-11:54:59 Pid_file already exists for running process (494462)... aborting

at line 142 in file /opt/zextras/common/lib/perl5/Net/Server.pm
[2024/08/08-11:54:59 - 494718] [CORE] NOTICE: 2024/08/08-11:54:59 Server closing!
[2024/08/08-11:55:31 - 494863] [CORE] ERROR: 2024/08/08-11:55:31 Pid_file already exists for running process (494462)... aborting

at line 142 in file /opt/zextras/common/lib/perl5/Net/Server.pm
[2024/08/08-11:55:31 - 494863] [CORE] NOTICE: 2024/08/08-11:55:31 Server closing!
[2024/08/08-11:56:02 - 495068] [CORE] ERROR: 2024/08/08-11:56:02 Pid_file already exists for running process (494462)... aborting

at line 142 in file /opt/zextras/common/lib/perl5/Net/Server.pm
[2024/08/08-11:56:02 - 495068] [CORE] NOTICE: 2024/08/08-11:56:02 Server closing!
[2024/08/08-11:57:36 - 496020] [CORE] ERROR: 2024/08/08-11:57:36 Pid_file already exists for running process (494462)... aborting

at line 142 in file /opt/zextras/common/lib/perl5/Net/Server.pm
[2024/08/08-11:57:36 - 496020] [CORE] NOTICE: 2024/08/08-11:57:36 Server closing!
[2024/08/08-11:58:08 - 496501] [CORE] ERROR: 2024/08/08-11:58:08 Pid_file already exists for running process (494462)... aborting

at line 142 in file /opt/zextras/common/lib/perl5/Net/Server.pm
[2024/08/08-11:58:08 - 496501] [CORE] NOTICE: 2024/08/08-11:58:08 Server closing!

Could someone help me?
In version 24.5 it worked ok.

Thank you

Jose


   
Quote
(@djpark)
Joined: 11 months ago
Posts: 10
 

There is a bug in /opt/zextras/bin/zmcbpolicydctl program. It can't get the pid of running cbpolicyd and confuse Carbonio of the running status resulting in failure to start/stop/restart.

 

Change the line 23:

pid=$(pidof /opt/zextras/common/bin/cbpolicyd)

to

pid=$(pgrep -f -o /opt/zextras/common/bin/cbpolicyd)

 

This will get the correct pid and cbpolicyd is controlled properly.


   
ReplyQuote
(@jmg-mlp)
Joined: 3 months ago
Posts: 2
Topic starter  

@djpark Thank you very much for your help.. It works!


   
ReplyQuote