Nw.js: Upadte version and want reset use old version

Created on 10 Mar 2017  Â·  8Comments  Â·  Source: nwjs/nw.js

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 ?

P2 bug triaged

Most helpful comment

You'll need to check user data dir: http://docs.nwjs.io/en/latest/References/Command%20Line%20Options/#-user-data-dir

All 8 comments

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

@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.

@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.

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.

You'll need to check user data dir: http://docs.nwjs.io/en/latest/References/Command%20Line%20Options/#-user-data-dir

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?

yes

On Tue, Mar 21, 2017 at 11:23 AM Rohan Deshpande notifications@github.com
wrote:

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

—
You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub
https://github.com/nwjs/nw.js/issues/5761#issuecomment-287966001, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAKGGYQxEE6oC_TSPQYkcKAAxZ1GYRYYks5rn0K8gaJpZM4MY3YV
.

Hello, I still have this issue. I tried deleting those 2 folders.
https://github.com/nwjs/nw.js/issues/6188

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jportoles picture jportoles  Â·  3Comments

azer picture azer  Â·  3Comments

nawazishali picture nawazishali  Â·  3Comments

adam-lynch picture adam-lynch  Â·  4Comments

xland picture xland  Â·  3Comments