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

Refreshing Browser in Cluster Mode causes "502 Bad Gateway" #55

Closed
jangammohan opened this issue Mar 25, 2021 · 7 comments
Closed

Refreshing Browser in Cluster Mode causes "502 Bad Gateway" #55

jangammohan opened this issue Mar 25, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@jangammohan
Copy link

jangammohan commented Mar 25, 2021

I see there is an issue opened on this already and it is resolved in v2021.4.106 (#50)

Currently, we are using higher version 2021.4.141, looks like on this version the issue is back again, we see the same "502 Bad Gateway" error.

do you recommend sticking with the 2014.4.106 version to not see this issue?

@p3x-robot
Copy link
Member

the bad gateway is not a p3x-redis-ui error, but an nginx output.
unless you show me the error like as #50, i can't help.

@jangammohan
Copy link
Author

Currently, we create our own image by downloading version 2014.4.141 from npm. Our dockerfile has the below command

RUN npm -g --unsafe-perm install p3x-redis-ui@2021.4.141. , we deploy created docker image on kubernetes, UI loads for the first time but after minutes or on refresh it gives see below error.

image

Error Details:

[P3XRS] [PID: 000008] 3/25/2021, 7:41:57 PM unhandledRejection ReplyError: ERR SELECT is not allowed in cluster mode
at parseError (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/redis-parser/lib/parser.js:302:14) {
command: { name: 'select', args: [ '1' ] }
} Promise {
ReplyError: ERR SELECT is not allowed in cluster mode
at parseError (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/usr/local/lib/node_modules/p3x-redis-ui/node_modules/redis-parser/lib/parser.js:302:14) {
command: { name: 'select', args: [Array] }
}
}

@p3x-robot
Copy link
Member

ok, the error is happening, you are not enabling cluster mode in the settings, see:
image

the other issue is not related to me, you can see it is error is happening inside redis-parser which is only used by ioredis

i open this issue as it autmatically is happening when you are connecting without cluster mode and then ioredis tries to select the database, when it should not and there is no way to catch this error, so i will connect this error.

so for now to fix it, is by enabling cluster mode in the gui or the json config.

@p3x-robot
Copy link
Member

redis/ioredis#1310

@p3x-robot p3x-robot added bug Something isn't working help wanted Extra attention is needed labels Mar 27, 2021
@p3x-robot p3x-robot self-assigned this Mar 27, 2021
@p3x-robot
Copy link
Member

@p3x-robot
Copy link
Member

besides, please print out your connections json file as i sense you not enabled cluster mode in the gui or via a file.

@p3x-robot p3x-robot removed the help wanted Extra attention is needed label Mar 31, 2021
@p3x-robot
Copy link
Member

closing as the original user is not responding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants