Git Product home page Git Product logo

Comments (9)

djcb avatar djcb commented on August 15, 2024 1

I don't use snap, but yeah likely it stops you from writing outside some specific dirs. You can use a custom --muhome (or MUHOME); see manpage and mu4e-mu-home for mu4e (see the manual). Or you can just build mu yourself, and things should work with the defaults.

Good luck!

from mu.

djcb avatar djcb commented on August 15, 2024

Hmmm... Perhaps mu is already running? That could lock the database.

from mu.

grauschnabel avatar grauschnabel commented on August 15, 2024

Nothing in ps ax and there is no xapian directory. Is there an other way to look for?

And shouldn't there be another error message?

from mu.

grauschnabel avatar grauschnabel commented on August 15, 2024

Even reboot and logging in via tty and just running that mu command does not work. And I cannot see a permission problem. When I try it with sudo it works and tells me using directory: /root/snap/maildir-utils/629/.cache/mu/xapian so maybe it should use /home/martin/snap/... instead of my /home/martin/.cache/... ?

Maybe there is just a configuration mistake ant the snap is not allowed to write to ~/.cache ?

from mu.

djcb avatar djcb commented on August 15, 2024

Another error message?

Anyway, you can try to see if it works for some other dir:

mu init --muhome=/tmp/bla --maildir=~/Maildir

and you could try to run mu init with strace, to see if there's some underlying error.

from mu.

grauschnabel avatar grauschnabel commented on August 15, 2024

mu init --muhome=/home/martin/foo --maildir=~/Maildir works fine.
mu init --muhome=/home/martin/.foo --maildir=~/Maildir gives the error.

Using strace on both commands the main difference is that on the later with the error the line

recvmsg(3,` {msg_namelen=112}, 0)        = -1 EAGAIN (Resource temporarily unavailable)

But I don't really understand that.

from mu.

grauschnabel avatar grauschnabel commented on August 15, 2024

on the other hand --muhome="/home/martin/snap/maildir-utils/current/.cache/mu" works fine, but then I have to do that witch all the time. Shouldn't it be there by default?

Interestingly sudo -u martin mu init --maildir /home/martin/Maildir/ uses /home/martin/snap/maildir-utils/629/.cache/mu/xapian when using with the user martin. So what is wrong in my config?

from mu.

grauschnabel avatar grauschnabel commented on August 15, 2024

unset XDG_CACHE_HOME before running mu init seems to solve the problem now mu uses /home/martin/snap/maildir-utils/629/.cache/mu/xapian and even mu index works fine. But in emacs mu4e would not start seems it loads the variable from somewhere. :(

Now I need to find out what is setting this variable on startup or login and why.

Finally I found it just for people who want to know the anser:

I tried ubuntuDDE desktop, see https://itsfoss.com/install-deepin-ubuntu/
the "offical ppa" instructions will install the file /etc/profile.d/deepin-xdg-dir.sh which is setting the XDG_CACHE_HOME and that makes mu installed via snap to fail. The profile is not loaded when using sudo. I don't need deepin, was just curious so this is easy to fix.

from mu.

grauschnabel avatar grauschnabel commented on August 15, 2024

Thanks for your time!

from mu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.