I'm trying to start work on an authentication plugin for Graylog to be able to use an identity server via oauth2. (https://github.com/Graylog2/graylog2-web-interface/issues/730) I'm trying to follow the instructions at:
http://docs.graylog.org/en/latest/pages/plugins.html#plugins to create a plugin skeleton project and go from there. Unfortunately it fails with npm-related errors. I first tried on a Windows machine with gitbash, and after that failed I tried on an AWS linux machine. Error was more or less the same in both cases; I include the linux version below. Note that earlier in the build (log portion shown), it says it successfully installs node and npm locally. (I don't have them installed systemwide on either machine.) Thanks for any tips. I'm not familiar with npm or how to debug it. The file it complains about being missing ("vendor-manifest.json") is indeed missing. Only "package.json" sits in that directory. ----------- [INFO] Unpacking /home/arobert/.m2/repository/com/github/eirslett/node/4.4.3/node-4.4.3-linux-x64.tar.gz into /home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node/tmp [INFO] Copying node binary from /home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node/tmp/node-v4.4.3-linux-x64/bin/node to /home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node/node [INFO] Installed node locally. [INFO] Installing npm version 3.8.6 [INFO] Downloading http://registry.npmjs.org/npm/-/npm-3.8.6.tgz to /home/arobert/.m2/repository/com/github/eirslett/npm/3.8.6/npm-3.8.6.tar.gz [INFO] Unpacking /home/arobert/.m2/repository/com/github/eirslett/npm/3.8.6/npm-3.8.6.tar.gz into /home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node/node_modules [INFO] Installed npm locally. ... [WARNING] npm WARN optional Skipping failed optional dependency /chokidar/fsevents: [WARNING] npm WARN notsup Not compatible with your operating system or architecture: [email protected] [INFO] [INFO] --- frontend-maven-plugin:1.0:npm (npm run build) @ graylog-plugin-oauth-authentication --- [INFO] Running 'npm run build' in /home/arobert/src/graylog-project/graylog-plugin-oauth-authentication [INFO] [INFO] > [email protected] build /home/arobert/src/graylog-project/graylog-plugin-oauth-authentication [INFO] > webpack [INFO] [ERROR] module.js:327 [ERROR] throw err; [ERROR] ^ [ERROR] [ERROR] Error: Cannot find module '/home/arobert/src/graylog-project/graylog2-server/graylog2-web-interface/manifests/vendor-manifest.json' [ERROR] at Function.Module._resolveFilename (module.js:325:15) [ERROR] at Function.Module._load (module.js:276:25) [ERROR] at Module.require (module.js:353:17) [ERROR] at require (internal/module.js:12:17) [ERROR] at new PluginWebpackConfig (/home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node_modules/graylog-web-plugin/lib/PluginWebpackConfig.js:21:25) [ERROR] at Object.<anonymous> (/home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/webpack.config.js:6:18) [ERROR] at Module._compile (module.js:409:26) [ERROR] at Object.Module._extensions..js (module.js:416:10) [ERROR] at Module.load (module.js:343:32) [ERROR] at Function.Module._load (module.js:300:12) [ERROR] at Module.require (module.js:353:17) [ERROR] at require (internal/module.js:12:17) [ERROR] at module.exports (/home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node_modules/webpack/bin/convert-argv.js:80:13) [ERROR] at Object.<anonymous> (/home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node_modules/webpack/bin/webpack.js:39:40) [ERROR] at Module._compile (module.js:409:26) [ERROR] at Object.Module._extensions..js (module.js:416:10) [ERROR] [ERROR] npm ERR! Linux 4.4.23-31.54.amzn1.x86_64 [ERROR] npm ERR! argv "/home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node/node" "/home/arobert/src/graylog-project/graylog-plugin-oauth-authentication/node/node_modules/npm/bin/npm-cli.js" "run" "build" [ERROR] npm ERR! node v4.4.3 [ERROR] npm ERR! npm v3.8.6 [ERROR] npm ERR! code ELIFECYCLE [ERROR] npm ERR! [email protected] build: `webpack` [ERROR] npm ERR! Exit status 1 [ERROR] npm ERR! [ERROR] npm ERR! Failed at the [email protected] build script 'webpack'. [ERROR] npm ERR! Make sure you have the latest version of node.js and npm installed. [ERROR] npm ERR! If you do, this is most likely a problem with the OauthAccess package, [ERROR] npm ERR! not with npm itself. -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/ee3c1c32-8a3c-4a54-8b94-22e5fe324b0a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
