Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新到1.3.10版本后,配置文件不提供ip信息情况下,注册到nacos的服务ip信息为127.0.0.1 #335

Open
ROMYIM opened this issue Nov 18, 2024 · 3 comments

Comments

@ROMYIM
Copy link

ROMYIM commented Nov 18, 2024

Describe what happened (or what feature you want)

配置文件如下,并没有提供服务的ip地址信息。
在1.3.9版本下,可以向nacos提供正确的ip地址及端口信息,无需额外IpAddress属性的配置。
更新到1.3.10后同样的配置文件,注册到nacos后变为127.0.0.1

Describe what you expected to happen

IpAddress属性保持1.3.9版本一致,支持自动注册

How to reproduce it (as minimally and precisely as possible)

配置文件信息

{
   "ServerAddresses": [ "nacos地址" ],
    "DefaultTimeOut": 15000,
    "Namespace": "test",
    "ListenInterval": 1000,
    "ServiceName": "service-name",
    "UserName": "nacos",
    "Password": "password",
    "Listeners": [
      {
        "Optional": true,
        "DataId": "appsettings.json",
        "Group": "iPlatformExtension"
      }
    ]
}

##docker环境变量信息:

FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
ENV ASPNETCORE_URLS=http://+:8055
ENV ASPNETCORE_ENVIRONMENT=Staging
ENV TZ=Asia/Shanghai
ENV DOTNET_GCHeapHardLimit=80000000
ENV COMPlus_DbgEnableMiniDump=1
ENV COMPlus_DbgMiniDumpName=/tmp/iplatform-finance.dmp
ENV COMPlus_CreateDumpDiagnostics=1
ENV ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=SkyAPM.Agent.AspNetCore
ENV SKYWALKING__SERVICENAME=test::iplatform-finance
WORKDIR /app
EXPOSE 8055
services.AddNacosAspNet(configuration);
configuration.AddNacosV2Configuration(configuration.GetSection("nacos"));

Tell us your environment

  • nacos-sdk-csharp version:1.3.10
  • modular : naming
  • nacos server version:2.0.0
  • how to host nacos server : docker

Anything else we need to know?

dotnet 9 版本。但是应该和dotnet版本没有关系。退回到1.3.9就没有这问题。

@catcherwong
Copy link
Collaborator

@li-zheng-hao 有时间看看这个问题吗?看上去是 #331 影响到了这个。

@li-zheng-hao
Copy link
Contributor

@li-zheng-hao 有时间看看这个问题吗?看上去是 #331 影响到了这个。

晚点看一下能不能复现

@SwingCosmic
Copy link

手贱升级了遇到同样的问题,在Kubernetes中也是如此,降回去好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants