uzhiqiang opened a new issue #768:
URL: https://github.com/apache/servicecomb-service-center/issues/768


   **Describe the bug**
   build from source faild for init metrics InstanceName failed, here is the 
panic info.
   2020-11-28T11:35:26.989+0800 PANIC   server/server.go:131    init metrics 
InstanceName failed
   2020-11-28 11:35:26.987257 I | INFO: Install Provider Plugin, name: default
   2020-11-28 11:35:26.987257 I | INFO: Installed Server Plugin, protocol:rest
   panic: init metrics InstanceName failed
   
   goroutine 1 [running]:
   go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00058c0b0, 0x0, 0x0, 0x0)
        D:/GoProject/pkg/mod/go.uber.org/[email protected]/zapcore/entry.go:229 +0x54c
   go.uber.org/zap.(*Logger).Panic(0xc000082e40, 0x222ae44, 0x20, 0x0, 0x0, 0x0)
        D:/GoProject/pkg/mod/go.uber.org/[email protected]/logger.go:225 +0x86
   
github.com/apache/servicecomb-service-center/pkg/log.(*Logger).Fatal(0xc000082f00,
 0x222ae44, 0x20, 0x0, 0x0)
        D:/GoProject/src/servicecomb-service-center/pkg/log/zap.go:211 +0x1fd
   github.com/apache/servicecomb-service-center/pkg/log.Fatal(...)
        D:/GoProject/src/servicecomb-service-center/pkg/log/logger.go:62
   
github.com/apache/servicecomb-service-center/server.(*ServiceCenterServer).initMetrics(0x38c7c80)
        D:/GoProject/src/servicecomb-service-center/server/server.go:131 +0x35c
   
github.com/apache/servicecomb-service-center/server.(*ServiceCenterServer).initialize(0x38c7c80)
        D:/GoProject/src/servicecomb-service-center/server/server.go:89 +0x44
   
github.com/apache/servicecomb-service-center/server.(*ServiceCenterServer).Run(0x38c7c80)
        D:/GoProject/src/servicecomb-service-center/server/server.go:68 +0x32
   github.com/apache/servicecomb-service-center/server.Run()
        D:/GoProject/src/servicecomb-service-center/server/server.go:51 +0x6f
   main.main()
        D:/GoProject/src/servicecomb-service-center/cmd/scserver/main.go:27 
+0x27
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Platform And Runtime (please complete the following information):**
   
   Platform
    - OS: windows
    - Version: master branch
   
   Runtime
    - Version Go 1.14.3
   
   **Additional context**
   Add any other context about the problem here.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to