Killed a topic in redis, category won't render

Technical Support
  • Delete/purge didn't work on a topic. When I'd click into it, it would just hang. So I went into redis-cli like an idiot, found the hash, and deleted it:

    hgetall "topic:1949"
     1) "tid"
     2) "1949"
     3) "uid"
     4) "1"
     5) "cid"
     6) "2"
     7) "mainPid"
     8) "0"
     9) "title"
    10) "Billy The Kid Versus Dracula (1966)"
    11) "slug"
    12) "1949/billy-the-kid-versus-dracula-1966"
    13) "timestamp"
    14) "1432861863102"
    15) "lastposttime"
    16) "0"
    17) "postcount"
    18) "0"
    19) "viewcount"
    20) "0"
    21) "locked"
    22) "0"
    23) "deleted"
    24) "0"
    25) "pinned"
    26) "0"
    127.0.0.1:6379> del "topic:1949"
    

    Only now, the clicking into the category kills NodeBB. 😞

    29/5 01:29 [12092] - error: TypeError: Cannot read property 'tid' of null
        at /home/ubuntu/NodeBB/src/topics/teaser.js:64:26
        at Array.map (native)
        at /home/ubuntu/NodeBB/src/topics/teaser.js:63:27
        at done (/home/ubuntu/NodeBB/node_modules/async/lib/async.js:132:19)
        at /home/ubuntu/NodeBB/node_modules/async/lib/async.js:32:16
        at /home/ubuntu/NodeBB/src/posts/parse.js:29:4
        at /home/ubuntu/NodeBB/src/plugins/hooks.js:96:4
        at /home/ubuntu/NodeBB/node_modules/async/lib/async.js:274:13
        at /home/ubuntu/NodeBB/node_modules/async/lib/async.js:154:25
        at /home/ubuntu/NodeBB/node_modules/async/lib/async.js:271:17
    [cluster] Child Process (12092) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    29/5 01:29 [12114] - error: TypeError: Cannot read property 'tid' of null
        at /home/ubuntu/NodeBB/src/topics/teaser.js:64:26
        at Array.map (native)
        at /home/ubuntu/NodeBB/src/topics/teaser.js:63:27
        at done (/home/ubuntu/NodeBB/node_modules/async/lib/async.js:132:19)
        at /home/ubuntu/NodeBB/node_modules/async/lib/async.js:32:16
        at /home/ubuntu/NodeBB/src/posts/parse.js:29:4
        at /home/ubuntu/NodeBB/src/plugins/hooks.js:96:4
        at /home/ubuntu/NodeBB/node_modules/async/lib/async.js:274:13
        at /home/ubuntu/NodeBB/node_modules/async/lib/async.js:154:25
        at /home/ubuntu/NodeBB/node_modules/async/lib/async.js:271:17
    [cluster] Child Process (12131) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    29/5 01:29 [12151] - info: Time: Fri May 29 2015 01:29:49 GMT+0000 (UTC)
    29/5 01:29 [12151] - info: Initializing NodeBB v0.7.0
    29/5 01:29 [12151] - error: ENOENT, open '/home/user/nodebb/socket.log'
    

    The /home/user changed, actually, when I moved machines. I assume I'll have to manually fix this in Redis?

    Is this recoverable, @julian?

  • Is this on latest?

  • Yes. 1b88a6a5239b16fc91a8559ad1e03d3bc92a7013

  • Is there a way to rebuild the category or kill whatever reference to the topic I forgot to delete?

  • I made a change on master so it doesn't crash. Can you give it another shot.

  • Can you merge into 0.7.x?


Suggested Topics