Syndicate content

tripwire --init not saving the database

I ran in a problem with tripwire, it did not want to generate the <hostname>.twd file under /var/lib/tripwire

I could see that because it reports, once a day, whether tripwire ran sucessfully or not. It was not and the main error was: the tripwire database does exist which is actually shown as:

### Error: File could not be opened.
### Filename: /var/lib/tripwire/<hostname>.twd
### No such file or directory
### Exiting...

That, in itself, looks easy to fix. So I ran tripwire --init and voià!

sudo tripwire --init

As usual, it print a few errors and ignored them.

The next day, same error! The database file is still missing!!! I checked again and sure enough the file was not there. So I re-ran the --init command and this time I looked closer at the errors. Go one that broke the process and thus tripwire would not save anything:

Generating the database...
*** Processing Unix File System ***
### Warning: File system error.
### Filename: /var/lib/tripwire/<hostname>.twd
### No such file or directory
### Continuing...
### Warning: File system error.
### Filename: /etc/rc.boot
### No such file or directory
### Continuing...
### Error: File seek failed.
### Filename: /root/backup/some-file.tar.gz
### Success
### Exiting...

Now, as you can see tripwire is being funny here: it tells me "Success". But the truth is that the "Error: File seek failed" prevents the saving of the database. This happens because the file named

/root/backup/some-file.tar.gz

is more than 2Gb (maybe 4Gb?) For sure, it is not capable of dealing with very large files. Our file was 22.5Gb and somehow the seek command failed on tripwire.

Our solution was simply to move that file. We did not actually need that file to be checked by tripwire anyway. It just ended up "in the wrong place". After that, the database was properly getting created. By the way, when the database file is created, you get a message like this:

Wrote database file: /var/lib/tripwire/jc.twd
The database was successfully generated.

Until then, the ### Success is a lie!

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

Find the page/content you are looking for with our index.

  • IsObject
  • chroot
  • decimal

    Most Database systems offer a number type called DECIMAL. In general, it represents a fixed integer number with a set number of digits on the left side of the decimal point and a set of digits after the decimal point. Some database system will use floating points instead. Commonly used synonyms are MONEY and CURRENCY.

  • processor
  • shift