You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by Lucky猪猪 <hu...@qq.com.INVALID> on 2022/01/07 07:49:54 UTC

a question for version 2.4.1

I have a question for version 2.4.1
In our project,we use nacos&nbsp;as the registry.&nbsp;
We have access to HTTP and springcloud customer service

in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not. Error prompt :divide upstream configuration error
I checked the source code and found:'upstreamList' is null

Cannot get in class 'UpstreamCacheManager' findUpstreamListBySelectorId&nbsp;
in class&nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing detection
please help me.

回复: a question for version 2.4.1

Posted by Lucky猪猪 <hu...@qq.com.INVALID>.
ok,I'll try to find it.&nbsp;


thanks


------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <xiaoyu@apache.org&gt;;
发送时间:&nbsp;2022年1月10日(星期一) 中午12:03
收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;

主题:&nbsp;Re: a question for version 2.4.1



i think,you can check shenyu-admin, and naocs register。Make sure if it
existed before and then was deleted, or if it never existed

thanks

Lucky猪猪 <huliang_2780@qq.com.invalid&gt; 于2022年1月10日周一 11:49写道:
&gt;
&gt; hello,NacosServerRegisterRepository is ok, I am sure the ip and port in nacos&amp;nbsp;
&gt;
&gt;
&gt; the ‘shenyu-admin config nacos register’ is ok too&amp;nbsp;
&gt;
&gt;
&gt; now upstream data ,&amp;nbsp; in divide&amp;nbsp; is null, spring cloud is ok
&gt;
&gt;
&gt; in 2.4.0, divide and spring cloud client are ok.
&gt;
&gt;
&gt; I modified the version 2.4.1, the divide is not good, the springcloud is ok
&gt;
&gt;
&gt; in divideplugin,the upstream is always null.&amp;nbsp; I think,is it missing dependency in 2.4.1 for divide?
&gt;
&gt;
&gt; ------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
&gt; 发件人:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "dev"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <xiaoyu@apache.org&amp;gt;;
&gt; 发送时间:&amp;nbsp;2022年1月7日(星期五) 晚上7:50
&gt; 收件人:&amp;nbsp;"dev"<dev@shenyu.apache.org&amp;gt;;
&gt;
&gt; 主题:&amp;nbsp;Re: a question for version 2.4.1
&gt;
&gt;
&gt;
&gt; and you also see this : NacosServerRegisterRepository.java
&gt;
&gt; XiaoYu <xiaoyu@apache.org&amp;gt; 于2022年1月7日周五 19:47写道:
&gt;
&gt; &amp;gt; hi, donot show image, you maybe true&amp;nbsp; you instance ip and port in nacos
&gt; &amp;gt; register center.
&gt; &amp;gt;
&gt; &amp;gt; and then check shenyu-admin config nacos register?
&gt; &amp;gt;
&gt; &amp;gt; and then check upstream data ,&amp;nbsp;&amp;nbsp; in divide or spring cloud&amp;nbsp; selector.
&gt; &amp;gt;
&gt; &amp;gt; Lucky猪猪 <huliang_2780@qq.com.invalid&amp;gt; 于2022年1月7日周五 18:46写道:
&gt; &amp;gt;
&gt; &amp;gt;&amp;gt; my admin center is pushed normally
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; Does this indicate that the shenyu-bootstrap did not get the information
&gt; &amp;gt;&amp;gt; correctly?
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; ------------------ 原始邮件 ------------------
&gt; &amp;gt;&amp;gt; *发件人:* "Lucky猪猪" <huliang_2780@qq.com&amp;gt;;
&gt; &amp;gt;&amp;gt; *发送时间:* 2022年1月7日(星期五) 下午5:56
&gt; &amp;gt;&amp;gt; *收件人:* "dev"<dev@shenyu.apache.org&amp;gt;;
&gt; &amp;gt;&amp;gt; *主题:* 回复: a question for version 2.4.1
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; hi,This is my main configuration and error screenshot
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; this set 'true' or 'false' ,the result is the same
&gt; &amp;gt;&amp;gt; shenyu:
&gt; &amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp; upstreamCheck:
&gt; &amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enabled: false
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; so,Is it the lack of dependency in my shenyu-bootstrap?
&gt; &amp;gt;&amp;gt; 2.4.0 is ok but 2.4.1 is not
&gt; &amp;gt;&amp;gt; in 2.4.1,Which dependency do I need to add?
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; ------------------ 原始邮件 ------------------
&gt; &amp;gt;&amp;gt; *发件人:* "dev" <xiaoyu@apache.org&amp;gt;;
&gt; &amp;gt;&amp;gt; *发送时间:* 2022年1月7日(星期五) 下午5:14
&gt; &amp;gt;&amp;gt; *收件人:* "dev"<dev@shenyu.apache.org&amp;gt;;
&gt; &amp;gt;&amp;gt; *主题:* Re: a question for version 2.4.1
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; you also set this in shenyu gateway yaml,
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; shenyu:
&gt; &amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp; upstreamCheck:
&gt; &amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enabled: false
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; XiaoYu <xiaoyu@apache.org&amp;gt; 于2022年1月7日周五 17:08写道:
&gt; &amp;gt;&amp;gt; &amp;gt;
&gt; &amp;gt;&amp;gt; &amp;gt; Hi,you whether shenyu-client registration is used? it used
&gt; &amp;gt;&amp;gt; &amp;gt; IpUtils.getHost(), you can checked this.
&gt; &amp;gt;&amp;gt; &amp;gt;
&gt; &amp;gt;&amp;gt; &amp;gt; when upstream is null, You can configure this manually, either in the
&gt; &amp;gt;&amp;gt; &amp;gt; divide of the admin backend or in the selector of the springcloud
&gt; &amp;gt;&amp;gt; &amp;gt; plugin.
&gt; &amp;gt;&amp;gt; &amp;gt;
&gt; &amp;gt;&amp;gt; &amp;gt; if you used nacos as client register center, pls checked nacos have
&gt; &amp;gt;&amp;gt; &amp;gt; this instance.
&gt; &amp;gt;&amp;gt; &amp;gt;
&gt; &amp;gt;&amp;gt; &amp;gt; Lucky猪猪 <huliang_2780@qq.com.invalid&amp;gt; 于2022年1月7日周五 15:50写道:
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt;
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; I have a question for version 2.4.1
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; In our project,we use nacos&amp;amp;nbsp;as the registry.&amp;amp;nbsp;
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; We have access to HTTP and springcloud customer service
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt;
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not.
&gt; &amp;gt;&amp;gt; Error prompt :divide upstream configuration error
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; I checked the source code and found:'upstreamList' is null
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt;
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; Cannot get in class 'UpstreamCacheManager'
&gt; &amp;gt;&amp;gt; findUpstreamListBySelectorId&amp;amp;nbsp;
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; in class&amp;amp;nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing
&gt; &amp;gt;&amp;gt; detection
&gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; please help me.
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;

