Update from v1.10.x to v1.12.x upgrade script fails on redis schema update

Technical Support
  • I'm trying to update nodebb from v1.10.x to 1.12.x.

    Installed node version: v10.16.3
    Installed npm version: 6.12.0
    Installe redis-server: Redis server v=5.0.6 sha=00000000:0 
    malloc=jemalloc-5.1.0 bits=64 build=9260170b247e88b
    

    When I run the 'nodebb upgrade' it fails with the following error:

    4. Updating NodeBB data store schema...
     ......
     ......
    OK | 15 script(s) found, 63 skipped
      โ†’ [2018/10/11] Fix category topic zsets...
        [              ] (1/9543) 0% 2019-10-13T09:27:38.996Z [4567/27784] - error: uncaughtException: db.parseIntFields is not a function
    TypeError: db.parseIntFields is not a function
        at modifyTopic (/home/forum/nodebb/src/topics/data.js:106:5)
        at topics.forEach.topic (/home/forum/nodebb/src/topics/data.js:33:29)
        at Array.forEach (<anonymous>)
        at /home/forum/nodebb/src/topics/data.js:33:12
        at nextTask (/home/forum/nodebb/node_modules/async/dist/async.js:5324:14)
        at next (/home/forum/nodebb/node_modules/async/dist/async.js:5331:9)
        at /home/forum/nodebb/node_modules/async/dist/async.js:969:16
        at /home/forum/nodebb/node_modules/async/dist/async.js:473:16
        at next 
        (/home/forum/nodebb/node_modules/async/dist/async.js:5329:29)
        at /home/forum/nodebb/node_modules/async/dist/async.js:969:16 
        {"error":{},"stack":"TypeError: db.parseIntFields is not a function\n    at modifyTopic (/home/forum/nodebb/src/topics/data.js:106:5)\n    at topics.forEach.topic (/home/forum/nodebb/src/topics/data.js:33:29)\n    at Array.forEach (<anonymous>)\n    at /home/forum/nodebb/src/topics/data.js:33:12\n    at nextTask (/home/forum/nodebb/node_modules/async/dist/async.js:5324:14)\n    at next (/home/forum/nodebb/node_modules/async/dist/async.js:5331:9)\n    at /home/forum/nodebb/node_modules/async/dist/async.js:969:16\n    at /home/forum/nodebb/node_modules/async/dist/async.js:473:16\n    at next (/home/forum/nodebb/node_modules/async/dist/async.js:5329:29)\n    at /home/forum/nodebb/node_modules/async/dist/async.js:969:16","exception":true,"date":"Sun Oct 13 2019 10:27:38 GMT+0100 (British Summer Time)","process":{"pid":27784,"uid":1001,"gid":1001,"cwd":"/home/forum/nodebb","execPath":"/usr/bin/node","version":"v10.16.3","argv":["/usr/bin/node","/home/forum/nodebb/nodebb","upgrade"],"memoryUsage":{"rss":134868992,"heapTotal":98246656,"heapUsed":65464224,"external":885721}},"os":{"loadavg":[0.46044921875,0.2705078125,0.3525390625],"uptime":258020},"trace":[{"column":5,"file":"/home/forum/nodebb/src/topics/data.js","function":"modifyTopic","line":106,"method":null,"native":false},{"column":29,"file":"/home/forum/nodebb/src/topics/data.js","function":"topics.forEach.topic","line":33,"method":"topic","native":false},{"column":null,"file":null,"function":"Array.forEach","line":null,"method":"forEach","native":false},{"column":12,"file":"/home/forum/nodebb/src/topics/data.js","function":null,"line":33,"method":null,"native":false},{"column":14,"file":"/home/forum/nodebb/node_modules/async/dist/async.js","function":"nextTask","line":5324,"method":null,"native":false},{"column":9,"file":"/home/forum/nodebb/node_modules/async/dist/async.js","function":"next","line":5331,"method":null,"native":false},{"column":16,"file":"/home/forum/nodebb/node_modules/async/dist/async.js","function":null,"line":969,"method":null,"native":false},{"column":16,"file":"/home/forum/nodebb/node_modules/async/dist/async.js","function":null,"line":473,"method":null,"native":false},{"column":29,"file":"/home/forum/nodebb/node_modules/async/dist/async.js","function":"next","line":5329,"method":null,"native":false},{"column":16,"file":"/home/forum/nodebb/node_modules/async/dist/async.js","function":null,"line":969,"method":null,"native":false}]}
    

    I have no idea how to solve that.

    Any Ideas?

  • @wellenreiter hi there! Can you post this onto our GitHub tracker?

  • @julian

    Will do

  • @wellenreiter Thank you, we'll look into this this week ๐Ÿ˜„


Suggested Topics