Alex Mestiashvili <a...@biotec.tu-dresden.de> wrote:

> On 02/03/2013 11:27 PM, Bill Wohler wrote:
> > Alex Mestiashvili <a...@biotec.tu-dresden.de> wrote:
> >
> >   
> >> On 02/03/2013 07:13 AM, Bill Wohler wrote:
> >>     
> >>> Package: libpam-abl
> >>> Version: 0.4.3-1
> >>> Severity: normal
> >>>
> >>> Over the past couple of days, I've started getting a lot of the
> >>> following messages in my log file:
> >>>
> >>>    Jan 30 08:41:01 olgas pam_abl[32671]: Invalid argument (22) while 
> >>> opening or creating database
> >>>
> >>> What's going on?
> >>>       
> >> Could you please check that the databases are not corrupted by running
> >> the following commands and paste the output here?
> >> You need to install db5.1-util package for the tools.
> >> as root:
> >>
> >> db5.1_verify -h /var/lib/abl users.db
> >> db5.1_verify -h /var/lib/abl hosts.db
> >>     
> > Thanks very much for the help. Let's see:
> >
> >     $ sudo db5.1_verify -h /var/lib/abl users.db
> >     db5.1_verify: file unknown has LSN 1019/5969166, past end of log at 
> > 1019/5955818
> >     db5.1_verify: Commonly caused by moving a database from one database 
> > environment
> >     db5.1_verify: to another without clearing the database LSNs, or by 
> > removing all of
> >     db5.1_verify: the log files from a database environment
> >     db5.1_verify: Page 0: metadata page corrupted
> >     db5.1_verify: Page 0: could not check metadata page
> >     db5.1_verify: users.db: DB_VERIFY_BAD: Database verification failed
> >     Verification of users.db failed.
> >
> > Looks like trouble.
> >
> >     $ sudo db5.1_verify -h /var/lib/abl hosts.db
> >     Verification of hosts.db succeeded.
> >
> > That looks OK.
> >
> >   
> >> if they seem to be corrupted you can try to recover:
> >>
> >> db5.1_recover -v -h /var/lib/abl
> >>     
> >     $ sudo db5.1_recover -v -h /var/lib/abl
> >     Finding last valid log LSN: file: 1019 offset 5974014
> >
> > Wow, this has been going for some time. I have to leave now, so I'll
> > close with an observation and another question for you.
> >
> >   
> You are welcome.

    $ sudo db5.1_recover -v -h /var/lib/abl
    Finding last valid log LSN: file: 1019 offset 5974014
    Recovery starting from [1][685854]
    Recovery complete at Sun Feb  3 14:46:53 2013
    Maximum transaction ID 8008469e Recovery checkpoint [1019][5974406]

The recovery completed without issue. I'm getting the "Blocking access"
messages in my log again. Thanks!

> How did you install the libpam-abl package? It is not available for the
> stable so far...

I don't know! My aptitude log shows that I installed libpam-abl on
2012-10-06 and pulled in libdb5.1 as a dependency.

While I run squeeze, I have backports and deb-multimedia as well as sid,
experimental, and http://mentors.debian.net/debian (which is commented
with PAM_ABL) deb-src entries in my sources.list file. However, I don't
see anything in /usr/src, which is usually where I stash sources from
sid. Stranger yet, I have files labeled with testing in
/var/lib/apt/lists, but do not have testing in my sources.list file!

> The highest version of Berkeley DB in Debian Stable 6.0.6 (Squeezy)  is
> 4.8.30-2.
> The tests I performed yesterday where done on the testing system,  where
> libdb is 5.1.29-5 - exactly as on your system.
> There is a tool called db5.1_upgrade which should be used to upgrade the
> database, but I don't know if it make sense to use it after running
> db5.1_recover on the old database...
> > I did a little more investigation. Between the time of the last good log
> > message and the one I listed above, two unusual things occurred. The
> > first is that I put my laptop to sleep, and the other is that I
> > installed the following packages (which don't look like they would
> > interfere):
> >
> >   [INSTALL, DEPENDENCIES] libemma-java
> >   [INSTALL, DEPENDENCIES] libganymed-ssh2-java
> >   [INSTALL, DEPENDENCIES] libjna-java
> >   [INSTALL, DEPENDENCIES] libsvnkit-java
> >   [INSTALL, DEPENDENCIES] libtrilead-ssh2-java
> >   [INSTALL] libsvnclientadapter-java
> >   
> 
> I don't think that these packages could influence libpam-abl and also
> don't see how putting to sleep would damage the database..
> May be it makes sense to run smart check for the drive.

Thanks for the suggestion. smartctl -a said "No Errors Logged."

> > Also, I noticed that there were about 1000 old .log files in
> > /var/lib/abl. Is this normal? Is there a good way to consolidate them?
> >   
> For the log files you can use db5.1_archive with -d flag, but see the
> man page for the details.

Ah, much better, thanks! After reading the man page, I'd prefer to clean up
occasionally and start again from scratch in the case of catastrophic
failure (in the case of pam-abl).

> > Thanks again!

Ditto!

> >
> >   
> 
> Best regards,
> Alex
> 

-- 
Bill Wohler <woh...@newt.com> aka <bill.woh...@nasa.gov>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to