Re: FireFox keeps loosing data

2020-11-13 Thread Guido Falsi via freebsd-ports

On 13/11/20 07:58, Andrea Venturoli wrote:

On 11/12/20 9:52 PM, Dave Horsfall wrote:

Never use file locking on NFS.  Period.  One day it *will* bite you, 
due to some yet-to-be-discovered bug.  In the meantime, feel free to 
ignore the advice of those who have been there before...


Thanks for the advice.
What protocol do you suggest, instead, for sharing data to a diskless 
client?


I don't have a suggestion for "diskless" but since we're not i  the 80's 
anymore, all machines come with some kind of disk controller and small 
disks (even decent SSD ones) don't cost so much, I'd suggest you install 
a minimal OS on the machine and use something like unison or syncthing 
to synchronize what you need.


I'm doing this with my home directory with very good results. Personally 
I don't sync firefox and thunderbird profiles though, and have other 
exceptions (cache directories for npm and php-composer for example).


I also think the synchronizing approach has advantage: Multiple copies 
of the data are usually a good thing, I can use this with my laptop too, 
just remember to sync it back as soon as I am back home, before using 
other machines!


YMMV

--
Guido Falsi 
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FireFox keeps loosing data

2020-11-12 Thread Andrea Venturoli

On 11/12/20 9:52 PM, Dave Horsfall wrote:

Never use file locking on NFS.  Period.  One day it *will* bite you, due 
to some yet-to-be-discovered bug.  In the meantime, feel free to ignore 
the advice of those who have been there before...


Thanks for the advice.
What protocol do you suggest, instead, for sharing data to a diskless 
client?
The only other I used is SMB and it proved far more problematic than 
NFS, in my experience.


 bye & Thanks
av.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FireFox keeps loosing data

2020-11-12 Thread Dave Horsfall

On Thu, 12 Nov 2020, Andrea Venturoli wrote:

Firefox uses sqlite databases to store cookies, history and other 
items. You should never store these on NFS.


Really? It has worked properly for years; it's only been broken for some 
months. Besides history works perfectly. Wouldn't any corruption produce 
some sort of log somewhere?


Never use file locking on NFS.  Period.  One day it *will* bite you, due 
to some yet-to-be-discovered bug.  In the meantime, feel free to ignore 
the advice of those who have been there before...


-- Dave
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FireFox keeps loosing data

2020-11-11 Thread Andrea Venturoli

On 11/11/20 8:05 PM, Dimitry Andric wrote:


Firefox uses sqlite databases to store cookies, history and other items.
You should never store these on NFS.


Really?
It has worked properly for years; it's only been broken for some months.
Besides history works perfectly.
Wouldn't any corruption produce some sort of log somewhere?

The SQLite FAQ say:

SQLite depends on the underlying filesystem to do locking as the 
documentation says it will. But some filesystems contain bugs in their 
locking logic such that the locks do not always behave as advertised. 
This is especially true of network filesystems and NFS in particular. If 
SQLite is used on a filesystem where the locking primitives contain 
bugs, and if two or more threads or processes try to access the same 
database at the same time, then database corruption might result.


AFAIK NFS has locking (especially NFSv4 does not require separate 
sideband services).

So we are talking about bugs.
Is it a bug in FreeBSD's NFSv4?
In SQLite port?
In FireFox? In FireFox port?

Just so I know where to look further.




Ergo, put your profile folder on a local filesystem.


I might not have one in some cases...

 bye & Thanks
av.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FireFox keeps loosing data

2020-11-11 Thread Dimitry Andric
On 11 Nov 2020, at 18:31, Andrea Venturoli  wrote:
> 
> Since some months I've been experiencing data loss with Firefox.
> I'm currently running Firefox-esr-78.4.1 on FreeBSD 12.2/amd64.
> 
> I guess this is related to cookies, since it loses saved form data and I keep 
> having to login again on sites where I had logon and never logout, accept 
> privacy statements and tweak cookie settings again and again, etc...
> History is working perfectly, however.
> 
> This is not systematic: i.e. I may login on 
> https://bugs.freebsd.org/bugzilla/, come back tomorrow morning and still be 
> logged in, try again in the afternoon and find I've been logged out.
> I may start FireFox, go to a site, accept cookies, restart FireFox and need 
> to accept them again or it might keep settings for some days even across 
> reboots.
> 
> Running in console does not seem to show relevant messages.
> 
> I must say my home is on NFSv4 (server also FreeBSD 12.2/amd64).
> 
> Any hint on where to look to solve this?

Firefox uses sqlite databases to store cookies, history and other items.
You should never store these on NFS. Ergo, put your profile folder on a
local filesystem.

-Dimitry



signature.asc
Description: Message signed with OpenPGP


FireFox keeps loosing data

2020-11-11 Thread Andrea Venturoli

Hello.

Since some months I've been experiencing data loss with Firefox.
I'm currently running Firefox-esr-78.4.1 on FreeBSD 12.2/amd64.

I guess this is related to cookies, since it loses saved form data and I 
keep having to login again on sites where I had logon and never logout, 
accept privacy statements and tweak cookie settings again and again, etc...

History is working perfectly, however.

This is not systematic: i.e. I may login on 
https://bugs.freebsd.org/bugzilla/, come back tomorrow morning and still 
be logged in, try again in the afternoon and find I've been logged out.
I may start FireFox, go to a site, accept cookies, restart FireFox and 
need to accept them again or it might keep settings for some days even 
across reboots.


Running in console does not seem to show relevant messages.

I must say my home is on NFSv4 (server also FreeBSD 12.2/amd64).

Any hint on where to look to solve this?

 bye & Thanks
av.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"