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

connection refused with shards #15

Open
cop-discord opened this issue Apr 7, 2023 · 3 comments
Open

connection refused with shards #15

cop-discord opened this issue Apr 7, 2023 · 3 comments

Comments

@cop-discord
Copy link

connection refused error 111
ufw already disabled nothing running on the specified port

@AwesomeSam9523
Copy link
Collaborator

Need logs

@cop-discord
Copy link
Author

So My bot is horizontally sharded meaning U have shard ids 0,1 in process 1, 2,3 in process 2, and so on, and it seems when doing bot.ipc.start the following is returned for the second process

Traceback (most recent call last):
  File "/root/.mamba/envs/rival/lib/python3.9/site-packages/jishaku/features/python.py", line 189, in jsk_python2
    async for send, result in AsyncSender(executor):  # type: ignore
  File "/root/.mamba/envs/rival/lib/python3.9/site-packages/jishaku/functools.py", line 124, in _internal
    value = await base.asend(self.send_value)
  File "/root/.mamba/envs/rival/lib/python3.9/site-packages/jishaku/repl/compilation.py", line 154, in traverse
    async for send, result in AsyncSender(func_g(*self.args)):  # type: ignore
  File "/root/.mamba/envs/rival/lib/python3.9/site-packages/jishaku/functools.py", line 124, in _internal
    value = await base.asend(self.send_value)
  File "<repl>", line 1, in _repl_coroutine
    await bot.ipc.start()
  File "/root/.mamba/envs/rival/lib/python3.9/site-packages/winerp/client.py", line 133, in start
    await self.__connect()
  File "/root/.mamba/envs/rival/lib/python3.9/site-packages/winerp/client.py", line 101, in __connect
    self.websocket = await websockets.connect(
  File "/root/.mamba/envs/rival/lib/python3.9/site-packages/websockets/legacy/client.py", line 650, in __await_impl_timeout__
    return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
ConnectionRefusedError: [Errno 111] Connection refused

@AwesomeSam9523 AwesomeSam9523 changed the title connection refused connection refused with shards Apr 10, 2023
@nouman0103
Copy link
Owner

Can you please share how you initialize client in the processes? Also, are your proccess and winerp-server hosted on the same server, or connected through internet? Are you using localhost? Or ipv4 address or something?

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

3 participants