search: exit code 1 when running as www-data user

Subject: search: exit code 1 when running as www-data user

Date: Sun, 14 Jun 2026 11:43:58 +0200

To: notmuch@notmuchmail.org

Cc:

From: Christian Weiske


Hello,


I setup notmuch in my user account "cweiske" and now want to use the
browser-based "notmore" UI for it.
I setup notmore on Apache + PHP, and it runs as www-data user.

The directory permissions should be fine; I changed via "su -s /bin/bash
- www-data" to the user and executed "notmuch --config /home/cweiske/...
search test" and it returned results.

When "notmuch search" is run via apache's mod_php, it exits with
status code 1, and no output in stdout nor stderr.

What could the reason be for that?

----

Running "notmuch config list" via apache works.
There are no selinux/apparmor errors in jourctl or dmesg.

"strace -f" output it not really helpful, but is attached.

-- 
Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: