GNU bug report logs - #30339
Gnus hangs on: "Cannot find file in ~/Maildir/IMAPBOX/Sent/cur"

Previous Next

Packages: emacs, gnus;

Reported by: Bastien Guerry <bzg <at> gnu.org>

Date: Sat, 3 Feb 2018 18:15:02 UTC

Severity: normal

Found in version 5.130014

Done: Bastien Guerry <bzg <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Bastien Guerry <bzg <at> gnu.org>
Subject: bug#30339: closed (Re: bug#30339: Gnus hangs on: "Cannot find
 file in ~/Maildir/IMAPBOX/Sent/cur")
Date: Sun, 04 Mar 2018 07:36:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#30339: Gnus hangs on: "Cannot find file in ~/Maildir/IMAPBOX/Sent/cur"

which was filed against the emacs,gnus package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 30339 <at> debbugs.gnu.org.

-- 
30339: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30339
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Bastien Guerry <bzg <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 30339-done <at> debbugs.gnu.org
Subject: Re: bug#30339: Gnus hangs on: "Cannot find file in
 ~/Maildir/IMAPBOX/Sent/cur"
Date: Sun, 04 Mar 2018 08:35:06 +0100
Hi,

Bastien Guerry <bzg <at> gnu.org> writes:

> Sadly, I cannot know for sure what was causing the bug.

I'm still unsure.  Cleaning up my inboxes and reducing the size of the
folders seems to go in the right direction, as the bug does not happen
as often now, but it still happens sometimes.

> I will test with the new setup for a while and close the bug if things
> are okay.

I think it is very specific to my setup so I'll mark this done.

-- 
 Bastien

[Message part 3 (message/rfc822, inline)]
From: Bastien Guerry <bzg <at> gnu.org>
To: submit <at> debbugs.gnu.org (The Gnus Bugfixing Girls + Boys)
Subject: Gnus hangs on: "Cannot find file in ~/Maildir/IMAPBOX/Sent/cur"
Date: Sat, 03 Feb 2018 19:14:33 +0100
Hi,

I use Gnus v0.14 with Emacs 27.0.50, built from master on 2018-02-01.

I’m syncing three IMAP inboxes using mbsync then read them in Gnus:

(setq mail-sources nil
      gnus-select-method '(nnmaildir "Bastien" (directory "~/Maildir"))
      gnus-secondary-select-methods
      '((nnmaildir "imapbox1" (directory "~/Maildir/imapbox1"))
        (nnmaildir "imapbox2" (directory "~/Maildir/imapbox2"))
	(nnmaildir "imapbox3" (directory "~/Maildir/imapbox3"))))

After I run mbsync (manually, when I want to check for new emails),
I run ‘notmuch new’ to index emails.

I manually launch mbsync when I need to fetch new emails.

It worked perfectly until a few months ago.  AFAIK my setup didn’t
change, just the Gnus / Emacs version.

The error I get:

1. I try to send an email.

2. Emacs hangs.

3. It seems a single C-g cannot stop the process.

4. I have to press C-g without releasing the key to get an error
   buffer.  Then I kill the buffer to kill the process that is
   attached to it.

5. The error says that Gnus cannot find a file in a
   "~/Maildir/imapbox1/Sent/cur/" folder.

   When I check, the email is correctly sent, but the mark in the
   local IMAP inboxes looks wrong (I’m not sure). I have this file:

   1517659181.M377519P14211Q0.bzg:2,

   while I would expect something like

   1517659181.M377519P14211Q0.bzg,U=7290:2,S

6. Also, I have this archiving function:

   (defun my-gnus-message-archive-group (group-current)
      "Return prefered archive group."
      (let ((group-prefix (replace-regexp-in-string "[^:]+$" "" group-current)))
        (cond
         ((string-match "data" group-prefix)
    	  (concat group-prefix "Sent"))
         ((message-news-p)
          (concat "nnfolder+archive:" (format-time-string "%Y-%m")
                  "-divers-news"))
         (t "nnmaildir+bzgfr:Sent"))))

7. I have ~7000 files in "~/Maildir/imapbox1/Sent/cur/" and writing
   a new file here might be rather slow (I haven’t properly tested).
   Could the bug be that Gnus is trying to access a file that isn’t
   written yet?
    
8. I guess there is some race condition while writing the sent file or
   something, but I cannot find the conditions on how to reproduce the
   bug.  It happens at least once every hour, rendering Emacs and Gnus
   pretty unusable.

Is anyone having similar problems?

Are there parameters that I can test to track this bug?

Thanks in advance for any help!

Ma Gnus v0.14
GNU Emacs 27.0.50 (build 35, i686-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2018-02-01

-- 
 Bastien



This bug report was last modified 7 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.