Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: EdelingF on July 04, 2004, 06:02:42 PM

Title: cron.daily error
Post by: EdelingF 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?
Title: Same Error
Post by: dsweet 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
Title: cron.daily error
Post by: NickR 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.
Title: cron.daily error
Post by: thepair 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
Title: cron.daily error
Post by: NickR 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.
Title: cron.daily error
Post by: thepair 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
Title: cron.daily error
Post by: NickR 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
Title: cron.daily error
Post by: CharlieBrady 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.
Title: cron.daily error
Post by: NickR 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?
Title: as requested
Post by: thepair 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.
Title: cron.daily error
Post by: NickR on December 31, 2004, 09:55:02 AM
That looks normal - can you post /etc/logrotate.d/proftpd also?
Title: as requested
Post by: thepair 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
}
Title: cron.daily error
Post by: NickR 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.