Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-29, 16:57:56

Author Topic: [SOLVED] ERROR pure-ftpd: 421 Unable to switch capabilities : Operation not perm  (Read 23167 times)

0 Members and 1 Guest are viewing this topic.

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Hi,

I have moved VPS from OpenVZ to ProxMox4

After yum update and script/cleanup I'm getting :
Code: [Select]
Starting pure-ftpd: 421 Unable to switch capabilities : Operation not permitted

Is there a way of fixing this ?
« Last Edit: 2017-08-07, 20:04:47 by BigWeb.EU »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Inform 'cat /etc/*release; yum list libcap*'
« Last Edit: 2017-07-30, 02:54:58 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Hi ,

Updated main node to proxmox 5 / Debian 9 - still same effect .

inside the VPS ( cat /etc/*release; yum list libcap* ) :

Code: [Select]
cat /etc/*release; yum list libcap*
CentOS release 6.9 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.9 (Final)
CentOS release 6.9 (Final)
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
mratwork-epel/metalink                                                                                                                                                                                                |  22 kB     00:00
 * base: centosmirror.netcup.net
 * extras: mirror.softaculous.com
 * mratwork-epel: mirror.daniel-jost.net
 * mratwork-ius-archive: mirror.amsiohosting.net
 * mratwork-ius-stable: mirror.amsiohosting.net
 * mratwork-release-neutral-noarch: rpms.mratwork.com
 * mratwork-release-version-arch: rpms.mratwork.com
 * mratwork-webtatic: uk.repo.webtatic.com
 * updates: mirror.tobias-wollmann.com
base                                                                                                                                                                                                                  | 3.7 kB     00:00
extras                                                                                                                                                                                                                | 3.4 kB     00:00
mratwork-google-mod-pagespeed                                                                                                                                                                                         |  951 B     00:00
mratwork-ius-archive                                                                                                                                                                                                  | 2.4 kB     00:00
mratwork-ius-archive/primary_db                                                                                                                                                                                       | 3.6 MB     00:00
mratwork-ius-stable                                                                                                                                                                                                   | 2.3 kB     00:00
mratwork-ius-stable/primary_db                                                                                                                                                                                        | 227 kB     00:00
mratwork-mariadb                                                                                                                                                                                                      | 2.9 kB     00:00
mratwork-nginx                                                                                                                                                                                                        | 2.9 kB     00:00
mratwork-nginx-stable                                                                                                                                                                                                 | 2.9 kB     00:00
mratwork-release-neutral-noarch                                                                                                                                                                                       | 1.3 kB     00:00
mratwork-release-neutral-noarch/primary                                                                                                                                                                               | 131 kB     00:00
mratwork-release-neutral-noarch                                                                                                                                                                                                      455/455
mratwork-release-version-arch                                                                                                                                                                                         | 1.2 kB     00:00
mratwork-varnish-3.0                                                                                                                                                                                                  |  951 B     00:00
mratwork-webtatic                                                                                                                                                                                                     | 3.6 kB     00:00
updates                                                                                                                                                                                                               | 3.4 kB     00:00
vz-base                                                                                                                                                                                                               |  951 B     00:00
vz-updates                                                                                                                                                                                                            |  951 B     00:00
0 packages excluded due to repository protections
Installed Packages
libcap.x86_64                                                                                                         2.16-5.5.el6                                                                                                  installed
libcap-ng.x86_64                                                                                                      0.6.4-3.el6_0.1                                                                                               @base
Available Packages
libcap.i686                                                                                                           2.16-5.5.el6                                                                                                  base
libcap-devel.i686                                                                                                     2.16-5.5.el6                                                                                                  base
libcap-devel.x86_64                                                                                                   2.16-5.5.el6                                                                                                  base
libcap-ng.i686                                                                                                        0.6.4-3.el6_0.1                                                                                               base
libcap-ng-devel.i686                                                                                                  0.6.4-3.el6_0.1                                                                                               base
libcap-ng-devel.x86_64                                                                                                0.6.4-3.el6_0.1                                                                                               base
libcap-ng-python.x86_64                                                                                               0.6.4-3.el6_0.1                                                                                               base
libcap-ng-utils.x86_64                                                                                                0.6.4-3.el6_0.1                                                                                               base

Proxmox suggests recompiling the proftpd manually, which seems crazy, so maybe you have another solution here ?
Thanks

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Using OVH custom kernel have the same impact. So, try to use different kernel.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Hi, well this is not OVH kernel - this is fresh install of debian + proxmox . I'm not sure if i can change ti without breaking proxmox itself.

Is it possible changing pureftpd to something else ? Or at least recompiling it with other options (--without-capabilities) ? Like here, is a working fix :

http://dikant.de/2009/01/22/setting-up-pureftpd-on-a-virtual-server/

maybe its possible to make separate package for it ?



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
« Last Edit: 2017-07-30, 15:56:30 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
This is LXC , (Linux Containers), which goes with proxmox4 and 5 (proxmox 3 had OpenVZ, but they do not support it any more).

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
I didn't know about LXC and didn't test with LXC.

Try 'yum downgrade pure-ftpd -y' and then add 'exclude=pure-ftpd*' in /etc/yum.conf. After that, run cleanup.

If still the same issue, remove 'exclude=pure-ftpd' in /etc/yum.conf and you need recompile by yourself.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
This didnt help, so probably will need to recompile :(

Is it possible you can somehow fix this in next releases ? (Im prety much sure there will be more and more people using LXC as this become more of a standart replacing OpenVZ .)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Did you try update OS for Proxmox?.

This is link for resolve for your issue (in Indonesia Language) - https://fatamorghana.wordpress.com/2016/10/07/atasi-pure-ftpd-error-421-operation-not-permitted-cwp/
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Yes, i had updated to "STRETCH" debian - absolutley latest version (but same was goin on on previous version before update. Thus - just updating does not work :(

Could you please advice commands to compile pureftpd properly for kloxo (would be good for cesntos 6 and 7) ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Try:
Code: [Select]
cd /tmp
rm -f pure-ftpd*.rpm

wget http://rpms.mratwork.com/repo/mratwork/SRPMS/pure-ftpd-1.0.37-1.mr.src.rpm
rpm -ivh pure-ftpd*

sed -i 's/--with-capabilities/--without-capabilities/g' /root/rpmbuild/SPECS/pure-ftpd.spec
sed -i 's/1%{?dist}/100%{?dist}/g' /root/rpmbuild/SPECS/pure-ftpd.spec

yum install pam-devel libcap-devel openldap-devel selinux-policy-devel rpm-build -y
rpmbuild -bb --define 'dist .mr.el6' /root/rpmbuild/SPECS/pure-ftpd.spec

rpm -Uvh /root/rpmbuild/RPMS/x86_64/pure-ftpd-1.0.37-100.mr.el6.x86_64.rpm

sh /script/restart-ftp
« Last Edit: 2017-08-01, 02:51:27 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Breaks here:
Code: [Select]
[root@myserv tmp]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/pure-ftpd-1.0.37-100.mr.el6.x86_64.rpm
error: open of /root/rpmbuild/RPMS/x86_64/pure-ftpd-1.0.37-100.mr.el6.x86_64.rpm failed: No such file or directory

I guess something is missing ?

PS: this is all files in root/rpmbuild:
Code: [Select]
/root/rpmbuild/
/SOURCES
pure-ftpd-1.0.27-config.patch     
pure-ftpd-1.0.37.tar.bz2         
pure-ftpd-paminclude.patch       
pure-ftpd-1.0.37-1.mr.src.rpm     
pure-ftpd.README.SELinux
pure-ftpd.init                   
pure-ftpd.logrotate               
pure-ftpd.pure-ftpwho.consoleapp 
pure-ftpd.pure-ftpwho.pam         
pure-ftpd.pureftpd.te             
/SPECS
pure-ftpd.spec
« Last Edit: 2017-07-31, 16:54:41 by BigWeb.EU »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Sorry, missing 'rpmbuild' step. Follow again above codes.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Thanks Mustafa !

This time all worked fine !

Could you maybe add this as a sctipt to /scripts in further releases ? (as a separate script) , so it could be easy fixable on similar configurations .

Thanks

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.056 seconds with 21 queries.

web stats analysis