Issue when changing default location of Evolution mail folder to another device

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue when changing default location of Evolution mail folder to another device

Karim.afifi
Hi all,

I plan to use Evolution instead of Thundird, but I have an issue.

I need to  move folders from local machine to a Synology (on the LAN). I
changed default location according to thistutorial ( mv directories, and
create  symlinks) :

https://askubuntu.com/questions/507893/how-to-change-the-default-location-of-evolution-mail-folder-to-another-device

Unfortunatelly, I had somme issues : Evolution is running but I can't
send/receive any mail :

1) When I try to send a mail :

An error occurred while saving to your Outbox folder.
The reported error was “Cannot append message to maildir folder:
/KARIM/==EVOLUTION==/share/evolution/mail/local/.Outbox/tmp/1588633263.2662_9.ubuntu:
Permission denied”. The message has not been sent.

2) When I run F12 "Send/Receive"  :

Error while Storing folder “Inbox”. Attempt to write a readonly database


I can acces to the NAS without any problem (read & write) via a terminal
or via thunar, caja, etc..

Did I missed something ?
Could you please help me to fix this ?

Thanks a lot.
Karim

Evolution v3.36.1-2
Kubuntu 20.04





_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Gnome Evolution - General mailing list
On Tue, 2020-05-05 at 01:15 +0200, Karim.afifi wrote:
> /KARIM/==EVOLUTION==/share/evolution/mail/local/.Outbox/tmp/158863326
> 3.2662_9.ubuntu:
> Permission denied”. The message has not been sent.
>
> ...
>
> I can acces to the NAS without any problem (read & write) via a
> terminal
> or via thunar, caja, etc..

        Hi,
are you able to access that particular path with read/write? I'd guess
that something on that path has read only attributes. Or it's owned by
a different user. The system surely knows why it claims about
permissions.
        Bye,
        Milan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Gnome Evolution - General mailing list
Hi,

Thanks for pointing to this.
After a second check  I found that I can't write in user mode (in root
mode no problem, this confused me...).

I have some trouble, because directory still appears "read-only", even
if Synology is setting to "R/W". I noticed :

My CIFS volume is sharing with a Windows 10 user and an Ubuntu user
(each one has its own directory).
Is it a problem ?

My volume is sharing via CIFS, do you think that NFS should be
better/mandatory ?

Any advice will be appreciated :-)

Regards.
Karim




Le 05/05/2020 à 08:33, Milan Crha via evolution-list a écrit :

> On Tue, 2020-05-05 at 01:15 +0200, Karim.afifi wrote:
>> /KARIM/==EVOLUTION==/share/evolution/mail/local/.Outbox/tmp/158863326
>> 3.2662_9.ubuntu:
>> Permission denied”. The message has not been sent.
>>
>> ...
>>
>> I can acces to the NAS without any problem (read & write) via a
>> terminal
>> or via thunar, caja, etc..
> Hi,
> are you able to access that particular path with read/write? I'd guess
> that something on that path has read only attributes. Or it's owned by
> a different user. The system surely knows why it claims about
> permissions.
> Bye,
> Milan
>
> _______________________________________________
> evolution-list mailing list
> [hidden email]
> To change your list options or unsubscribe, visit ...
> https://mail.gnome.org/mailman/listinfo/evolution-list
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Karim.afifi
Hi,

Thanks for pointing to this.
After a second check  I found that I can't write in user mode (in root
mode no problem, this confused me...).

I have some trouble, because directory still appears "read-only", even
if Synology is setting to "R/W". I noticed :

My CIFS volume is sharing with a Windows 10 user and an Ubuntu user
(each one has its own directory).
Is it a problem ?

My volume is sharing via CIFS, do you think that NFS should be
better/mandatory ?

Any advice will be appreciated :-)

Regards.
Karim

>
>
>
> Le 05/05/2020 à 08:33, Milan Crha via evolution-list a écrit :
>> On Tue, 2020-05-05 at 01:15 +0200, Karim.afifi wrote:
>>> /KARIM/==EVOLUTION==/share/evolution/mail/local/.Outbox/tmp/158863326
>>> 3.2662_9.ubuntu:
>>> Permission denied”. The message has not been sent.
>>>
>>> ...
>>>
>>> I can acces to the NAS without any problem (read & write) via a
>>> terminal
>>> or via thunar, caja, etc..
>>     Hi,
>> are you able to access that particular path with read/write? I'd guess
>> that something on that path has read only attributes. Or it's owned by
>> a different user. The system surely knows why it claims about
>> permissions.
>>     Bye,
>>     Milan
>>
>> _______________________________________________
>> evolution-list mailing list
>> [hidden email]
>> To change your list options or unsubscribe, visit ...
>> https://mail.gnome.org/mailman/listinfo/evolution-list
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Ángel González
On 2020-05-05 at 17:41 +0200, Karim.afifi wrote:

> Thanks for pointing to this.
> After a second check  I found that I can't write in user mode (in root
> mode no problem, this confused me...).
>
> I have some trouble, because directory still appears "read-only", even
> if Synology is setting to "R/W". I noticed :
>
> My CIFS volume is sharing with a Windows 10 user and an Ubuntu user
> (each one has its own directory).
> Is it a problem ?
>
> My volume is sharing via CIFS, do you think that NFS should be
> better/mandatory ?
>
> Any advice will be appreciated :-)
>
> Regards.
> Karim

Hello Karim

How are you mounting the CIFS volume?

Note that if you are mounting it via gvfs there are some bugs that could
result in contents appearing as if read-only. See for instance
https://gitlab.gnome.org/GNOME/gvfs/-/issues/249
Not sure if that could be the case here, it's not clear how are those
"user mode" / "root mode" you were testing in.

Best regards


_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Pete Biggs
In reply to this post by Karim.afifi

Please don't top post on this list.

On Tue, 2020-05-05 at 17:41 +0200, Karim.afifi wrote:
> Hi,
>
> Thanks for pointing to this.
> After a second check  I found that I can't write in user mode (in root
> mode no problem, this confused me...).

And you learn the lesson of "don't do anything as root that doesn't
need it" and specifically "don't do anything as root with your own
account, it will come back and bite you".

>
> I have some trouble, because directory still appears "read-only", even
> if Synology is setting to "R/W". I noticed :
>
> My CIFS volume is sharing with a Windows 10 user and an Ubuntu user
> (each one has its own directory).
> Is it a problem ?
>
> My volume is sharing via CIFS, do you think that NFS should be
> better/mandatory ?

Permission/user mapping between CIFS and Unix is not an exact science.
I would tend to advise that you don't use a CIFS mount for your home
directory - it's OK if you are using it for remote storage, but not for
anything important.

It would be preferential to use an NFS mount. But that has issues as
well - file locking across NFS is an issue and performance/reliability
depends to a large extent on the server side.  I don't know what the
underlying OS is on the synology NAS, but it would be worth
investigating.

My general advice would be "don't do it". So, why are you wanting to
put your Evo storage on a network filesystem?  If it's purely for
storage, then get yourself a bigger disk! If it's for backup, then I
think the synology boxes can do SMTP & IMAP - use those to manage your
mail, life will be saner!

P.


_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Karim.afifi
Hi Pete,

"Please don't top post on this list."

OK...


"And you learn the lesson of "don't do anything as root that doesn't need it"

Yes, absolutely !


"It would be preferential to use an NFS mount. But that has issues as well - file locking across NFS is an issue and performance/reliability depends to a large extent on the server side. I don't know what the underlying OS is on the synology NAS, but it would be worth investigating".

I tried to share via NFS today, but I had another issue here :
- user => access denied (permissions)
- root (just to test) => no problem
It seems this behavior is because the computer and the NAS have different uid and gid.
Tomorrow, I will modify values on the NAS, I hope it will fix.


"My general advice would be "don't do it". So, why are you wanting to put your Evo storage on a network filesystem? If it's purely for storage, then get yourself a bigger disk! "

It's for "transparent backup"; I am working without I need to backup manually :
- All data (I mean for all applications, including Evo) are stored on the NAS.
- Data are automatically backup on the NAS every night (multiples RAID)
- Plus backup on external support every month.


"If it's for backup, then I think the synology boxes can do SMTP & IMAP - use those to manage your mail, life will be saner!"

Yes Synology supports SMTP, IMAP, etc..., but how to access to the files ? I will check how it works ans if there any good Linux client.


Regards.
Karim




_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Gnome Evolution - General mailing list
In reply to this post by Ángel González
Hello Karim
How are you mounting the CIFS volume?

Note that if you are mounting it via gvfs there are some bugs that could
result in contents appearing as if read-only. See for instance
https://gitlab.gnome.org/GNOME/gvfs/-/issues/249
Not sure if that could be the case here, it's not clear how are those
"user mode" / "root mode" you were testing in.

Best regards

Hi Angel,

I have seen this, but I did not worry because it dates from a few years. You've right, its not very clear, I will take a look...

I found something interesting here about uid/gid mismatching on NFS  :

https://askubuntu.com/questions/677922/how-can-i-get-read-write-access-to-nfs-share-of-synology-nas

I will try to modify  tomorrow, and I'll post the result.

Regards.
Karim



_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Karim.afifi
Hello Karim
How are you mounting the CIFS volume?

Note that if you are mounting it via gvfs there are some bugs that could
result in contents appearing as if read-only. See for instance
https://gitlab.gnome.org/GNOME/gvfs/-/issues/249
Not sure if that could be the case here, it's not clear how are those
"user mode" / "root mode" you were testing in.

Best regards

Hi Angel,

I have seen this, but I did not worry because it dates from a few years. You've right, its not very clear, I will take a look...

I found something interesting here about uid/gid mismatching on NFS  :

https://askubuntu.com/questions/677922/how-can-i-get-read-write-access-to-nfs-share-of-synology-nas

I will try to modify  tomorrow, and I'll post the result.

Regards.
Karim



_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Patrick O'Callaghan
In reply to this post by Karim.afifi
On Wed, 2020-05-06 at 03:40 +0200, Karim.afifi wrote:

