2017-08-04 68 views
0

我的jhipster註冊表在幾個小時前停止工作。Jhipster註冊表停止工作

我followd下列步驟操作:

  1. 去除node_modules /文件夾
  2. NPM安裝
  3. ./mvnw

當註冊表重新啓動和運行我得到一個錯誤頁面以下文字:

??error.title_en?? 

並在日誌中發現:

2017-08-04 22:58:53.729 DEBUG 3203 --- [kground-preinit] org.jboss.logging      : Logging Provider: org.jboss.logging.Slf4jLoggerProvider found via system property 

     ██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗ 
     ██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗ 
     ██║ ████████║ ██║ ███████╔╝ ╚█████╗  ██║ ██████╗ ███████╔╝ 
    ██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║ 
    ╚██████╔╝ ██║ ██║ ████████╗ ██║  ██████╔╝ ██║ ████████╗ ██║ ╚██╗ 
    ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝  ╚═════╝  ╚═╝ ╚═══════╝ ╚═╝ ╚═╝ 

:: JHipster Registry :: Running Spring Boot 1.5.4.RELEASE :: 
:: http://jhipster.github.io :: 

2017-08-04 22:58:56.117 INFO 3203 --- [ restartedMain] i.g.j.registry.JHipsterRegistryApp  : The following profiles are active: dev,native 
2017-08-04 22:58:59.313 DEBUG 3203 --- [ restartedMain] i.g.j.r.config.AsyncConfiguration  : Creating Async Task Executor 
2017-08-04 22:58:59.994 DEBUG 3203 --- [ restartedMain] i.g.j.r.config.MetricsConfiguration  : Registering JVM gauges 
2017-08-04 22:59:00.274 DEBUG 3203 --- [ restartedMain] i.g.j.r.config.MetricsConfiguration  : Initializing Metrics JMX reporting 
2017-08-04 22:59:03.135 DEBUG 3203 --- [ restartedMain] i.g.j.registry.config.WebConfigurer  : Registering CORS filter 
2017-08-04 22:59:03.327 WARN 3203 --- [ restartedMain] c.n.c.sources.URLConfigurationSource  : No URLs will be polled as dynamic configuration sources. 
2017-08-04 22:59:04.102 INFO 3203 --- [ restartedMain] i.g.j.registry.config.WebConfigurer  : Web application configuration, using profiles: dev 
2017-08-04 22:59:04.103 DEBUG 3203 --- [ restartedMain] i.g.j.registry.config.WebConfigurer  : Initializing Metrics registries 
2017-08-04 22:59:04.107 DEBUG 3203 --- [ restartedMain] i.g.j.registry.config.WebConfigurer  : Registering Metrics Filter 
2017-08-04 22:59:04.107 DEBUG 3203 --- [ restartedMain] i.g.j.registry.config.WebConfigurer  : Registering Metrics Servlet 
2017-08-04 22:59:04.113 INFO 3203 --- [ restartedMain] i.g.j.registry.config.WebConfigurer  : Web application fully configured 
2017-08-04 22:59:12.109 WARN 3203 --- [ restartedMain] c.n.c.sources.URLConfigurationSource  : No URLs will be polled as dynamic configuration sources. 
2017-08-04 22:59:12.551 INFO 3203 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1 
2017-08-04 22:59:12.551 INFO 3203 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Client configured to neither register nor query for data. 
2017-08-04 22:59:12.571 INFO 3203 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1501880352571 with initial instances count: 0 
2017-08-04 22:59:12.941 INFO 3203 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 
2017-08-04 22:59:12.941 INFO 3203 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 
2017-08-04 22:59:12.942 INFO 3203 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 
2017-08-04 22:59:12.942 INFO 3203 --- [ restartedMain] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 
2017-08-04 22:59:13.809 WARN 3203 --- [ restartedMain] o.s.j.e.a.AnnotationMBeanExporter  : Bean with key 'zuulEndpoint' has been registered as an MBean but has no exposed attributes or operations 
2017-08-04 22:59:14.606 DEBUG 3203 --- [pool-4-thread-1] i.g.j.r.aop.logging.LoggingAspect  : Enter: io.github.jhipster.registry.service.ZuulUpdaterService.updateZuulRoutes() with argument[s] = [] 
2017-08-04 22:59:14.614 DEBUG 3203 --- [pool-4-thread-1] i.g.j.r.aop.logging.LoggingAspect  : Exit: io.github.jhipster.registry.service.ZuulUpdaterService.updateZuulRoutes() with result = null 
2017-08-04 22:59:14.740 INFO 3203 --- [ restartedMain] i.g.j.registry.JHipsterRegistryApp  : Started JHipsterRegistryApp in 22.799 seconds (JVM running for 23.886) 
2017-08-04 22:59:14.741 INFO 3203 --- [ restartedMain] i.g.j.registry.JHipsterRegistryApp  : 
---------------------------------------------------------- 
    Application 'jhipster-registry' is running! Access URLs: 
    Local:  http://localhost:8761 
    External: http://xxx.xxx.x.xxx:8761 
    Profile(s):  [dev, native] 
