[Dovecot] dovecot upgrade problems
Hi list,
i made an upgrade from dovecot 1.0RC15 to 1.1.20
the default installation was under /etc/dovecot. The upgrade installation was made under /usr/local/etc.
After that i changed all the paths in the /usr/local/etc/dovecot.conf and the dovecot-binary to work with the new installation. Even path-changes were made for /etc/init.d/dovecot to work with the version 1.1.20.
Changes in the /etc/init.d/dovecot: #### PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/sbin/dovecot NAME=dovecot DESC="mail server"
test -x $DAEMON || exit 0
set -e
# The init script should do nothing if dovecot is being run from inetd
for p in sed -r "s/^ *(([^:]+|\[[^]]+]|\*):)?(pop3s?|imaps?)[ \t].*/\3/;t;d" \ /etc/inetd.conf
do
for q in sed -r "s/^ *protocols[ \t]*=[ \t]*(([^\"]*)|\"(.*)\")/\2\3/;t;d" \ /usr/local/etc/dovecot.conf
do
if [ $p = $q ]; then
exit 0
fi
done
done
case "$1" in
start)
if grep protocols /usr/local/etc/dovecot.conf | sed 's/#.*$//' | tr
-d '"' |
egrep -q '[^#]*(\bpop3s?\b|\bimaps?\b)';
then
if [ -x /usr/local/libexec/dovecot/imap-login -a -x
/usr/local/libexec/dovecot/imap ]
|| [ -x /usr/local/libexec/dovecot/pop3-login -a -x
/usr/local/libexec/dovecot/pop3 ]
####
If I leave the DAEMON-Path to =/usr/sbin/dovecot
Dovecot is running fine!!!
The only thing which is missing under /usr/local is the auth-master file.
Under /var/run/dovecot the old auth-master file exists. Why not under the upgrade path?
Anyway, here is the logging when i try to start dovecot:
Apr 6 16:18:37 server dovecot: dovecot v1.1.20 starting up (core dumps disabled) Apr 6 16:18:37 server dovecot: Fatal: auth(default): Dovecot version mismatch: Master is v1.1.20, dovecot-auth is v1.0.rc15 (if you don't care, set version_ignore=yes) Apr 6 16:18:37 server dovecot: Fatal: Auth process died too early - shutting down
server:/usr/local/etc# /etc/init.d/dovecot restart Restarting mail server: dovecotWarning: Last died with error (see error log for more information): Auth process died too early - shutting down
Also the configuration output:
dovecot -n # 1.1.20: /usr/local/etc/dovecot.conf # OS: Linux 2.6.18-4-686 i686 Debian 4.0 log_timestamp: %Y-%m-%d %H:%M:%S protocols: imaps pop3s imap ssl_key_file: /etc/ssl/private/dovecot.key disable_plaintext_auth: no login_dir: /usr/local/var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_max_processes_count: 256 first_valid_uid: 1000 last_valid_uid: 5000 mail_access_groups: mail mail_location: maildir:~/Maildir mail_debug: yes mail_full_filesystem_access: yes mbox_write_locks: fcntl mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 lda: postmaster_address: cieslak@folkwang-hochschule.de hostname: server log_path: /var/log/dovecot-deliver.log info_log_path: /var/log/dovecot-deliver.log sendmail_path: /usr/lib/sendmail auth default: mechanisms: login plain verbose: yes debug: yes process_size: 512 passdb: driver: passwd args: /etc/passwd passdb: driver: shadow args: /etc/shadow passdb: driver: ldap args: /usr/local/etc/dovecot-ldap.conf userdb: driver: passwd args: blocking=yes userdb: driver: ldap args: /usr/local/etc/dovecot-ldap.conf socket: type: listen master: path: /usr/local/var/run/dovecot/auth-master mode: 384 user: mail plugin: quota: maildir
###auth-master is not existing under the path /usr/local/var/run/dovecot/auth-master. Is this the fault?
Can anyone help me out?
Andreas Cieslak IT-Systeme Folkwang Hochschule Musik | Theater | Tanz | Gestaltung | Wissenschaft Klemensborn 39 45239 Essen Fon: 0201_4903-218 Fax: 0201_4903-288 cieslak@folkwang-hochschule.de www.folkwang-hochschule.de <http://www.folkwang-hochschule.de/>
Hi list,
i made an upgrade from dovecot 1.0RC15 to 1.1.20
the default installation was under /etc/dovecot. The upgrade installation was made under /usr/local/etc. {snip}
###auth-master is not existing under the path /usr/local/var/run/dovecot/auth-master. Is this the fault? What creates that socket? Something like Exim or Postfix? Chances are the external program still creates that socket under it's original directory and will either need to be changed to match your new
On Wed, 2010-04-07 at 09:58 +0200, Cieslak, Andreas wrote: path, or point it to the existing socket.
find / -iname auth-master
May be worth a run just to see if it still exists in the 'old' location the last dovecot was looking at.
Can anyone help me out?
Andreas Cieslak IT-Systeme Folkwang Hochschule Musik | Theater | Tanz | Gestaltung | Wissenschaft Klemensborn 39 45239 Essen Fon: 0201_4903-218 Fax: 0201_4903-288 cieslak@folkwang-hochschule.de www.folkwang-hochschule.de <http://www.folkwang-hochschule.de/>
Thanks,
It is still in the old location /var/run/dovecot/auth-master. The old version is running proper with it. But the new version shows the following
/var/run/dovecot# ls -la /usr/local/var/run/dovecot drwxr-sr-x 3 root staff 4096 2010-04-06 17:18 . drwxr-sr-x 3 root staff 4096 2010-04-06 16:12 .. srw------- 1 root root 0 2010-04-06 17:18 auth-worker.4270 srwxrwxrwx 1 root staff 0 2010-04-06 17:18 dict-server drwxr-x--- 2 root dovecot 4096 2010-04-06 17:18 login -rw------- 1 root staff 43 2010-04-06 17:18 master-fatal.lastlog -rw------- 1 root staff 5 2010-04-06 17:18 master.pid
Andreas Cieslak IT-Systeme Folkwang Hochschule_die Kunsthochschule im Ruhrgebiet Klemensborn 39 45239 Essen Tel.: +49 (201) 4903-218 Fax.: +49 (201) 4903-288 cieslak@folkwang-hochschule.de
-----Ursprüngliche Nachricht----- Von: dovecot-bounces+cieslak=folkwang-hochschule.de@dovecot.org [mailto:dovecot-bounces+cieslak=folkwang-hochschule.de@dovecot.org] Im Auftrag von corpus.defero Gesendet: Mittwoch, 7. April 2010 11:52 Cc: dovecot@dovecot.org Betreff: Re: [Dovecot] dovecot upgrade problems
Hi list,
i made an upgrade from dovecot 1.0RC15 to 1.1.20
the default installation was under /etc/dovecot. The upgrade installation was made under /usr/local/etc. {snip}
###auth-master is not existing under the path /usr/local/var/run/dovecot/auth-master. Is this the fault? What creates that socket? Something like Exim or Postfix? Chances are the external program still creates that socket under it's original directory and will either need to be changed to match your new
On Wed, 2010-04-07 at 09:58 +0200, Cieslak, Andreas wrote: path, or point it to the existing socket.
find / -iname auth-master
May be worth a run just to see if it still exists in the 'old' location the last dovecot was looking at.
Can anyone help me out?
Andreas Cieslak IT-Systeme Folkwang Hochschule Musik | Theater | Tanz | Gestaltung | Wissenschaft Klemensborn 39 45239 Essen Fon: 0201_4903-218 Fax: 0201_4903-288 cieslak@folkwang-hochschule.de www.folkwang-hochschule.de <http://www.folkwang-hochschule.de/>
On Wed, 2010-04-07 at 12:08 +0200, Cieslak, Andreas wrote:
AFAIR Dovecot does not create that socket:
/var/run/dovecot/auth-master Some other program creates it - so either tell that other program to create the socket where you want it now, or tell Dovecot where that socket actually is.
I can't say for sure that is your error, but if the socket is not where Dovecot is looking, it's going to complain about an auth issue. Also, I would be surprised if the new version will start, if you already have an old version running - sanity would say that is a bad thing to try and do.
On Wed, 2010-04-07 at 11:14 +0100, corpus.defero wrote:
On Wed, 2010-04-07 at 12:08 +0200, Cieslak, Andreas wrote:
AFAIR Dovecot does not create that socket:
/var/run/dovecot/auth-master
Dovecot does create auth-master socket, but not by default. http://wiki.dovecot.org/LDA#Virtual_users
On Wed, 2010-04-07 at 15:00 +0300, Timo Sirainen wrote:
On Wed, 2010-04-07 at 11:14 +0100, corpus.defero wrote:
On Wed, 2010-04-07 at 12:08 +0200, Cieslak, Andreas wrote:
AFAIR Dovecot does not create that socket:
/var/run/dovecot/auth-master
Dovecot does create auth-master socket, but not by default. http://wiki.dovecot.org/LDA#Virtual_users
My apologies! I'm back to front. I just looked at Dovecot creates the socket that my Postfix uses to talk to it. Doh!
I got this problem solved, pointing the socket to the old path /var/run/dovecot/auth-master. Thanks.
Andreas Cieslak IT-Systeme Folkwang Hochschule_die Kunsthochschule im Ruhrgebiet Klemensborn 39 45239 Essen Tel.: +49 (201) 4903-218 Fax.: +49 (201) 4903-288 cieslak@folkwang-hochschule.de
-----Ursprüngliche Nachricht----- Von: dovecot-bounces+cieslak=folkwang-hochschule.de@dovecot.org [mailto:dovecot-bounces+cieslak=folkwang-hochschule.de@dovecot.org] Im Auftrag von Timo Sirainen Gesendet: Mittwoch, 7. April 2010 14:00 An: dovecot@dovecot.org Betreff: Re: [Dovecot] dovecot upgrade problems
On Wed, 2010-04-07 at 11:14 +0100, corpus.defero wrote:
On Wed, 2010-04-07 at 12:08 +0200, Cieslak, Andreas wrote:
AFAIR Dovecot does not create that socket:
/var/run/dovecot/auth-master
Dovecot does create auth-master socket, but not by default. http://wiki.dovecot.org/LDA#Virtual_users
Hi, Firstly its clear you did not remove your existing version installed by your OS's package manager. Backup your conf file before doing so.
By default most source installs of any software install into /usr/local/
you might also want to consider make uninstall from your existing source
build directory.
Try as a starting point
./configure --prefix=/usr --sysconfdir=/etc
--localstatedir=/var ...other_options_here...
then you'll end up with /var/run/dovecot/auth-master your conf files will end up in /etc and binary files will be in /usr/sbin and so on... with other goodies in /usr/lib/dovecot
On Wed, 2010-04-07 at 09:58 +0200, Cieslak, Andreas wrote:
Hi list,
i made an upgrade from dovecot 1.0RC15 to 1.1.20
the default installation was under /etc/dovecot. The upgrade installation was made under /usr/local/etc.
After that i changed all the paths in the /usr/local/etc/dovecot.conf and the dovecot-binary to work with the new installation. Even path-changes were made for /etc/init.d/dovecot to work with the version 1.1.20.
participants (4)
-
Cieslak, Andreas
-
corpus.defero
-
Noel Butler
-
Timo Sirainen