pátek 28. ledna 2011

This client is too old to work with working copy

Error message:
# svn status
svn: This client is too old to work with working copy 'rpc'. You need
to get a newer Subversion client, or to downgrade this working copy.
See http://subversion.tigris.org/faq.html#working-copy-format-change
for details.
How to resolve a problem:
# echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" >> /etc/apt/sources.list
# wget -O - http://backports.org/debian/archive.key | apt-key add -
# apt-get update
# apt-get -t lenny-backports install subversion subversion-tools libapache2-svn

úterý 25. ledna 2011

libbfd-2.20.1-system.20100303.so: cannot open shared object file: No such file or directory

Error message:
ardesia: error while loading shared libraries: libbfd-2.20.1-system.20100303.so: cannot open shared object file: No such file or directory
How to resolve a problem:
$ ls -al /usr/lib/libbfd-2*
-rw-r--r-- 1 root root 884504 2010-09-17 23:36 /usr/lib/libbfd-2.20.51-system.20100908.so

$ sudo ln -s /usr/lib/libbfd-2.20.51-system.20100908.so /usr/lib/libbfd-2.20.1-system.20100303.so

java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp

Error message:
No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
How to resolve a problem:
# apt-get install ant-optional

neděle 16. ledna 2011

DB_RUNRECOVERY: Fatal error, run database recovery

Error message:
# yum install vpnc
rpmdb: Thread/process 4486/3078768320 failed: Thread died in Berkeley DB library
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
How to resolve a problem:
# rm -f /var/lib/rpm/__db*

sobota 15. ledna 2011

/usr/lib/mc/extfs.d/iso9660: 88: isoinfo: not found

Error message:
/usr/lib/mc/extfs.d/iso9660: 88: isoinfo: not found
How to resolve a problem:
# apt-get install genisoimage

pátek 14. ledna 2011

Can't get CREATE TABLE for table `index_rel`

Error message:
# mysqldump -u root -p tablename > mysql_dump_tablename.sql
Enter password:
mysqldump: Can't get CREATE TABLE for table `index_rel` (Can't open file: 'index_rel.MYI'. (errno: 145))
How to resolve a problem:
# mysql -u root -p
mysql> repair table tablename

or

# mysqlcheck --repair --extended --all-databases

středa 12. ledna 2011

error: failed to prepare transaction (could not satisfy dependencies)

Error message:
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: pacman-color: requires pacman=3.4.0
How to resolve a problem:
# pacman -R pacman-color
# pacman -Syu
# pacman -S pacman-color

pondělí 10. ledna 2011

open files exceed max cache size by

Error message:
# tail -f /var/log/syslog
Jan 9 17:53:54 station mount.davfs: open files exceed max cache size by 1 MiBytes
Jan 9 17:54:04 station mount.davfs: open files exceed max cache size by 1 MiBytes
..
[with debug cache]
Jan 10 21:27:20 station mount.davfs: cache-size: 51 MiBytes.
Jan 10 21:27:20 station mount.davfs: resize cache: 51 of 50 MiBytes used.

How to resolve a problem (increase cache size):
# vim /etc/davfs2/davfs2.conf
---- edit ----
# cache_size 50 # MiByte
cache_size 500 # MiByte
---------------

neděle 9. ledna 2011

can't initialize ip6tables table

Error message:
ip6tables v1.4.2: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.

ip6tables v1.4.2: can't initialize ip6tables table `filter': Address family not supported by protocol
Perhaps ip6tables or your kernel needs to be upgraded.
How to resolve a problem:
# modprobe ip6table_filter
# modprobe ip6_tables
# modprobe ip6table_mangle
# modprobe ip6t_REJECT

sobota 8. ledna 2011

error running shared postrotate script for /var/log/mysql.log

Error message:
error: error running shared postrotate script for /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log
run-parts: /etc/cron.daily/logrotate exited with return code 1
How to resolve a problem:
# vim /etc/mysql/debian.cnf
user = debian-sys-maint
password = PASSWORD
# mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY 'PASSWORD';

mysql> FLUSH PRIVILEGES;
mysql> exit