Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Hardoman

Pages: [1] 2 3
CentOS 7 Problems / Cron freshclam-sleep job shows DB errors
« on: February 15, 2021, 08:31:44 AM »
Every few hours I get error message in cron logs:

Code: [Select]
ERROR: Database test FAILED.
ERROR: Unexpected error when attempting to update database: daily
ERROR: Database update process failed: Test failed (8)
ERROR: Update failed.

I'm not using ClamAV and service is disabled. Also I don't see such cron task in the list.
What should I do to disable it?

Updates / Re: Anacron job for updates fails to Update Server Packages
« on: January 19, 2021, 12:15:42 PM »
OK, for
Code: [Select]
error: rpmdbit was RPM indeed corrupted.

I have installed completely a new CentOS server and in the very first cron logs I see the same as one of the issue reported above:

Code: [Select]
Update Server Packages
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart cwp-phpfpm.service
Redirecting to /bin/systemctl reload cwpsrv.service
Redirecting to /bin/systemctl reload cwp-phpfpm.service
PHP Warning:  Error while sending QUERY packet. PID=23143 in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php(0) : eval()'d code on line 57
PHP Fatal error:  Uncaught Error: Call to undefined function mysql_error() in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php(0) : eval()'d code:57
Stack trace:
#0 /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php(0): unknown()
#1 {main}
  thrown in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php(0) : eval()'d code on line 57

Date which backup script is using: 2021-01-19 00:50:42

I don't want to open a paid support ticket as it's not an issue for me but it's a bug that should be addressed by developers.

please have a look


Thanks, your solution with variable export worked!
For me (CentOS 7.9) it was
Code: [Select]
export TERM=xterm

CentOS-WebPanel Bugs / Re: [BUG] Installation: perl(DBD::mysql)
« on: January 19, 2021, 12:06:49 PM »
When checking cron logs mysql backup still shows this error.
Code: [Select]
error: Failed dependencies:
    perl(DBD::mysql) >= 1.0 is needed by percona-toolkit-2.2.16-1.noarch

So nothing was addressed so far.

Рey, developers, please look at it.

CentOS-WebPanel Bugs / Re: PHP Version Switcher v2 bug in config files
« on: January 12, 2021, 12:36:28 AM »
This fixed the issue for me:
Code: [Select]
rm -f /var/lib/rpm/__db.[0-9][0-9]*
rpm --quiet -qa
rpm --rebuilddb
yum clean all

Hope it helps someone

CentOS-WebPanel Bugs / Re: PHP Version Switcher v2 bug in config files
« on: January 12, 2021, 12:33:44 AM »
Thank you, looks like my rpmdb broken.

DKIM / Re: DKIM Manager fails to connect to MySQL
« on: January 12, 2021, 12:26:28 AM »
Thanks, I finally found the root cause.
in the old CWP installation /root/.my.cnf file looked like

Code: [Select]

I have compared with a fresh installation and it looks like:
Code: [Select]

I removed the ' ' symbols from the password and it started to work perfectly well.
Note: nevertheless CWP was auto-updated the my.cnf file remained old

Hope it will help someone because it caused may other related issues including cron fails.
I also prevented New backup page to show up (it was completely blank)...

Issue resolved, thanks.

DKIM / Re: DKIM Manager fails to connect to MySQL
« on: January 11, 2021, 04:10:15 AM »
Hey support!
Can you at least tell me which file is used for SQL settings when connecting from /usr/local/cwpsrv/htdocs/resources/admin/modules/dkim.php

I changed my SQL root password manually some time ago and seems it's not updated somewhere in CWP config.
(Of course in /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php root pass is correct)

CentOS-WebPanel Bugs / CWP-CWP migration fails: Error API TOKEN
« on: January 10, 2021, 09:55:35 PM »
Im using latest CWP version: on source (CentOS 7.8) and destination servers (CentOS 7.9)
I can ssh from dest to source, CSF is disabled on both
SSH and port 2304 opened on both, password and key auth allowed on both.

I have created API access key on source and trying to connect from dest to source following and when I hit "Test and Save" I always get:
There is a problem with your TOKEN API"

In the logs:
Code: [Select]
2021-01-10 21:51:27 entre 1
2021-01-10 21:51:28 export SSHPASS='***'; /usr/bin/sshpass -e /usr/bin/ssh -p 223 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@
2021-01-10 21:51:28 true

2021-01-10 21:51:28 entre 2
2021-01-10 21:51:29 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
(if you think this is a mistake, you may want to use -f option)

--> export SSHPASS=**********;/usr/bin/sshpass -e ssh-copy-id "-p 223" root@ -o StrictHostKeyChecking=no 2>&1
2021-01-10 21:51:30 true
--> /usr/bin/ssh -p 223 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@ test -d /usr/local/cwp/ && echo 'true' || echo 'false' 2>&1
2021-01-10 21:51:30 entre 3
2021-01-10 21:51:30 entre 4

So it connects successfully and drops.

I know the same issue was reported previously by other users and was gone with the latest build but I'm already using the latest build
Please help to fix this.

CentOS-WebPanel Bugs / PHP Version Switcher v2 bug in config files
« on: December 23, 2020, 08:02:40 AM »
When going to the section "PHP Version Switcher v2" it shows errors:

Warning: parse_ini_file(/usr/local/cwpsrv/htdocs/resources/conf/el/php_switcher/versions.ini): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/modules/php_switch_v2.php on line 0

Warning: array_keys() expects parameter 1 to be array, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/modules/php_switch_v2.php on line 0

Warning: rsort() expects parameter 1 to be array, null given in /usr/local/cwpsrv/htdocs/resources/admin/modules/php_switch_v2.php on line 0

Warning: Invalid argument supplied for foreach() in /usr/local/cwpsrv/htdocs/resources/admin/modules/php_switch_v2.php on line 0

This is expected because there is no /usr/local/cwpsrv/htdocs/resources/conf/el/ folder exist.
I checked on 2 servers installed at different times: there are only
/usr/local/cwpsrv/htdocs/resources/conf/el7/ and /usr/local/cwpsrv/htdocs/resources/conf/el8/
folders exist.

This is a bug in the CWP code

CentOS-WebPanel Bugs / Sorting in FileManager v2
« on: December 14, 2020, 07:44:59 PM »
When doing sort by date of size it sorts only by the first digit regardless of byte/KB/MB, year/month.
It's extremely not comfortable to use.

SSL / Re: how to install letsencrypt for admin panel & user panel ?
« on: December 14, 2020, 07:55:04 AM »
is any simple way to install letsencrypt cert with autoupdate to panel in 2020?
The simplest is to redirect it in the cwp conf file to some of your domains added to the panel to have it autoupdated.

Updates / Re: Anacron job for updates fails to Update Server Packages
« on: December 13, 2020, 09:47:18 PM »
What is the way to contact support?

Updates / Re: Anacron job for updates fails to Update Server Packages
« on: December 11, 2020, 01:00:16 PM »

Support team, can you look at it please?

Postfix / Re: Having issues with mail server
« on: December 09, 2020, 08:53:40 AM »
Most probably you are blacklisted then
Check your server at

Pages: [1] 2 3