cyberpanel icon indicating copy to clipboard operation
cyberpanel copied to clipboard

cpecs.service service failing to start no matter what

Open newedgex opened this issue 4 years ago • 3 comments

Hello, I just installed Cyberpanel 2 days ago, and I have experienced this problem so far,

systemctl status cpecs.service
● cpecs.service - CyberPanel Email Policy Control Daemon
   Loaded: loaded (/etc/systemd/system/cpecs.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2020-06-14 23:49:09 CEST; 13min ago
  Process: 851 ExecStart=/usr/local/CyberCP/postfixSenderPolicy/policyCTRL.py start (code=exited, status=203/EXEC)

Jun 14 23:49:09 rs-zap545062-1 systemd[1]: Starting CyberPanel Email Policy Control Daemon...
Jun 14 23:49:09 rs-zap545062-1 systemd[851]: cpecs.service: Failed to execute command: Permission denied
Jun 14 23:49:09 rs-zap545062-1 systemd[851]: cpecs.service: Failed at step EXEC spawning /usr/local/CyberCP/postfixSenderPolicy/policyCTRL.py: Permission deni
Jun 14 23:49:09 rs-zap545062-1 systemd[1]: cpecs.service: Control process exited, code=exited status=203
Jun 14 23:49:09 rs-zap545062-1 systemd[1]: cpecs.service: Failed with result 'exit-code'.
Jun 14 23:49:09 rs-zap545062-1 systemd[1]: Failed to start CyberPanel Email Policy Control Daemon.

I executed the following (since it kept failing)

cd /usr/local/CyberCP/postfixSenderPolicy
chmod +x policyCTRL.py
chmod +x startServer.py

But even with the above it still fails to start because it's not able to import :

● cpecs.service - CyberPanel Email Policy Control Daemon
   Loaded: loaded (/etc/systemd/system/cpecs.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-06-15 00:05:40 CEST; 2s ago
  Process: 2420 ExecStart=/usr/local/CyberCP/postfixSenderPolicy/policyCTRL.py start (code=exited, status=0/SUCCESS)
 Main PID: 2430 (code=exited, status=1/FAILURE)

Jun 15 00:05:40 rs-zap545062-1 systemd[1]: Starting CyberPanel Email Policy Control Daemon...
Jun 15 00:05:40 rs-zap545062-1 systemd[1]: Started CyberPanel Email Policy Control Daemon.
Jun 15 00:05:40 rs-zap545062-1 policyCTRL.py[2420]: Traceback (most recent call last):
Jun 15 00:05:40 rs-zap545062-1 policyCTRL.py[2420]:   File "/usr/local/CyberCP/postfixSenderPolicy/startServer.py", line 9, in <module>
Jun 15 00:05:40 rs-zap545062-1 policyCTRL.py[2420]:     from . import accept_traffic as handle
Jun 15 00:05:40 rs-zap545062-1 policyCTRL.py[2420]: ImportError: cannot import name 'accept_traffic'
Jun 15 00:05:40 rs-zap545062-1 systemd[1]: cpecs.service: Main process exited, code=exited, status=1/FAILURE
Jun 15 00:05:40 rs-zap545062-1 systemd[1]: cpecs.service: Failed with result 'exit-code'.

The system is an Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-106-generic x86_64)

cat cyberpanel/version.txt 
{"version":"2.0","build":1}

How can I fix this issue? The ubuntu is updated and cyberpannel was as well downloaded with the latest version.

newedgex avatar Jun 14 '20 22:06 newedgex


Enjoy your accelerated Internet by CyberPanel.

-su: 25: /etc/profile.d/cyberpanel.sh: [[: not found

spamassasin , it took some times but was able to setup, the not found there was quite weird

newedgex avatar Jun 14 '20 23:06 newedgex

I have the same issue in Centos 8. Cyberpanel version 2.1.1

hydrosIII avatar Apr 12 '21 17:04 hydrosIII

Hello cyberadmin Current Version 2.1 Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-88-generic x86_64) CPECS fixes #712 Enable Email Policy Server enabled, I make the fixes that are in the work .then

THE OK cpecs.service - CyberPanel Email Policy Control Daemon Loaded: loaded (/etc/systemd/system/cpecs.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2021-10-06 21:23:37 CEST; 9min ago Process: 5508 ExecStart=/usr/local/CyberCP/postfixSenderPolicy/policyCTRL.py start (code=exited, status=0/SUCCESS) Main PID: 5517 (startServer.py) Tasks: 1 (limit: 19143) Memory: 28.6M CGroup: /system.slice/cpecs.service └─5517 /usr/local/CyberCP/bin/python /usr/local/CyberCP/postfixSenderPolicy/startServer.py

however, I can't send email, and email account locker doesn't work either. error message mail log postfix: journalctl -f | grep postfix and tail -f /var/log/mail.log: postfix / smtps / smtpd [4404]: warning: connect to / var / log / policyServerSocket: Connection timed out postfix / smtps / smtpd [4404]: warning: problem talking to server / var / log / policyServerSocket: Connection timed out

do you have an idea or help? I have been suffering for days. we managed to see that after enabling EMAIL POLICY SERVER, port 1089 does not open and remains closed.

please help. thank you Stephen Hungary

dankopisti avatar Oct 06 '21 20:10 dankopisti