I'm running an experiment, I'm trying to run Emacs as a systemd service. I then connect to the
service with `emacsclient -t`.
I experience consistently an error when opening mu4e. `mu4e-debug` is `t` but I can't get enough
info to understand what the problem is.
When running emacs not-as-service everything just works fine
The *mu4e-log* looks like:
2025-07-02 22:04:24.284 * invoking '/usr/bin/mu' with parameters 'server'
2025-07-02 22:04:24.285 -> (ping)
2025-07-02 22:04:24.285 -> (data :kind maildirs)
2025-07-02 22:04:24.286 -> (queries :queries ("flag:unread AND (maildir:/
domain.org/me/Inbox OR
maildir:/
domain.org/me2/Inbox)" ... ))
2025-07-02 22:04:24.286 -> (contacts :personal nil :after "2018-01-01" :tstamp "0" :maxnum nil)
2025-07-02 22:04:24.296 * Received 70 byte(s)
2025-07-02 22:04:24.298 * famous last words from server: 'error: failed to open database
hint: Try (re)creating using `mu init'
'
I think the "mu init" hint is misleading, the database is not corrupted. I think it's trying to tell
me that it can't find some stuff.
The system log is not very detailed as well:
$ journalctl -f --user --unit emacs
Jul 02 22:04:24 host mu[12923]: logging initialized; debug: no, stdout/stderr: no
Jul 02 22:04:24 host mu[12923]: mu finishing with error: <failed to open database (121:1)>
Jul 02 22:04:24 host mu[12923]: hint: Try (re)creating using `mu init'
Can I increase the logging of `mu` and see what does actually "failed to open database" mean?
How can I tell mu4e to "please invoke mu with maximum debugging and logging?"
Thanks