"It looks like you haven't started Firefox in a while" message despite running Firefox daily
Categories
(Toolkit :: Startup and Profile System, defect, P3)
Tracking
()
People
(Reporter: djst, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/x-review-board-request
|
Details |
Reporter | ||
Updated•10 years ago
|
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Reporter | ||
Comment 5•10 years ago
|
||
Reporter | ||
Comment 6•10 years ago
|
||
Reporter | ||
Comment 7•10 years ago
|
||
Reporter | ||
Comment 8•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Reporter | ||
Comment 9•10 years ago
|
||
Comment 10•10 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Updated•9 years ago
|
Comment 13•9 years ago
|
||
Reporter | ||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
Comment 16•9 years ago
|
||
Comment 17•9 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment hidden (mozreview-request) |
Comment 19•7 years ago
|
||
mozreview-review |
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
mozreview-review |
Comment 22•7 years ago
|
||
mozreview-review-reply |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
mozreview-review |
Comment 27•7 years ago
|
||
mozreview-review-reply |
Comment 28•7 years ago
|
||
mozreview-review-reply |
Comment hidden (mozreview-request) |
Comment 30•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 31•7 years ago
|
||
mozreview-review |
Comment 32•7 years ago
|
||
Updated•7 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•4 years ago
|
Comment 37•3 years ago
|
||
ni'ing myself to see if we can bring the patch back from the dead.
Updated•3 years ago
|
Comment 38•3 years ago
|
||
The technique that the original patch was using here might still be salvageable, but we might be able to build on top of something more robust. Our Telemetry system already records how long it took to do a shutdown into a separate file that's then read upon subsequent startup...
Hey chutten, do you think the data stewards would be opposed to recording the last shutdown time in Glean somewhere?
Comment 39•3 years ago
|
||
I don't imagine any opposition at all. The proposed data collection is Cat1 (mayyybe Cat2 if you stretch), so it's all good.
(( And to put a finer point on it, Data Stewardship doesn't get to object: you just say what you want to collect and we ensure you have the documentation in line to either go immediately ahead (Category 1 and 2) or detour through Legal/Privacy first (Category 3+). If you need it, then we help you navigate the systems to make that possible... after helping you learn exactly what it is you're asking for : D ))
Comment 40•2 years ago
|
||
Like comment #13, I use FF daily but don't restart it unless there's an update to FF or my OS, which tends to happen once a quarter. I therefore see this dialog every time I start FF.
The idea behind this feature is to appeal to people who haven't used the current profile at all in 60+ days, right? The lockfile isn't terribly good at this. Why not key on the session manager or (if that's disabled) site data (cache, cookies, etc)?
Comment 41•2 years ago
|
||
(In reply to Adam Katz from comment #40)
The lockfile isn't terribly good at this. Why not key on the session manager or (if that's disabled) site data (cache, cookies, etc)?
None of those work for people who have permanent private browsing enabled (a surprisingly large number of users). I already answered this question in comment 15.
In any case, at this point the issue isn't that we don't know how to fix it (cf. comment 38) but that nobody has had time to do so.
Comment 42•2 years ago
|
||
I don't know if this is covered here as well or not, but I'm getting the same issue, but it's not because I keep Firefox running for long periods of time. In my case, mtime of .parentlock simple isn't updated on start.
This is seen with Firefox 91.12.0 ESR on RHEL 8.
Will this also be resolved by this patch? Or should I file a separate bug?
Comment 43•2 years ago
|
||
(In reply to Pierre Ossman from comment #42)
I don't know if this is covered here as well or not, but I'm getting the same issue, but it's not because I keep Firefox running for long periods of time. In my case, mtime of .parentlock simple isn't updated on start.
This is seen with Firefox 91.12.0 ESR on RHEL 8.
Will this also be resolved by this patch? Or should I file a separate bug?
There is no patch yet so it's unclear what will and won't be resolved. Do you know why the mtime of .parentlock
doesn't get updated on start on your machine? Are there particular permissions on the file or is it a specific kind of filesystem or something?
FWIW if/when this is annoying locally you can disable the message by creating a new preference in about:config
named browser.disableResetPrompt
and setting it to true.
Comment 44•2 years ago
|
||
(In reply to :Gijs (back Thu 8 Sep; he/him) from comment #43)
There is no patch yet so it's unclear what will and won't be resolved. Do you know why the mtime of
.parentlock
doesn't get updated on start on your machine? Are there particular permissions on the file or is it a specific kind of filesystem or something?
No idea. It's on NFS, but that shouldn't be that uncommon.
For my user, the path to the profile contains some symlinks, so the apparent path and real path will differ. However, another user on the same system is also seeing the same issue and doesn't have any symlink magic.
Anything interesting you want me to check? This is what a stat of the file says:
$ stat .parentlock
File: .parentlock
Size: 0 Blocks: 0 IO Block: 1048576 regular empty file
Device: 34h/52d Inode: 1990149117 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 210/ ossman) Gid: (20210/ ossman)
Context: system_u:object_r:nfs_t:s0
Access: 2022-06-24 07:21:48.886039831 +0200
Modify: 2022-06-23 19:01:35.374516460 +0200
Change: 2022-06-23 19:01:35.374516460 +0200
Birth: -
FWIW if/when this is annoying locally you can disable the message by creating a new preference in
about:config
namedbrowser.disableResetPrompt
and setting it to true.
Thanks. I'm hoping to help out in finding a proper fix though. :)
Updated•2 years ago
|
Comment 45•2 years ago
|
||
(In reply to Pierre Ossman from comment #44)
(In reply to :Gijs (back Thu 8 Sep; he/him) from comment #43)
There is no patch yet so it's unclear what will and won't be resolved. Do you know why the mtime of
.parentlock
doesn't get updated on start on your machine? Are there particular permissions on the file or is it a specific kind of filesystem or something?No idea. It's on NFS, but that shouldn't be that uncommon.
For my user, the path to the profile contains some symlinks, so the apparent path and real path will differ. However, another user on the same system is also seeing the same issue and doesn't have any symlink magic.
Anything interesting you want me to check? This is what a stat of the file says:
$ stat .parentlock File: .parentlock Size: 0 Blocks: 0 IO Block: 1048576 regular empty file Device: 34h/52d Inode: 1990149117 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 210/ ossman) Gid: (20210/ ossman) Context: system_u:object_r:nfs_t:s0 Access: 2022-06-24 07:21:48.886039831 +0200 Modify: 2022-06-23 19:01:35.374516460 +0200 Change: 2022-06-23 19:01:35.374516460 +0200 Birth: -
FWIW if/when this is annoying locally you can disable the message by creating a new preference in
about:config
namedbrowser.disableResetPrompt
and setting it to true.Thanks. I'm hoping to help out in finding a proper fix though. :)
Maybe :Mossop has ideas on why the lockfile mtime here wouldn't change. It would also be good to confirm this still happens with latest ESR (102.*)
Comment 46•2 years ago
|
||
I can confirm that the issue remains on Firefox ESR 102.4.0esr on RHEL 8.
Comment 47•2 years ago
|
||
(In reply to :Gijs (he/him) from comment #45)
(In reply to Pierre Ossman from comment #44)
(In reply to :Gijs (back Thu 8 Sep; he/him) from comment #43)
There is no patch yet so it's unclear what will and won't be resolved. Do you know why the mtime of
.parentlock
doesn't get updated on start on your machine? Are there particular permissions on the file or is it a specific kind of filesystem or something?No idea. It's on NFS, but that shouldn't be that uncommon.
For my user, the path to the profile contains some symlinks, so the apparent path and real path will differ. However, another user on the same system is also seeing the same issue and doesn't have any symlink magic.
Anything interesting you want me to check? This is what a stat of the file says:
$ stat .parentlock File: .parentlock Size: 0 Blocks: 0 IO Block: 1048576 regular empty file Device: 34h/52d Inode: 1990149117 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 210/ ossman) Gid: (20210/ ossman) Context: system_u:object_r:nfs_t:s0 Access: 2022-06-24 07:21:48.886039831 +0200 Modify: 2022-06-23 19:01:35.374516460 +0200 Change: 2022-06-23 19:01:35.374516460 +0200 Birth: -
FWIW if/when this is annoying locally you can disable the message by creating a new preference in
about:config
namedbrowser.disableResetPrompt
and setting it to true.Thanks. I'm hoping to help out in finding a proper fix though. :)
Maybe :Mossop has ideas on why the lockfile mtime here wouldn't change. It would also be good to confirm this still happens with latest ESR (102.*)
There is some different behaviour in our profile locking code to deal with NFS servers that can't handle our normal method of locking, or at least they couldn't when this code was last touched 17(!) years ago. Suffice to say I wouldn't rule out NFS as the culprit here. That said looking over the code the modification time stuff should all be determined before that so I'm not totally sure.
When you have Firefox open do you also see a lock
symlink in the profile folder?
If you try something like echo "" >> .parentlock
does it actually change the modification time on the file?
Comment 48•2 years ago
|
||
Sorry for the delay...
(In reply to Dave Townsend [:mossop] from comment #47)
When you have Firefox open do you also see a
lock
symlink in the profile folder?
Yes. There is a symlink there pointing to <ip address>:+<main pid>
. This file is updated when starting Firefox. It is not removed when Firefox closes, though.
If you try something like
echo "" >> .parentlock
does it actually change the modification time on the file?
Yes. mtime goes from 2022-06-23 19:01:35.374516460 +0200
to 2022-11-21 14:39:05.332846245 +0100
.
Here things get interesting, though. After this, Firefox will update mtime once. To 2022-11-21 14:39:56.313528188 +0100
. After that, it gets stuck again.
Comment 49•2 years ago
|
||
(In reply to Pierre Ossman from comment #48)
(In reply to Dave Townsend [:mossop] from comment #47)
When you have Firefox open do you also see a
lock
symlink in the profile folder?Yes. There is a symlink there pointing to
<ip address>:+<main pid>
. This file is updated when starting Firefox. It is not removed when Firefox closes, though.
Ok so the normal method of locking is working on NFS in this case, that's nice.
If you try something like
echo "" >> .parentlock
does it actually change the modification time on the file?Yes. mtime goes from
2022-06-23 19:01:35.374516460 +0200
to2022-11-21 14:39:05.332846245 +0100
.Here things get interesting, though. After this, Firefox will update mtime once. To
2022-11-21 14:39:56.313528188 +0100
. After that, it gets stuck again.
Ok I've managed to reproduce your issue and it is certainly a difference in how NFS shares update their file modification times and I can reproduce it with a simple C program. It appears that in a normal filesystem opening a file for writing but then not writing any data to it still updates the file modification time. On an NFS mount this doesn't appear to be the case, the modification time remains unchanged unless the file's contents change in some way. That makes some sense, but isn't what Firefox is expecting. The reason for the interesting behaviour you saw is that the command I gave you writes a newline character into the file. The first time Firefox starts it truncates the file so causing the modification time to change. The second time it truncates the file but that doesn't actually change the file in any way so the modification time does not change.
In order to fix this behaviour in NFS it looks like would need to either write some data into the file or use a system call to manually update the file modification time.
Comment 50•2 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Updated•2 years ago
|
Comment 51•1 year ago
|
||
The severity field is not set for this bug.
:mossop, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Description
•