Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac update relaunch doesn't launch new version of Brave #977

Closed
RyanJarv opened this issue Sep 6, 2018 · 20 comments · Fixed by brave/brave-core#1041
Closed

Mac update relaunch doesn't launch new version of Brave #977

RyanJarv opened this issue Sep 6, 2018 · 20 comments · Fixed by brave/brave-core#1041
Assignees
Labels
feature/updater OS/macOS priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass-macOS QA/Yes release-notes/include

Comments

@RyanJarv
Copy link
Contributor

RyanJarv commented Sep 6, 2018

Description

When updating from 0.54.4 to 0.55.1 clicking relaunch after the install closes the current window but doesn't launch the new version.

Steps to Reproduce

  1. Install 0.54.4
  2. Navigate to chrome://chrome
  3. Click relaunch after update is done downloading/installing

Actual result:

Browser is closed and we don't see the new version open.

Brave can be launched again manually and will be on the right version though.

Expected result:

Clicking relaunch open's the updated version.

Reproduces how often:

Always

Brave version (about:brave info)

0.54.4 -> 0.55.1

Reproducible on current release:

Yes

Seeing this in Console around the time of the update:

error taskgated-helper com.brave.Browser.dev: Unsatisfied entitlements: com.apple.application-identifier

@RyanJarv RyanJarv self-assigned this Sep 6, 2018
@RyanJarv RyanJarv added this to the Releasable builds 0.55.x milestone Sep 6, 2018
@petemill
Copy link
Member

petemill commented Sep 8, 2018

Same happened with 0.55.1 -> 0.55.2 for @bsclifton and me

@w0ts0n
Copy link
Member

w0ts0n commented Sep 8, 2018

Just wanted to note, it did work for me. Also on MacOS.

@aekeus
Copy link
Member

aekeus commented Sep 8, 2018

Did not work for me 0.55.1 -> 0.55.2 (macOS)

1 similar comment
@bbondy
Copy link
Member

bbondy commented Sep 9, 2018

Did not work for me 0.55.1 -> 0.55.2 (macOS)

@bsclifton
Copy link
Member

Didn't for for me again ☹️ 0.55.2 => 0.55.3

@bsclifton
Copy link
Member

With this last update (0.55.3 => 0.55.4), it looks like it tried to relaunch? but then quit really quick (the icon blipped). Had to manually relaunch 🙀

@yrliou
Copy link
Member

yrliou commented Sep 19, 2018

Did not work for me 0.55.4 -> 0.55.5 (macOS)

@ltilve ltilve self-assigned this Oct 5, 2018
@ltilve
Copy link

ltilve commented Oct 8, 2018

I was also able to still reproduce the issue when updating from the latest version.

Something that seems it could be related with the issue, is an error message related with the signing of the package that we had been able to see when starting the browser from the command line:

chrome-brave-dev

@ltilve
Copy link

ltilve commented Oct 9, 2018

I have been using directly the call to chrome://restart after installing the Mac package, which is always properly relaunching the browser when triggered before updating, and also after the updated version was started afterwards; but which has the very same issue if it's manually triggered at the moment the update download is completed.

reload

So the issue is apparently not coming from anything specific of the relaunch action on the settings/help or any restart, but just when the bundle has changed.

@bbondy
Copy link
Member

bbondy commented Oct 12, 2018

The task involves some devops work for @mbacchi and we won't be able to get to it in time for 0.55.x So moving it as a priority/p2 in 1.x for asap attention when we get past this release. We'll uplift it into the next milestone or a hotfix.

@bbondy bbondy modified the milestones: 0.55.x, 1.x Backlog Oct 12, 2018
@bbondy bbondy added the priority/P2 A bad problem. We might uplift this to the next planned release. label Oct 12, 2018
@kjozwiak
Copy link
Member

@bbondy @rebron @bsclifton we should really get this fixed. Every time we release an update, we have some complaints from the community and internally. Users who don't know this issue exists usually think that thier update failed. Added this into the General so we can discuss during our triage meetings.

@w0ts0n
Copy link
Member

w0ts0n commented Nov 21, 2018

We implemented/setup a new omaha system to fix the slow downloads issue. Once we are done testing and are sure it's fixed, we can run an update on the staging sparkle/omaha which may fix this issue. We should wait on Simon to get back from PTO too.

We know this has to be fixed, but I'm not calling this urgent. it's an annoying bug, but not a blocker.

@bridiver
Copy link
Contributor

I saw (com.apple.xpc.launchd.oneshot.0x1000004c.Brave Browser[93221]): Service exited with abnormal code: 7 in the logs, but not sure if that was from the browser exiting to upgrade or a failed attempt to relaunch. I didn't see any crash reports

@simonhong simonhong self-assigned this Dec 4, 2018
@simonhong
Copy link
Member

simonhong commented Dec 4, 2018

Need to check the difference between quit&open and relaunch. Quit & open doesn't have problem after installing update. Also need to check the copy timing of downloaded updates and it is related with this problem.

@simonhong
Copy link
Member

simonhong commented Dec 4, 2018

Also, need to find how to update test on test server and how to build signed image(not sure it's possible on my local).

@w0ts0n
Copy link
Member

w0ts0n commented Dec 4, 2018

FYI, team will look into this next week.

@simonhong
Copy link
Member

simonhong commented Dec 6, 2018

I think sparkle isn't compatible with chromium's relaunch api.
Instead, we should use sparkle's own install and relaunch mechanism.

@LaurenWags
Copy link
Member

LaurenWags commented Dec 17, 2018

Verified passed on macOS x64 10.12.6 when updating from 0.58.12 -> 0.58.14 on test channel.

Brave 0.58.14 Chromium: 71.0.3578.98 (Official Build) (64-bit)
Revision 15234034d19b85dcd9a03b164ae89d04145d8368-refs/branch-heads/3578@{#897}
OS Mac OS X

cc @kjozwiak for verification on his mac

Verification PASSED on macOS 10.14 x64 using the following build:

Brave 0.58.14 Chromium: 71.0.3578.98 (Official Build) (64-bit)
Revision 15234034d19b85dcd9a03b164ae89d04145d8368-refs/branch-heads/3578@{#897}
OS Mac OS X
  • updated 0.58.12 --> 0.58.14 using the test channel x5 times without issues
  • ensured that tabs/windows were being restored without issues
  • ensured that bookmarks/password and other personal data was still intact

@michaelkruglos
Copy link

michaelkruglos commented Mar 21, 2021

Doesn't work in the recent version
When trying in settings:

Update failed (error: 12)

Error details:
An error occurred while relaunching Brave Browser, but the new version will be available next time you run Brave Browser.

@kjozwiak
Copy link
Member

kjozwiak commented Apr 8, 2021

Doesn't work in the recent version
When trying in settings:

Update failed (error: 12)
Error details:
An error occurred while relaunching Brave Browser, but the new version will be available next time you run Brave Browser.

Assuming you saw the above via brave://settings/help? Did Brave eventually update after restarting? BTW, this is a different issue compared to the above one so if you're still having issues updating, please create a new issue via the following:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/updater OS/macOS priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass-macOS QA/Yes release-notes/include
Projects
None yet
Development

Successfully merging a pull request may close this issue.