[exim] Re: Problem with exim_tidydb after upgrading to 4.96

Top Page
Delete this message
Reply to this message
Author: Mike Clarke
Date:  
To: exim-users
Subject: [exim] Re: Problem with exim_tidydb after upgrading to 4.96
On Friday, 8 September 2023 11:36:14 BST Jeremy Harris via Exim-users wrote:

> Looks fun. Try running it under strace? It presumably
> does an open() syscall which returns an error. Check the
> args to that open.


Here's the last few lines of running a trace with the command
exim_tidydb /var/spool/exim wait-remote_smtp

=======================================================================
open("/var/spool/exim/db/wait-remote_smtp.db",O_RDWR|O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-rw-r----- ,inode=1180752,size=131072,blksize=131072 }) = 0 (0x0)
read(4,"\0\^F\^Ua\0\0\0\^B\0\0\^D\M-R\0"...,260) = 260 (0x104)
pread(4,"\0\0\M-z\^?\0\M^@\M^[\^?\M-%\^?"...,32768,0x8000) = 32768 (0x8000)
pread(4,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768,0x10000) = 32768 (0x8000)
pwrite(4,"\0\^F\^Ua\0\0\0\^B\0\0\^D\M-R\0"...,260,0x0) = 260 (0x104)
fsync(4)                     = 0 (0x0)
close(4)                     = 0 (0x0)
close(3)                     = 0 (0x0)
write(1,"Tidying complete\n",17)         = 17 (0x11)
exit(0x0)                    
process exit, rval = 0
=======================================================================


So it's looking for wait-remote_smtp.db instead of wait-remote_smtp.

As a temporary workaround I've added symbolic links:

curlew:/tmp# ls -l /var/spool/exim/db 
total 6 
-rw-r-----  1 mailnull  mail       0 14 Oct  2022 retry.lockfile 
-rw-r-----  1 mailnull  mail  131072  8 Sep 19:40 wait-remote_auth_smtp 
lrwxr-xr-x  1 root      mail      21  8 Sep 13:49 wait-remote_auth_smtp.db@ -> wait-
remote_auth_smtp 
-rw-r-----  1 mailnull  mail       0 22 Aug  2020 wait-remote_auth_smtp.lockfile 
-rw-r-----  1 mailnull  mail  131072  8 Sep 19:41 wait-remote_smtp 
lrwxr-xr-x  1 root      mail      16  8 Sep 13:49 wait-remote_smtp.db@ -> wait-remote_smtp 
-rw-r-----  1 mailnull  mail       0 19 Jun  2021 wait-remote_smtp.lockfile


With these symlinks exim_tidydb now works without errors. I was wondering if this is a
bug with 4.96 or if the new version now require the database files to have a .db suffix so I
fired up a new virtual system with exim 4.96 which created database files with the ,db
suffix. So for my current system should I just rename the database files, or even just
delete them and let exim create new ones?

--
Mike Clarke

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/