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

Can't import from Chrome while Chrome is running #2049

Closed
goocreations opened this issue Nov 8, 2018 · 17 comments · Fixed by brave/brave-core#5336
Closed

Can't import from Chrome while Chrome is running #2049

goocreations opened this issue Nov 8, 2018 · 17 comments · Fixed by brave/brave-core#5336

Comments

@goocreations
Copy link

goocreations commented Nov 8, 2018

Description

In the new beta, when using the "Import bookmarks and settings" option under Linux (Ubuntu) and one selects a profile from Chrome, the following message shows:

To finish importing, close all Chrome windows.

Although Chrome is closed and not showing at all under the process list. This only happens on Linux, Windows works fine. Might be something wrong with the code that detects if Chrome is running.

Steps to Reproduce

  1. Have Chrome open and then open Brave.
  2. Go to Settings -> Import bookmarks and settings
  3. Select one of the detected Chrome Profiles. A popup dialog will show with the message "To finish importing, close all Chrome windows."

Expected result:

Settings from Chrome being imported.

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

Brave 0.57.6 Chromium: 71.0.3578.31 (Official Build) beta (64-bit)
Revision c88fdf2a4ce19a713615ca4fbde7a0d0b5fe2363-refs/branch-heads/3578@{#427}
OS Linux

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds?
    Both beta and dev

Website problems only:

  • Does the issue resolve itself when disabling Brave Shields?
    No
  • Is the issue reproducible on the latest version of Chrome?
    No

Additional Information

@bbondy bbondy added this to the 1.x Backlog milestone Nov 13, 2018
@a2research
Copy link

Same problem, cannot import bookmarks and settings with error message: "To finish importing, close all Chrome windows." when Chrome not running.

Brave 0.57.6 Chromium: 71.0.3578.31 (Official Build) beta (64-bit)
Revision c88fdf2a4ce19a713615ca4fbde7a0d0b5fe2363-refs/branch-heads/3578@{#427}
OS Linux Ubuntu 18.04.1 LTS
Chrome Version 70.0.3538.110 (Official Build) (64-bit)

@subat0mik
Copy link

Same issue.

Version 0.58.16 Chromium: 71.0.3578.98 (Official Build) (64-bit)
Ubuntu 18.04.1 LTS

@acramatte
Copy link

I had the same issue trying to import everything from my old brave.

Somehow by not checking the 'Browsing history' from the items to import it ended up working. I could then re-do the import and this time check the 'Browsing history' and now everything has been imported.

Not sure if that helps.

Old Brave: 0.25.304 with Muon 8.1.8
New Brave: Version 0.58.16 Chromium: 71.0.3578.98 (Official Build) (64-bit)
MacOS X High Sierra 10.13.4

@srirambv
Copy link
Contributor

Cant reproduce this issue. @goocreations @subat0mik @amilleranalytics do you guys have Google Hangouts extension running on your Chrome? If so there might be a background process running it which has locked the Chrome process.

@goocreations
Copy link
Author

No, no Hangouts extension installed or running. I tried this by restarting Ubuntu and not opening Chrome at all. I also checked the process list and as far as I can see there is no Chrome-related process running.

Any reason why Chrome must be closed? Seems like a read operation. If nothing is written to Chrome, then why not just import with Chrome "running"? Haven't checked the code, so might be a stupid suggestion.

@jessehonig
Copy link

I had the same issue. I fixed it by disabling and removing my DuckDuckGo extension from my Chrome Browser and then refreshing my Brave page.

@goocreations
Copy link
Author

Ahh, DuckDuckGo might be the issue.

@a2research
Copy link

a2research commented Jan 26, 2019 via email

@rebron rebron modified the milestone: 1.x Backlog Feb 7, 2019
@jmd1011
Copy link

jmd1011 commented Jul 13, 2019

New user trying to switch -- can agree, it's very off-putting. :(

Is there no resolution?

@jeremy-flusin
Copy link

If anyone on Ubuntu is still encountering this issue :

On Ubuntu, Chrome has a process on the top-right corner bar which keeps the lock file :

chrome

After killing it by right-clicking, I was able to import my settings. If it does not work, try remove your lock file located at : ~/.config/google-chrome/SingletonLock

That is to say that it's not a problem with Brave itself, btw.

@BikashPandey17
Copy link

BikashPandey17 commented Nov 3, 2019

On Windows, the issue might be because chrome continues running background apps even when it is closed. Turning this feature off in chrome -> settings -> system(Advanced) worked for me.
Link-> (chrome://settings/system)

@bsclifton
Copy link
Member

@jeremy-flusin great solution - that is what I've had to do also (on macOS, Linux, and Windows). Depending on the platform, the Chrome profile directory is different.

Sometimes, launching and then exiting Chrome would be enough to properly clean it up. But there were several times where this wouldn't work

@bsclifton bsclifton changed the title Import bookmarks and settings Can't import: "To finish importing, close all Chrome windows." Nov 18, 2019
@bsclifton
Copy link
Member

bsclifton commented Nov 18, 2019

We should be able to fix this - I believe we put a check in place for the Muon import, that would remove the files. Would need to investigate more

Definitely not a bug with Brave, but something we can handle more elegantly (by trying to delete the lock file)

cc: @rebron for prioritization

@bsclifton bsclifton added the priority/P4 Planned work. We expect to get to it "soon". label Jan 10, 2020
@juanaguillon
Copy link

I solved it.
Entry to google chrome and disable all extensions and aplications.

Try again importing on brave.

Hope you help.

@bsclifton
Copy link
Member

Bumping up to a P3 since this seems to be broken for many users and import is an important feature

@bsclifton bsclifton added priority/P3 The next thing for us to work on. It'll ride the trains. and removed priority/P4 Planned work. We expect to get to it "soon". labels Mar 12, 2020
@rebron rebron self-assigned this Mar 24, 2020
@rebron rebron removed their assignment Mar 31, 2020
@debugster
Copy link

If anyone on Ubuntu is still encountering this issue :

On Ubuntu, Chrome has a process on the top-right corner bar which keeps the lock file :

chrome

After killing it by right-clicking, I was able to import my settings. If it does not work, try remove your lock file located at : ~/.config/google-chrome/SingletonLock

That is to say that it's not a problem with Brave itself, btw.

Removing the SingletonLock file solved my issue. Thanks.

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented May 26, 2020

Verification passed on


Brave | 1.10.71 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
-- | --
Revision | 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS | Windows 10 OS Version 1803 (Build 17134.1006)

  • Verified the STR from the description
  • Verified that settings, bookmarks, and extensions are imported to brave even when chrome is opened

Verification passed on

Brave 1.10.71 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
Revision 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS Ubuntu 18.04 LTS
  • Verified the test plan from the description
  • Verified that settings, bookmarks, and extensions are imported to brave even when chrome is opened

Verification PASSED on macOS 10.15.5 Catalina x64 using the following build:

Brave | 1.10.86 Chromium: 83.0.4103.61 (Official Build) (64-bit)
-- | --
Revision | 94f915a8d7c408b09cc7352161ad592299f384d2-refs/branch-heads/4103@{#561}
OS | macOS Version 10.15.5 (Build 19F101)
  • ensured that importing from brave://welcome worked without issues while Chrome is opened
  • ensured that importing from brave://settings/importData worked without issues while Chrome is opened
  • ensured that passwords, history, extensions, bookmarks are being imported
  • ensured that you can use the imported passwords without any issues
  • checked brave://settings/siteData and ensured cookies weren't being imported

@rebron rebron changed the title Can't import: "To finish importing, close all Chrome windows." Can't import from Chrome while Chrome is running Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment