freshclam trouble with The Perfect Server CentOS 7.3

Discussion in 'HOWTO-Related Questions' started by Ovidiu, May 19, 2017.

  1. Ovidiu

    Ovidiu Active Member

    => https://www.howtoforge.com/tutorial...php-pureftpd-postfix-dovecot-and-ispconfig/2/

    The tutorial says:
    Code:
    yum -y install amavisd-new spamassassin clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd unzip bzip2 perl-DBD-mysql postgrey re2c
    and when the time comes to run freshclam, I simply get:
    Code:
    #freshclam
    ERROR: Can't open/parse the config file /etc/freshclam.conf
    I double checked, the freshclam.conf file is there and EXAMPLE is commented out. Any ideas?

    =======
    and here's the next problem with this tutorial:
    Code:
    #./certbot-auto
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Enter email address (used for urgent renewal and security notices) (Enter 'c' to
    cancel):[email protected]
    An unexpected error occurred:
    ReadTimeout: HTTPSConnectionPool(host='acme-v01.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)
    Please see the logfiles in /var/log/letsencrypt for more details.
    after waiting about 12h the problem resolved itself, maybe letsencrypt was having problems?
     
    Last edited: May 20, 2017
  2. Ovidiu

    Ovidiu Active Member

    Next problem with this tutorial: pureftpd

    Code:
    #systemctl enable pure-ftpd.service
    #systemctl start pure-ftpd.service
    Job for pure-ftpd.service failed because the control process exited with error code. See "systemctl status pure-ftpd.service" and "journalctl -xe" for details.
    Code:
    #systemctl status pure-ftpd.service
    ● pure-ftpd.service - Pure-FTPd FTP server
       Loaded: loaded (/usr/lib/systemd/system/pure-ftpd.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Sat 2017-05-20 10:38:10 UTC; 54s ago
      Process: 17574 ExecStart=/usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf --daemonize (code=exited, status=252)
    
    May 20 10:38:10 hostname.mydomain.tld systemd[1]: Starting Pure-FTPd FTP server...
    May 20 10:38:10 hostname.mydomain.tld systemd[1]: pure-ftpd.service: control proc...2
    May 20 10:38:10 hostname.mydomain.tld systemd[1]: Failed to start Pure-FTPd FTP s....
    May 20 10:38:10 hostname.mydomain.tld systemd[1]: Unit pure-ftpd.service entered ....
    May 20 10:38:10 hostname.mydomain.tld systemd[1]: pure-ftpd.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    journalctl -xe
    Code:
    -- Subject: Unit pure-ftpd.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit pure-ftpd.service has begun starting up.
    May 20 10:37:48 hostname.mydomain.tld pure-ftpd[17481]: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted
    May 20 10:37:48 hostname.mydomain.tld systemd[1]: pure-ftpd.service: control process exited, code=exited status=252
    May 20 10:37:48 hostname.mydomain.tld systemd[1]: Failed to start Pure-FTPd FTP server.
    -- Subject: Unit pure-ftpd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit pure-ftpd.service has failed.
    --
    -- The result is failed.
    May 20 10:37:48 hostname.mydomain.tld systemd[1]: Unit pure-ftpd.service entered failed state.
    May 20 10:37:48 hostname.mydomain.tld systemd[1]: pure-ftpd.service failed.
    May 20 10:37:48 hostname.mydomain.tld polkitd[1203]: Unregistered Authentication Agent for unix-process:17475:61862057 (system bus name :1.41, object path /org/freedesktop/Poli
    May 20 10:38:06 hostname.mydomain.tld polkitd[1203]: Registered Authentication Agent for unix-process:17553:61863909 (system bus name :1.42 [/usr/bin/pkttyagent --notify-fd 6 -
    May 20 10:38:06 hostname.mydomain.tld systemd[1]: Reloading.
    May 20 10:38:06 hostname.mydomain.tld polkitd[1203]: Unregistered Authentication Agent for unix-process:17553:61863909 (system bus name :1.42, object path /org/freedesktop/Poli
    May 20 10:38:10 hostname.mydomain.tld polkitd[1203]: Registered Authentication Agent for unix-process:17568:61864250 (system bus name :1.43 [/usr/bin/pkttyagent --notify-fd 6 -
    May 20 10:38:10 hostname.mydomain.tld pure-ftpd[17574]: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted
    May 20 10:38:10 hostname.mydomain.tld systemd[1]: Starting Pure-FTPd FTP server...
    -- Subject: Unit pure-ftpd.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    Seems to be a kernel issue as centos 7.3 is running inside LXC on top of Proxmox which is not using a stock kernel :-( is there perhaps an alternative to pureftpd which ISPCFG3 supports and which will work with a non stock kernel?
     
  3. Ovidiu

    Ovidiu Active Member

    next issue when installing ISPCFG3 => which is missing:

    Code:
    #php -q install.php
    
    
    --------------------------------------------------------------------------------
    _____ ___________   _____              __ _         ____
    |_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
      | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
      | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
    _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
    \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                                  __/ |
                                                 |___/
    --------------------------------------------------------------------------------
    
    
    >> Initial configuration
    
    Operating System: CentOS 7.3
    
    sh: which: command not found
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The which command is missing. which is a basic Linux command which should exist on any Linux system.

    Regarding pure-ftpd, you might have to find a pure-ftpd package that does not use capability switching or compile one. E.g. the one that ships with recent Debian and Ubuntu versions don't need capability switching anymore, but some very old Debian versions had the same issues in the past that CentOS 7 still seems to have: https://www.faqforge.com/linux/cont...irtual-machines-without-capabilities-enabled/

    And the problem is not the Proxmox Kernel here, it is LXC or the limitations that LXC appllies to applications running in its contiaer environment. It might also be that you can configure that in LXC to allow capability switching in applications.
     
  5. Ovidiu

    Ovidiu Active Member

    Thanks Till, I had installed which on my own I just mentioned it here.

    Any ideas about the initial question (sorry for mixing topics) about the freshclam issue?
     
  6. bugra

    bugra New Member

    hi, did you solve the problem ? im facing the same problem... :/
    "Job for pure-ftpd.service failed because the control process exited with error code. See "systemctl status pure-ftpd.service" and "journalctl -xe" for details."

    i do not know how can i solve. and also my dns serves does not working toooo :/
     
  7. Ovidiu

    Ovidiu Active Member

    I didn't fix the pure-ftp problem, I just switched from using LXC to KVM to avoid it.
     

Share This Page