Page 1 of 1

Unrecoverable error in automatic update to 12.04

Posted: 25 May 2018, 13:43
by 01i
This morning I received an email with error output from a cron job which ran the command "/usr/sbin/csf -u"


Upgrading csf from v12.03 to 12.04...
Retrieving new csf package...
...5%

Unpacking new csf package...

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
sh: install.sh: No such file or directory

Tidying up...
removed `/usr/src/csf/sualert.txt'
removed `/usr/src/csf/portknocking.txt'
removed `/usr/src/csf/license.txt'
removed `/usr/src/csf/profiles/protection_high.conf'
.... this continues with a list of file names, and then csf/lfd are restarted leaving the old version still installed

Re: Unrecoverable error in automatic update to 12.04

Posted: 25 May 2018, 13:52
by iodisciple
No problems here with a couple of servers (all debian 9.4). What happens when you try to run it manually?

Re: Unrecoverable error in automatic update to 12.04

Posted: 25 May 2018, 14:22
by 01i
I hadn't tried because I wasn't sure where it was called from, and therefore didn't have context for the surrounding commands in the csf automatic update system.

I assume this means can safely run "/usr/sbin/csf -u" from shell without needing to run anything before or after?

Re: Unrecoverable error in automatic update to 12.04

Posted: 25 May 2018, 14:40
by iodisciple
Yes, it's just the csf command with the update option. From the man page:

Code: Select all

       -u,  --update
              Check for updates to csf and upgrade if available

Re: Unrecoverable error in automatic update to 12.04

Posted: 25 May 2018, 14:56
by 01i
Ok, looks like something got in the way of the connection and truncated the file.

Instead of just saying 5%, this time it said 5%, 10%, 15% etc and then installed.

Checked and the plugin now says it's running 12.04