Hi,
I'm experiencing this on version 1.3.0 from Ubuntu PPA. Sync succeed but exit status is always 1. This break running mbsync as a sysntemd service.
Any idea? It seems this issue is mentioned a couple of times in the mailing list, didnt understand if it was really understood the underlying issue.
I can always reproduce the error with different parameters, example:
mbsync --config /home/$USER/.config/isync/mbsyncrc <myaccount></myaccount>
mbsync --verbose --list --create --config /home/$USER/.config/isync/mbsyncrc <myaccount></myaccount>
thanks
For completeness, I should mention that I can reproduce with latest 1.3.3 self compiled
did you also try the master branch? (make a backup of everything first, as you can't easily downgrade the sync state.)
instead of --verbose, use --debug, and send me a log. also a copy of your config.
also note that --create does not make any sense in conjunction with --list. it's not a problem, though.
but that --list returns a non-zero status is weird in itself - the log from that might be sufficient.
ah thanks for the tip. Running with
--debugshowed and interesting error:A reduced version of my configuration:
In the beginning I've let
mbsynccreate the full tree in~/.local.mailand I think it failed to create one subdir.Creating by hand that subdir worked around the issue.
The expected directory tree is:
Besides the issue itself it would be great if that error could bubble up without a
--debugflag.Hope this helps!
Thanks
Last edit: Journeyman 2020-10-05
If you spot anything else weird in my config, please let me know. It's the first time I use
mbsync.i can't imagine that this error was actually not printed. maybe you redirected only stdout and forgot about stderr?
which directory in particular was not created? note that the Store's Path is expected to exist; only actual mailboxes are created on demand.
the global Create and SyncState options should be at the top of the file, and it's actually a bug that mbsync doesn't complain about it. it's not a problem for these particular options, though.
I stand corrected. You're right, the error appears on stderr. I guess I got confused and didn't notice.
ok, now I understand. My expectation was that mbsync could create the entire tree of directories starting from the root
~/.local/mail. Fair enough.thanks for your quick and detailed help!
edit: I can't close this issue -__-
Last edit: Journeyman 2020-10-05