Page 1 of 1

MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 10:45
by leinehost
Hallo,

ich habe da ein Problem mit MySQL.

Ich nutze:
- Debian Sarge
- SysCP als Adminoberfläche
- Postfix als MTA
- Courier (POP3/IMAP)

Nun zu meinem Problem:

Wenn ich MySQL per "mysqld start" starten möchte,
bekomme ich folgende M0eldung:

Code: Select all

84-16-231-53:~# mysqld start
050907 10:35:59 Can't start server: Bind on TCP/IP port: Address already in use
050907 10:35:59 Do you already have another mysqld server running on port: 3306 ?
050907 10:35:59 Aborting

050907 10:35:59 mysqld: Shutdown Complete
Meine mysql.log und mysql.err bleiben leer.
-----------------------------------
Bei Postfix und Courier kann ich mich nicht einloggen.

mail.log:

Code: Select all

Sep  7 10:33:42 84-16-231-53 courierpop3login: Connection, ip=[::ffff:84.130.38.114]
Sep  7 10:33:42 84-16-231-53 courierpop3login: LOGIN: DEBUG: ip=[::ffff:84.130.38.114], command=USER
Sep  7 10:33:42 84-16-231-53 courierpop3login: LOGIN: DEBUG: ip=[::ffff:84.130.38.114], command=PASS
Sep  7 10:33:42 84-16-231-53 courierpop3login: LOGIN: DEBUG: ip=[::ffff:84.130.38.114], username=xxx@xxxxxxx.xx
Sep  7 10:33:42 84-16-231-53 courierpop3login: LOGIN: DEBUG: ip=[::ffff:84.130.38.114], password=xxxxxx
Sep  7 10:33:42 84-16-231-53 courierpop3login: authdaemon: starting client module
Sep  7 10:33:42 84-16-231-53 courierpop3login: authdaemon: REJECT
Sep  7 10:33:47 84-16-231-53 courierpop3login: LOGIN FAILED, ip=[::ffff:84.130.38.114]
meine mail.err:

Code: Select all

Sep  7 10:40:28 84-16-231-53 courierpop3login: LOGIN FAILED, ip=[::ffff:84.130.38.114]
Ich weiß, dass es viele Probleme sind,
aber ich bin über jede Hilfe sehr sehr sehr dankbar!

Gruß

YourDom

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 11:11
by stefanpropehan

Code: Select all

netstat -nltp && ps -xauf
Schauen welcher Prozess auf Port 3306 lauscht und ob noch ein mysqld läuft... diese(n) beenden (pkill und kill sind deine Freunde) und dann mysql noch einmal neu starten.

Die Probleme vom courierpop sollten daher rühren das er die Benutzerdaten nicht mit den Daten in der mysql vergleichen kann.

--
stefan

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 11:22
by leinehost
Dies wird nach dem Befehl netstat -nltp && ps -xauf
ausgegeben:

