Problem with connection on Windows #10

Closed
opened 2020-12-18 11:33:00 +00:00 by wallxq · 22 comments
wallxq commented 2020-12-18 11:33:00 +00:00 (Migrated from github.com)

Hi i install REDIS from https://github.com/dmajkic/redis/downloads (lastest) for windows and i have problem. On start REDIS and first start server with RediSkript i have this:
[12:24:27 INFO]: [RediSkript] Connecting to redis... [12:24:27 WARN]: [RediSkript] Connection to redis has failed! Reconnecting...
Than i close server and go to config RediSkript. I change useTLS to true and start again server. Server stuck on:
[12:26:26 INFO]: [RediSkript] Enabling RediSkript v1.3.1
and REDIS change to:
[4140] 18 Dec 12:26:47 - 1 clients connected (0 slaves), 1188800 bytes in use from 0 clients.
I wait minute and:
[4140] 18 Dec 12:27:22 - 2 clients connected (0 slaves), 1197704 bytes in use change to 2 but RediSkript don't allow start server and stuck. I am waiting 3 minutes and i have this again but server start:
[12:29:30 INFO]: [RediSkript] Connecting to redis... [12:29:30 WARN]: [RediSkript] Connection to redis has failed! Reconnecting...
and in REDIS:
[4140] 18 Dec 12:29:26 - Client closed connection [4140] 18 Dec 12:29:29 - 1 clients connected (0 slaves), 1188800 bytes in use
30 seconds later:
[4140] 18 Dec 12:30:24 - 0 clients connected (0 slaves), 1179896 bytes in use
and this repeat from 0 to 1.
Than i give command /reloadredis in server.
[12:31:39 INFO]: [RediSkript] Connecting to redis... [12:31:39 WARN]: [RediSkript] Connection to redis has failed! Reconnecting... this stop and REDIS give this:
[4140] 18 Dec 12:30:24 - 0 clients connected (0 slaves), 1179896 bytes in use [4140] 18 Dec 12:30:26 - Accepted 127.0.0.1:50627 [4140] 18 Dec 12:30:29 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:34 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:39 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:44 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:49 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:54 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:59 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:04 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:09 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:14 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:19 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:24 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:29 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:34 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:39 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:44 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:49 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:50 - Accepted 127.0.0.1:50670 [4140] 18 Dec 12:31:54 - 2 clients connected (0 slaves), 1197704 bytes in use
But its only for few minutes and plugin can't save variables.

Hi i install REDIS from https://github.com/dmajkic/redis/downloads (lastest) for windows and i have problem. On start REDIS and first start server with RediSkript i have this: `[12:24:27 INFO]: [RediSkript] Connecting to redis... [12:24:27 WARN]: [RediSkript] Connection to redis has failed! Reconnecting...` Than i close server and go to config RediSkript. I change useTLS to true and start again server. Server stuck on: `[12:26:26 INFO]: [RediSkript] Enabling RediSkript v1.3.1` and REDIS change to: `[4140] 18 Dec 12:26:47 - 1 clients connected (0 slaves), 1188800 bytes in use` from 0 clients. I wait minute and: `[4140] 18 Dec 12:27:22 - 2 clients connected (0 slaves), 1197704 bytes in use` change to 2 but RediSkript don't allow start server and stuck. I am waiting 3 minutes and i have this again but server start: `[12:29:30 INFO]: [RediSkript] Connecting to redis... [12:29:30 WARN]: [RediSkript] Connection to redis has failed! Reconnecting...` and in REDIS: `[4140] 18 Dec 12:29:26 - Client closed connection [4140] 18 Dec 12:29:29 - 1 clients connected (0 slaves), 1188800 bytes in use` 30 seconds later: `[4140] 18 Dec 12:30:24 - 0 clients connected (0 slaves), 1179896 bytes in use` and this repeat from 0 to 1. Than i give command /reloadredis in server. `[12:31:39 INFO]: [RediSkript] Connecting to redis... [12:31:39 WARN]: [RediSkript] Connection to redis has failed! Reconnecting...` this stop and REDIS give this: `[4140] 18 Dec 12:30:24 - 0 clients connected (0 slaves), 1179896 bytes in use [4140] 18 Dec 12:30:26 - Accepted 127.0.0.1:50627 [4140] 18 Dec 12:30:29 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:34 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:39 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:44 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:49 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:54 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:30:59 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:04 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:09 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:14 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:19 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:24 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:29 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:34 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:39 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:44 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:49 - 1 clients connected (0 slaves), 1188800 bytes in use [4140] 18 Dec 12:31:50 - Accepted 127.0.0.1:50670 [4140] 18 Dec 12:31:54 - 2 clients connected (0 slaves), 1197704 bytes in use` But its only for few minutes and plugin can't save variables.
ham1255 commented 2020-12-18 11:33:52 +00:00 (Migrated from github.com)

