DirectAdmin v1.645 has been released

hi,
in custombuild 2.0

where is the log output when click "Update" button on "Update Software" page ?.
I think it should show log output like in the old plugin when execute command.
You can click on Active command badge:

1669622857635.png

And you will see live CB log stream:
1669622957854.png
The nice part about the new CB GUI is that you can run CustomBuild from CLI and still follow the output in GUI. Or review your past CLI CustomBuild calls from the GUI log viewer.
 
Last edited:
@mmgenius thanks, did you have FTP upload problems on Debian 10 as well and adding --tls-max 1.2 fixed them?
yes, on both machines we had the problem, on both machines it is solved with --tls-max 1.2

we have also a Centos 7 server, if you like I can test it also on that machine
 
We finally got to the bottom of the FTP upload issue. It was fixed in curl 7.78.0. The change-log item ssl: read pending close notify alert before closing the connection. This allows us to release accurate hot-fix for the issue ?. Thanks everyone for the feedback.

A new build 24cba61c8f3c12e94bb66503007eb65cd69ffd90 is pushed out which addresses this issue. The fix updates scripts/ftp_upload.php file to detect curl version and avoid using TLS 1.3 with curl versions known not to handle it correctly. Related forum threads:

@exlhost once your systems receives the patched version you can remove the customized FTP upload script with rm -f /usr/local/directadmin/scripts/custom/ftp_upload.php. The default script will take care of good TLS configuration. If you keep the customized version it will always be preferred over whatever updates we release.
 
Updated a Debian 11.5 server today but also get the "The service 'clamav-daemon' on server xxxxxxx.prism.nl is currently down" message. Both clamav-daemon and clamav-freshclam seem to be running when looking at the services page.
 
The ClamAV daemon fails to start because a version from OS distributive has another location for databases of virus definitions. It takes time for freshclam to download all of them. And until they are downloaded to the server, the clamd wont' start. So that's expected.

Probably CustomBuild/DirectAdmin could move existing databases to a new location and set correct user/group ownerships.
 
The ClamAV daemon fails to start because a version from OS distributive has another location for databases of virus definitions. It takes time for freshclam to download all of them. And until they are downloaded to the server, the clamd wont' start. So that's expected.

Probably CustomBuild/DirectAdmin could move existing databases to a new location and set correct user/group ownerships.
Agree, hope they really do this and don't kill our ClamAV again
 
As far I understand clamAV with return 2 can be something like clamav could not access file (and that is normal) and I'm not sure why maldet cannot handle that error code. What if you try to scan with clamav does it produce the same with return 2?
Hi @MaXi32 , when I scan with clamav doing:

Code:
clamscan /home/admin/domains/default ;echo $?

it gives me this output:

Code:
/home/admin/domains/default/index.html: OK

----------- SCAN SUMMARY -----------
Known viruses: 8660770
Engine version: 0.103.7
Scanned directories: 1
Scanned files: 1
Infected files: 0
Data scanned: 0.04 MB
Data read: 0.11 MB (ratio 0.39:1)
Time: 29.191 sec (0 m 29 s)
Start Date: 2022:11:28 13:48:15
End Date:   2022:11:28 13:48:44
0
 
Code:
/home/admin/domains/default/index.html: OK

----------- SCAN SUMMARY -----------
Known viruses: 8660770
Engine version: 0.103.7
Scanned directories: 1
Scanned files: 1
Infected files: 0
Data scanned: 0.04 MB
Data read: 0.11 MB (ratio 0.39:1)
Time: 29.191 sec (0 m 29 s)
Start Date: 2022:11:28 13:48:15
End Date:   2022:11:28 13:48:44
0

That means, clamav is working fine, and the return 0 code means no infection is found. I suspect that you are running an old version of maldet that is not compatible with your current version of clamAV?

Mine is maldet v1.6.4 and clamAV version is: ClamAV 0.103.7/26733/Sun Nov 27 16:17:33 2022 on Debian 11. What are yours?
 
After seven updates, do we think this is stable enough for a production system?
 
That means, clamav is working fine, and the return 0 code means no infection is found. I suspect that you are running an old version of maldet that is not compatible with your current version of clamAV?

Mine is maldet v1.6.4 and clamAV version is: ClamAV 0.103.7/26733/Sun Nov 27 16:17:33 2022 on Debian 11. What are yours?

@MaXi32 Same versions but on AlmaLinux. We had no issues before the DA update and CB ClamAV conversion.
 
@fln Had the impression that help-link customizations per-page were going to be in this release? Is that on your 1.646 road map?

Thanks.
 
@dafang yes we were aiming for 1.645, but it got postponed for 1.646. We are in the process of restructuring how Evolution is holding data internally and want to finish it up before working on help links.
 
Hi, after restart server I have problem with run clamav-freshclam.service. (The service 'clamav-freshclam' on server server.hostline.pl is currently down). This happened after a permanent last DA.
 
@djcart did already do what's suggested in this post?
Thx Richard. After reinstall clamav everything works fine.
 
hi,
on AlmaLinux 8
suddenly one of my server show up this error, it install on last month before Directadmin release 1.645 ( this version )

solved by install from OS distro

"libmaxminddb" already installed, but look like DA Team install wrong dependencies. it should be "libmaxminddb-devel"
Code:
dnf install libmaxminddb-devel

