apic start命令失败

时间:2016-11-28 02:52:26

标签: strongloop apiconnect

尝试使用

启动应用程序时出现以下错误
apic start 

这是我得到的错误。

E:\nodejs\ThinkIBM\inventory>apic start inventory-gw did not return a port in timeout.
Error: Service inventory-gw started but did not initialize within the timeout period. Dumping log buffer. 
2016-11-28T02:19:52.577Z pid:8084 worker:0 INFO strong-agent native addon missing, install a compiler 
2016-11-28T02:19:52.577Z pid:8084 worker:0 INFO strong-agent v2.0.4 profiling app 'microgateway' pid '8084' 
2016-11-28T02:19:52.593Z pid:8084 worker:0 INFO strong-agent[8084] started profiling agent 
2016-11-28T02:19:52.593Z pid:8084 worker:0 INFO supervisor starting (pid 8084)
2016-11-28T02:19:52.593Z pid:8084 worker:0 INFO strong-agent strong-agent using strong-cluster-control v2.2.3 
2016-11-28T02:19:52.593Z pid:8084 worker:0 INFO supervisor reporting metrics to `internal:` 
2016-11-28T02:19:52.608Z pid:8084 worker:0 INFO strong-agent not profiling, agent metrics requires a valid license. 
 2016-11-28T02:19:52.608Z pid:8084 worker:0 Please contact sales@strongloop.com for assistance. 
 2016-11-28T02:19:52.608Z pid:8084 worker:0 INFO supervisor size set to 1 2016-11-28T02:19:52.812Z pid:8084 worker:0 INFO supervisor started worker 1 (pid 3360) 
 2016-11-28T02:19:52.812Z pid:8084 worker:0 INFO supervisor resized to 1 2016-11-28T02:19:53.343Z pid:3360 worker:1 INFO strong-agent native addon missing, install a compiler 
 2016-11-28T02:19:53.343Z pid:3360 worker:1 INFO strong-agent v2.0.4 profiling app 'microgateway' pid '3360' 
 2016-11-28T02:19:53.343Z pid:3360 worker:1 INFO strong-agent[3360] started profiling agent 
    2016-11-28T02:19:53.655Z pid:3360 worker:1 Error: Fail to load environment variables:  { [Error: ENOENT: no such file or directory, open 'E:\nodejs\node_modules\apiconnect\node_modules\apiconnect-cli-pm\node_modules\microgateway\env.yaml'] 
    2016-11-28T02:19:53.655Z pid:3360 worker:1   errno: -4058, 2016-11-28T02:19:53.655Z pid:3360 worker:1   code: 'ENOENT', 2016-11-28T02:19:53.655Z pid:3360 worker:1   syscall: 'open',    2016-11-28T02:19:53.655Z pid:3360 worker:1   path: 'E:\\nodejs\\node_modules\\apiconnect\\node_modules\\apiconnect-cli-pm\\node_modules\\microgateway\\env.yaml' } 
 2016-11-28T02:20:08.531Z pid:3360 worker:1 Error: not able to perform the handshake with APIM, error: [Error: can not load default private key]           2016-11-28T02:20:08.766Z pid:3360 worker:1 INFO strong-agent not profiling, agent metrics requires a valid license. 
 2016-11-28T02:20:08.766Z pid:3360 worker:1 Please contact sales@strongloop.com for assistance

知道我在这里缺少什么吗?以下是我的apic版本以及扩展程序的详细信息。

E:\ nodejs \ ThinkIBM \ inventory> apic --ext-version

apiconnect: v2.3.6 (API Connect: v5.0.4.0)
 apiconnect-cli-apis 2.3.0 (6c13193ba5b19c2ad39af78d3ee5f2381f8057d9)
 apiconnect-cli-apps 2.4.0 (a3540f9879aac38b0a97dad171c82e037ce2545c)
 apiconnect-cli-auth 2.4.0 (963e1e2ccddd29ff8acdd21c9feb2cb5e9822cab)
 apiconnect-cli-catalogs 2.2.0 (1fcb9e8c7fec5f2aa560e94d6d127e32148954c4)
 apiconnect-cli-config 2.3.1 (ad1a8b9b05dc9cb425b66c850faf25df3dae6612)
 apiconnect-cli-create 2.4.0 (255a725517978dc1bd2d4fc96969163ff47849a1)
 apiconnect-cli-devapps 1.0.0 (1824077edaff6e4c794caf7d6f5b7012a459fcd6)
 apiconnect-cli-drafts 2.4.1 (da80ce686a8930bfc0cbfe82ced3ef6b93233b28)
 apiconnect-cli-edit 2.3.0 (cb1b808997652edec04916ce389eacb4796ee39c)
 apiconnect-cli-loopback 2.3.0 (6cb04654fae3b677af1faf423c6b177ddd90b6a7)
 apiconnect-cli-orgs 2.3.0 (b7e3b08ad93ecc4052990e335e60368e5fd2580e)
 apiconnect-cli-pm 2.2.0 (e43a7047c9ab4bc06f5d90c1cc7ce2b7a74a998b)
  microgateway 1.5.3 (386fe17a7c5a301abb8681e67ffec35a68093744)
   flow-engine 1.1.0
 apiconnect-cli-policies 1.3.0 (b01a4d033850ea46343b6f97545fcfef2ca7159f)
 apiconnect-cli-products 2.4.0 (b518c07e7cf2e64f88a585903d5d09e50afaccd2)
 apiconnect-cli-validate 2.2.0 (38be0972b4536069ccaa53c58571dd1d0cff82c1)
 apiconnect-cli-version-checker 1.2.0 (8541f810263a987dc2ac2857d856eb763a4c4324)
 plugins 3.2.1

1 个答案:

答案 0 :(得分:1)

我能够解决这个问题。介于两者之间,我在Windows 10上。

  1. 选择
  2. 运行Windows命令提示符
      

    "以管理员身份运行"

    1. apic start就像一个魅力
    2. 在非Windows系统上,尝试运行" apic start"使用

      super user.sudo apic start

    3. sudo apic start
      

      我想,作为替代方案,在安装apiconnect期间尝试使用' - unsafe-perm'使用install命令可能会覆盖Windows上与这些权限相关的问题