MarkLogic Samplestack安装问题(任务执行失败':dbTeardown')

时间:2015-06-10 15:21:16

标签: marklogic

我试图在OS X 10.10.3上为ML8.02安装Samplestack application

按照说明操作,一切顺利,直至gulp once --browser=chrome步骤。这会为任务生成执行失败':dbTeardown'错误,导致" Samplestack环境可能未正确配置。"消息。

根据安装手册,需要从"本地Samplestack存储库根目录"调用此步骤。这与" marklogic-samplestack目录不同吗?#34;在之前的步骤?如果是这样,我应该在哪里看?

我不知道该怎么做,我使用了marklogic-samplestack-master(来自下载的zip的root)并得到以下控制台错误消息。任何建议如何解决这个问题?

[16:55:06] Warning: gulp version mismatch:
[16:55:06] Global gulp is 3.9.0
[16:55:06] Local gulp is 3.8.11
[16:55:07] Using gulpfile ~/Downloads/marklogic-samplestack-master/gulpfile.js
[16:55:07] Starting 'once'...
[16:55:08] Starting 'clean'...
[16:55:08] Starting 'middle-tier-start'...
reconfiguring database, starting app server

./gradlew dbInit --no-daemon
[16:55:08] Finished 'clean' after 189 ms
[16:55:08] Starting 'bower-files'...
[16:55:09] Finished 'bower-files' after 440 ms
[16:55:09] Starting 'build'...
.[16:55:10] processing files
...[16:55:13] saw 221 files
....[16:55:13] Finished 'build' after 4.29 s
(many dots)
./gradlew dbTeardown --no-daemon
...........................................
:
..
FAILURE:
Build failed with an exception.
* What went wrong:
Execution failed for task ':dbTeardown'.
>
Failed Teardown.  Check environment before proceeding.

* Try:
Run with
--stacktrace
option to get the stack trace. Run with --info
or        
--debug
option to get more log output..... 
[16:58:47] detected middle tier started
preparations complete
[16:58:47] 'middle-tier-start' errored after 3.63 min
[16:58:47] Error: EXIT CODE: 1
at ChildProcess.<anonymous> (/Users/matthijs/Downloads/marklogic-samplestack-master/shared/js/dev-tasks/e2e/middleTierJava.js:53:17)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

Error(s) occurred.
The Samplestack environment may not be properly configured.
[16:58:47] 'once' errored after 3.65 min
[16:58:47] Error: 1
    at formatError             
(/Users/matthijs/.node/lib/node_modules/gulp/bin/gulp.js:169:10)
at Gulp.<anonymous> 
(/Users/matthijs/.node/lib/node_modules/gulp/bin/gulp.js:195:15)
at Gulp.emit (events.js:95:17)
at Gulp.Orchestrator._emitTaskDone (/Users/matthijs/Downloads/marklogic-samplestack-master/node_modules/gulp/node_modules/orchestrator/index.js:264:8)
at /Users/matthijs/Downloads/marklogic-samplestack-master/node_modules/gulp/node_modules/orchestrator/index.js:275:23
at finish (/Users/matthijs/Downloads/marklogic-samplestack-master/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:21:8)
at cb (/Users/matthijs/Downloads/marklogic-samplestack-    master/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:29:3)
at ChildProcess.onDone (/Users/matthijs/Downloads/marklogic-samplestack-master/shared/js/dev-tasks/tasks/once.js:38:20)
at ChildProcess.emit (events.js:117:20)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)

1 个答案:

答案 0 :(得分:2)

按照指南遇到同样的问题并尝试跳过 Set up the Java middle tier and database tier with gradle步骤仅为了配置基于Node.js的中间轮胎。

从日志中可以看出,在First-Time Setup步骤中使用了 gradle 。所以我按照上面的第一个链接,直到第二个段落

  

如果您已经保护MarkLogic,则需要使用您在安装和设置过程中使用的管理员凭据更新gradle.properties。

希望它有所帮助。