Unrecoverable error in automatic update to 12.04

5 posts Page 1 of 1
01i
Junior Member
Posts: 7
Joined: 03 May 2015, 16:25


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
iodisciple
Junior Member
Posts: 33
Joined: 09 Jan 2018, 12:52


No problems here with a couple of servers (all debian 9.4). What happens when you try to run it manually?
01i
Junior Member
Posts: 7
Joined: 03 May 2015, 16:25


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?
iodisciple
Junior Member
Posts: 33
Joined: 09 Jan 2018, 12:52


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
01i
Junior Member
Posts: 7
Joined: 03 May 2015, 16:25


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
5 posts Page 1 of 1