dangdangdotcom / dubbox

Dubbox now means Dubbo eXtensions, and it adds features like RESTful remoting, Kyro/FST serialization, etc to the Dubbo service framework.
http://dangdangdotcom.github.io/dubbox
Apache License 2.0
4.89k stars 2.06k forks source link

dubbo-admin 警告: 多个不同应用注册了相同服务 #337

Open foreveryang321 opened 7 years ago

foreveryang321 commented 7 years ago

看了一下源码,好像dubbox/dubbo-admin/src/main/webapp/WEB-INF/templates/governance/screen/providers/index.vm的39-65行,会导致状态提示错误

#if ($providerApplication == "")
            #set($providerApplication = $provider.application)
        #end

        #if($providerApplication != $provider.application)
            #if ($errorLevel != "error") #set($errorLevel = "warn") #end
            #set($errorMessage = "$errorMessage<br>$i18n.get('warn'): $i18n.get('CheckProviderApplicationDifferent', $providerApplication, $provider.application)")
        #end

        #if($provider.address.startsWith("127.") || $provider.address.startsWith("localhost:") || $provider.address.startsWith("0.0.0.0:"))
            #if ($errorLevel != "error") #set($errorLevel = "warn") #end
            #set($errorMessage = "$errorMessage<br>$i18n.get('warn'): $i18n.get('CheckProviderLocalAddress', $provider.address)")
        #end

        #if ($errorLevel == "warn")
            <a href="#" onclick="showAlert('<font color=orange>$i18n.get("warn")</font>', '$errorMessage'); return false;">
                <img src="$rootContextPath.getURI("images/ico_warn.png")" width="12" height="12" />
                <font color="orange"><u>$i18n.get("warn")</u></font>
            </a>
        #elseif ($errorLevel == "error")
            <a href="#" onclick="showAlert('<font color=red>$i18n.get("error")</font>', '$errorMessage'); return false;">
                <img src="$rootContextPath.getURI("images/ico_error.png")" width="12" height="12" />
                <font color="red"><u>$i18n.get("error")</u></font>
            </a>
        #else
            <font color="green">$i18n.get("ok")</font>
        #end

我是在同一个机器,部署不同的服务出现的这个问题。有人遇到一样的问题吗 tim 20170705161942 点开警告内容 warn

yutaolian commented 7 years ago

一个服务一个端口,不要重复

OhTheThree777 commented 7 years ago

是 每个服务一个端口 还是 应用 啊?

foreveryang321 commented 7 years ago

@OhTheThree777 一个应用一个端口