Code: Select all

Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     9144/mysqld
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     2170/apache
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     7761/proftpd: (acce
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     8417/master
tcp6       0      0 :::995                  :::*                    LISTEN     1933/couriertcpd
tcp6       0      0 :::110                  :::*                    LISTEN     8579/couriertcpd
tcp6       0      0 :::143                  :::*                    LISTEN     1895/couriertcpd
tcp6       0      0 :::22                   :::*                    LISTEN     2144/sshd
tcp6       0      0 :::25                   :::*                    LISTEN     8417/master
ERROR: Unsupported SysV option.
********* simple selection *********  ********* selection by list *********
-A all processes                      -C by command name
-N negate selection                   -G by real group ID (supports names)
-a all w/ tty except session leaders  -U by real user ID (supports names)
-d all except session leaders         -g by session leader OR by group name
-e all processes                      -p by process ID
T  all processes on this terminal     -s processes in the sessions given
a  all w/ tty, including other users  -t by tty
g  all, even group leaders!           -u by effective user ID (supports names)
r  only running processes             U  processes for specified users
x  processes w/o controlling ttys     t  by tty
*********** output format **********  *********** long options ***********
-o,o user-defined  -f full            --Group --User --pid --cols --ppid
-j,j job control   s  signal          --group --user --sid --rows --info
-O,O preloaded -o  v  virtual memory  --cumulative --format --deselect
-l,l long          u  user-oriented   --sort --tty --forest --version
-F   extra full    X  registers       --heading --no-heading --context
                    ********* misc options *********
-V,V  show version      L  list format codes  f  ASCII art forest
-m,m,-L,-T,H  threads   S  children in sum    -y change -l format
-M,Z  security data     c  true command name  -c scheduling class
-w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy
84-16-231-53:~# AAAAAAAAAAAAAAAnetstat -nltp && ps -xauf~
-bash: AAAAAAAAAAAAAAAnetstat: command not found
84-16-231-53:~# netstat -nltp && ps -xauf~
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     9144/mysqld
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     2170/apache
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     7761/proftpd: (acce
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     8417/master
tcp6       0      0 :::995                  :::*                    LISTEN     1933/couriertcpd
tcp6       0      0 :::110                  :::*                    LISTEN     8579/couriertcpd
tcp6       0      0 :::143                  :::*                    LISTEN     1895/couriertcpd
tcp6       0      0 :::22                   :::*                    LISTEN     2144/sshd
tcp6       0      0 :::25                   :::*                    LISTEN     8417/master
ERROR: Unsupported SysV option.
********* simple selection *********  ********* selection by list *********
-A all processes                      -C by command name
-N negate selection                   -G by real group ID (supports names)
-a all w/ tty except session leaders  -U by real user ID (supports names)
-d all except session leaders         -g by session leader OR by group name
-e all processes                      -p by process ID
T  all processes on this terminal     -s processes in the sessions given
a  all w/ tty, including other users  -t by tty
g  all, even group leaders!           -u by effective user ID (supports names)
r  only running processes             U  processes for specified users
x  processes w/o controlling ttys     t  by tty
*********** output format **********  *********** long options ***********
-o,o user-defined  -f full            --Group --User --pid --cols --ppid
-j,j job control   s  signal          --group --user --sid --rows --info
-O,O preloaded -o  v  virtual memory  --cumulative --format --deselect
-l,l long          u  user-oriented   --sort --tty --forest --version
-F   extra full    X  registers       --heading --no-heading --context
                    ********* misc options *********
-V,V  show version      L  list format codes  f  ASCII art forest
-m,m,-L,-T,H  threads   S  children in sum    -y change -l format
-M,Z  security data     c  true command name  -c scheduling class
-w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 11:33
by leinehost
Der Befehl lsof -i :3306 gibt folgendes zurück:

Code: Select all

COMMAND  PID  USER   FD   TYPE DEVICE SIZE NODE NAME
mysqld  9144 mysql    3u  IPv4  14636       TCP localhost:mysql (LISTEN)

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 11:37
by stefanpropehan
Dann beende doch wie ich es geschrieben habe den Prozess (pid 9144) und dessen Schwesterprozesse und versuche danach mal den mysqld neu zu starten.

--
Stefan

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 12:43
by leinehost
Vielen Dank für deine Hilfe,

das Problem hat sich nach einem Reboot erledigt.



Gruß



YourDom

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 14:17
by rootsvr
Du mußt Windows Nutzer sein, oder?

Linux rebootet man nicht!

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 14:52
by stefanpropehan
rootsvr wrote:Linux rebootet man nicht!
Und du spielst also keine Kernel Updates ein? Immer diese Uptime Fanatiker.

Wobei ich dir natürlich Recht gebe das "yourdom" keinen Grund hatte in diesem Fall zu rebooten. Ein ordentliches beenden des Prozesses und danach ein neustarten des Prozesses, wie ich es geschrieben hatte, hätte den selben Effekt gehabt.

--
Stefan

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 15:51
by rootsvr
Du hast natürlich recht, ich wollte schon schreiben: Linux rebootet man nur nach Kernelupdates oder Hardwaretausch, aber da hatte ich es schon abgeschickt und keine Lust mehr gehabt zu ändern.

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-07 17:40
by Roger Wilco
stefanpropehan wrote:Und du spielst also keine Kernel Updates ein?
Mit kexec... :roll:

Re: MySQL, Postfix und Courier wollen net richtig.

Posted: 2005-09-10 13:22
by leinehost
moin,
rootsvr wrote:Linux rebootet man nicht!
Das weiß ich, nur das war die einzige Idee, die ich dem Moment noch hatte und es hat funktioniert.

Ich konnte es mir auch net erklären aber...nagut.

Gruß

YourDom