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

Unable to send PING command over channel: [id: 0xcffcc397, L:/10.16.18.65:57542 ! R:/10.18.8.156:6380] #3273

Closed
dhlsoft opened this issue Dec 8, 2020 · 12 comments
Labels

Comments

@dhlsoft
Copy link

dhlsoft commented Dec 8, 2020

[order-center:10.16.18.65:7003]>>2020-12-07 20:32:31.073>>ERROR>>18357>>[redisson-timer-4-1]>>org.redisson.client.handler.PingConnectionHandler$1:89 -> Unable to send PING command over channel: [id: 0x09d44210, L:/10.16.18.65:57558 ! R:/10.18.8.156:6380]

io.netty.channel.StacklessClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(Object, ChannelPromise)(Unknown Source)

[order-center:10.16.18.65:7003]>>2020-12-07 20:32:31.073>>ERROR>>18357>>[redisson-timer-4-1]>>org.redisson.client.handler.PingConnectionHandler$1:89 -> Unable to send PING command over channel: [id: 0x1747256d, L:/10.16.18.65:57526 ! R:/10.18.8.156:6380]

io.netty.channel.StacklessClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(Object, ChannelPromise)(Unknown Source)

[order-center:10.16.18.65:7003]>>2020-12-07 20:32:31.073>>ERROR>>18357>>[redisson-timer-4-1]>>org.redisson.client.handler.PingConnectionHandler$1:89 -> Unable to send PING command over channel: [id: 0x35b04a5a, L:/10.16.18.65:57540 ! R:/10.18.8.156:6380]

io.netty.channel.StacklessClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(Object, ChannelPromise)(Unknown Source)

@dhlsoft
Copy link
Author

dhlsoft commented Dec 8, 2020

using 3.14.0

@mrniko
Copy link
Member

mrniko commented Dec 9, 2020

StacklessClosedChannelException - channel is closed

@dhlsoft
Copy link
Author

dhlsoft commented Dec 10, 2020

StacklessClosedChannelException - channel is closed

How to avoid this problem ? pingConnectionInterval: 0?

pingConnectionInterval=0
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (CLUSTER NODES), params: [], Redis client: [addr=redis://10.18.8.157:6380]

@pouyakhoshkhoo
Copy link

pouyakhoshkhoo commented Dec 14, 2020

I've got the same problem. Changing pingConnectionInterval to 10 seconds will resolve the error. I wonder why this error happens in the first place.

@mrniko mrniko closed this as completed Dec 21, 2020
@danielgatis-mb
Copy link

danielgatis-mb commented Jan 6, 2021

Same here using 3.14.1. Why this error happens? The default timeout already is 30s.

    /**
     * Defines PING command sending interval per connection to Redis.
     * <code>0</code> means disable.
     * <p>
     * Default is <code>30000</code>
     * 
     * @param pingConnectionInterval - time in milliseconds
     * @return config
     */
    public T setPingConnectionInterval(int pingConnectionInterval) {
        this.pingConnectionInterval = pingConnectionInterval;
        return (T) this;
    }

@mrniko
Copy link
Member

mrniko commented Jan 6, 2021

@danielgatis-mb

Changing pingConnectionInterval to 10 seconds will resolve the error

Did you try to set it to 10 ?

@wedtlcy
Copy link

wedtlcy commented Jul 15, 2021

一定要将其设置为 10 ?我设置15还是有这个错

@zhengquan45
Copy link

Why set it 10 seconds,can work?

@shiranyosef1
Copy link

shiranyosef1 commented Feb 27, 2023

pingConnectionInterval already set for me to 1000, why is it still happening? @mrniko

@mrniko
Copy link
Member

mrniko commented Feb 28, 2023

@shiranyosef1

the root cause is StacklessClosedChannelException - channel is closed. You need to check your network.

@shiranyosef1
Copy link

@mrniko The network seems ok, we are working with AWS Elasticache. Is that common?
how would you suggest debugging this?

@mrniko
Copy link
Member

mrniko commented Feb 28, 2023

@shiranyosef1

try to reduce connections amount.

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

No branches or pull requests

7 participants