akhoury / nodebb-plugin-import

migrate your old crappy forum to NodeBB
MIT License
78 stars 31 forks source link

nodebb-plugin-import error at nodebb start (TypeError: path must be a string or Buffer) #222

Closed alfazaz closed 6 years ago

alfazaz commented 6 years ago

Hello !

I want to try a migration from phpbb2 to nodebb and I fail at the first step : I can't get nodebb-plugin-import working... This is what I do :

2018-08-17T16:13:50.449Z [20465] - error: TypeError: path must be a string or Buffer
    at Object.fs.readdirSync (fs.js:904:18)
    at getSiblingDirectories (/opt/nodebb/node_modules/nodebb-plugin-require/index.js:48:19)
    at findPackageDirectory (/opt/nodebb/node_modules/nodebb-plugin-require/index.js:25:20)
    at findNodebbDirectory (/opt/nodebb/node_modules/nodebb-plugin-require/index.js:59:9)
    at Object.<anonymous> (/opt/nodebb/node_modules/nodebb-plugin-require/index.js:62:16)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/nodebb/node_modules/nodebb-plugin-import/server/index.js:1:80)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
2018-08-17T16:13:50.450Z [20465] - warn: [plugins] Unable to parse library for: nodebb-plugin-import
2018-08-17T16:13:50.450Z [20465] - verbose: [plugins] Loaded plugin: nodebb-plugin-import

and I can't access to any interface to play with import in nodebb (I also tried with other versions of nodebb (1.5.x), nodejs (10)...).

If I do after this in the node_modules/nodebb-plugin-import directory the command npm install and if I reload nodebb, it fails too with these messages :

2018-08-17T16:34:48.654Z [20834] - error: TypeError: path must be a string or Buffer
    at Object.fs.readdirSync (fs.js:904:18)
    at getSiblingDirectories (/opt/nodebb/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-require/index.js:48:19)
    at findPackageDirectory (/opt/nodebb/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-require/index.js:25:20)
    at findNodebbDirectory (/opt/nodebb/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-require/index.js:59:9)
    at Object.<anonymous> (/opt/nodebb/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-require/index.js:62:16)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/nodebb/node_modules/nodebb-plugin-import/server/index.js:1:80)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
2018-08-17T16:34:48.654Z [20834] - warn: [plugins] Unable to parse library for: nodebb-plugin-import

Is it a bug ? I make a mistake ? If so, Which one ?? How I must activate and enjoy this plugin ?

Thanks !

akhoury commented 6 years ago

i will check it

alfazaz commented 6 years ago

Thank you. I will give you any other information if needed.

akhoury commented 6 years ago

I can't reproduce the issue, are you sure you have v1.7.5 installed? what's the output of

git status

how did you install v1.7.5

git checkout v1.7.5
./nodebb setup
alfazaz commented 6 years ago

I installed v1.7.5 with sudo git clone -b v1.7.5 https://github.com/NodeBB/NodeBB.git nodebb package.json and logs of nodebb confirm v1.7.5.

Anyway, I have this (in the nodebb directory) :

[yannick@xps nodebb ]$ sudo git status
Actuellement sur aucun branche.
rien à valider, la copie de travail est propre

It's in french but it means that I'm not on any branch (normal ? I'm not an expert of git)...

Then, now, I've done :

[yannick@xps nodebb ]$ sudo git checkout v1.7.5
HEAD est maintenant sur 7df191412 Incrementing version number - v1.7.5

Then, I've done another nodebb setup and no change... Here are the logs :

[yannick@xps nodebb ]$ sudo ./nodebb setup
2018-08-19T16:48:20.650Z [4943] - info: NodeBB Setup Triggered via Command Line

Welcome to NodeBB v1.7.5!

This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
Press enter to accept the default setting (shown in brackets).
2018-08-19T16:48:20.732Z [4943] - info: 
Now configuring mongo database:
2018-08-19T16:48:20.978Z [4943] - info: [database] Checking database indices.
2018-08-19T16:48:20.987Z [4943] - info: [database] Checking database indices done!
Configuration Saved OK
Populating database with default configs, if not already set...
Previous theme detected, skipping enabling default theme
Categories OK. Found 4 categories.
Administrator found, skipping Admin setup
2018-08-19T16:48:21.500Z [4943] - info: Global Moderators group found, skipping creation!
Enabling default plugins
2018-08-19T16:48:21.507Z [4943] - info: [install/defaultPlugins] customDefaults
2018-08-19T16:48:21.508Z [4943] - info: [install/enableDefaultPlugins] activating default plugins 0=nodebb-plugin-composer-default, 1=nodebb-plugin-markdown, 2=nodebb-plugin-mentions, 3=nodebb-widget-essentials, 4=nodebb-rewards-essentials, 5=nodebb-plugin-soundpack-default, 6=nodebb-plugin-emoji, 7=nodebb-plugin-emoji-android
  started
2018-08-19T16:48:21.548Z [4943] - info: [build] Building in parallel mode
2018-08-19T16:48:21.549Z [4943] - info: [build]         plugin static dirs  build started
2018-08-19T16:48:21.551Z [4943] - info: [build]          requirejs modules  build started
2018-08-19T16:48:21.552Z [4943] - info: [build]           client js bundle  build started
2018-08-19T16:48:21.553Z [4943] - info: [build]            admin js bundle  build started
2018-08-19T16:48:21.553Z [4943] - info: [build]         client side styles  build started
2018-08-19T16:48:21.554Z [4943] - info: [build] admin control panel styles  build started
2018-08-19T16:48:21.554Z [4943] - info: [build]                  templates  build started
2018-08-19T16:48:21.555Z [4943] - info: [build]                  languages  build started
2018-08-19T16:48:21.555Z [4943] - info: [build]                     sounds  build started
2018-08-19T16:48:21.776Z [4943] - info: [build]                     sounds  build completed in 0.221sec
2018-08-19T16:48:21.864Z [4943] - info: [build]         plugin static dirs  build completed in 0.315sec
Witout `from` option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning
Witout `from` option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning
2018-08-19T16:48:24.793Z [4943] - info: [build]                  languages  build completed in 3.237sec
2018-08-19T16:48:24.807Z [4943] - info: [build]                  templates  build completed in 3.253sec
2018-08-19T16:48:25.178Z [4943] - info: [build]            admin js bundle  build completed in 3.625sec
2018-08-19T16:48:25.185Z [4943] - info: [build]           client js bundle  build completed in 3.632sec
2018-08-19T16:48:25.865Z [4943] - info: [build]         client side styles  build completed in 4.312sec
2018-08-19T16:48:25.980Z [4943] - info: [build]          requirejs modules  build completed in 4.429sec
2018-08-19T16:48:26.264Z [4943] - info: [build] admin control panel styles  build completed in 4.71sec
2018-08-19T16:48:26.265Z [4943] - info: [build] Asset compilation successful. Completed in 4.716sec.
    =========================================================================================================

NodeBB Setup Completed. Run "./nodebb start" to manually start your NodeBB server.

And when I restart :

[yannick@xps nodebb ]$ sudo ./nodebb dev

NodeBB v1.7.5 Copyright (C) 2013-2014 NodeBB Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For the full license, please visit: http://www.gnu.org/copyleft/gpl.html

Clustering enabled: Spinning up 1 process(es).

2018-08-19T16:49:12.806Z [5108] - info: Initializing NodeBB v1.7.5 http://localhost:4567
2018-08-19T16:49:12.808Z [5108] - verbose: * using mongo store at 127.0.0.1:27017
2018-08-19T16:49:12.808Z [5108] - verbose: * using themes stored in: /opt/nodebb/node_modules
2018-08-19T16:49:13.550Z [5108] - verbose: [minifier] utilizing a maximum of 7 additional threads
2018-08-19T16:49:13.563Z [5108] - verbose: Checking dependencies for outdated modules
2018-08-19T16:49:13.764Z [5108] - verbose: [notifications.init] Registering jobs.
2018-08-19T16:49:13.764Z [5108] - verbose: [user/jobs] (Re-)starting user jobs...
2018-08-19T16:49:13.765Z [5108] - verbose: [user/jobs] Starting job (digest.daily)
2018-08-19T16:49:13.767Z [5108] - verbose: [user/jobs] Starting job (digest.weekly)
2018-08-19T16:49:13.767Z [5108] - verbose: [user/jobs] Starting job (digest.monthly)
2018-08-19T16:49:13.767Z [5108] - verbose: [user/jobs] Starting job (reset.clean)
2018-08-19T16:49:13.768Z [5108] - verbose: [user/jobs] 4 jobs started
2018-08-19T16:49:13.768Z [5108] - verbose: [emailer] Setting up SMTP fallback transport
2018-08-19T16:49:13.794Z [5108] - verbose: [emailer] Built custom email templates
2018-08-19T16:49:13.794Z [5108] - info: [themes] Using theme nodebb-theme-persona
2018-08-19T16:49:13.794Z [5108] - verbose: [plugins] Initializing plugins system
2018-08-19T16:49:13.799Z [5108] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
2018-08-19T16:49:13.800Z [5108] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
2018-08-19T16:49:13.820Z [5108] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
2018-08-19T16:49:13.832Z [5108] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
2018-08-19T16:49:13.834Z [5108] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
2018-08-19T16:49:13.838Z [5108] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
2018-08-19T16:49:13.839Z [5108] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
2018-08-19T16:49:13.839Z [5108] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
2018-08-19T16:49:13.936Z [5108] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji
2018-08-19T16:49:13.953Z [5108] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-android
2018-08-19T16:49:13.957Z [5108] - error: TypeError: path must be a string or Buffer
    at Object.fs.readdirSync (fs.js:904:18)
    at getSiblingDirectories (/opt/nodebb/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-require/index.js:48:19)
    at findPackageDirectory (/opt/nodebb/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-require/index.js:25:20)
    at findNodebbDirectory (/opt/nodebb/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-require/index.js:59:9)
    at Object.<anonymous> (/opt/nodebb/node_modules/nodebb-plugin-import/node_modules/nodebb-plugin-require/index.js:62:16)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/nodebb/node_modules/nodebb-plugin-import/server/index.js:1:80)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
2018-08-19T16:49:13.957Z [5108] - warn: [plugins] Unable to parse library for: nodebb-plugin-import
2018-08-19T16:49:13.957Z [5108] - verbose: [plugins] Loaded plugin: nodebb-plugin-import

2018-08-19T16:49:13.958Z [5108] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
  * nodebb-plugin-composer-default

2018-08-19T16:49:13.958Z [5108] - info: [plugins] Plugins OK
2018-08-19T16:49:14.004Z [5108] - verbose: [hotswap] Router with id `plugins` replaced successfully
2018-08-19T16:49:14.004Z [5108] - verbose: [plugins] All plugins reloaded and rerouted
2018-08-19T16:49:14.006Z [5108] - verbose: [hotswap] Router with id `auth` replaced successfully
2018-08-19T16:49:14.006Z [5108] - info: Routes added
2018-08-19T16:49:14.009Z [5108] - verbose: [meta/blacklist] Loading 0 blacklist rule(s)
2018-08-19T16:49:14.009Z [5108] - info: NodeBB Ready
2018-08-19T16:49:14.011Z [5108] - info: Enabling 'trust proxy'
2018-08-19T16:49:14.016Z [5108] - info: NodeBB is now listening on: 0.0.0.0:4567

So, there is again the error... ???? If you have a precise protocol to follow to test from scratch, I can do it (I'm on up to date archlinux, with nodejs-carbon-lts but I can change it if necessary ; when I tried nodejs 10, I had the error too...).

It's really strange...

alfazaz commented 6 years ago

Another try from scratch and without sudo (no suspense : this leads to a different error at the end) :

[yannick@xps tmp ]$ git clone -b v1.7.5 https://github.com/NodeBB/NodeBB.git nodebb
Clonage dans 'nodebb'...
remote: Counting objects: 153930, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 153930 (delta 5), reused 8 (delta 4), pack-reused 153907
Réception d'objets: 100% (153930/153930), 46.46 MiB | 2.29 MiB/s, fait.
Résolution des deltas: 100% (117001/117001), fait.
Note : extraction de '7df191412de9dfd88c3c9b919b6989fd18b5d445'.

Vous êtes dans l'état « HEAD détachée ». Vous pouvez visiter, faire des modifications
expérimentales et les valider. Il vous suffit de faire une autre extraction pour
abandonner les commits que vous faites dans cet état sans impacter les autres branches

Si vous voulez créer une nouvelle branche pour conserver les commits que vous créez,
il vous suffit d'utiliser « checkout -b » (maintenant ou plus tard) comme ceci :

  git checkout -b <nom-de-la-nouvelle-branche>

[yannick@xps tmp ]$ cd nodebb
[yannick@xps nodebb ]$ ./nodebb setup
package.json not found.
Populating package.json...
OK
Dependencies outdated or not yet installed.
Installing them now...

npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated uws@9.14.0: stop using this version
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer

> uws@9.14.0 install /home/yannick/tmp/nodebb/node_modules/uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0

> benchpressjs@1.2.6 install /home/yannick/tmp/nodebb/node_modules/benchpressjs
> cd rust/benchpress-rs && npm install

> benchpress-rs@0.1.0 install /home/yannick/tmp/nodebb/node_modules/benchpressjs/rust/benchpress-rs
> neon build >> build.log 2>&1 || exit 0

npm notice created a lockfile as package-lock.json. You should commit this file.
added 102 packages from 100 contributors in 6.089s

> preact@8.3.1 postinstall /home/yannick/tmp/nodebb/node_modules/preact
> node -e "console.log('\u001b[35m\u001b[1mLove Preact? You can now donate to our open collective:\u001b[22m\u001b[39m\n > \u001b[34mhttps://opencollective.com/preact/donate\u001b[0m')"

Love Preact? You can now donate to our open collective:
 > https://opencollective.com/preact/donate
npm notice created a lockfile as package-lock.json. You should commit this file.
added 481 packages from 566 contributors in 37.671s
OK

2018-08-19T17:09:11.635Z [6085] - info: NodeBB Setup Triggered via Command Line

Welcome to NodeBB v1.7.5!

This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
Press enter to accept the default setting (shown in brackets).
URL used to access this NodeBB (http://localhost:4567) 
Please enter a NodeBB secret (3fe6b0e4-6474-46b6-8a4f-81037f62f0b0) 
Which database to use (mongo) 
2018-08-19T17:10:04.240Z [6085] - info: 
Now configuring mongo database:
MongoDB connection URI: (leave blank if you wish to specify host, port, username/password and database individually)
Format: mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] 
Host IP or address of your MongoDB instance (127.0.0.1) 
Host port of your MongoDB instance (27017) 
MongoDB username nodebb
Password of your MongoDB database 
MongoDB database name (nodebb) 
2018-08-19T17:10:25.262Z [6085] - info: [database] Checking database indices.
2018-08-19T17:10:25.272Z [6085] - info: [database] Checking database indices done!
Configuration Saved OK
Populating database with default configs, if not already set...
2018-08-19T17:10:25.942Z [6085] - warn: [cache-buster] could not read cache buster message=ENOENT: no such file or directory, open '/home/yannick/tmp/nodebb/build/cache-buster', stack=Error: ENOENT: no such file or directory, open '/home/yannick/tmp/nodebb/build/cache-buster', errno=-2, code=ENOENT, syscall=open, path=/home/yannick/tmp/nodebb/build/cache-buster
Previous theme detected, skipping enabling default theme
Categories OK. Found 4 categories.
Administrator found, skipping Admin setup
2018-08-19T17:10:25.958Z [6085] - info: Global Moderators group found, skipping creation!
Enabling default plugins
2018-08-19T17:10:25.966Z [6085] - info: [install/defaultPlugins] customDefaults
2018-08-19T17:10:25.966Z [6085] - info: [install/enableDefaultPlugins] activating default plugins 0=nodebb-plugin-composer-default, 1=nodebb-plugin-markdown, 2=nodebb-plugin-mentions, 3=nodebb-widget-essentials, 4=nodebb-rewards-essentials, 5=nodebb-plugin-soundpack-default, 6=nodebb-plugin-emoji, 7=nodebb-plugin-emoji-android
2018-08-19T17:10:25.976Z [6085] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-import`. Skipping.
  started
2018-08-19T17:10:26.013Z [6085] - info: [build] Building in parallel mode
2018-08-19T17:10:26.014Z [6085] - info: [build]         plugin static dirs  build started
2018-08-19T17:10:26.017Z [6085] - info: [build]          requirejs modules  build started
2018-08-19T17:10:26.018Z [6085] - info: [build]           client js bundle  build started
2018-08-19T17:10:26.022Z [6085] - info: [build]            admin js bundle  build started
2018-08-19T17:10:26.023Z [6085] - info: [build]         client side styles  build started
2018-08-19T17:10:26.024Z [6085] - info: [build] admin control panel styles  build started
2018-08-19T17:10:26.025Z [6085] - info: [build]                  templates  build started
2018-08-19T17:10:26.026Z [6085] - info: [build]                  languages  build started
2018-08-19T17:10:26.027Z [6085] - info: [build]                     sounds  build started
2018-08-19T17:10:26.188Z [6085] - info: [build]                     sounds  build completed in 0.161sec
2018-08-19T17:10:26.338Z [6085] - info: [build]         plugin static dirs  build completed in 0.324sec
Witout `from` option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning
Witout `from` option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning
2018-08-19T17:10:29.520Z [6085] - info: [build]                  languages  build completed in 3.494sec
2018-08-19T17:10:29.542Z [6085] - info: [build]                  templates  build completed in 3.517sec
2018-08-19T17:10:30.139Z [6085] - info: [build]            admin js bundle  build completed in 4.117sec
2018-08-19T17:10:30.287Z [6085] - info: [build]           client js bundle  build completed in 4.269sec
2018-08-19T17:10:31.129Z [6085] - info: [build]         client side styles  build completed in 5.106sec
2018-08-19T17:10:31.182Z [6085] - info: [build] admin control panel styles  build completed in 5.158sec
2018-08-19T17:10:31.213Z [6085] - info: [build]          requirejs modules  build completed in 5.196sec
2018-08-19T17:10:31.213Z [6085] - info: [build] Asset compilation successful. Completed in 5.2sec.

     =========================================================================================================

NodeBB Setup Completed. Run "./nodebb start" to manually start your NodeBB server.
[yannick@xps nodebb ]$ ./nodebb dev

NodeBB v1.7.5 Copyright (C) 2013-2014 NodeBB Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For the full license, please visit: http://www.gnu.org/copyleft/gpl.html

Clustering enabled: Spinning up 1 process(es).

2018-08-19T17:10:58.138Z [6667] - info: Initializing NodeBB v1.7.5 http://localhost:4567
2018-08-19T17:10:58.140Z [6667] - verbose: * using mongo store at 127.0.0.1:27017
2018-08-19T17:10:58.140Z [6667] - verbose: * using themes stored in: /home/yannick/tmp/nodebb/node_modules
2018-08-19T17:10:58.958Z [6667] - verbose: [minifier] utilizing a maximum of 7 additional threads
2018-08-19T17:10:58.988Z [6667] - verbose: Checking dependencies for outdated modules
2018-08-19T17:10:59.079Z [6667] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-import`. Skipping.
2018-08-19T17:10:59.343Z [6667] - verbose: [notifications.init] Registering jobs.
2018-08-19T17:10:59.344Z [6667] - verbose: [user/jobs] (Re-)starting user jobs...
2018-08-19T17:10:59.345Z [6667] - verbose: [user/jobs] Starting job (digest.daily)
2018-08-19T17:10:59.346Z [6667] - verbose: [user/jobs] Starting job (digest.weekly)
2018-08-19T17:10:59.347Z [6667] - verbose: [user/jobs] Starting job (digest.monthly)
2018-08-19T17:10:59.347Z [6667] - verbose: [user/jobs] Starting job (reset.clean)
2018-08-19T17:10:59.347Z [6667] - verbose: [user/jobs] 4 jobs started
2018-08-19T17:10:59.347Z [6667] - verbose: [emailer] Setting up SMTP fallback transport
2018-08-19T17:10:59.369Z [6667] - verbose: [emailer] Built custom email templates
2018-08-19T17:10:59.369Z [6667] - info: [themes] Using theme nodebb-theme-persona
2018-08-19T17:10:59.369Z [6667] - verbose: [plugins] Initializing plugins system
2018-08-19T17:10:59.374Z [6667] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
2018-08-19T17:10:59.375Z [6667] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
2018-08-19T17:10:59.394Z [6667] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
2018-08-19T17:10:59.403Z [6667] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
2018-08-19T17:10:59.405Z [6667] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
2018-08-19T17:10:59.407Z [6667] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
2018-08-19T17:10:59.407Z [6667] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
2018-08-19T17:10:59.408Z [6667] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
2018-08-19T17:10:59.455Z [6667] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji
2018-08-19T17:10:59.463Z [6667] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-android

2018-08-19T17:10:59.464Z [6667] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
  * nodebb-plugin-composer-default

2018-08-19T17:10:59.464Z [6667] - info: [plugins] Plugins OK
2018-08-19T17:10:59.490Z [6667] - verbose: [emoji] Building emoji assets
2018-08-19T17:10:59.502Z [6667] - verbose: [emoji] Loaded packs android
2018-08-19T17:10:59.535Z [6667] - verbose: [hotswap] Router with id `plugins` replaced successfully
2018-08-19T17:10:59.535Z [6667] - verbose: [plugins] All plugins reloaded and rerouted
2018-08-19T17:10:59.536Z [6667] - verbose: [hotswap] Router with id `auth` replaced successfully
2018-08-19T17:10:59.537Z [6667] - info: Routes added
2018-08-19T17:10:59.541Z [6667] - verbose: [meta/blacklist] Loading 0 blacklist rule(s)
2018-08-19T17:10:59.542Z [6667] - info: NodeBB Ready
2018-08-19T17:10:59.545Z [6667] - info: Enabling 'trust proxy'
2018-08-19T17:10:59.552Z [6667] - info: NodeBB is now listening on: 0.0.0.0:4567
^C2018-08-19T17:11:13.546Z [6667] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
2018-08-19T17:11:13.550Z [6667] - info: [app] Database connection closed.
2018-08-19T17:11:13.551Z [6667] - info: [app] Web server closed to connections.
2018-08-19T17:11:13.551Z [6667] - info: [app] Shutdown complete.

Until there, all is normal I think. Next, I install nodebb-plugin-import, activate it and restart nodebb :

[yannick@xps nodebb ]$ npm install nodebb-plugin-import
npm WARN deprecated to-markdown@3.1.1: to-markdown has been renamed to Turndown, with a new API. Please update to turndown v4.0.0 or above and see the migration guide for details: https://github.com/domchristie/turndown/wiki/Migrating-from-to-markdown-to-Turndown

> iconv@2.3.0 install /home/yannick/tmp/nodebb/node_modules/iconv
> node-gyp rebuild

make : on entre dans le répertoire « /home/yannick/tmp/nodebb/node_modules/iconv/build »
  CXX(target) Release/obj.target/iconv/src/binding.o
  CC(target) Release/obj.target/iconv/deps/libiconv/lib/iconv.o
  CC(target) Release/obj.target/iconv/support/localcharset.o
  SOLINK_MODULE(target) Release/obj.target/iconv.node
  COPY Release/iconv.node
make : on quitte le répertoire « /home/yannick/tmp/nodebb/node_modules/iconv/build »
+ nodebb-plugin-import@0.4.7
added 1183 packages from 1342 contributors in 24.063s
[yannick@xps nodebb ]$ ./nodebb dev

NodeBB v1.7.5 Copyright (C) 2013-2014 NodeBB Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For the full license, please visit: http://www.gnu.org/copyleft/gpl.html

Clustering enabled: Spinning up 1 process(es).

2018-08-19T17:15:37.405Z [7080] - info: Initializing NodeBB v1.7.5 http://localhost:4567
2018-08-19T17:15:37.407Z [7080] - verbose: * using mongo store at 127.0.0.1:27017
2018-08-19T17:15:37.407Z [7080] - verbose: * using themes stored in: /home/yannick/tmp/nodebb/node_modules
2018-08-19T17:15:38.340Z [7080] - verbose: [minifier] utilizing a maximum of 7 additional threads
2018-08-19T17:15:38.353Z [7080] - verbose: Checking dependencies for outdated modules
2018-08-19T17:15:38.657Z [7080] - verbose: [notifications.init] Registering jobs.
2018-08-19T17:15:38.658Z [7080] - verbose: [user/jobs] (Re-)starting user jobs...
2018-08-19T17:15:38.659Z [7080] - verbose: [user/jobs] Starting job (digest.daily)
2018-08-19T17:15:38.661Z [7080] - verbose: [user/jobs] Starting job (digest.weekly)
2018-08-19T17:15:38.661Z [7080] - verbose: [user/jobs] Starting job (digest.monthly)
2018-08-19T17:15:38.662Z [7080] - verbose: [user/jobs] Starting job (reset.clean)
2018-08-19T17:15:38.662Z [7080] - verbose: [user/jobs] 4 jobs started
2018-08-19T17:15:38.662Z [7080] - verbose: [emailer] Setting up SMTP fallback transport
2018-08-19T17:15:38.687Z [7080] - verbose: [emailer] Built custom email templates
2018-08-19T17:15:38.687Z [7080] - info: [themes] Using theme nodebb-theme-persona
2018-08-19T17:15:38.688Z [7080] - verbose: [plugins] Initializing plugins system
2018-08-19T17:15:38.692Z [7080] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
2018-08-19T17:15:38.693Z [7080] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
2018-08-19T17:15:38.714Z [7080] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
2018-08-19T17:15:38.726Z [7080] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
2018-08-19T17:15:38.728Z [7080] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
2018-08-19T17:15:38.732Z [7080] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
2018-08-19T17:15:38.733Z [7080] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
2018-08-19T17:15:38.733Z [7080] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
2018-08-19T17:15:38.830Z [7080] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji
2018-08-19T17:15:38.847Z [7080] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-android
2018-08-19T17:15:38.868Z [7080] - verbose: [plugins] Loaded plugin: nodebb-plugin-import

2018-08-19T17:15:38.869Z [7080] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
  * nodebb-plugin-composer-default

2018-08-19T17:15:38.870Z [7080] - info: [plugins] Plugins OK
2018-08-19T17:15:39.238Z [7080] - verbose: [hotswap] Router with id `plugins` replaced successfully
2018-08-19T17:15:39.239Z [7080] - verbose: [plugins] All plugins reloaded and rerouted
2018-08-19T17:15:39.239Z [7080] - verbose: [hotswap] Router with id `auth` replaced successfully
2018-08-19T17:15:39.239Z [7080] - info: Routes added
2018-08-19T17:15:39.241Z [7080] - verbose: [meta/blacklist] Loading 0 blacklist rule(s)
2018-08-19T17:15:39.241Z [7080] - info: NodeBB Ready
2018-08-19T17:15:39.242Z [7080] - info: Enabling 'trust proxy'
2018-08-19T17:15:39.245Z [7080] - info: NodeBB is now listening on: 0.0.0.0:4567
Found extra token(s):
<!-- END container -->
These tokens will be passed through as text, but you should remove them to prevent issues in the future.
[cluster] Restarting...
2018-08-19T17:17:26.437Z [7080] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
Clustering enabled: Spinning up 1 process(es).

2018-08-19T17:17:26.440Z [7080] - info: [app] Database connection closed.
2018-08-19T17:17:26.441Z [7080] - info: [app] Web server closed to connections.
2018-08-19T17:17:26.441Z [7080] - info: [app] Shutdown complete.
[cluster] Child Process (7080) has exited (code: 0, signal: null)
2018-08-19T17:17:27.315Z [7297] - info: Initializing NodeBB v1.7.5 http://localhost:4567
2018-08-19T17:17:27.316Z [7297] - verbose: * using mongo store at 127.0.0.1:27017
2018-08-19T17:17:27.317Z [7297] - verbose: * using themes stored in: /home/yannick/tmp/nodebb/node_modules
2018-08-19T17:17:28.113Z [7297] - verbose: [minifier] utilizing a maximum of 7 additional threads
2018-08-19T17:17:28.129Z [7297] - verbose: Checking dependencies for outdated modules
2018-08-19T17:17:28.439Z [7297] - verbose: [notifications.init] Registering jobs.
2018-08-19T17:17:28.440Z [7297] - verbose: [user/jobs] (Re-)starting user jobs...
2018-08-19T17:17:28.440Z [7297] - verbose: [user/jobs] Starting job (digest.daily)
2018-08-19T17:17:28.442Z [7297] - verbose: [user/jobs] Starting job (digest.weekly)
2018-08-19T17:17:28.442Z [7297] - verbose: [user/jobs] Starting job (digest.monthly)
2018-08-19T17:17:28.443Z [7297] - verbose: [user/jobs] Starting job (reset.clean)
2018-08-19T17:17:28.443Z [7297] - verbose: [user/jobs] 4 jobs started
2018-08-19T17:17:28.443Z [7297] - verbose: [emailer] Setting up SMTP fallback transport
2018-08-19T17:17:28.467Z [7297] - verbose: [emailer] Built custom email templates
2018-08-19T17:17:28.468Z [7297] - info: [themes] Using theme nodebb-theme-persona
2018-08-19T17:17:28.468Z [7297] - verbose: [plugins] Initializing plugins system
2018-08-19T17:17:28.473Z [7297] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
2018-08-19T17:17:28.474Z [7297] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
2018-08-19T17:17:28.496Z [7297] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
2018-08-19T17:17:28.509Z [7297] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
2018-08-19T17:17:28.513Z [7297] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
2018-08-19T17:17:28.519Z [7297] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
2018-08-19T17:17:28.522Z [7297] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
2018-08-19T17:17:28.522Z [7297] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
2018-08-19T17:17:28.671Z [7297] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji
2018-08-19T17:17:28.695Z [7297] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-android
2018-08-19T17:17:28.724Z [7297] - verbose: [plugins] Loaded plugin: nodebb-plugin-import

2018-08-19T17:17:28.724Z [7297] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
  * nodebb-plugin-composer-default

2018-08-19T17:17:28.725Z [7297] - info: [plugins] Plugins OK
2018-08-19T17:17:29.046Z [7297] - verbose: [hotswap] Router with id `plugins` replaced successfully
2018-08-19T17:17:29.046Z [7297] - verbose: [plugins] All plugins reloaded and rerouted
2018-08-19T17:17:29.046Z [7297] - verbose: [hotswap] Router with id `auth` replaced successfully
2018-08-19T17:17:29.047Z [7297] - info: Routes added
2018-08-19T17:17:29.049Z [7297] - verbose: [meta/blacklist] Loading 0 blacklist rule(s)
2018-08-19T17:17:29.049Z [7297] - info: NodeBB Ready
2018-08-19T17:17:29.050Z [7297] - info: Enabling 'trust proxy'
2018-08-19T17:17:29.052Z [7297] - info: NodeBB is now listening on: 0.0.0.0:4567
2018-08-19T17:17:37.633Z [7297] - error: /assets/templates/admin/plugins/import.js
 Error: ENOENT: no such file or directory, open '/home/yannick/tmp/nodebb/build/public/templates/admin/plugins/import.tpl'

So, the error is gone... A problem with sudo actions ??? But I have a new error (see the last line ; the import interface doesn't load)... nodebb can't find your import template. Another strange different thing (because of another mistake of me... Which one ?).

alfazaz commented 6 years ago

Finally, no problem if I think about doing ./nodedd build before start...

I can close this issue. Thanks.