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

Getting errors #1

Open
mjsal opened this issue Dec 8, 2020 · 0 comments
Open

Getting errors #1

mjsal opened this issue Dec 8, 2020 · 0 comments

Comments

@mjsal
Copy link

mjsal commented Dec 8, 2020

Hello there,

I'm trying to test the bot on my account but every time I run try to run worker.py I get this error

Traceback (most recent call last):
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 559, in connect
sock = self._connect()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 615, in _connect
raise err
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/MAJID/Downloads/Kaitlyn-master/Kaitlyn-master/worker.py", line 10, in
worker.work()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\rq\worker.py", line 474, in work
self.register_birth()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\rq\worker.py", line 258, in register_birth
if self.connection.exists(self.key) and
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\client.py", line 1581, in exists
return self.execute_command('EXISTS', *names)
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 1192, in get_connection
connection.connect()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it.

and I get this when I run clock.py

`22:22:20: Adding job tentatively -- it will be properly scheduled when the scheduler starts
22:22:20: Added job "Queue.enqueue" to job store "default"
22:22:20: Scheduler started
22:22:50: Running job "Queue.enqueue (trigger: interval[0:00:30], next run at: 2020-12-08 22:22:50 +03)" (scheduled at 2020-12-08 22:22:50.258430+03:00)
22:22:54: Job "Queue.enqueue (trigger: interval[0:00:30], next run at: 2020-12-08 22:23:20 +03)" raised an exception
Traceback (most recent call last):
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 559, in connect
sock = self._connect()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 615, in _connect
raise err
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\rq\queue.py", line 380, in enqueue
at_front=at_front, meta=meta
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\rq\queue.py", line 331, in enqueue_call
job = self.enqueue_job(job, at_front=at_front)
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\rq\queue.py", line 424, in enqueue_job
pipe.execute()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\client.py", line 4013, in execute
self.shard_hint)
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 1192, in get_connection
connection.connect()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it.
22:23:20: Running job "Queue.enqueue (trigger: interval[0:00:30], next run at: 2020-12-08 22:23:20 +03)" (scheduled at 2020-12-08 22:23:20.258430+03:00)
22:23:24: Job "Queue.enqueue (trigger: interval[0:00:30], next run at: 2020-12-08 22:23:50 +03)" raised an exception
Traceback (most recent call last):
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 559, in connect
sock = self._connect()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 615, in _connect
raise err
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\rq\queue.py", line 380, in enqueue
at_front=at_front, meta=meta
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\rq\queue.py", line 331, in enqueue_call
job = self.enqueue_job(job, at_front=at_front)
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\rq\queue.py", line 424, in enqueue_job
pipe.execute()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\client.py", line 4013, in execute
self.shard_hint)
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 1192, in get_connection
connection.connect()
File "C:\Users\MAJID\Downloads\Kaitlyn-master\venv\lib\site-packages\redis\connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it.`

I would appreciate your help,

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

No branches or pull requests

1 participant