Re: a question for version 2.4.1

Posted by XiaoYu <xi...@apache.org>.
i think,you can check shenyu-admin, and naocs register。Make sure if it
existed before and then was deleted, or if it never existed

thanks

Lucky猪猪 <hu...@qq.com.invalid> 于2022年1月10日周一 11:49写道:
>
> hello,NacosServerRegisterRepository is ok, I am sure the ip and port in nacos&nbsp;
>
>
> the ‘shenyu-admin config nacos register’ is ok too&nbsp;
>
>
> now upstream data ,&nbsp; in divide&nbsp; is null, spring cloud is ok
>
>
> in 2.4.0, divide and spring cloud client are ok.
>
>
> I modified the version 2.4.1, the divide is not good, the springcloud is ok
>
>
> in divideplugin,the upstream is always null.&nbsp; I think,is it missing dependency in 2.4.1 for divide?
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:                                                                                                                        "dev"                                                                                    <xiaoyu@apache.org&gt;;
> 发送时间:&nbsp;2022年1月7日(星期五) 晚上7:50
> 收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;
>
> 主题:&nbsp;Re: a question for version 2.4.1
>
>
>
> and you also see this : NacosServerRegisterRepository.java
>
> XiaoYu <xiaoyu@apache.org&gt; 于2022年1月7日周五 19:47写道:
>
> &gt; hi, donot show image, you maybe true&nbsp; you instance ip and port in nacos
> &gt; register center.
> &gt;
> &gt; and then check shenyu-admin config nacos register?
> &gt;
> &gt; and then check upstream data ,&nbsp;&nbsp; in divide or spring cloud&nbsp; selector.
> &gt;
> &gt; Lucky猪猪 <huliang_2780@qq.com.invalid&gt; 于2022年1月7日周五 18:46写道:
> &gt;
> &gt;&gt; my admin center is pushed normally
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt; Does this indicate that the shenyu-bootstrap did not get the information
> &gt;&gt; correctly?
> &gt;&gt;
> &gt;&gt; ------------------ 原始邮件 ------------------
> &gt;&gt; *发件人:* "Lucky猪猪" <huliang_2780@qq.com&gt;;
> &gt;&gt; *发送时间:* 2022年1月7日(星期五) 下午5:56
> &gt;&gt; *收件人:* "dev"<dev@shenyu.apache.org&gt;;
> &gt;&gt; *主题:* 回复: a question for version 2.4.1
> &gt;&gt;
> &gt;&gt; hi,This is my main configuration and error screenshot
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt; this set 'true' or 'false' ,the result is the same
> &gt;&gt; shenyu:
> &gt;&gt;&nbsp;&nbsp; upstreamCheck:
> &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled: false
> &gt;&gt;
> &gt;&gt; so,Is it the lack of dependency in my shenyu-bootstrap?
> &gt;&gt; 2.4.0 is ok but 2.4.1 is not
> &gt;&gt; in 2.4.1,Which dependency do I need to add?
> &gt;&gt;
> &gt;&gt; ------------------ 原始邮件 ------------------
> &gt;&gt; *发件人:* "dev" <xiaoyu@apache.org&gt;;
> &gt;&gt; *发送时间:* 2022年1月7日(星期五) 下午5:14
> &gt;&gt; *收件人:* "dev"<dev@shenyu.apache.org&gt;;
> &gt;&gt; *主题:* Re: a question for version 2.4.1
> &gt;&gt;
> &gt;&gt; you also set this in shenyu gateway yaml,
> &gt;&gt;
> &gt;&gt; shenyu:
> &gt;&gt;&nbsp;&nbsp; upstreamCheck:
> &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled: false
> &gt;&gt;
> &gt;&gt; XiaoYu <xiaoyu@apache.org&gt; 于2022年1月7日周五 17:08写道:
> &gt;&gt; &gt;
> &gt;&gt; &gt; Hi,you whether shenyu-client registration is used? it used
> &gt;&gt; &gt; IpUtils.getHost(), you can checked this.
> &gt;&gt; &gt;
> &gt;&gt; &gt; when upstream is null, You can configure this manually, either in the
> &gt;&gt; &gt; divide of the admin backend or in the selector of the springcloud
> &gt;&gt; &gt; plugin.
> &gt;&gt; &gt;
> &gt;&gt; &gt; if you used nacos as client register center, pls checked nacos have
> &gt;&gt; &gt; this instance.
> &gt;&gt; &gt;
> &gt;&gt; &gt; Lucky猪猪 <huliang_2780@qq.com.invalid&gt; 于2022年1月7日周五 15:50写道:
> &gt;&gt; &gt; &gt;
> &gt;&gt; &gt; &gt; I have a question for version 2.4.1
> &gt;&gt; &gt; &gt; In our project,we use nacos&amp;nbsp;as the registry.&amp;nbsp;
> &gt;&gt; &gt; &gt; We have access to HTTP and springcloud customer service
> &gt;&gt; &gt; &gt;
> &gt;&gt; &gt; &gt; in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not.
> &gt;&gt; Error prompt :divide upstream configuration error
> &gt;&gt; &gt; &gt; I checked the source code and found:'upstreamList' is null
> &gt;&gt; &gt; &gt;
> &gt;&gt; &gt; &gt; Cannot get in class 'UpstreamCacheManager'
> &gt;&gt; findUpstreamListBySelectorId&amp;nbsp;
> &gt;&gt; &gt; &gt; in class&amp;nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing
> &gt;&gt; detection
> &gt;&gt; &gt; &gt; please help me.
> &gt;&gt;
> &gt;

回复: a question for version 2.4.1

Posted by Lucky猪猪 <hu...@qq.com.INVALID>.
hello,NacosServerRegisterRepository is ok, I am sure the ip and port in nacos&nbsp;


the ‘shenyu-admin config nacos register’ is ok too&nbsp;


now upstream data ,&nbsp; in divide&nbsp; is null, spring cloud is ok


in 2.4.0, divide and spring cloud client are ok.


I modified the version 2.4.1, the divide is not good, the springcloud is ok


in divideplugin,the upstream is always null.&nbsp; I think,is it missing dependency in 2.4.1 for divide?


------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <xiaoyu@apache.org&gt;;
发送时间:&nbsp;2022年1月7日(星期五) 晚上7:50
收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;

主题:&nbsp;Re: a question for version 2.4.1



and you also see this : NacosServerRegisterRepository.java

XiaoYu <xiaoyu@apache.org&gt; 于2022年1月7日周五 19:47写道:

&gt; hi, donot show image, you maybe true&nbsp; you instance ip and port in nacos
&gt; register center.
&gt;
&gt; and then check shenyu-admin config nacos register?
&gt;
&gt; and then check upstream data ,&nbsp;&nbsp; in divide or spring cloud&nbsp; selector.
&gt;
&gt; Lucky猪猪 <huliang_2780@qq.com.invalid&gt; 于2022年1月7日周五 18:46写道:
&gt;
&gt;&gt; my admin center is pushed normally
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Does this indicate that the shenyu-bootstrap did not get the information
&gt;&gt; correctly?
&gt;&gt;
&gt;&gt; ------------------ 原始邮件 ------------------
&gt;&gt; *发件人:* "Lucky猪猪" <huliang_2780@qq.com&gt;;
&gt;&gt; *发送时间:* 2022年1月7日(星期五) 下午5:56
&gt;&gt; *收件人:* "dev"<dev@shenyu.apache.org&gt;;
&gt;&gt; *主题:* 回复: a question for version 2.4.1
&gt;&gt;
&gt;&gt; hi,This is my main configuration and error screenshot
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; this set 'true' or 'false' ,the result is the same
&gt;&gt; shenyu:
&gt;&gt;&nbsp;&nbsp; upstreamCheck:
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled: false
&gt;&gt;
&gt;&gt; so,Is it the lack of dependency in my shenyu-bootstrap?
&gt;&gt; 2.4.0 is ok but 2.4.1 is not
&gt;&gt; in 2.4.1,Which dependency do I need to add?
&gt;&gt;
&gt;&gt; ------------------ 原始邮件 ------------------
&gt;&gt; *发件人:* "dev" <xiaoyu@apache.org&gt;;
&gt;&gt; *发送时间:* 2022年1月7日(星期五) 下午5:14
&gt;&gt; *收件人:* "dev"<dev@shenyu.apache.org&gt;;
&gt;&gt; *主题:* Re: a question for version 2.4.1
&gt;&gt;
&gt;&gt; you also set this in shenyu gateway yaml,
&gt;&gt;
&gt;&gt; shenyu:
&gt;&gt;&nbsp;&nbsp; upstreamCheck:
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled: false
&gt;&gt;
&gt;&gt; XiaoYu <xiaoyu@apache.org&gt; 于2022年1月7日周五 17:08写道:
&gt;&gt; &gt;
&gt;&gt; &gt; Hi,you whether shenyu-client registration is used? it used
&gt;&gt; &gt; IpUtils.getHost(), you can checked this.
&gt;&gt; &gt;
&gt;&gt; &gt; when upstream is null, You can configure this manually, either in the
&gt;&gt; &gt; divide of the admin backend or in the selector of the springcloud
&gt;&gt; &gt; plugin.
&gt;&gt; &gt;
&gt;&gt; &gt; if you used nacos as client register center, pls checked nacos have
&gt;&gt; &gt; this instance.
&gt;&gt; &gt;
&gt;&gt; &gt; Lucky猪猪 <huliang_2780@qq.com.invalid&gt; 于2022年1月7日周五 15:50写道:
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; I have a question for version 2.4.1
&gt;&gt; &gt; &gt; In our project,we use nacos&amp;nbsp;as the registry.&amp;nbsp;
&gt;&gt; &gt; &gt; We have access to HTTP and springcloud customer service
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not.
&gt;&gt; Error prompt :divide upstream configuration error
&gt;&gt; &gt; &gt; I checked the source code and found:'upstreamList' is null
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Cannot get in class 'UpstreamCacheManager'
&gt;&gt; findUpstreamListBySelectorId&amp;nbsp;
&gt;&gt; &gt; &gt; in class&amp;nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing
&gt;&gt; detection
&gt;&gt; &gt; &gt; please help me.
&gt;&gt;
&gt;

