Want more timely Centmin Mod News Updates?
Become a Member

Pure-FTPD doesn't start - [ERROR] Unable to switch capabilities

Discussion in 'Other Centmin Mod Installed software' started by snowboarder04, Apr 3, 2017.

  1. snowboarder04

    snowboarder04 New Member

    5
    2
    3
    Apr 3, 2017
    Ratings:
    +2
    Local Time:
    7:03 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7.3 64bit
    • Centmin Mod Version Installed: Centmin Mod 1.2.3-eva2000.08
    • Nginx Version Installed: nginx/1.11.10
    • PHP Version Installed: PHP 5.5.38
    • MariaDB MySQL Version Installed: 10.0.30
    • When was last time updated Centmin Mod code base ? : 1st April 2017
    • Persistent Config: cat: /etc/centminmod/custom_config.inc: No such file or directory



      Steps to reproduce:
    1. Install Centminmod
    2. Add vhost (option 2)
    3. Create FTP user with auto-generated password
    4. Attempt to log in with FTP user - no success
    5. Pure-ftpd daemon failed to start:
    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 Sun 2017-04-02 20:46:43 UTC; 5s ago
      Process: 22614 ExecStart=/usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf --daemonize (code=exited, status=252)
    
    Apr 02 20:46:43 hostname systemd[1]: Starting Pure-FTPd FTP server...
    Apr 02 20:46:43 hostname systemd[1]: pure-ftpd.service: control process exited, code=exited status=252
    Apr 02 20:46:43 hostname systemd[1]: Failed to start Pure-FTPd FTP server.
    Apr 02 20:46:43 hostname systemd[1]: Unit pure-ftpd.service entered failed state.
    Apr 02 20:46:43 hostname systemd[1]: pure-ftpd.service failed.
    
    
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,284
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    4:03 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what output do you get form this command
    Code (Text):
    journalctl -u pure-ftpd --no-pager |sed -e "s|$(hostname)|hostname|g"
    

    For posting code you might want to use CODE tags for code How to use forum BBCODE code tags :)
     
  3. snowboarder04

    snowboarder04 New Member

    5
    2
    3
    Apr 3, 2017
    Ratings:
    +2
    Local Time:
    7:03 PM
    I just re-imaged to Centos 6.8 (to confirm if the same behaviour exists there), installed the same version of Centminmod and found this in the installer output:

    Code:
    Check pure-ftpd Version:
    --------------------------------------------------------
    421 Unable to switch capabilities : Operation not permitted
    Code:
    # grep pure /var/log/messages
    Apr  2 17:58:49 hostname yum[7805]: Installed: pure-ftpd-1.0.30-1.el6.x86_64
    Apr  2 17:58:54 hostname pure-ftpd: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted
    Apr  2 17:59:29 hostname pure-ftpd: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted
    Apr  2 18:06:59 hostname pure-ftpd: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted
    I will try re-imaging back to 7.3 in the AM and get more verbose log output (googling the pure-ftpd config parameters currently).
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,284
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    4:03 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ?

    who's your web host ?
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,284
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    4:03 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    if using OVH servers ensure you use CentOS Original kernel and not OVH custom kernel as per https://centminmod.com/install.html
     
  6. snowboarder04

    snowboarder04 New Member

    5
    2
    3
    Apr 3, 2017
    Ratings:
    +2
    Local Time:
    7:03 PM
    It's a container image running atop Proxmox which coincidentally is OVH (is this level of abstraction still relevant?)

    Image version: centos-6-default_20161207_amd64.tar.xz (yum updated prior to Centminmod install)
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,284
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    4:03 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  8. snowboarder04

    snowboarder04 New Member

    5
    2
    3
    Apr 3, 2017
    Ratings:
    +2
    Local Time:
    7:03 PM
    Confirmed - the OVH kernel does appear to have been the issue. Thread can be marked as solved.

    It would've been too disruptive to re-install a different kernel on the host, so I span up an entire guest VM with its own kernel to work around.

    Thank you for your help! :)
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,284
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    4:03 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You're welcome :)