Deutsch| English
  #1  
Alt 17.12.2010, 12:00
Neuer Benutzer
 
Registriert seit: 24.06.2009
Beiträge: 6
Standard Wurm drin: Mysql oder ISPC ?

Manchmal ist dann doch der Wurm drin ...
(nach meinem upgrade auf ispc3.0.3.1 und debian upgrade, vorher war der Fehler NICHT da. Der Debian Lenny Server laüft unter ESX, installiert nach dem Perfect Server, keine mir bekannten Beschränkungen ausser 2 GB RAM)

Obwohl der Server problemlos läuft, sehe ich folgende Einträge in im log:

mail.err:
Zitat:
Dec 16 17:14:35 isp3 amavis[16804]: (16804-06) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 86) line 241, <GEN66> line 5. at (eval 87) line 277, <GEN66> line 5.
Dec 16 17:14:35 isp3 postfix/smtp[17071]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 16 17:14:36 isp3 postfix/error[17546]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 16 17:14:37 isp3 postfix/qmgr[3395]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 16 17:14:39 isp3 postfix/trivial-rewrite[17510]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:06:57 isp3 postfix/smtp[17085]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:06:59 isp3 postfix/flush[17052]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:06:59 isp3 postfix/error[17231]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:06:59 isp3 postfix/error[17232]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:06:59 isp3 postfix/error[17233]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:06:59 isp3 postfix/error[17234]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:07:00 isp3 postfix/error[17236]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:07:00 isp3 postfix/qmgr[27399]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:07:00 isp3 postfix/flush[17238]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:13:02 isp3 amavis[17556]: (17556-01) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 86) line 241, <GEN27> line 5.
Dec 17 07:13:02 isp3 postfix/smtp[17272]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:13:03 isp3 postfix/error[17570]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Dec 17 07:13:04 isp3 postfix/qmgr[17271]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
Wie man sieht, eher "sporadisch" - es liegen ja 10 Stunden problemloser Serverbetrieb dazwischen.

Anmelden mit den Daten aus /etc/postfix/mysql-virtual_relaydomains.cf funktioniert problemlos. Ich habe auf meinem server tatsächlich eine Mail-Route eingetragen -inkl. Relay Empfänger.

netstat -an | grep mysql:
Zitat:
# netstat -an | grep mysql
unix 2 [ ACC ] STREAM HÃRT 388467 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBUNDEN 405799 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBUNDEN 404647 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBUNDEN 393559 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM VERBUNDEN 392966 /var/run/mysqld/mysqld.sock
ls -la /etc/postfix
Zitat:
# ls -la /etc/postfix/
insgesamt 180
drwxr-xr-x 3 root root 4096 16. Dez 17:14 .
drwxr-xr-x 92 root root 4096 16. Dez 17:14 ..
-rw-r--r-- 1 root root 0 16. Dez 17:14 body_checks
-rw-r--r-- 1 root root 373 4. Mai 2009 dynamicmaps.cf
-rw-r--r-- 1 root root 0 16. Dez 17:14 header_checks
-rw-r--r-- 1 root root 3470 16. Dez 17:14 main.cf
-rw-r--r-- 1 root root 3392 16. Dez 17:14 main.cf~
-rw-r--r-- 1 root root 3470 16. Dez 17:14 main.cf~2
-rw-r--r-- 1 root root 5000 16. Dez 17:14 master.cf
-r-------- 1 root root 5000 16. Dez 17:14 master.cf~
-rw-r--r-- 1 root root 0 16. Dez 17:14 mime_header_checks
-rw-r----- 1 root postfix 231 16. Dez 17:14 mysql-virtual_client.cf
-rw-r----- 1 root postfix 231 16. Dez 17:14 mysql-virtual_client.cf~
-rw-r----- 1 root postfix 221 16. Dez 17:14 mysql-virtual_domains.cf
-rw-r----- 1 root postfix 221 16. Dez 17:14 mysql-virtual_domains.cf~
-rw-r----- 1 root postfix 218 16. Dez 17:14 mysql-virtual_email2email.cf
-rw-r----- 1 root postfix 218 16. Dez 17:14 mysql-virtual_email2email.cf~
-rw-r----- 1 root postfix 230 16. Dez 17:14 mysql-virtual_forwardings.cf
-rw-r----- 1 root postfix 230 16. Dez 17:14 mysql-virtual_forwardings.cf~
-rw-r----- 1 root postfix 287 16. Dez 17:14 mysql-virtual_mailboxes.cf
-rw-r----- 1 root postfix 287 16. Dez 17:14 mysql-virtual_mailboxes.cf~
-rw-r----- 1 root postfix 252 16. Dez 17:14 mysql-virtual_recipient.cf
-rw-r----- 1 root postfix 252 16. Dez 17:14 mysql-virtual_recipient.cf~
-rw-r----- 1 root postfix 224 16. Dez 17:14 mysql-virtual_relaydomains.cf
-rw-r----- 1 root postfix 224 16. Dez 17:14 mysql-virtual_relaydomains.cf~
-rw-r----- 1 root postfix 230 16. Dez 17:14 mysql-virtual_relayrecipientmaps.cf
-rw-r----- 1 root postfix 249 16. Dez 17:14 mysql-virtual_sender.cf
-rw-r----- 1 root postfix 249 16. Dez 17:14 mysql-virtual_sender.cf~
-rw-r----- 1 root postfix 227 16. Dez 17:14 mysql-virtual_transports.cf
-rw-r----- 1 root postfix 227 16. Dez 17:14 mysql-virtual_transports.cf~
-rw-r--r-- 1 root root 0 16. Dez 17:14 nested_header_checks
-rw-r--r-- 1 root root 18231 14. Sep 2008 postfix-files
-rwxr-xr-x 1 root root 7421 14. Sep 2008 postfix-script
-rwxr-xr-x 1 root root 22774 14. Sep 2008 post-install
drwxr-xr-x 2 root root 4096 23. Jun 2009 sasl
-rw-r--r-- 1 root root 1517 4. Mai 2009 smtpd.cert
-rw-r----- 1 root root 1675 4. Mai 2009 smtpd.key
Die einzige Maßnahme die mir eingefallen ist, ist das Setzen der max connections unter mysql (auf 100 ), das war auskommentiert.

Ich habe zwar ca. 15 Fälle gefunden wo es ähnliche Probleme gab, die bezogen sich aber hauptsächlich auf openvz. Eine Lösung habe ich nicht direkt erlesen können.

Hat jemand eine gute Idee ?

TIA
Peter
Mit Zitat antworten
  #2  
Alt 17.12.2010, 12:37
Administrator
 
Registriert seit: 08.08.2007
Beiträge: 8.817
Standard

Zitat:
Die einzige Maßnahme die mir eingefallen ist, ist das Setzen der max connections unter mysql (auf 100 ), das war auskommentiert.
Die Einstellung sollte noch höher sein, sonst kann der Server Lookup Probleme bei spam Wellen bekommen:

max_connections = 500
max_user_connections = 500

siehe auch:

http://www.faqforge.com/linux/contro...y-connections/
Mit Zitat antworten
Antwort


Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an



Alle Zeitangaben in WEZ +2. Es ist jetzt 13:00 Uhr.


Powered by vBulletin® Version 3.8.1 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0