Re: a question for version 2.4.1

Posted by XiaoYu <xi...@apache.org>.
and you also see this : NacosServerRegisterRepository.java

XiaoYu <xi...@apache.org> 于2022年1月7日周五 19:47写道:

> hi, donot show image, you maybe true  you instance ip and port in nacos
> register center.
>
> and then check shenyu-admin config nacos register?
>
> and then check upstream data ,   in divide or spring cloud  selector.
>
> Lucky猪猪 <hu...@qq.com.invalid> 于2022年1月7日周五 18:46写道:
>
>> my admin center is pushed normally
>>
>>
>>
>> Does this indicate that the shenyu-bootstrap did not get the information
>> correctly?
>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "Lucky猪猪" <hu...@qq.com>;
>> *发送时间:* 2022年1月7日(星期五) 下午5:56
>> *收件人:* "dev"<de...@shenyu.apache.org>;
>> *主题:* 回复: a question for version 2.4.1
>>
>> hi,This is my main configuration and error screenshot
>>
>>
>>
>>
>>
>> this set 'true' or 'false' ,the result is the same
>> shenyu:
>>   upstreamCheck:
>>         enabled: false
>>
>> so,Is it the lack of dependency in my shenyu-bootstrap?
>> 2.4.0 is ok but 2.4.1 is not
>> in 2.4.1,Which dependency do I need to add?
>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "dev" <xi...@apache.org>;
>> *发送时间:* 2022年1月7日(星期五) 下午5:14
>> *收件人:* "dev"<de...@shenyu.apache.org>;
>> *主题:* Re: a question for version 2.4.1
>>
>> you also set this in shenyu gateway yaml,
>>
>> shenyu:
>>   upstreamCheck:
>>         enabled: false
>>
>> XiaoYu <xi...@apache.org> 于2022年1月7日周五 17:08写道:
>> >
>> > Hi,you whether shenyu-client registration is used? it used
>> > IpUtils.getHost(), you can checked this.
>> >
>> > when upstream is null, You can configure this manually, either in the
>> > divide of the admin backend or in the selector of the springcloud
>> > plugin.
>> >
>> > if you used nacos as client register center, pls checked nacos have
>> > this instance.
>> >
>> > Lucky猪猪 <hu...@qq.com.invalid> 于2022年1月7日周五 15:50写道:
>> > >
>> > > I have a question for version 2.4.1
>> > > In our project,we use nacos&nbsp;as the registry.&nbsp;
>> > > We have access to HTTP and springcloud customer service
>> > >
>> > > in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not.
>> Error prompt :divide upstream configuration error
>> > > I checked the source code and found:'upstreamList' is null
>> > >
>> > > Cannot get in class 'UpstreamCacheManager'
>> findUpstreamListBySelectorId&nbsp;
>> > > in class&nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing
>> detection
>> > > please help me.
>>
>

Re: a question for version 2.4.1

Posted by XiaoYu <xi...@apache.org>.
hi, donot show image, you maybe true  you instance ip and port in nacos
register center.

and then check shenyu-admin config nacos register?

and then check upstream data ,   in divide or spring cloud  selector.

Lucky猪猪 <hu...@qq.com.invalid> 于2022年1月7日周五 18:46写道:

> my admin center is pushed normally
>
>
>
> Does this indicate that the shenyu-bootstrap did not get the information
> correctly?
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Lucky猪猪" <hu...@qq.com>;
> *发送时间:* 2022年1月7日(星期五) 下午5:56
> *收件人:* "dev"<de...@shenyu.apache.org>;
> *主题:* 回复: a question for version 2.4.1
>
> hi,This is my main configuration and error screenshot
>
>
>
>
>
> this set 'true' or 'false' ,the result is the same
> shenyu:
>   upstreamCheck:
>         enabled: false
>
> so,Is it the lack of dependency in my shenyu-bootstrap?
> 2.4.0 is ok but 2.4.1 is not
> in 2.4.1,Which dependency do I need to add?
>
> ------------------ 原始邮件 ------------------
> *发件人:* "dev" <xi...@apache.org>;
> *发送时间:* 2022年1月7日(星期五) 下午5:14
> *收件人:* "dev"<de...@shenyu.apache.org>;
> *主题:* Re: a question for version 2.4.1
>
> you also set this in shenyu gateway yaml,
>
> shenyu:
>   upstreamCheck:
>         enabled: false
>
> XiaoYu <xi...@apache.org> 于2022年1月7日周五 17:08写道:
> >
> > Hi,you whether shenyu-client registration is used? it used
> > IpUtils.getHost(), you can checked this.
> >
> > when upstream is null, You can configure this manually, either in the
> > divide of the admin backend or in the selector of the springcloud
> > plugin.
> >
> > if you used nacos as client register center, pls checked nacos have
> > this instance.
> >
> > Lucky猪猪 <hu...@qq.com.invalid> 于2022年1月7日周五 15:50写道:
> > >
> > > I have a question for version 2.4.1
> > > In our project,we use nacos&nbsp;as the registry.&nbsp;
> > > We have access to HTTP and springcloud customer service
> > >
> > > in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not.
> Error prompt :divide upstream configuration error
> > > I checked the source code and found:'upstreamList' is null
> > >
> > > Cannot get in class 'UpstreamCacheManager'
> findUpstreamListBySelectorId&nbsp;
> > > in class&nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing
> detection
> > > please help me.
>