could you post your server log?

could you post your server log?
ham1255 commented 2020-12-18 11:34:40 +00:00 (Migrated from github.com)

and i almost forgot the config of the plugin and and redis config aswell

and i almost forgot the config of the plugin and and redis config aswell
wallxq commented 2020-12-18 11:39:18 +00:00 (Migrated from github.com)
Logs: https://pastebin.com/C43LEf9T Redis conf: https://pastebin.com/CBpsnwCq RediSkript conf: https://pastebin.com/yWjmrn1v
GovindasOM commented 2020-12-18 11:40:32 +00:00 (Migrated from github.com)

as I see you're using an older version of Redis, only 6.0.6+ supports TLS properly, set TLS to false

as I see you're using an older version of Redis, only 6.0.6+ supports TLS properly, set TLS to false
ham1255 commented 2020-12-18 11:41:38 +00:00 (Migrated from github.com)

and try disable EncryptMessages

and try disable EncryptMessages
wallxq commented 2020-12-18 11:43:50 +00:00 (Migrated from github.com)

I do it, disbale EncryptMessages and TLS and i do it on clear server with only skript and RediSkript.
clear

I do it, disbale EncryptMessages and TLS and i do it on clear server with only skript and RediSkript. ![clear](https://user-images.githubusercontent.com/36922415/102611148-ac4d9a00-412e-11eb-8032-21cfa245a717.PNG)
GovindasOM commented 2020-12-18 11:45:06 +00:00 (Migrated from github.com)

your password in the config seems to be the same as default - I think it is likely failing to connect due to wrong password

your password in the config seems to be the same as default - I think it is likely failing to connect due to wrong password
wallxq commented 2020-12-18 11:45:09 +00:00 (Migrated from github.com)

Without TLS, it doesn't want to connect for a while. It just makes a connection and breaks it off at the same time.

Without TLS, it doesn't want to connect for a while. It just makes a connection and breaks it off at the same time.
GovindasOM commented 2020-12-18 11:45:43 +00:00 (Migrated from github.com)

Without TLS, it doesn't want to connect for a while. It just makes a connection and breaks it off at the same time.

could you post your log from this situation? that shouldn't be happening

> > > Without TLS, it doesn't want to connect for a while. It just makes a connection and breaks it off at the same time. could you post your log from this situation? that shouldn't be happening
wallxq commented 2020-12-18 11:47:13 +00:00 (Migrated from github.com)

https://pastebin.com/JNhqX2uz
and where i can change password of redis in config file? i can't saw line of password 0.o

https://pastebin.com/JNhqX2uz and where i can change password of redis in config file? i can't saw line of password 0.o
GovindasOM commented 2020-12-18 11:49:01 +00:00 (Migrated from github.com)

https://pastebin.com/JNhqX2uz
and where i can change password of redis in config file? i can't saw line of password 0.o

we only work with Redis 6, so I don't know, but in Redis 6 there's an entry called "requirepass"

I recommend updating Redis

> > > https://pastebin.com/JNhqX2uz > and where i can change password of redis in config file? i can't saw line of password 0.o we only work with Redis 6, so I don't know, but in Redis 6 there's an entry called "requirepass" I recommend updating Redis
GovindasOM commented 2020-12-18 11:51:29 +00:00 (Migrated from github.com)

I find ` Warning: since Redis is pretty fast an outside user can try up to
150k passwords per second against a good box. This means that you should
use a very strong password otherwise it will be very easy to break.

requirepass foobaredthan i must change to: Warning: since Redis is pretty fast an outside user can try up to
150k passwords per second against a good box. This means that you should
use a very strong password otherwise it will be very easy to break.

requirepass testpassword`
?

yes, that should work

> > > I find ` Warning: since Redis is pretty fast an outside user can try up to > 150k passwords per second against a good box. This means that you should > use a very strong password otherwise it will be very easy to break. > > requirepass foobared`than i must change to:` Warning: since Redis is pretty fast an outside user can try up to > 150k passwords per second against a good box. This means that you should > use a very strong password otherwise it will be very easy to break. > > requirepass testpassword` > ? yes, that should work
ham1255 commented 2020-12-18 11:52:34 +00:00 (Migrated from github.com)

he is using redis 2 i think for windows since that redis version was last release for windows?

he is using redis 2 i think for windows since that redis version was last release for windows?
wallxq commented 2020-12-18 11:54:03 +00:00 (Migrated from github.com)

After changing the password in REDIS and RediSkript, the problem remains unchanged. As for the REDIS version, at least I haven't found a newer one for Windows.

After changing the password in REDIS and RediSkript, the problem remains unchanged. As for the REDIS version, at least I haven't found a newer one for Windows.
GovindasOM commented 2020-12-18 11:57:10 +00:00 (Migrated from github.com)

I will setup redis on windows and see if it's a problem in redis version

I will setup redis on windows and see if it's a problem in redis version
wallxq commented 2020-12-18 12:00:58 +00:00 (Migrated from github.com)

Okay, I'm waiting :)

Okay, I'm waiting :)
GovindasOM commented 2020-12-18 12:04:42 +00:00 (Migrated from github.com)

Okay, I'm waiting :)

it works, you just need to run it from command line with redis config directory specified

in my case:

C:\Users\Govindas\Desktop\redis\redis-server.exe C:\Users\Govindas\Desktop\redis\redis.conf
> > > Okay, I'm waiting :) it works, you just need to run it from command line with redis config directory specified in my case: ``` C:\Users\Govindas\Desktop\redis\redis-server.exe C:\Users\Govindas\Desktop\redis\redis.conf ```
wallxq commented 2020-12-18 12:16:24 +00:00 (Migrated from github.com)

Than run CMD as admin and paste directory of REDIS?
tak

Than run CMD as admin and paste directory of REDIS? ![tak](https://user-images.githubusercontent.com/36922415/102613684-38fa5700-4133-11eb-9d79-4deae60fc43f.PNG)
GovindasOM commented 2020-12-18 12:23:16 +00:00 (Migrated from github.com)

Than run CMD as admin and paste directory of REDIS?
tak

redis-server must be redis-server.exe and you must add 2nd directory that would be directory to the config

> > > Than run CMD as admin and paste directory of REDIS? > ![tak](https://user-images.githubusercontent.com/36922415/102613684-38fa5700-4133-11eb-9d79-4deae60fc43f.PNG) redis-server must be redis-server.exe and you must add 2nd directory that would be directory to the config
wallxq commented 2020-12-18 12:31:59 +00:00 (Migrated from github.com)

That works! Amazing :) thanks for very fast help!

That works! Amazing :) thanks for very fast help!
ham1255 commented 2020-12-18 13:08:20 +00:00 (Migrated from github.com)

@Govindass should i count this docs problem?

@Govindass should i count this docs problem?
GovindasOM commented 2020-12-18 13:11:07 +00:00 (Migrated from github.com)

@Govindass should i cound this docs problem?

not sure, it's a redis usage issue, in linux the same problem happens too, that you must specify config directory (I don't know why it doesn't auto-specify if unspecified)

> > > @Govindass should i cound this docs problem? not sure, it's a redis usage issue, in linux the same problem happens too, that you must specify config directory (I don't know why it doesn't auto-specify if unspecified)
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Limework/RediSkript#10
No description provided.