Cannot find module './database', please update your plugin!

Technical Support
  • General information:
    NodeBB-Version: v1.10.2 (GitHub master)
    Database: MongoDB
    Docker: 18.09.0, build 4d60db4
    Language: German (de-DE)
    Installation directory: /usr/src/app


    When using the official NodeBB docker image (or even without it), I get following errors. The instance works mostly, but there are weird errors here and there.

    package.json: https://ghostbin.com/paste/dvn3z

    2018-11-28T14:43:02.818Z [559] - warn: [plugins/require] Cannot find module './database', please update your plugin!
        at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-math-captcha/src/library.js:8:24)
    2018-11-28T14:43:02.820Z [559] - warn: [plugins/require] Cannot find module './database', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:5:14
    2018-11-28T14:43:02.820Z [559] - warn: [plugins/require] Cannot find module './settings', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:6:20
    2018-11-28T14:43:02.821Z [559] - warn: [plugins/require] Cannot find module './meta', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:7:16
    2018-11-28T14:43:02.821Z [559] - warn: [plugins/require] Cannot find module './user', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:8:16
    2018-11-28T14:43:02.829Z [559] - warn: [plugins/require] Cannot find module './posts', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:9:17
    2018-11-28T14:43:02.831Z [559] - warn: [plugins/require] Cannot find module './topics', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:10:18
    2018-11-28T14:43:02.833Z [559] - warn: [plugins/require] Cannot find module './privileges', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:11:22
    2018-11-28T14:43:02.834Z [559] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:12:25
    2018-11-28T14:43:02.836Z [559] - warn: [plugins/require] Cannot find module './socket.io/admin', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:13:24
    2018-11-28T14:43:02.837Z [559] - warn: [plugins/require] Cannot find module './socket.io/index', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:14:23
    2018-11-28T14:43:02.839Z [559] - warn: [plugins/require] Cannot find module '../public/src/modules/translator', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:15:22
    2018-11-28T14:43:02.888Z [559] - warn: [plugins/require] Cannot find module './topics', please update your plugin!
        at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-user-badges/src/library.js:1:92)
    2018-11-28T14:43:02.890Z [559] - warn: [plugins/require] Cannot find module './privileges', please update your plugin!
        at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-user-badges/src/library.js:2:34)
    2018-11-28T14:43:02.891Z [559] - warn: [plugins/require] Cannot find module './meta', please update your plugin!
        at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-user-badges/src/library.js:3:28)
    2018-11-28T14:43:02.894Z [559] - warn: [plugins/require] Cannot find module './database', please update your plugin!
    undefined
    2018-11-28T14:43:02.895Z [559] - warn: [plugins/require] Cannot find module './user', please update your plugin!
    undefined
    2018-11-28T14:43:02.896Z [559] - warn: [plugins/require] Cannot find module './utils', please update your plugin!
    undefined
    2018-11-28T14:43:02.897Z [559] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
    undefined
    2018-11-28T14:43:02.927Z [554] - warn: [plugins/require] Cannot find module './database', please update your plugin!
        at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-math-captcha/src/library.js:8:24)
    2018-11-28T14:43:02.930Z [554] - warn: [plugins/require] Cannot find module './database', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:5:14
    2018-11-28T14:43:02.930Z [554] - warn: [plugins/require] Cannot find module './settings', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:6:20
    2018-11-28T14:43:02.931Z [554] - warn: [plugins/require] Cannot find module './meta', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:7:16
    2018-11-28T14:43:02.931Z [554] - warn: [plugins/require] Cannot find module './user', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:8:16
    2018-11-28T14:43:02.931Z [554] - warn: [plugins/require] Cannot find module './posts', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:9:17
    2018-11-28T14:43:02.932Z [554] - warn: [plugins/require] Cannot find module './topics', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:10:18
    2018-11-28T14:43:02.932Z [554] - warn: [plugins/require] Cannot find module './privileges', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:11:22
    2018-11-28T14:43:02.933Z [554] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:12:25
    2018-11-28T14:43:02.933Z [554] - warn: [plugins/require] Cannot find module './socket.io/admin', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:13:24
    2018-11-28T14:43:02.933Z [554] - warn: [plugins/require] Cannot find module './socket.io/index', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:14:23
    2018-11-28T14:43:02.934Z [554] - warn: [plugins/require] Cannot find module '../public/src/modules/translator', please update your plugin!
        at /usr/src/app/node_modules/nodebb-plugin-poll/lib/nodebb.js:15:22
    2018-11-28T14:43:02.942Z [559] - info: [Newsletter] Initializing Newsletter...
    2018-11-28T14:43:02.950Z [559] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
        at Object.plugin.init [as method] (/usr/src/app/node_modules/nodebb-plugin-math-captcha/src/library.js:21:39)
    2018-11-28T14:43:02.967Z [554] - warn: [plugins/require] Cannot find module './topics', please update your plugin!
        at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-user-badges/src/library.js:1:92)
    2018-11-28T14:43:02.968Z [554] - warn: [plugins/require] Cannot find module './privileges', please update your plugin!
        at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-user-badges/src/library.js:2:34)
    2018-11-28T14:43:02.968Z [554] - warn: [plugins/require] Cannot find module './meta', please update your plugin!
        at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-user-badges/src/library.js:3:28)
    2018-11-28T14:43:02.972Z [554] - warn: [plugins/require] Cannot find module './database', please update your plugin!
    undefined
    2018-11-28T14:43:02.972Z [554] - warn: [plugins/require] Cannot find module './user', please update your plugin!
    undefined
    2018-11-28T14:43:02.973Z [554] - warn: [plugins/require] Cannot find module './utils', please update your plugin!
    undefined
    2018-11-28T14:43:02.973Z [554] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
    undefined
    (node:559) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.
    2018-11-28T14:43:03.021Z [554] - info: [Newsletter] Initializing Newsletter...
    2018-11-28T14:43:03.023Z [559] - info: Routes added
    2018-11-28T14:43:03.027Z [559] - info: NodeBB Ready
    2018-11-28T14:43:03.030Z [554] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
        at Object.plugin.init [as method] (/usr/src/app/node_modules/nodebb-plugin-math-captcha/src/library.js:21:39)
    2018-11-28T14:43:03.047Z [559] - info: Enabling 'trust proxy'
    2018-11-28T14:43:03.058Z [559] - info: NodeBB is now listening on: 0.0.0.0:4569
    (node:554) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.
    2018-11-28T14:43:03.097Z [554] - info: Routes added
    2018-11-28T14:43:03.104Z [554] - info: NodeBB Ready
    2018-11-28T14:43:03.114Z [554] - info: Enabling 'trust proxy'
    2018-11-28T14:43:03.121Z [554] - info: NodeBB is now listening on: 0.0.0.0:4568
    2018-11-28T14:43:19.946Z [559] - warn: [plugins/require] Cannot find module './socket.io/admin/rooms', please update your plugin!
    
  • @Tom_Rade looks like the math captcha and poll plugin don't support the latest NodeBB.

  • This post is deleted!
  • @PitaJ

    I disabled these plugins, what about these errors?

    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:50.877Z [21] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-math-captcha`. Skipping.
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:50.878Z [21] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-poll`. Skipping.
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:50.880Z [21] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-user-badges`. Skipping.
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:50.897Z [22] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-math-captcha`. Skipping.
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:50.898Z [22] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-poll`. Skipping.
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:50.900Z [22] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-user-badges`. Skipping.
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:51.452Z [31] - info: [socket.io] Restricting access to origin: https://example.com:*
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:51.875Z [21] - info: [socket.io] Restricting access to origin: https://example.com:*
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:51.973Z [22] - info: [socket.io] Restricting access to origin: https://example.com:*
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.545Z [31] - warn: [plugins/require] Cannot find module './database', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.546Z [31] - warn: [plugins/require] Cannot find module './user', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.546Z [31] - warn: [plugins/require] Cannot find module './utils', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.546Z [31] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.611Z [31] - info: [Newsletter] Initializing Newsletter...
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.641Z [31] - info: Routes added
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.644Z [31] - info: NodeBB Ready
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.649Z [31] - info: Enabling 'trust proxy'
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.654Z [31] - info: NodeBB is now listening on: 0.0.0.0:4569
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.664Z [22] - warn: [plugins/require] Cannot find module './database', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.665Z [22] - warn: [plugins/require] Cannot find module './user', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.666Z [22] - warn: [plugins/require] Cannot find module './utils', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.666Z [22] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.736Z [22] - info: [Newsletter] Initializing Newsletter...
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.788Z [22] - info: NodeBB Ready
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.795Z [22] - info: Enabling 'trust proxy'
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.800Z [22] - info: NodeBB is now listening on: 0.0.0.0:4568
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.897Z [21] - warn: [plugins/require] Cannot find module './database', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.897Z [21] - warn: [plugins/require] Cannot find module './user', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.898Z [21] - warn: [plugins/require] Cannot find module './utils', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.899Z [21] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:52.954Z [21] - info: [Newsletter] Initializing Newsletter...
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:53.036Z [21] - info: Routes added
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:53.040Z [21] - info: NodeBB Ready
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:53.045Z [21] - info: Enabling 'trust proxy'
    nodebb_1_c706a33d74e3 | 2018-11-28T16:23:53.049Z [21] - info: NodeBB is now listening on: 0.0.0.0:4567
    
  • Post the output of ./nodebb plugins there seems to be some that still require the core modules the old way.

  • @baris

    ./nodebb plugins

    2018-11-28T16:42:32.491Z [190] - info: Active plugins: 
    	 - nodebb-theme-persona
    	 - nodebb-plugin-markdown
    	 - nodebb-plugin-mentions
    	 - nodebb-widget-essentials
    	 - nodebb-rewards-essentials
    	 - nodebb-plugin-soundpack-default
    	 - nodebb-plugin-emoji
    	 - nodebb-plugin-emoji-android
    	 - nodebb-plugin-dbsearch
    	 - nodebb-plugin-recent-cards
    	 - nodebb-plugin-newsletter
    	 - nodebb-plugin-composer-default
    	 - nodebb-plugin-custom-pages
    	 - nodebb-widget-board-stats
    	 - nodebb-plugin-2factor
    
    

    New log (after properly uninstalling plugins):

    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.620Z [161] - warn: [plugins/require] Cannot find module './database', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.621Z [161] - warn: [plugins/require] Cannot find module './user', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.622Z [161] - warn: [plugins/require] Cannot find module './utils', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.623Z [161] - warn: [plugins/require] Cannot find module './socket.io/plugins', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.634Z [155] - info: [Newsletter] Initializing Newsletter...
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.691Z [161] - info: [Newsletter] Initializing Newsletter...
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.713Z [155] - info: Routes added
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.721Z [155] - info: NodeBB Ready
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.737Z [155] - info: Enabling 'trust proxy'
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.746Z [155] - info: NodeBB is now listening on: 0.0.0.0:4568
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.751Z [161] - info: Routes added
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.754Z [161] - info: NodeBB Ready
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.761Z [161] - info: Enabling 'trust proxy'
    nodebb_1_c706a33d74e3 | 2018-11-28T16:39:55.766Z [161] - info: NodeBB is now listening on: 0.0.0.0:4569
    nodebb_1_c706a33d74e3 | (node:155) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.
    nodebb_1_c706a33d74e3 | 2018-11-28T16:40:04.566Z [155] - warn: [plugins/require] Cannot find module './socket.io/admin/rooms', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    nodebb_1_c706a33d74e3 | (node:161) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.
    nodebb_1_c706a33d74e3 | (node:154) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.
    nodebb_1_c706a33d74e3 | Missing key in translation token "text"
    nodebb_1_c706a33d74e3 | 2018-11-28T16:42:06.769Z [154] - warn: [plugins/require] Cannot find module './socket.io/admin/rooms', please update your plugin!
    nodebb_1_c706a33d74e3 | undefined
    
    
  • @Tom_Rade said in Cannot find module './database', please update your plugin!:

    • nodebb-plugin-newsletter
    • nodebb-widget-board-stats

    These are probably the ones that need to be updated

  • @baris Those are already updated on my side. So the developers need to bring out updates, right?

    Thank you - no more errors/warnings.


Suggested Topics