but this still have error on building, I will pm error directly to @smtalk


###UPDATE
after compiler libmaxminddb from source "https://github.com/maxmind/libmaxminddb" ( 1.7.1 ), it can compiler modsecurity 3.0.8 without issued. and Nginx start working again ( Like I do in one of my old server ( 2 - 3 years ago ).
 

Attachments

  • image_2022-11-30_144415303.png
    image_2022-11-30_144415303.png
    7.6 KB · Views: 14
Last edited:
We are releasing a new build ef465ec9b54a2eb13f7e68c375994a651198aa09 for this version release. It includes the following changes:

  • Updated DA installer to work with minimal RHEL 8/9 systems (installs dnf-plugins-core if it is not present).
  • Fixed DA installer not passing custom CB customization environment variables into CB options.conf.
  • Fixed syntax error in scripts/move_domain.sh script.
  • Updated ClamAV migration from custom to OS version to keep Exim integration. Old version would enable Exim integration only after exim configs rewrite.
  • Fixed CB bug when building modsecurity.
  • Fixed CB GUI software removal page to work with multi argument CB commands (when removing old PHP installs).
 
Trying to update ClamAV and get this error:

Code:
[root@srv2 custombuild]# /usr/local/directadmin/custombuild/build clamav
Installing clamav...
This system is receiving updates from CloudLinux Network server.
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Error:
 Problem 1: conflicting requests
  - nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-0.103.7-1.el8.x86_64
 Problem 2: conflicting requests
  - nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
 Problem 3: package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
  - package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PUBLIC)(64bit), but none of the providers can be installed
  - package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PRIVATE)(64bit), but none of the providers can be installed
  - package clamd-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
  - conflicting requests
  - nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
 Problem 4: package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
  - package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PUBLIC)(64bit), but none of the providers can be installed
  - package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PRIVATE)(64bit), but none of the providers can be installed
  - package clamav-update-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
  - conflicting requests
  - nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
 Problem 5: package clamav-devel-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
  - package clamav-devel-0.103.7-1.el8.x86_64 requires libclammspack.so.0()(64bit), but none of the providers can be installed
  - package clamav-devel-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
  - conflicting requests
  - nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
-#O=-#      #        #                                                                                                                                                                                                             
-#O=-#      #        #                                                                                                                                                                                                             
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Error: No packages marked for reinstall.
grep: /etc/clamd.d/scan.conf: No such file or directory
/usr/local/directadmin/custombuild/build: line 18404: /etc/clamd.d/scan.conf: No such file or directory
grep: /etc/clamd.d/scan.conf: No such file or directory
/usr/local/directadmin/custombuild/build: line 18407: /etc/clamd.d/scan.conf: No such file or directory
grep: /etc/clamd.d/scan.conf: No such file or directory
Can't open /etc/clamd.d/scan.conf: No such file or directory.
grep: /etc/freshclam.conf: No such file or directory
Enabling clamd in systemd...
Failed to enable unit: Unit file [email protected] does not exist.
Failed to enable unit: Unit file clamav-freshclam.service does not exist.
CageFS: Executing 'cagefsctl --force-update'...
<class 'PermissionError'>: [Err code 13] Permission denied: '/home/cldiaguser_2329c8fb14f94768b275d'
Copying /usr/local/php73/var/log/php-fpm.log to /usr/share/cagefs-skeleton/usr/local/php73/var/log/php-fpm.log
Copying /usr/local/php74/var/log/php-fpm.log to /usr/share/cagefs-skeleton/usr/local/php74/var/log/php-fpm.log
Removed directory /usr/share/cagefs-skeleton/usr/libexec/dovecot
Updating users ...
Updating statuses of users ...
Restarting freshclam.
Failed to restart clamav-freshclam.service: Unit clamav-freshclam.service not found.
Restarting clamd.
Failed to restart [email protected]: Unit [email protected] not found.
Restarting exim.
Done ClamAV.
[root@srv2 custombuild]# ^C
[root@srv2 custombuild]# systemctl status clamav-freshclam
Unit clamav-freshclam.service could not be found.

Then I tried reinstall using yum

Code:
[root@srv2 custombuild]# yum reinstall clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
This system is receiving updates from CloudLinux Network server.
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Last metadata expiration check: 0:06:11 ago on Wed 30 Nov 2022 05:31:32 PM +03.
Package clamd available, but not installed.
No match for argument: clamav-server
Package clamav-data available, but not installed.
No match for argument: clamav-data
Package clamav-update available, but not installed.
No match for argument: clamav-update
Package clamav-filesystem available, but not installed.
No match for argument: clamav-filesystem
Package clamav available, but not installed.
No match for argument: clamav
Package clamd available, but not installed.
No match for argument: clamav-scanner-systemd
Package clamav-devel available, but not installed.
No match for argument: clamav-devel
Package clamav-lib available, but not installed.
No match for argument: clamav-lib
Package clamd available, but not installed.
No match for argument: clamav-server-systemd
Error: No packages marked for reinstall.
[root@srv2 custombuild]#

Code:
vi /etc/freshclam.conf

DatabaseMirror database.clamav.net
NotifyClamd /etc/clamd.d/scan.conf
Checks 24

But it also didn't work.
Is there a solution?
 
Back
Top