Koozali.org: home of the SME Server

cron.daily error

Offline EdelingF

  • ****
  • 215
  • +0/-0
cron.daily error
« on: July 04, 2004, 06:02:42 PM »
The error I'm getting is:

/etc/cron.daily/logrotate:

error: error accessing /var/log/proftpd: No such file or directory
error: proftpd:11 glob failed for /var/log/proftpd/*.log

Can anyone help?
...

Offline dsweet

  • 15
  • +0/-0
  • Crawling the Web one strand at a time
    • DSweet
Same Error
« Reply #1 on: July 04, 2004, 11:35:56 PM »
I have to say I have 2 machine that are getting the same error, althugh not as consistant as they were a few weeks ago :hammer: I have not figured out what is the cause yet.If you do I would be interested on how to fix it.
das :pint:
das@dsweet.com
...
DSweet
**das(at)dsweet.com**...

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
cron.daily error
« Reply #2 on: July 05, 2004, 08:32:19 PM »
You've installed proftpd-1.2.9-es3.i386.rpm which omits to create the /var/log/proftpd directory.

Just create the directory like this:

mkdir /var/log/proftpd

and it will stop moaning.
--
Nick......

Offline thepair

  • 8
  • +0/-0
    • http://seaportnethosting.com
cron.daily error
« Reply #3 on: December 26, 2004, 08:17:49 PM »
I have started to have this same problem, but I do have the dir var/log/proftpd.
My email error says:

/etc/cron.daily/logrotate:

proftpd: no process killed
error running postrotate script

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
cron.daily error
« Reply #4 on: December 26, 2004, 08:22:51 PM »
You have a different problem - proftpd isn't running at all. Try doing:

# service proftpd start

& see what the error message (if any) is.
--
Nick......

Offline thepair

  • 8
  • +0/-0
    • http://seaportnethosting.com
cron.daily error
« Reply #5 on: December 26, 2004, 08:48:08 PM »
thanks Nick
here is what I got.
Dec 26 12:00:16 Seaport5 mc: /dev/gpmctl: No such file or directory
Dec 26 12:29:17 Seaport5 proftpd: Seaport5.SeaPort5.com - Fatal: Socket operation on non-socket
Dec 26 12:29:17 Seaport5 proftpd: Seaport5.SeaPort5.com - (Running from command line? Use ServerType standalone' in config file!)
Dec 26 12:29:17 Seaport5 proftpd: proftpd startup failed

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
cron.daily error
« Reply #6 on: December 26, 2004, 09:13:20 PM »
Argh! Sorry, wrong command - try:

# /etc/rc.d/init.d/proftpd condrestart

and then try to login to the ftp server
--
Nick......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
cron.daily error
« Reply #7 on: December 27, 2004, 03:11:01 AM »
Quote from: "NickR"
Argh! Sorry, wrong command - try:

# /etc/rc.d/init.d/proftpd condrestart

and then try to login to the ftp server


Still the wrong command. proftpd is started from xinetd, when an inbound connection arrives. There's no service to restart.

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
cron.daily error
« Reply #8 on: December 28, 2004, 12:45:06 PM »
Yes, Charlie, you're right.  That'll teach me to post when away from an SME & rely on my (bad) memory.

Now that I'm back, I can't see a reference to proftpd anywhere in /etc/logrotate.conf - perhaps "thepair" could post the contents of theirs for comparison?
--
Nick......

Offline thepair

  • 8
  • +0/-0
    • http://seaportnethosting.com
as requested
« Reply #9 on: December 31, 2004, 03:20:02 AM »
Quote from: "NickR"
Yes, Charlie, you're right.  That'll teach me to post when away from an SME & rely on my (bad) memory.

Now that I'm back, I can't see a reference to proftpd anywhere in /etc/logrotate.conf - perhaps "thepair" could post the contents of theirs for comparison?


# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
cron.daily error
« Reply #10 on: December 31, 2004, 09:55:02 AM »
That looks normal - can you post /etc/logrotate.d/proftpd also?
--
Nick......

Offline thepair

  • 8
  • +0/-0
    • http://seaportnethosting.com
as requested
« Reply #11 on: December 31, 2004, 07:17:25 PM »
Quote from: "NickR"
That looks normal - can you post /etc/logrotate.d/proftpd also?


/var/log/xferlog {
    compress
    missingok
    postrotate
        /usr/bin/killall -HUP proftpd
    endscript
}

/var/log/proftpd/*.log {
    compress
    missingok
    postrotate
        /usr/bin/killall -HUP proftpd
    endscript
}

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
cron.daily error
« Reply #12 on: December 31, 2004, 07:23:21 PM »
Bingo!  Here's mine:

/var/log/proftpd/*.log {
    compress
    missingok
}
 
/var/log/xferlog {
    compress
    missingok
}

Edit the 2 templates in /etc/e-smith/templates/etc/logrotate.d/proftpd to look like mine & then run:

# /sbin/e-smith/expand-template /etc/logrotate.d/proftpd

After that it should work just fine.
--
Nick......