---------------------------------------------------------- 
2017-08-04 22:59:19.615 DEBUG 3203 --- [pool-4-thread-1] i.g.j.r.aop.logging.LoggingAspect  : Enter: io.github.jhipster.registry.service.ZuulUpdaterService.updateZuulRoutes() with argument[s] = [] 
2017-08-04 22:59:19.616 DEBUG 3203 --- [pool-4-thread-1] i.g.j.r.aop.logging.LoggingAspect  : Exit: io.github.jhipster.registry.service.ZuulUpdaterService.updateZuulRoutes() with result = null 
2017-08-04 22:59:24.621 DEBUG 3203 --- [pool-4-thread-1] i.g.j.r.aop.logging.LoggingAspect  : Enter: io.github.jhipster.registry.service.ZuulUpdaterService.updateZuulRoutes() with argument[s] = [] 
2017-08-04 22:59:24.622 DEBUG 3203 --- [pool-4-thread-1] i.g.j.r.aop.logging.LoggingAspect  : Exit: io.github.jhipster.registry.service.ZuulUpdaterService.updateZuulRoutes() with result = null 
2017-08-04 22:59:27.234 WARN 3203 --- [ XNIO-2 task-1] o.s.c.n.zuul.web.ZuulHandlerMapping  : No routes found from RouteLocator 
2017-08-04 22:59:27.438 DEBUG 3203 --- [ XNIO-2 task-1] freemarker.cache       : Couldn't find template in cache for "error.ftl"("en", UTF-8, parsed); will try to load it. 
2017-08-04 22:59:27.441 DEBUG 3203 --- [ XNIO-2 task-1] freemarker.cache       : TemplateLoader.findTemplateSource("error_en.ftl"): Not found 
2017-08-04 22:59:27.444 DEBUG 3203 --- [ XNIO-2 task-1] freemarker.cache       : TemplateLoader.findTemplateSource("error.ftl"): Not found 
2017-08-04 22:59:29.623 DEBUG 3203 --- [pool-4-thread-1] i.g.j.r.aop.logging.LoggingAspect  : Enter: io.github.jhipster.registry.service.ZuulUpdaterService.updateZuulRoutes() with argument[s] = [] 
2017-08-04 22:59:29.623 DEBUG 3203 --- [pool-4-thread-1] i.g.j.r.aop.logging.LoggingAspect  : Exit: io.github.jhipster.registry.service.ZuulUpdaterService.updateZuulRoutes() 

我不知道這一切來自哪裏。

編輯-----------------------------------

的問題可能是,當我運行npm install和它的後腳本​​則拋出Error:

ERROR in ./~/css-loader!./~/postcss-loader!./~/sass-loader/lib/loader.js!./src/main/webapp/content/scss/vendor.scss 
Module build failed: TypeError: Invalid PostCSS Plugin found: [0] 
    at /Users/xxxxxxx/dev/projects/registrytest/node_modules/postcss-load-plugins/lib/plugins.js:32:17 
    at Array.forEach (native) 
    at plugins (/Users/xxxxxxx/dev/projects/registrytest/node_modules/postcss-load-plugins/lib/plugins.js:21:15) 
    at /Users/xxxxxxx/dev/projects/registrytest/node_modules/postcss-load-config/index.js:64:18 
    at <anonymous> 
@ ./src/main/webapp/content/scss/vendor.scss 4:14-194 
@ ./src/main/webapp/app/vendor.ts 
@ dll vendor 
error Command failed with exit code 2. 
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 
npm ERR! code ELIFECYCLE 
npm ERR! errno 1 
npm ERR! [email protected] postinstall: `yarn run webpack:build` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script. 
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 

npm ERR! A complete log of this run can be found in: 
npm ERR!  /Users/xxxxxx/.npm/_logs/2017-08-05T07_44_08_129Z-debug.log 

我運行:

  • OS X 10.11.6
  • 節點:8.2.1
  • npm:5.3.0
+0

我猜你所顯示的日誌中的錯誤是不夠的,這是前面發生的事情的後果;請不要截斷日誌,也不能看到日誌記錄級別。 –

回答

0

這是一個依賴性問題。我的解決方案是:

從版本8 to 6.11降級node.js,因爲node-sass不支持node.js 8。然後我將sass-loader, node-sass and postcss-loader升級到最新版本。

我不知道這是要走的路,但它適用於我。