回复: a question for version 2.4.1

Posted by Lucky猪猪 <hu...@qq.com.INVALID>.
my admin center is pushed normally




Does this indicate that the shenyu-bootstrap did not get the information correctly?


------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "Lucky猪猪"                                                                                    <huliang_2780@qq.com&gt;;
发送时间:&nbsp;2022年1月7日(星期五) 下午5:56
收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;

主题:&nbsp;回复: a question for version 2.4.1



hi,This is my main configuration and error screenshot






this set 'true' or 'false' ,the result is the same&nbsp; 
shenyu:
&nbsp; upstreamCheck:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; enabled: false


so,Is it the lack of dependency in my shenyu-bootstrap?
2.4.0 is ok but 2.4.1 is not
in 2.4.1,Which dependency do I need to add?


------------------ 原始邮件 ------------------
发件人:                                                                                                                        "dev"                                                                                    <xiaoyu@apache.org&gt;;
发送时间:&nbsp;2022年1月7日(星期五) 下午5:14
收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;

主题:&nbsp;Re: a question for version 2.4.1



you also set this in shenyu gateway yaml,

shenyu:
&nbsp; upstreamCheck:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; enabled: false

XiaoYu <xiaoyu@apache.org&gt; 于2022年1月7日周五 17:08写道:
&gt;
&gt; Hi,you whether shenyu-client registration is used? it used
&gt; IpUtils.getHost(), you can checked this.
&gt;
&gt; when upstream is null, You can configure this manually, either in the
&gt; divide of the admin backend or in the selector of the springcloud
&gt; plugin.
&gt;
&gt; if you used nacos as client register center, pls checked nacos have
&gt; this instance.
&gt;
&gt; Lucky猪猪 <huliang_2780@qq.com.invalid&gt; 于2022年1月7日周五 15:50写道:
&gt; &gt;
&gt; &gt; I have a question for version 2.4.1
&gt; &gt; In our project,we use nacos&amp;nbsp;as the registry.&amp;nbsp;
&gt; &gt; We have access to HTTP and springcloud customer service
&gt; &gt;
&gt; &gt; in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not. Error prompt :divide upstream configuration error
&gt; &gt; I checked the source code and found:'upstreamList' is null
&gt; &gt;
&gt; &gt; Cannot get in class 'UpstreamCacheManager' findUpstreamListBySelectorId&amp;nbsp;
&gt; &gt; in class&amp;nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing detection
&gt; &gt; please help me.

回复: a question for version 2.4.1

Posted by Lucky猪猪 <hu...@qq.com.INVALID>.
hi,This is my main configuration and error&nbsp;screenshot






this set 'true' or 'false' ,the result is the same&nbsp;&nbsp;
shenyu:
&nbsp; upstreamCheck:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled: false


so,Is it the lack of dependency in my shenyu-bootstrap?
2.4.0 is ok but 2.4.1 is not
in 2.4.1,Which dependency do I need to add?


------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <xiaoyu@apache.org&gt;;
发送时间:&nbsp;2022年1月7日(星期五) 下午5:14
收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;

主题:&nbsp;Re: a question for version 2.4.1



you also set this in shenyu gateway yaml,

shenyu:
&nbsp; upstreamCheck:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled: false

XiaoYu <xiaoyu@apache.org&gt; 于2022年1月7日周五 17:08写道:
&gt;
&gt; Hi,you whether shenyu-client registration is used? it used
&gt; IpUtils.getHost(), you can checked this.
&gt;
&gt; when upstream is null, You can configure this manually, either in the
&gt; divide of the admin backend or in the selector of the springcloud
&gt; plugin.
&gt;
&gt; if you used nacos as client register center, pls checked nacos have
&gt; this instance.
&gt;
&gt; Lucky猪猪 <huliang_2780@qq.com.invalid&gt; 于2022年1月7日周五 15:50写道:
&gt; &gt;
&gt; &gt; I have a question for version 2.4.1
&gt; &gt; In our project,we use nacos&amp;nbsp;as the registry.&amp;nbsp;
&gt; &gt; We have access to HTTP and springcloud customer service
&gt; &gt;
&gt; &gt; in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not. Error prompt :divide upstream configuration error
&gt; &gt; I checked the source code and found:'upstreamList' is null
&gt; &gt;
&gt; &gt; Cannot get in class 'UpstreamCacheManager' findUpstreamListBySelectorId&amp;nbsp;
&gt; &gt; in class&amp;nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing detection
&gt; &gt; please help me.

Re: a question for version 2.4.1

Posted by XiaoYu <xi...@apache.org>.
you also set this in shenyu gateway yaml,

shenyu:
  upstreamCheck:
        enabled: false

XiaoYu <xi...@apache.org> 于2022年1月7日周五 17:08写道:
>
> Hi,you whether shenyu-client registration is used? it used
> IpUtils.getHost(), you can checked this.
>
> when upstream is null, You can configure this manually, either in the
> divide of the admin backend or in the selector of the springcloud
> plugin.
>
> if you used nacos as client register center, pls checked nacos have
> this instance.
>
> Lucky猪猪 <hu...@qq.com.invalid> 于2022年1月7日周五 15:50写道:
> >
> > I have a question for version 2.4.1
> > In our project,we use nacos&nbsp;as the registry.&nbsp;
> > We have access to HTTP and springcloud customer service
> >
> > in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not. Error prompt :divide upstream configuration error
> > I checked the source code and found:'upstreamList' is null
> >
> > Cannot get in class 'UpstreamCacheManager' findUpstreamListBySelectorId&nbsp;
> > in class&nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing detection
> > please help me.

Re: a question for version 2.4.1

Posted by XiaoYu <xi...@apache.org>.
Hi,you whether shenyu-client registration is used? it used
IpUtils.getHost(), you can checked this.

when upstream is null, You can configure this manually, either in the
divide of the admin backend or in the selector of the springcloud
plugin.

if you used nacos as client register center, pls checked nacos have
this instance.

Lucky猪猪 <hu...@qq.com.invalid> 于2022年1月7日周五 15:50写道:
>
> I have a question for version 2.4.1
> In our project,we use nacos&nbsp;as the registry.&nbsp;
> We have access to HTTP and springcloud customer service
>
> in 2.4.0 http and springcloud are normal,but in 2.4.1 http is not. Error prompt :divide upstream configuration error
> I checked the source code and found:'upstreamList' is null
>
> Cannot get in class 'UpstreamCacheManager' findUpstreamListBySelectorId&nbsp;
> in class&nbsp;UpstreamCheckTask.healthyUpstream is null,Even timing detection
> please help me.