Onlyoffice server 编译和启动错误

来自ling
跳转至: 导航搜索
Windows PowerShell
版权所有 (C) 2016 Microsoft Corporation。保留所有权利。

PS C:\Windows\system32> cd D:\DocumentServer\server
PS D:\DocumentServer\server> .\run.bat

D:\DocumentServer\server>ECHO OFF

----------------------------------------
copy file to converter
----------------------------------------
子目录或文件 D:\DocumentServer\server\\App_Data 已经存在。
子目录或文件 D:\DocumentServer\server\\FileConverter\bin 已经存在。
子目录或文件 D:\DocumentServer\server\\FileConverter\bin\HtmlFileInternal 已经存在。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
复制了 70 个文件
已复制         1 个文件。
子目录或文件 D:\DocumentServer\server\\SpellChecker\dictionaries 已经存在。
复制了 149 个文件

----------------------------------------
Start build skd-all.js
----------------------------------------
√ All packages installed (16 packages installed from npm registry, use 1s, speed 21.64kB/s, json 18(26.79kB), tarball 0
B)
√ All packages installed (123 packages installed from npm registry, use 11s, speed 22.21kB/s, json 149(235.12kB), tarba
ll 0B)
Running "build_webword_init" task
>> WebWord config loaded successfully

Running "concat_sdk_init" task

Running "concat:sdkmin" (concat) task

Running "concat:sdk" (concat) task

Running "concat:all" (concat) task

Running "clean:tmp" (clean) task
>> 2 paths cleaned.

Running "compile_sdk_init" task

Running "closure-compiler:sdk" (closure-compiler) task
>> ../word/sdk-js-tmp.js created

Running "splitfile:sdk" (splitfile) task
File "../word/sdk-all-min.js" created.
File "../word/sdk-all.js" created.

Running "concat:sdkmin" (concat) task

Running "concat:sdk" (concat) task

Running "replace:version" (replace) task
>> 6 replacements in 2 files.

Running "clean:tmp" (clean) task
>> 2 paths cleaned.

Running "build_webexcel_init" task
>> WebExcel config loaded successfully

Running "concat_sdk_init" task

Running "concat:sdkmin" (concat) task

Running "concat:sdk" (concat) task

Running "concat:all" (concat) task

Running "clean:tmp" (clean) task
>> 2 paths cleaned.

Running "compile_sdk_init" task

Running "closure-compiler:sdk" (closure-compiler) task
>> ../cell/sdk-js-tmp.js created

Running "splitfile:sdk" (splitfile) task
File "../cell/sdk-all-min.js" created.
File "../cell/sdk-all.js" created.

Running "concat:sdkmin" (concat) task

Running "concat:sdk" (concat) task

Running "replace:version" (replace) task
>> 6 replacements in 2 files.

Running "clean:tmp" (clean) task
>> 2 paths cleaned.

Running "build_webpowerpoint_init" task
>> WebPowerPoint config loaded successfully

Running "concat_sdk_init" task

Running "concat:sdkmin" (concat) task

Running "concat:sdk" (concat) task

Running "concat:all" (concat) task

Running "clean:tmp" (clean) task
>> 2 paths cleaned.

Running "compile_sdk_init" task

Running "closure-compiler:sdk" (closure-compiler) task
>> ../slide/sdk-js-tmp.js created

Running "splitfile:sdk" (splitfile) task
File "../slide/sdk-all-min.js" created.
File "../slide/sdk-all.js" created.

Running "concat:sdkmin" (concat) task

Running "concat:sdk" (concat) task

Running "replace:version" (replace) task
>> 6 replacements in 2 files.

Running "clean:tmp" (clean) task
>> 2 paths cleaned.

Done.
| Installing websocket-extensions@>=0.1.1gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (D:\server\nodejs\node_modules\cnpm\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack     at D:\server\nodejs\node_modules\cnpm\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack     at D:\server\nodejs\node_modules\cnpm\node_modules\graceful-fs\polyfills.js:264:29ode/v0.3.15.14.tar.
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.15063.4.8 Use uuid module instead
gyp ERR! command "D:\\server\\nodejs\\node.exe" "D:\\server\\nodejs\\node_modules\\cnpm\\node_modules\\npminstall\\node-
gyp-bin\\node-gyp.js" "rebuild"arball 0B)
gyp ERR! cwd D:\DocumentServer\server\SpellChecker\node_modules\.2.0.11@nodehun
gyp ERR! node -v v8.4.0r\SpellChecker\node_modules\.2.0.11@nodehun>node "D:\server\nodejs\node_modules\cnpm\node_modules
gyp ERR! node-gyp -v v3.4.0ode-gyp.js" rebuild socket-driver@0.7.0 > websocket-extensions@0.1.3 (09:24:35)
gyp ERR! not ok
Error: Run "C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1
    at ChildProcess.proc.on.code (D:\server\nodejs\node_modules\cnpm\node_modules\runscript\index.js:67:21)use 16s, spee
    at emitTwo (events.js:125:13)tarball 0B)
    at ChildProcess.emit (events.js:213:7)kages (detail see file node_modules/.recently_updates.txt)
    at maybeClose (internal/child_process.js:927:16)m npm registry, use 2s, speed 12.21kB/s, json 13(19.12kB), tarball 0
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npminstall version: 2.9.2017-11-04): 1 packages (detail see file node_modules/.recently_updates.txt)
npminstall args: D:\server\nodejs\node.exe D:\server\nodejs\node_modules\cnpm\node_modules\npminstall\bin\install.js --c
hina --userconfig=C:\Users\bo.wang\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm
.taobao.org
请按任意键继续. . . [2017-11-11 23:53:03.027] [WARN] nodeJS - start cluster with 1 workers
[2017-11-11 23:53:03.033] [WARN] nodeJS - worker 8512 started.
[2017-11-11 23:53:03.363] [WARN] nodeJS - Plugins watch exception (https://nodejs.org/docs/latest/api/fs.html#fs_availab
ility).
module.js:491
    throw err;
    ^

Error: Cannot find module 'nodehun'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (D:\DocumentServer\server\SpellChecker\sources\spellCheck.js:36:17)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
[2017-11-11 23:53:03.556] [WARN] nodeJS - worker 8512 died (code = 1; signal = null). restart...
[2017-11-11 23:53:03.556] [INFO] nodeJS - endCheckHealth
[2017-11-11 23:53:03.563] [WARN] nodeJS - update cluster with 1 workers
[2017-11-11 23:53:03.569] [WARN] nodeJS - worker 9260 started.
[2017-11-11 23:53:03.568] [WARN] nodeJS - update cluster with 1 workers
[2017-11-11 23:53:03.570] [WARN] nodeJS - update cluster with 1 workers
[2017-11-11 23:53:03.575] [WARN] nodeJS - worker 7584 started.
[2017-11-11 23:53:03.576] [WARN] nodeJS - update cluster with 1 workers
module.js:491
    throw err;
    ^

问题解决

  • SpellChecker 先不运行
  • redis rabbitmq安装在本地 安装目录不能有空格