[Pkg-torrus-maintainers] Help with torrus 2.01?
Bernhard Schmidt
berni at birkenwald.de
Sun Sep 25 11:56:23 UTC 2011
Hi,
>> One can always remove the db and recompile if
>> it breaks.
> That works?
Sort of, the db-directory is just a binary representation of the
xmlconfig, generated by "torrus compilexml". ACLs aren't recreated
though, and I did not find a way to dump/restore them yet. Upstream says
(http://torrus.org/userguide.pod.html):
Database lock troubleshooting
It may happen sometimes, that a process accessing Torrus database
terminates incorrectly, and the database becomes blocked. A typical
symptom of this is that the command torrus compilexml --all --verbose
does not print anything and stays running forever, occupying zero
percent of CPU.
The nice, and the preferred way to solve the problem is to use
db_recover utility from BerkeleyDB package. The brutal way is just to
remove the databases and re-compile all the configuration. Note: The ACL
database is not automatically backed up, and you need to take care of
its backup before deleting the contents of the database.
## The nice way uses BerkeleyDB db_recover
## (might be located in /usr/local/BerkeleyDB.4.1/bin/)
/etc/init.d/apache stop
/etc/init.d/torrus stop
db_recover -h /var/torrus/db
torrus compilexml --verbose --all
/etc/init.d/torrus start
/etc/init.d/apache start
## The brutal way
/etc/init.d/apache stop
/etc/init.d/torrus stop
cd /var/torrus/db
rm -r *
torrus compilexml --verbose
/etc/init.d/torrus start
/etc/init.d/apache start
Best Regards,
Bernhard
More information about the Pkg-torrus-maintainers
mailing list