Package: fetchmail
Version: 6.4.0~rc4-2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

I have been using fetchmail for several years to download mail from multiple
 accounts, one instance for each account using the FETCHMAILHOME variable.

I realized only today that it was a few days since it was no longer downloading
 mail.

The script that I use enters the directories of the various accounts,
 sets the variable FETCHMAILHOME and uses the default values

Looking at the log file I saw this message (ACCOUNT is the email):

    ./ACCOUNT/fetchmail.pid: No such file or directory
    fetchmail: lock creation failed.

If I create the file, before launching fetchmail, is correctly removed:

    fetchmail: removing stale lockfile

but later the lock fails (ACCOUNT is the email):

    7426  openat(AT_FDCWD, "./ACCOUNT/fetchmail.pid", O_WRONLY|O_CREAT|O_EXCL, 
0666) = -1 ENOENT (No such file or directory)
    7426  dup(2)                            = 4
    7426  fcntl(4, F_GETFL)                 = 0x8401 (flags 
O_WRONLY|O_APPEND|O_LARGEFILE)
    7426  close(4)                          = 0
    7426  write(2, "./ACCOUNT/fetch"..., 68) = 68
    7426  write(2, "fetchmail: lock creation failed."..., 33) = 33
    7426  exit_group(8)                     = ?
    7426  +++ exited with 8 +++

To make fetchmail work again I had to specify the pidfile as argument
 (FETCHMAILHOME is relative, not an absolute path)

    --pidfile "$FETCHMAILHOME/fetchmail.pid"

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fetchmail depends on:
ii  adduser           3.118
ii  debianutils       4.9
ii  libc6             2.29-2
ii  libcom-err2       1.45.3-4
ii  libgssapi-krb5-2  1.17-6
ii  libkrb5-3         1.17-6
ii  libssl1.1         1.1.1d-1
ii  lsb-base          11.1.0

Versions of packages fetchmail recommends:
ii  ca-certificates  20190110

Versions of packages fetchmail suggests:
pn  fetchmailconf                   <none>
ii  postfix [mail-transport-agent]  3.4.7-1
ii  resolvconf                      1.79

-- no debconf information

Reply via email to