> It's for "transparent backup"; I am working without I need to backup
> manually :
> - All data (I mean for all applications, including Evo) are stored on
> the NAS.
> - Data are automatically backup on the NAS every night (multiples RAID)
> - Plus backup on external support every month.
>
>
> "If it's for backup, then I think the synology boxes can do SMTP & IMAP
> - use those to manage your mail, life will be saner!"
>
> Yes Synology supports SMTP, IMAP, etc..., but how to access to the files
> ? I will check how it works ans if there any good Linux client.
>

[Please use proper quoting style to make it easier to read your posts.
See most other messages on this list, including this one, for examples]

If you use Evo with IMAP, you don't need to back up your mail, just
your settings (which don't generally change very often). That's
independent of using a NAS or not. I agree with Pete: using a NAS for
your home directory is not ideal. Much better is to keep the home
directory local and have a regular (say nightly) backup to the NAS. You
can do that without NFS or CIFS by using rsnapshot, borgbackup or any
number of other options (Synology may even have an app for that). Even
if the backup solution requires NFS write access (which rsync-based
solutions do not), it's just that one program running in the small
hours, not every piece of software that touches your home directory.
You can then mount the NAS read-only with NFS for data recovery, which
avoids locking issues entirely.

poc

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Pete Biggs
In reply to this post by Karim.afifi
On Wed, 2020-05-06 at 03:40 +0200, Karim.afifi wrote:
> Hi Pete,
>
> "Please don't top post on this list."
>
> OK...
>

Randomly putting quote marks around things is not the normal way of
quoting email content. Is there any reason why you can't just reply the
same way as everyone else??

>
>
> I tried to share via NFS today, but I had another issue here :
> - user => access denied (permissions)
> - root (just to test) => no problem
> It seems this behavior is because the computer and the NAS have different uid and gid.
> Tomorrow, I will modify values on the NAS, I hope it will fix.

Yes, you have to match up the UID's and GID's on the client and server,
otherwise it won't work.  That's not just for NFS, most remote storage
needs some form of user based access and you have to take care to make
sure that the control mechanisms work properly.

>
>
> "My general advice would be "don't do it". So, why are you wanting to
> put your Evo storage on a network filesystem? If it's purely for
> storage, then get yourself a bigger disk! "
>
> It's for "transparent backup"; I am working without I need to backup manually :
> - All data (I mean for all applications, including Evo) are stored on the NAS.
> - Data are automatically backup on the NAS every night (multiples RAID)
> - Plus backup on external support every month.

Backup doesn't need to be manual - there are lots of automated backup
solutions that are available as part of the OS repositories.

>
>
> "If it's for backup, then I think the synology boxes can do SMTP &
> IMAP - use those to manage your mail, life will be saner!"
>
> Yes Synology supports SMTP, IMAP, etc..., but how to access to the
> files ? I will check how it works ans if there any good Linux
> client.
>
What do you mean "how to access the files"?  If your mail is stored on
the synology box and you access it by IMAP, then you don't need to
access any of the "files". The issue you should be looking at is how to
get the mail onto the synology box in the first place.  But by far the
best solution is to use IMAP to access your mail on your mail
provider's server. You have a free.fr mail address, if that's where
your mail ends up, then they have IMAP, so use it.  Your mail will
remain on their servers, nothing of real importance will be held on
your local machine other than configuration - and since that doesn't
really change often, a daily or weekly backup of that to your synology
box will be sufficient.

P.


_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Adam Tauno Williams
In reply to this post by Pete Biggs
> It would be preferential to use an NFS mount. But that has issues as
> well - file locking across NFS is an issue and
> performance/reliability
> depends to a large extent on the server side.  I don't know what the
> underlying OS is on the synology NAS, but it would be worth
> investigating.

If you NFS mount your home directory - and your NFS server is sane [as
AFAIK all moderately recent servers are]

1.) You won't need to "relocate" anything.
2.) You can let the NAS or server do all the backups

That is the 'normal' way to do this.  Remote mount your entire home
directory - don't try to peace meal things.  It works just fine.  I've
had hundreds of LINUX desktops remote mounting their home directory -
it works.

Yes, your uid/gid number mapping **MUST WORK**.  That is between your
server and your client; it is not application specific.  Modern NFS has
multiple solutions for this problem.
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Issue when changing default location of Evolution mail folder to another device

Patrick O'Callaghan
On Wed, 2020-05-06 at 13:04 -0400, Adam Tauno Williams wrote:
> That is the 'normal' way to do this.  Remote mount your entire home
> directory - don't try to peace meal things.  It works just fine.  I've
> had hundreds of LINUX desktops remote mounting their home directory -
> it works.

Me too, when I was running a departmental server and people could 'hot
desk'. At home I prefer not to do that as my local SSD is much faster
than a relatively slow NAS, even when it's on an Gigabit connection. In
fact my NAS blew up a few weeks ago so I'm glad I didn't. No data was
lost but the box itself stopped working (it was 10 years old and not
worth repairing).

poc

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list