Hi I'm new to Graylog and trying to build it 2.0 branch from source and get following error while building web interface.
trying to build on Windows 7. [INFO] --- frontend-maven-plugin:1.0:npm (npm run build) @ graylog2-server --- [INFO] Running 'npm run build' in C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface [INFO] [INFO] > [email protected] build C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface [INFO] > webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack [INFO] [INFO] Building vendor bundle. [ERROR] clean-webpack-plugin: C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface\build\vendor.*.js has been removed. [INFO] Hash: d432206de81e5b7ff825 [INFO] Version: webpack 1.12.14 [INFO] Time: 9852ms [INFO] Asset Size Chunks Chunk Names [INFO] vendor.js 889 kB 0 [emitted] vendor [INFO] [0] dll vendor 12 bytes {0} [built] [INFO] + 569 hidden modules [INFO] [INFO] WARNING in vendor.js from UglifyJs [INFO] Condition always true [./~/moment/moment.js:8,0] [INFO] Condition always true [./~/classnames/index.js:40,2] [INFO] Dropping unreachable code [./~/classnames/index.js:46,0] [INFO] Condition always true [./~/react/lib/ReactMount.js:764,0] [INFO] Condition always true [./~/dom-helpers/util/babelHelpers.js:2,0] [INFO] Dropping unreachable code [./~/dom-helpers/util/babelHelpers.js:4,3] [INFO] Condition always true [./~/react/lib/findDOMNode.js:46,0] [INFO] Condition always true [./~/react/lib/instantiateReactComponent.js:80,0] [INFO] Dropping unreachable code [./~/react/lib/shouldUpdateReactComponent.js:40,0] [INFO] Condition always true [./~/react/lib/traverseAllChildren.js:158,0] [INFO] Side effects in initialization of unused variable _ownerDocument2 [./~/dom-helpers/activeElement.js:14,0] [INFO] Condition always true [./~/moment/locale/af.js:6,0] [INFO] Condition always true [./~/moment/locale/ar-ma.js:7,0] [INFO] Condition always true [./~/moment/locale/ar-sa.js:6,0] [INFO] Condition always true [./~/moment/locale/ar-tn.js:5,0] [INFO] Condition always true [./~/moment/locale/ar.js:8,0] [INFO] Condition always true [./~/moment/locale/az.js:6,0] [INFO] Condition always true [./~/moment/locale/be.js:8,0] [INFO] Condition always true [./~/moment/locale/bg.js:6,0] [INFO] Condition always true [./~/moment/locale/bn.js:6,0] [INFO] Condition always true [./~/moment/locale/bo.js:6,0] [INFO] Condition always true [./~/moment/locale/br.js:6,0] [INFO] Condition always true [./~/moment/locale/bs.js:7,0] [INFO] Condition always true [./~/moment/locale/ca.js:6,0] [INFO] Condition always true [./~/moment/locale/cs.js:6,0] [INFO] Dropping unreachable code [./~/moment/locale/cs.js:30,0] [INFO] Dropping unreachable code [./~/moment/locale/cs.js:39,0] [INFO] Dropping unreachable code [./~/moment/locale/cs.js:48,0] [INFO] Dropping unreachable code [./~/moment/locale/cs.js:57,0] [INFO] Dropping unreachable code [./~/moment/locale/cs.js:66,0] [INFO] Condition always true [./~/moment/locale/cv.js:6,0] [INFO] Condition always true [./~/moment/locale/cy.js:6,0] [INFO] Condition always true [./~/moment/locale/da.js:6,0] [INFO] Condition always true [./~/moment/locale/de-at.js:8,0] [INFO] Condition always true [./~/moment/locale/de.js:7,0] [INFO] Condition always true [./~/moment/locale/el.js:6,0] [INFO] Condition always true [./~/moment/locale/en-au.js:5,0] [INFO] Condition always true [./~/moment/locale/en-ca.js:6,0] [INFO] Condition always true [./~/moment/locale/en-gb.js:6,0] [INFO] Condition always true [./~/moment/locale/eo.js:8,0] [INFO] Condition always true [./~/moment/locale/es.js:6,0] [INFO] Condition always true [./~/moment/locale/et.js:7,0] [INFO] Condition always true [./~/moment/locale/eu.js:6,0] [INFO] Condition always true [./~/moment/locale/fa.js:6,0] [INFO] Condition always true [./~/moment/locale/fi.js:6,0] [INFO] Condition always true [./~/moment/locale/fo.js:6,0] [INFO] Condition always true [./~/moment/locale/fr-ca.js:6,0] [INFO] Condition always true [./~/moment/locale/fr.js:6,0] [INFO] Condition always true [./~/moment/locale/fy.js:6,0] [INFO] Condition always true [./~/moment/locale/gl.js:6,0] [INFO] Condition always true [./~/moment/locale/he.js:8,0] [INFO] Condition always true [./~/moment/locale/hi.js:6,0] [INFO] Condition always true [./~/moment/locale/hr.js:6,0] [INFO] Condition always true [./~/moment/locale/hu.js:6,0] [INFO] Dropping unused variable suffix [./~/moment/locale/hu.js:15,0] [INFO] Condition always true [./~/moment/locale/hy-am.js:6,0] [INFO] Condition always true [./~/moment/locale/id.js:7,0] [INFO] Condition always true [./~/moment/locale/is.js:6,0] [INFO] Condition always true [./~/moment/locale/it.js:7,0] [INFO] Condition always true [./~/moment/locale/ja.js:6,0] [INFO] Condition always true [./~/moment/locale/jv.js:7,0] [INFO] Condition always true [./~/moment/locale/ka.js:6,0] [INFO] Condition always true [./~/moment/locale/km.js:6,0] [ERROR] '.' is not recognized as an internal or external command, [INFO] Condition always true [./~/moment/locale/ko.js:10,0] [INFO] Condition always true [./~/moment/locale/lb.js:6,0] [INFO] Condition always true [./~/moment/locale/lt.js:6,0] [ERROR] operable program or batch file. [INFO] Condition always true [./~/moment/locale/lv.js:7,0] [INFO] Condition always true [./~/moment/locale/me.js:6,0] [INFO] Condition always true [./~/moment/locale/mk.js:6,0] [INFO] Condition always true [./~/moment/locale/ml.js:6,0] [INFO] Condition always true [./~/moment/locale/mr.js:6,0] [INFO] Condition always true [./~/moment/locale/ms-my.js:6,0] [INFO] Condition always true [./~/moment/locale/ms.js:6,0] [INFO] Condition always true [./~/moment/locale/my.js:6,0] [INFO] Condition always true [./~/moment/locale/nb.js:7,0] [INFO] Condition always true [./~/moment/locale/ne.js:6,0] [INFO] Condition always true [./~/moment/locale/nl.js:6,0] [INFO] Condition always true [./~/moment/locale/nn.js:6,0] [INFO] Condition always true [./~/moment/locale/pl.js:6,0] [INFO] Condition always true [./~/moment/locale/pt-br.js:6,0] [INFO] Condition always true [./~/moment/locale/pt.js:6,0] [INFO] Condition always true [./~/moment/locale/ro.js:7,0] [INFO] Condition always true [./~/moment/locale/ru.js:7,0] [INFO] Condition always true [./~/moment/locale/si.js:6,0] [ERROR] [INFO] Condition always true [./~/moment/locale/sk.js:7,0] [INFO] Dropping unreachable code [./~/moment/locale/sk.js:31,0] [INFO] Dropping unreachable code [./~/moment/locale/sk.js:40,0] [INFO] Dropping unreachable code [./~/moment/locale/sk.js:49,0] [INFO] Dropping unreachable code [./~/moment/locale/sk.js:58,0] [INFO] Dropping unreachable code [./~/moment/locale/sk.js:67,0] [INFO] Condition always true [./~/moment/locale/sl.js:6,0] [INFO] Condition always true [./~/moment/locale/sq.js:8,0] [INFO] Condition always true [./~/moment/locale/sr-cyrl.js:6,0] [INFO] Condition always true [./~/moment/locale/sr.js:6,0] [INFO] Condition always true [./~/moment/locale/sv.js:6,0] [INFO] Condition always true [./~/moment/locale/ta.js:6,0] [INFO] Condition always true [./~/moment/locale/th.js:6,0] [INFO] Condition always true [./~/moment/locale/tl-ph.js:6,0] [INFO] Condition always true [./~/moment/locale/tr.js:7,0] [INFO] Condition always true [./~/moment/locale/tzl.js:6,0] [INFO] Condition always true [./~/moment/locale/tzm-latn.js:6,0] [INFO] Condition always true [./~/moment/locale/tzm.js:6,0] [INFO] Condition always true [./~/moment/locale/uk.js:7,0] [INFO] Condition always true [./~/moment/locale/uz.js:6,0] [INFO] Condition always true [./~/moment/locale/vi.js:6,0] [INFO] Condition always true [./~/moment/locale/zh-cn.js:7,0] [INFO] Condition always true [./~/moment/locale/zh-tw.js:6,0] [INFO] Side effects in initialization of unused variable state [./~/react-router/lib/Link.js:106,0] [INFO] Condition always true [./~/react-router/lib/Redirect.js:49,0] [INFO] Condition always true [./~/eventemitter3/index.js:287,0] [INFO] Condition always true [./~/history/lib/createMemoryHistory.js:69,0] [INFO] Condition always true [./~/jquery/dist/jquery.js:9170,0] [INFO] Condition always true [./~/moment-timezone/moment-timezone.js:11,0] [INFO] Dropping unreachable code [./~/moment-timezone/moment-timezone.js:13,2] [INFO] Side effects in initialization of unused variable bsStyle [./~/react-bootstrap/lib/ButtonInput.js:46,0] [INFO] Side effects in initialization of unused variable value [./~/react-bootstrap/lib/ButtonInput.js:47,0] [INFO] Side effects in initialization of unused variable children [./~/react-bootstrap/lib/Modal.js:209,0] [INFO] Side effects in initialization of unused variable props [./~/react-bootstrap/lib/NavbarHeader.js:28,0] [INFO] Side effects in initialization of unused variable props [./~/react-bootstrap/lib/NavbarToggle.js:36,0] [INFO] Side effects in initialization of unused variable fixedTop [./~/react-bootstrap/lib/deprecated/Navbar.js:133,0] [INFO] Side effects in initialization of unused variable fixedBottom [./~/react-bootstrap/lib/deprecated/Navbar.js:134,0] [INFO] Side effects in initialization of unused variable staticTop [./~/react-bootstrap/lib/deprecated/Navbar.js:135,0] [INFO] Side effects in initialization of unused variable inverse [./~/react-bootstrap/lib/deprecated/Navbar.js:136,0] [INFO] Side effects in initialization of unused variable children [./~/react-bootstrap/~/react-overlays/lib/Modal.js:243,0] [INFO] Condition always true [./~/react-router/lib/IndexRedirect.js:49,0] [INFO] Condition always true [./~/react-router/lib/IndexRoute.js:46,0] [INFO] Condition always true [./~/react-router/lib/Route.js:50,0] [INFO] Condition always true [./~/react/lib/ReactDOMComponent.js:907,0] [ERROR] npm ERR! Windows_NT 6.1.7601 [INFO] Dropping side-effect-free statement [./~/react/lib/ReactEventListener.js:72,0] [ERROR] npm ERR! argv "C:\\clip-graylog\\2.0\\graylog2-server\\graylog2-web-interface\\node\\node.exe" "C:\\clip-graylog\\2.0\\graylog2-server\\graylog2-web-interface\\node\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" [INFO] Dropping unused function handleTopLevelWithPath [./~/react/lib/ReactEventListener.js:98,0] [ERROR] npm ERR! node v4.4.3 [INFO] Dropping unused variable DOCUMENT_FRAGMENT_NODE_TYPE [./~/react/lib/ReactEventListener.js:26,0] [ERROR] npm ERR! npm v3.8.6 [INFO] Side effects in initialization of unused variable valueLink [./~/uncontrollable/createUncontrollable.js:85,0] [INFO] Side effects in initialization of unused variable checkedLink [./~/uncontrollable/createUncontrollable.js:86,0] [ERROR] npm ERR! code ELIFECYCLE [ERROR] npm ERR! [email protected] build: `webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack` [ERROR] npm ERR! Exit status 1 [ERROR] npm ERR! [ERROR] npm ERR! Failed at the [email protected] build script 'webpack -p --config webpack.vendor.js && ./node_modules/.bin/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 graylog-web-interface package, [ERROR] npm ERR! not with npm itself. [ERROR] npm ERR! Tell the author that this fails on your system: [ERROR] npm ERR! webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack [ERROR] npm ERR! You can get information on how to open an issue for this project with: [ERROR] npm ERR! npm bugs graylog-web-interface [ERROR] npm ERR! Or if that isn't available, you can get their info via: [ERROR] npm ERR! npm owner ls graylog-web-interface [ERROR] npm ERR! There is likely additional logging output above. [ERROR] [ERROR] npm ERR! Please include the following file with any support request: [ERROR] npm ERR! C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface\npm-debug.log [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] graylog2-server .................................... FAILURE [02:40 min] [INFO] integration-tests .................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:40 min [INFO] Finished at: 2016-11-07T14:59:32-08:00 [INFO] Final Memory: 32M/347M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm run build) on project graylog2-server: Failed to run task: 'npm run build' failed. (error code 1) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Follwoing is the error i see in npm-debug log 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\clip-graylog\\2.0\\graylog2-server\\graylog2-web-interface\\node\\node.exe', 1 verbose cli 'C:\\clip-graylog\\2.0\\graylog2-server\\graylog2-web-interface\\node\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle [email protected]~prebuild: [email protected] 6 silly lifecycle [email protected]~prebuild: no script for prebuild, continuing 7 info lifecycle [email protected]~build: [email protected] 8 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true 9 verbose lifecycle [email protected]~build: PATH: C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface\node\node_modules\npm\bin\node-gyp-bin;C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface\node_modules\.bin;C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface\node;C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface\node;c:\Users\garamini\bin;.;C:\Program Files (x86)\Git\local\bin;C:\Program Files (x86)\Git\mingw\bin;C:\Program Files (x86)\Git\bin;c:\Java\jdk1.8.0_45\bin;c:\ProgramData\Oracle\Java\javapath;c:\Windows;c:\Windows\system32;c:\Windows\System32\Wbem;c:\Windows\System32\WindowsPowerShell\v1.0\;c:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\bin;c:\apache-maven-3.3.3\bin;c:\activator-dist-1.3.5;c:\activator-dist-1.3.5\bin;c:\Python27;c:\Users\garamini\.dnx\bin;c:\Program Files\Microsoft DNX\Dnvm\;c:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;c:\hadoop-2.6.0\bin;c:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\;c:\Windows\system32;c:\Windows;c:\Windows\System32\Wbem;c:\Windows\System32\WindowsPowerShell\v1.0\;c:\Windows\System32\WindowsPowerShell\v1.0\;c:\Java\jdk1.8.0_45\bin;C:\Program Files (x86)\Git\bin;c:\apache-maven-3.3.3\bin;c:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia AUX;c:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia AUX\Support binaries;c:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Broker;c:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Client;c:\activator-dist-1.3.5;c:\activator-dist-1.3.5\bin;c:\Python27;c:\Users\garamini\.dnx\bin;c:\Program Files\Microsoft DNX\Dnvm\;c:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;c:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\;c:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\Doctrine extensions for PHP\;c:\hadoop-2.6.0\bin;c:\Users\garamini\AppData\Roaming\nvm;c:\Program Files\nodejs;c:\Program Files\Microsoft\Web Platform Installer\;c:\Program Files\TortoiseSVN\bin;c:\Program Files (x86)\Brackets\command;c:\Program Files (x86)\Sennheiser\SoftphoneSDK\;c:\Program Files\Microsoft Windows Performance Toolkit\;c:\Program Files\nodejs\;c:\Users\garamini\AppData\Roaming\nvm;c:\Program Files\nodejs;c:\Users\garamini\AppData\Local\Box\Box Edit\;c:\Users\garamini\AppData\Roaming\npm; 10 verbose lifecycle [email protected]~build: CWD: C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface 11 silly lifecycle [email protected]~build: Args: [ '/d /s /c', 11 silly lifecycle 'webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack' ] 12 silly lifecycle [email protected]~build: Returned: code: 1 signal: null 13 info lifecycle [email protected]~build: Failed to exec build script 14 verbose stack Error: [email protected] build: `webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack` 14 verbose stack Exit status 1 14 verbose stack at EventEmitter.<anonymous> (C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface\node\node_modules\npm\lib\utils\lifecycle.js:239:16) 14 verbose stack at emitTwo (events.js:87:13) 14 verbose stack at EventEmitter.emit (events.js:172:7) 14 verbose stack at ChildProcess.<anonymous> (C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface\node\node_modules\npm\lib\utils\spawn.js:24:14) 14 verbose stack at emitTwo (events.js:87:13) 14 verbose stack at ChildProcess.emit (events.js:172:7) 14 verbose stack at maybeClose (internal/child_process.js:827:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 15 verbose pkgid [email protected] 16 verbose cwd C:\clip-graylog\2.0\graylog2-server\graylog2-web-interface 17 error Windows_NT 6.1.7601 18 error argv "C:\\clip-graylog\\2.0\\graylog2-server\\graylog2-web-interface\\node\\node.exe" "C:\\clip-graylog\\2.0\\graylog2-server\\graylog2-web-interface\\node\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" 19 error node v4.4.3 20 error npm v3.8.6 21 error code ELIFECYCLE 22 error [email protected] build: `webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack` 22 error Exit status 1 23 error Failed at the [email protected] build script 'webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the graylog-web-interface package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error webpack -p --config webpack.vendor.js && ./node_modules/.bin/webpack 23 error You can get information on how to open an issue for this project with: 23 error npm bugs graylog-web-interface 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls graylog-web-interface 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ] Reagrds -Gangahdar -- 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/e6a57528-8796-4ca5-85eb-4d701c78f361%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
