nextcloud / nextcloud/mail

Searching results in "Could not open inbox" most of the time (approx. 9/10 cases)

Open
#9,668 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. Go to inbox
  2. Type something into the search input field
  3. Wait (approx. 30s)
  4. Get error message "Could not open inbox" most of the time (approx. 9/10 cases)
Expected behavior

See the actual mails which match the search.

Actual behavior

I get the message "Could not open inbox".

Mail app version

3.6.1

Mailserver or service

Dovecot 2.3.20

Operating system

GNU/Linux

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database

PostgreSQL

Additional info

I assume this is some kind of timeout related problem. In the least of cases (i.e. one out of ten attempts), I get the expected search result quite fast (after 2-3 seconds). However, most of the time I only get "could not open inbox" after approx. 30s of waiting.

Nextcloud Mail and Dovecot are hosted on the same server and communicating via the loopback interface. So, network latency should not be part of the problem. Also, the server is rather potent (AMD EPYC 7702P, 128G RAM).

When I run the same query via IMAP from another mail client (Thunderbird on Windows, KMail on Linux), I always receive the search result after a couple of seconds. And there is actual network communication involved between my home ISP and the hoster.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce a search from the inbox using the reported steps, including the approximately 30-second wait, and compare the failing result with the successful 2–3 second attempts. Trace the inbox search flow and its communication with Dovecot; done means matching mails are returned reliably instead of showing "Could not open inbox".

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, javascript, php, postgresql
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.