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 - cockers

Pages: [1]
1
Updates / pure-ftpd won't start after yum update October2018
« on: October 30, 2018, 02:04:44 PM »
Hi Guys,

My command line hung for ages while doing a yum update for pure-ftp. After about 20 minutes I aborted it and found that pure-ftp would not start. Here's the output of the history info for that yum update job:

Code: [Select]

[root@server ~]# yum history info 68
Loaded plugins: fastestmirror
Transaction ID : 68
Begin time     : Tue Oct 30 12:26:44 2018
Begin rpmdb    : 468:4c1d59a12ba9f4fcabf30dad3a151a6a89b9080f
User           : root <root>
Return-Code    : ** Aborted **
Command Line   : update
Transaction performed with:
    Installed     rpm-4.8.0-59.el6.x86_64                          @base
    Installed     yum-3.2.29-81.el6.centos.0.1.noarch              @updates
    Installed     yum-plugin-fastestmirror-1.1.30-42.el6_10.noarch @updates
Packages Altered:
 ** Updated pure-ftpd-1.0.36-1.el6.rf.x86_64 @rpmforge
 ** Update            1.0.46-1.x86_64        installed
 ** Updated tzdata-2018e-3.el6.noarch        @updates
 ** Update         2018f-1.el6.noarch        @updates
Scriptlet output:
   1 warning: /etc/pure-ftpd/pure-ftpd.conf saved as /etc/pure-ftpd/pure-ftpd.conf.rpmsave
   2 chkconfig version 1.3.49.5 - Copyright (C) 1997-2000 Red Hat, Inc.
   3 This may be freely redistributed under the terms of the GNU Public License.
   4
   5 usage:   chkconfig [--list] [--type <type>] [name]
   6          chkconfig --add <name>
   7          chkconfig --del <name>
   8          chkconfig --override <name>
   9          chkconfig [--level <levels>] [--type <type>] <name> <on|off|reset|resetpriorities>
  10 Stopping pure-ftpd: [  OK  ]
  11 Starting pure-ftpd: /usr/bin/dirname: extra operand `.pid'
  12 Try `/usr/bin/dirname --help' for more information.
  13 [  OK  ]
history info


As you can see a warning message did show up that said "warning: /etc/pure-ftpd/pure-ftpd.conf saved as /etc/pure-ftpd/pure-ftpd.conf.rpmsave." Now, pure-ftpd won't start, plus I've tried to downgrade and it won't. I'm stuck with this error.

I get this message every time I try to restart pure-ftpd now:

"Starting pure-ftpd: /usr/bin/dirname: extra operand `.pid'
Try `/usr/bin/dirname --help' for more information.
[FAILED]"

Any ideas?

Thanks, Mark

2
SOLVED IT!! PHEWW!

I found the old rules for each website in the following directory: /usr/local/apache/userdata/[username]/[domain.com].

Each directory has a file called "modsec.conf" in it. That's were the rules before the update were stored. I'm updating the new rule settings now.  :)

3
Thanks Bullten, I'll check it out.

But does that mean that my rules from before the update are all gone now? where were the old rules stored? Does anyone know?

4
Hi Guys,

I'm feeling a little stressed today as it seems that CWP updated itself over night with a new modsecurity panel with on/off switches for each site. Anyway, when I try to edit the rules per domain there aren't any for any of my demains anymore.

This is seriously bad news as the server is running 10 sites, all with different rules.

Is there a way to find the old rules on the server? Perhaps the update installed in a slightly different directory and I can still find the old rules on my machine.

If I can't find a solution then I'm going to be forced to turn off mod security :( Any help would be greatly appreciated.

5
6Sense, you are a legend!! Thank you so much for sharing those instructions, you've helped me to squeeze out of a bit of a tight spot there :)

6
Oh, is this the end of CWP? That's a shame :(

7
That's a shame. Did you get it fixed your end seco?

8
Hi Guys,

I have the same problem as 6sense. I can't get it to renew any certificates even with LE Manager uninstalled? I have this cron job 46 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null but nothing is happening and I have 10 days left before doom on a couple of domains :( Any help would be much appreciated because I'm stumped.

Cheers, Mark

Pages: [1]