XULRunner "Could not determine any profile running in backgroundtask mode!" window appears intermittently (maybe Nightly is updating in background?)
Categories
(Toolkit :: Startup and Profile System, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: mayankleoboy1, Assigned: erchen)
References
Details
(Whiteboard: [fidedi])
Attachments
(11 files, 2 obsolete files)
44.72 KB,
image/png
|
Details | |
228.52 KB,
image/png
|
Details | |
42.57 KB,
text/plain
|
Details | |
111.01 KB,
image/png
|
Details | |
511.85 KB,
application/octet-stream
|
Details | |
35.01 KB,
image/png
|
Details | |
171.57 KB,
image/png
|
Details | |
4.89 KB,
application/octet-stream
|
Details | |
3.78 KB,
application/octet-stream
|
Details | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Recently started seeing this window. While this window is open, I get the second message if I manually try to search for updates.
Reporter | ||
Comment 1•10 months ago
|
||
Reporter | ||
Comment 2•10 months ago
|
||
Reporter | ||
Comment 3•10 months ago
|
||
Updated•9 months ago
|
Comment 4•8 months ago
|
||
Are you still experiencing this problem? I'm suspicious that the issue is that the background update task is attempting to run when there is no default profile set. It's not surprising to me that this would fail to work, but it is surprising to me that we would show a window in that case. We really shouldn't be showing any kind of UI from the Background Update Task. I'm also surprised that we aren't unregistering the background update task.
Reporter | ||
Comment 5•8 months ago
|
||
I still see this everyday. I am pretty sure I have set a default profile.
Comment 6•8 months ago
|
||
(In reply to Mayank Bansal from comment #5)
I still see this everyday. I am pretty sure I have set a default profile.
Could you check in about:profiles
? There should be one entry without a "Set as Default Profile" button.
Also, could you provide background update task logs? These can be obtained by navigating to about:support
, clicking on the "Open Folder" button in the "Update Folder" row, and then finding backgroundupdate.moz_log
.
Reporter | ||
Comment 7•8 months ago
|
||
Reporter | ||
Comment 8•8 months ago
|
||
Comment 9•8 months ago
|
||
Well, it looks like the issue is happening here. I believe that this is before anything meaningful gets logged, which is pretty consistent with the recent log entries that show nearly nothing. But (a) I don't think we should show that or any dialog in background task mode and (b) it's concerning to me that we are getting that at all when it seems that there is a default profile.
I would like to investigate this further, but it will need to wait a bit. I'm incredibly busy right this moment. In the meantime, I am going to increase the severity because I would consider the combination of the above 2 issues to be serious enough to warrant it.
Comment 10•8 months ago
|
||
The same error message was reported in the German Firefox support forum three weeks ago when a user tried to install Firefox 122.0.1 over Firefox 122.0. We have not received any further reports.
Updated•8 months ago
|
Updated•8 months ago
|
Comment 11•7 months ago
|
||
We have the same error here too. German Version 123.0. Seems to be occurring daily for the past few weeks.
Reporter | ||
Comment 12•7 months ago
|
||
I sometimes get this window too.
Comment 13•7 months ago
•
|
||
I had a family member report this to me over the weekend. They're seeing it several times a day. I also asked what experiments were listed in about:studies, and they were:
- BackgroundUpdate: Enable unelevated installations (rollout) - 3 release
- Launch Firefox on OS restart - treatment A rollout
- spocs endpoint rollout (release)
- MozillaAccounts toolbar button default visibility rollout
- add an image to PDF (with alt text) - rollout
- upgrade spotlight rollout
- CSV import (release rollout)
Comment 14•7 months ago
|
||
Hi!
It first looks as if the error message from Mayank Bansal was unrelated as this bug is about:
Could not determine any profile running in backgroundtask mode
and the image Attachment 9390378 [details] shows:
This profile was last used with a newer version of this application. Please create a new profile.
However, I wonder if the common denominator might just be our assumption about headless mode not displaying dialogs, which in fact seems to be not yet fully implemented/for all edge cases and that we should conditionally use printf_stderr
instead of Output
, like here? That would consequently mean, that these are not actual error messages indicating an real error, but log messages indicating that we found the correct abort condition. That said I realize that this is not an explanation why this would start happening now, but in fact the linked bug suggests that this already happened one year ago and I quote Nick Alexander:
There are two situations that I know of that can cause this, both unusual:
- The background task profile directory (in Background Tasks Profiles/) has been deleted entirely.
- The background task profile has been downgraded (see https://bugzilla.mozilla.org/show_bug.cgi?id=1792756).
So I am going to link Bug 1792756 as well here.
And question to Nick: I wonder if and if, how updates for unelevated installations could have triggered the error to be shown more frequently? Let me know if you got an idea, because I am going to look on it, but I can only work time boxed right now and am not sure how far that will get me with this.
Comment 15•7 months ago
|
||
Not sure if this is helpful, but I debugged this with my family member over the weekend. My primary goal was to prevent the dialog from appearing again, and collecting general diagnostic data was a distant secondary goal.
What I found out is that there was an item in profiles.ini for the background update task, but no corresponding profile folder within the background task profiles folder. After creating that folder and manually running the background update task via the Windows Task Scheduler, I confirmed that the dialog did not reappear.
Comment 16•7 months ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #15)
Not sure if this is helpful, but I debugged this with my family member over the weekend. My primary goal was to prevent the dialog from appearing again, and collecting general diagnostic data was a distant secondary goal.
What I found out is that there was an item in profiles.ini for the background update task, but no corresponding profile folder within the background task profiles folder. After creating that folder and manually running the background update task via the Windows Task Scheduler, I confirmed that the dialog did not reappear.
Thanks for sleuthing, Mike. Do you recall if this installation was privileged/elevated, i.e., in c:/Program Files
?
It seems to me that we can teach the background task profile system to create the profile folder if it's missing. See also Bug 1873274, which is about harmonizing some other detail of the profile system about missing profile folders.
Comment 17•7 months ago
|
||
I believe the installation is under Program Files
, yes.
Comment 18•7 months ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #17)
I believe the installation is under
Program Files
, yes.
Thanks!
For Max: that almost certainly rules out any interaction with unelevated updates.
Reporter | ||
Comment 19•7 months ago
|
||
Reporter | ||
Comment 20•7 months ago
|
||
Comment 21•6 months ago
•
|
||
STR
- Run
firefox --backgroundtask defaultagent do-task asdf
. - Delete
%appdata%/Mozilla/Firefox/Background Task Profiles/[hash].MozillaBackgroundTask-[progid]-defaultagent
. - Run
firefox --backgroundtask defaultagent do-task asdf
.
Expectation:
Background task runs, recreating it's profile.
Actual:
"Could not determine any profile running in backgroundtask mode!" message box appears.
Note:
Deleting the related entry from [BackgroundTasksProfiles]
in profiles.ini fixes the issue.
Comment 22•6 months ago
|
||
Marking this as S4 due to it no longer being user-visible as per the fix in Bug 1889464.
Reporter | ||
Comment 23•6 months ago
|
||
Hi Nipun,
Since bug 1889464, I do not see the error message from comment 1.
But I still see the error message from comment 12. Can that be "fixed" as well?
Comment 24•6 months ago
|
||
That's tracked in bug 1876714 and is marked as lower severity due to it generally requiring the user to install multiple channels of Firefox and mix and match profiles between them.
Comment 25•5 months ago
|
||
Here comes a version to automatically create a new profile with the old name. This makes it work a little bit like $HOME/.local/
kind of directories. The version contains some printf debugging and does not restore the actual name of the original profile (only creates its former path name). The reason I am committing it in this unfinished state is to hand it over. I hope you find it useful and do not forget to adapt the mozconfig
and comment out # ac_add_options --enable-artifact-builds
to try it.
Comment 26•5 months ago
|
||
Assignee | ||
Comment 27•5 months ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #15)
Not sure if this is helpful, but I debugged this with my family member over the weekend. My primary goal was to prevent the dialog from appearing again, and collecting general diagnostic data was a distant secondary goal.
What I found out is that there was an item in profiles.ini for the background update task, but no corresponding profile folder within the background task profiles folder. After creating that folder and manually running the background update task via the Windows Task Scheduler, I confirmed that the dialog did not reappear.
Hi Mike, do you remember if and where profiles.ini is accessed within the source code? I'm currently adding the functionality to automatically recreate a missing default profile. To do so, I need to read profiles.ini to obtain the original profile name. It'll be helpful to see how "profile.ini" is previously accessed in the code so I can model my code similarly.
Comment 28•5 months ago
|
||
Hi Eric,
It's accessed fairly early on in the lifetime of the process, but my experience with profiles.ini drops off pretty quickly after that. I recommend asking Mossop or jhirsch in Matrix, or needinfo'ing one of them in the bug you've been assigned for that work to get more details.
Assignee | ||
Comment 29•5 months ago
|
||
Assignee | ||
Comment 30•5 months ago
|
||
Updated•5 months ago
|
Updated•5 months ago
|
Assignee | ||
Comment 31•5 months ago
|
||
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Comment 32•5 months ago
|
||
Comment 33•5 months ago
|
||
bugherder |
Updated•5 months ago
|
Updated•5 months ago
|
Description
•