You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/05/24 07:41:18 UTC

[GitHub] [dubbo-go] wangxw666 opened a new issue #1213: nacos config_center has problem

wangxw666 opened a new issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213


   version : v1.5.7
   1. 元数据中心比配置中心先启动,导致元数据中心的配置放在配置中心中,元数据中心无法启动。
   2. nacos 配置中心账号密码问题
      ```
      ConfigCenterConfig
      func (c *ConfigCenterConfig) GetURLMap() url.Values {
   	urlMap := url.Values{}
   	urlMap.Set(constant.CONFIG_NAMESPACE_KEY, c.Namespace)
   	urlMap.Set(constant.CONFIG_GROUP_KEY, c.Group)
   	urlMap.Set(constant.CONFIG_CLUSTER_KEY, c.Cluster)
   	urlMap.Set(constant.CONFIG_APP_ID_KEY, c.AppId)
   	urlMap.Set(constant.CONFIG_LOG_DIR_KEY, c.LogDir)
   	return urlMap
     }
      ```
     没有添加账号密码到url中
    ```
   	return clients.CreateConfigClient(map[string]interface{}{
   		"serverConfigs": svrConfList,
   		"clientConfig": nacosconst.ClientConfig{
   			TimeoutMs:           uint64(int32(timeout / time.Millisecond)),
   			ListenInterval:      uint64(int32(timeout / time.Millisecond)),
   			NotLoadCacheAtStart: true,
   			LogDir:              url.GetParam(constant.NACOS_LOG_DIR_KEY, ""),
   			CacheDir:            url.GetParam(constant.NACOS_CACHE_DIR_KEY, ""),
   			Endpoint:            url.GetParam(constant.NACOS_ENDPOINT, ""),
   			Username:            url.GetParam(constant.NACOS_USERNAME, ""),
   			Password:            url.GetParam(constant.NACOS_PASSWORD, ""),
   			NamespaceId:         url.GetParam(constant.NACOS_NAMESPACE_ID, ""),
   		},
   	})
   ```
   使用的常量不一致 一个是confg.xx 一个是nacos常量。


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] AlexStocks commented on issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213#issuecomment-850787227


   @zhaoyunxing92


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] AlexStocks commented on issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213#issuecomment-846880003


   would u pls try to fix this problem by yourself.


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] wangxw666 commented on issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
wangxw666 commented on issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213#issuecomment-851421957


   追加:consumer 和 provider 启动了两个配置中心


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] wangxw666 commented on issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
wangxw666 commented on issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213#issuecomment-846907617


   ok,I will submit a pr.


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] AlexStocks edited a comment on issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
AlexStocks edited a comment on issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213#issuecomment-846880003


   would u pls try to fix this problem by yourself?


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] zhaoyunxing92 edited a comment on issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
zhaoyunxing92 edited a comment on issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213#issuecomment-846921933


   config_center_config#GetUrlMap()


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] xmsz commented on issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
xmsz commented on issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213#issuecomment-895760325


   有没有Nacos的启动示例
   ```
   var (
   	appName         = "greeterImpl"
   	referenceConfig = config.ReferenceConfig{
   		InterfaceName: "org.apache.dubbo.UserProvider",
   		Cluster:       "failover",
   		Registry:      "nacos",
   		Protocol:      "tri",
   		Generic:       true,
   	}
   )
   ```
   跑不起来
   ```
   panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x4590b7c]
   
   goroutine 1 [running]:
   dubbo.apache.org/dubbo-go/v3/config.(*ReferenceConfig).getURLMap(0x51e5fa0, 0x3)
           /Users/chenshijian/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.0-rc2/config/reference_config.go:255 +0xd9c
   dubbo.apache.org/dubbo-go/v3/config.(*ReferenceConfig).Refer(0x51e5fa0, 0x49bf2e0, 0xc000273698)
           /Users/chenshijian/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.0-rc2/config/reference_config.go:97 +0x99
   dubbo.apache.org/dubbo-go/v3/config.(*ReferenceConfig).GenericLoad(0x51e5fa0, 0x4b14bbd, 0xb)
           /Users/chenshijian/go/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.0-rc2/config/reference_config.go:287 +0x10d
   main.init.0()
   ```
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] zhaoyunxing92 commented on issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
zhaoyunxing92 commented on issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213#issuecomment-846921933


   方便贴下文件名称吗


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] XiaoWeiKIN closed issue #1213: nacos config_center has problem

Posted by GitBox <gi...@apache.org>.
XiaoWeiKIN closed issue #1213:
URL: https://github.com/apache/dubbo-go/issues/1213


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org