Page 1 of 1
Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 16:26
by matthiaso
Hab auch mal versucht mit Hilfe des Howto's ein Qmail aufzusetzen, leider bricht mein Qmail jetzt immer beim Starten mit folgender Fehlermeldung ab:
Jun 13 16:17:22 localhost qmail: 1087136242.172694 alert: cannot start: unable to switch to queue directory
/var/qmail sieht so aus:
Code: Select all
matze:/var/qmail# ls -l
total 0
lrwxrwxrwx 1 root root 20 Jun 13 16:13 alias -> /var/lib/qmail/alias
lrwxrwxrwx 1 root root 9 Jun 13 16:13 bin -> /usr/sbin
lrwxrwxrwx 1 root root 34 Jun 13 16:13 boot -> /usr/share/doc/qmail/examples/boot
lrwxrwxrwx 1 root root 10 Jun 13 16:13 control -> /etc/qmail
lrwxrwxrwx 1 root root 20 Jun 13 16:13 doc -> /usr/share/doc/qmail
lrwxrwxrwx 1 root root 16 Jun 13 16:13 queue -> /var/spool/qmail
lrwxrwxrwx 1 root root 16 Jun 13 16:13 users -> /etc/qmail/users
Irgendjemand eine Idee, was falsch sein könnte bzw. hat das Problem vielleicht selber erlebt?[/code]
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 16:31
by wirsing
Code: Select all
ls -ld /var /var/spool /var/spool/qmail
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 16:33
by matthiaso
Code: Select all
matze:/var# ls -ld /var /var/spool /var/spool/qmail
drwxr-xr-x 20 root root 4096 Jun 13 16:28 /var
drwxr-xr-x 8 root root 4096 Jun 13 16:28 /var/spool
drwxr-x--- 11 qmailq qmail 4096 Jun 13 16:28 /var/spool/qmail
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 16:42
by wirsing
Welches Programm bricht jetzt genau ab und wie wird es gestartet?
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 16:45
by kenzo
/var/qmail sieht so aus: (...)
Und so sieht es flashc aus - guck mal hier:
http://lifewithqmail.org/inst_check und
Code: Select all
drwxr-sr-x 2 alias qmail 4096 Apr 4 18:35 alias
drwxr-xr-x 3 root qmail 4096 Jun 3 02:25 bin
drwxr-xr-x 2 root qmail 4096 Apr 4 18:35 boot
lrwxrwxrwx 1 root qmail 10 Apr 4 18:37 control -> /etc/qmail
drwxr-xr-x 2 root qmail 4096 May 11 19:12 doc
drwxr-x--- 11 qmailq qmail 4096 Apr 4 18:53 queue
drwxr-xr-x 2 root qmail 4096 May 12 19:41 users
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 16:54
by wirsing
@kenzo: nicht notwendigerweise. Man kann auch seine Verzeichnisse anders anordnen und dann mit Symlinks auf diese verweisen, so wie hier. Deswegen habe ich ja auch nach den Berechtigungen für /var/spool/qmail gefragt. Von den Berechtigungen ist das in Ordnung.
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 16:56
by matthiaso
Hm, mein Qmail scheint ja einige Major-Probleme zu haben, hab allerdings auch das Debian-Installationsskript verwendet, inst_check führt zu folgendem:
Code: Select all
matze:~# ./inst_check
! Couldn't find /var/qmail/man!
! Couldn't find /var/qmail/supervise!
! /var/qmail/rc is missing
! Couldn't find nofiles group in /etc/group
! Couldn't find /usr/local/bin/multilog from daemontools
! Couldn't find /usr/local/bin/softlimit from daemontools
! Couldn't find /usr/local/bin/setuidgid from daemontools
! Couldn't find /usr/local/bin/supervise from daemontools
! Couldn't find /usr/local/bin/svok from daemontools
! Couldn't find /usr/local/bin/svscan from daemontools
! Couldn't find /usr/local/bin/tai64nlocal from daemontools
'! svscan /service' doesn't seem to be running
! Couldn't find /var/qmail/control/defaultdelivery
! /var/qmail/bin/qmailctl is missing
! /usr/bin/qmailctl is missing
...try: ln -s /var/qmail/bin/qmailctl /usr/bin
! /var/qmail/supervise/qmail-send/run file is missing
! /var/qmail/supervise/qmail-send/log/run file is missing
! /var/qmail/supervise/qmail-smtpd/run file is missing
! /var/qmail/supervise/qmail-smtpd/log/run file is missing
! /var/qmail/control/concurrencyincoming is missing
...try: echo 20 >/var/qmail/control/concurrencyincoming
! /var/log/qmail is missing
...try: mkdir -p /var/log/qmail
! /var/log/qmail/smtpd is missing
...try: mkdir -p /var/log/qmail/smtpd
! Alias for root is missing
...try: echo me >/var/qmail/alias/.qmail-root
! Alias for postmaster is missing
...try: echo me >/var/qmail/alias/.qmail-postmaster
! Alias for mailer-daemon is missing
...try: echo me >/var/qmail/alias/.qmail-mailer-daemon
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 17:10
by wirsing
Wenn du es nach der debianhowto.de-Anleitung von olfi gemacht hast, dann muss zwangsläufig eine ähnliche Ausgabe herauskommen, da dieses Script für eine Installation nach LWQ gemacht ist. Das System kann trotzdem laufen.
Aber noch einmal: Welches Programm bricht ab und wie wird es gestartet, d. h. auch unter welchem Benutzer?
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 17:13
by matthiaso
Also ich führe ein qmail-start aus und dies führt zu folgendem:
Code: Select all
matze:~# qmail-start
alert: cannot start: unable to switch to queue directory
Gleiches passiert auch mit dem init.d qmail Skript wenn ich das ausführ, nur das da dann der Fehler nur in den Logfiles landet..
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-13 18:01
by kenzo
wirsing wrote:@kenzo: nicht notwendigerweise. Man kann auch seine Verzeichnisse anders anordnen und dann mit Symlinks auf diese verweisen, so wie hier. Deswegen habe ich ja auch nach den Berechtigungen für /var/spool/qmail gefragt. Von den Berechtigungen ist das in Ordnung.
Arghl - habe (ernsthaft!) die Symlinks übersehen, was an einem Sonntag durchaus mal der Fall sein darf ... 8)
Re: Qmail: cannot start: unable to switch to queue directory
Posted: 2004-06-18 11:21
by matthiaso
Sorry, noch einen vielleicht wichtigen Teil vergessen, im Moment start ich noch alles als root (auch wenn das vielleicht später anders sein soll), aber an Zugriffsrechten sollte es im Moment nicht mangeln..