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 09:56:30 UTC
回复: 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" <xiaoyu@apache.org>;
发送时间: 2022年1月7日(星期五) 下午5:14
收件人: "dev"<dev@shenyu.apache.org>;
主题: Re: a question for version 2.4.1
you also set this in shenyu gateway yaml,
shenyu:
upstreamCheck:
enabled: false
XiaoYu <xiaoyu@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猪猪 <huliang_2780@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>.
ok,I'll try to find it.
thanks
------------------ 原始邮件 ------------------
发件人: "dev" <xiaoyu@apache.org>;
发送时间: 2022年1月10日(星期一) 中午12:03
收件人: "dev"<dev@shenyu.apache.org>;
主题: 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> 于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;
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
>
>
> the ‘shenyu-admin config nacos register’ is ok too
>
>
> now upstream data , in divide 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. I think,is it missing dependency in 2.4.1 for divide?
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "dev" <xiaoyu@apache.org>;
> 发送时间: 2022年1月7日(星期五) 晚上7:50
> 收件人: "dev"<dev@shenyu.apache.org>;
>
> 主题: Re: a question for version 2.4.1
>
>
>
> and you also see this : NacosServerRegisterRepository.java
>
> XiaoYu <xiaoyu@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猪猪 <huliang_2780@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猪猪" <huliang_2780@qq.com>;
> >> *发送时间:* 2022年1月7日(星期五) 下午5:56
> >> *收件人:* "dev"<dev@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" <xiaoyu@apache.org>;
> >> *发送时间:* 2022年1月7日(星期五) 下午5:14
> >> *收件人:* "dev"<dev@shenyu.apache.org>;
> >> *主题:* Re: a question for version 2.4.1
> >>
> >> you also set this in shenyu gateway yaml,
> >>
> >> shenyu:
> >> upstreamCheck:
> >> enabled: false
> >>
> >> XiaoYu <xiaoyu@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猪猪 <huliang_2780@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>.
hello,NacosServerRegisterRepository is ok, I am sure the ip and port in nacos
the ‘shenyu-admin config nacos register’ is ok too
now upstream data , in divide 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. I think,is it missing dependency in 2.4.1 for divide?
------------------ 原始邮件 ------------------
发件人: "dev" <xiaoyu@apache.org>;
发送时间: 2022年1月7日(星期五) 晚上7:50
收件人: "dev"<dev@shenyu.apache.org>;
主题: Re: a question for version 2.4.1
and you also see this : NacosServerRegisterRepository.java
XiaoYu <xiaoyu@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猪猪 <huliang_2780@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猪猪" <huliang_2780@qq.com>;
>> *发送时间:* 2022年1月7日(星期五) 下午5:56
>> *收件人:* "dev"<dev@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" <xiaoyu@apache.org>;
>> *发送时间:* 2022年1月7日(星期五) 下午5:14
>> *收件人:* "dev"<dev@shenyu.apache.org>;
>> *主题:* Re: a question for version 2.4.1
>>
>> you also set this in shenyu gateway yaml,
>>
>> shenyu:
>> upstreamCheck:
>> enabled: false
>>
>> XiaoYu <xiaoyu@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猪猪 <huliang_2780@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>.
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 as the registry.
>> > > 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
>> > > in class 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 as the registry.
> > > 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
> > > in class 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?
------------------ 原始邮件 ------------------
发件人: "Lucky猪猪" <huliang_2780@qq.com>;
发送时间: 2022年1月7日(星期五) 下午5:56
收件人: "dev"<dev@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" <xiaoyu@apache.org>;
发送时间: 2022年1月7日(星期五) 下午5:14
收件人: "dev"<dev@shenyu.apache.org>;
主题: Re: a question for version 2.4.1
you also set this in shenyu gateway yaml,
shenyu:
upstreamCheck:
enabled: false
XiaoYu <xiaoyu@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猪猪 <huliang_2780@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.