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

Upadte version and want reset use old version #5761

Closed
zhailei31665431 opened this Issue Mar 10, 2017 · 8 comments

Comments

Projects
None yet
5 participants
@zhailei31665431

zhailei31665431 commented Mar 10, 2017

Your profile can not be used because it is from a newer version of NW.js.

Some features may be unavailable. Please specify a different profile directory or use a newer version of NW.js.

How Fix ?

@Christywl

This comment has been minimized.

Contributor

Christywl commented Mar 10, 2017

I also meet this issue on my Mac. I used nwjs-sdk 0.19.5, 0.20.0, 0.20.3 for some testing and met this issue now. The message in pop-up windows is same as this bug, and the log in Terminal is:
Cannot initialize the web database: 2

Close these pop-up windows, and app will be launched. The app window closed if I hit 'X'. But the icon still shows in the dock unless I force to quit in the right click options.

Try to delete the following files, but it's not helpful.

/Users/Your Name/Library/Application Support/nwjs/Default/Web Data 
/Users/Your Name/Library/Application Support/nwjs/Default/Web Data-journal
@rohan-deshpande

This comment has been minimized.

rohan-deshpande commented Mar 20, 2017

@Christywl's fix did not fix this issue for me. Wondering why this issue was closed? Would like to know what the cause of this is.

@rogerwang

This comment has been minimized.

Member

rogerwang commented Mar 21, 2017

@rohan-deshpande Chromium changed the format of user data dir at some point. So if you run the same program once with newer version and then switch back to the old version you'll see the warning. It's not a bug of NW.

@rohan-deshpande

This comment has been minimized.

rohan-deshpande commented Mar 21, 2017

Hmm I can produce this bug in a different way though. I am using the nw npm package v0.20.3-sdk. Manifest is as follows and is contained within the app directory which also contains an index.html

{
  "main": "index.html",
  "name": "my-app",
  "version": "0.0.1",
  "window": {
    "title": "my-app",
    "frame": true,
    "width": 1024,
    "height": 768,
    "position": "center"
  },
  "node-remote": "<all_urls>"
}

When I nw app I get the error as well as

[53862:32263:0321/140138.618737:ERROR:web_database_backend.cc(113)] Cannot initialize the web database: 2

This is a fresh directory with a fresh install of nw.

@rogerwang

This comment has been minimized.

Member

rogerwang commented Mar 21, 2017

@rohan-deshpande

This comment has been minimized.

rohan-deshpande commented Mar 21, 2017

Ah! right am I cool to just delete these directories? Once the app boots again it will populate them again right?

One thing though that is confusing me - I didn't change the nw version. I've consistently been using v0.20.3-sdk. Wouldn't this prevent the issue?

@rogerwang

This comment has been minimized.

Member

rogerwang commented Mar 21, 2017

@quantumproducer

This comment has been minimized.

quantumproducer commented Oct 4, 2017

Hello, I still have this issue. I tried deleting those 2 folders.
#6188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment