Can't restore nodebb
-
i have installed nodebb on a new machine,
I have copied my previous working .rdb file back into /var/lib/redis/dump.rdb
but when i run sudo ./nodebb upgrade ... i get the following error:
error: [upgrade] Errors were encountered while updating the NodeBB schema: ERR value is not a valid float
and when i Run nodebb dev i get
warn: Your NodeBB schema is out-of-date. Please run the following command to bring your dataset up to spec:
12/8 12:05 [14923] - warn: ./nodebb upgradePlease help!
Thanks
-
-
I got it kind of working on 0.6x but only by after resetting all plugins... i then upgraded to 0.7x, tried resetting all plugins and still doesn't work, i deleted the node_modules folder and tried npm update/install again and still get this error Ahhhhhhhh!!!!
-
Bringing base dependencies up to date
-
Updating NodeBB data store schema
12/8 14:58 [23035] - info: Beginning database schema update
12/8 14:58 [23035] - info: [2015/02/08] Clearing reset tokens skipped
12/8 14:58 [23035] - info: [2015/02/17] renaming home.tpl to categories.tpl skipped
12/8 14:58 [23035] - info: [2015/2/23] Activating NodeBB Essential Rewards - skipped
12/8 14:58 [23035] - info: [2015/02/24] Upgrading plugins:active to sorted set skipped
12/8 14:58 [23035] - info: [2015/02/24] Upgrading privilege groups to system groups skipped
12/8 14:58 [23035] - info: [2015/02/25] Upgrading menu items to dynamic navigation system skipped
12/8 14:58 [23035] - info: [2015/05/07] Upgrading uid mappings to sorted set skipped
12/8 14:58 [23035] - info: [2015/05/08] Fixing emails skipped
12/8 14:58 [23035] - info: [2015/05/11] Updating widgets to tjs 0.2x skipped
12/8 14:58 [23035] - info: [2015/05/20] Adding username:sorted and email:sorted skipped
12/8 14:58 [23035] - info: [2015/06/02] Creating group sorted sets
12/8 14:58 [23035] - error: [upgrade] Errors were encountered while updating the NodeBB schema: ERR value is not a valid float -
Storing upgrade date in "package.json"
NodeBB Upgrade Complete!
-
-
Like this ?
chas@vps192892:~/nodebb$ ./nodebb upgrade
-
Bringing base dependencies up to date
-
Updating NodeBB data store schema
12/8 14:59 [1987] - info: Beginning database schema update
12/8 14:59 [1987] - info: [2015/02/08] Clearing reset tokens skipped
12/8 14:59 [1987] - info: [2015/02/17] renaming home.tpl to categories.tpl skipped
12/8 14:59 [1987] - info: [2015/2/23] Activating NodeBB Essential Rewards - skipped
12/8 14:59 [1987] - info: [2015/02/24] Upgrading plugins:active to sorted set skipped
12/8 14:59 [1987] - info: [2015/02/24] Upgrading privilege groups to system groups skipped
12/8 14:59 [1987] - info: [2015/02/25] Upgrading menu items to dynamic navigation system skipped
12/8 14:59 [1987] - info: [2015/05/07] Upgrading uid mappings to sorted set skipped
12/8 14:59 [1987] - info: [2015/05/08] Fixing emails skipped
12/8 14:59 [1987] - info: [2015/05/11] Updating widgets to tjs 0.2x skipped
12/8 14:59 [1987] - info: [2015/05/20] Adding username:sorted and email:sorted skipped
12/8 14:59 [1987] - info: [2015/06/02] Creating group sorted sets
12/8 14:59 [1987] - error: [upgrade] Errors were encountered while updating the NodeBB schema: ERR value is not a valid float -
Storing upgrade date in "package.json"
NodeBB Upgrade Complete!
chas@vps192892:~/nodebb$
Also while i try do a nodebb Setup
12/8 15:00 [1994] - info: Now configuring redis database:
Host IP or address of your Redis instance (127.0.0.1)
Host port of your Redis instance (6379)
Password of your Redis database
Which database to use (0..n) (0)
Configuration Saved OK
[email protected] node_modules/redis[email protected] node_modules/connect-redis
└── [email protected] ([email protected])
Populating database with default configs, if not already set...
Previous theme detected, skipping enabling default theme
Categories OK. Found 27 categories.
Administrator found, skipping Admin setup
Enabling default plugins
12/8 15:00 [1994] - warn: NodeBB Setup Aborted.
Error: schema-out-of-date
at /home/chas/nodebb/src/upgrade.js:43:29
at try_callback (/home/chas/nodebb/node_modules/redis/index.js:573:9)
at RedisClient.return_reply (/home/chas/nodebb/node_modules/redis/index.js:661:13)
at ReplyParser.<anonymous> (/home/chas/nodebb/node_modules/redis/index.js:309:14)
at ReplyParser.EventEmitter.emit (events.js:95:17)
at ReplyParser.send_reply (/home/chas/nodebb/node_modules/redis/lib/parser/javascript.js:300:10)
at ReplyParser.execute (/home/chas/nodebb/node_modules/redis/lib/parser/javascript.js:203:22)
at RedisClient.on_data (/home/chas/nodebb/node_modules/redis/index.js:534:27)
at Socket.<anonymous> (/home/chas/nodebb/node_modules/redis/index.js:91:14)
at Socket.EventEmitter.emit (events.js:95:17)
chas@vps192892:~/nodebb$ -
-
I fixed it using https://github.com/NodeBB/NodeBB/issues/1163
and setting to todays date, so now it says "Schema is up-to-date" and all works perfectly.
I hope its ok now? xD