AznStevy / Maybe-Useful-Cogs

Random cogs for a discord bot.
MIT License
29 stars 31 forks source link

And for that ? #63

Open ghost opened 6 years ago

ghost commented 6 years ago

  [14/06/2018 16:41] ERROR owner load 74: localhost:27017: [Errno 111] Connection refused Traceback (most recent call last):   File "/root/Red-DiscordBot/cogs/owner.py", line 65, in load     self._load_cog(module)   File "/root/Red-DiscordBot/cogs/owner.py", line 942, in _load_cog     self.bot.load_extension(mod_obj.name)   File "lib/discord/ext/commands/bot.py", line 738, in load_extension     lib.setup(self)   File "/root/Red-DiscordBot/cogs/leveler.py", line 3284, in setup     n = Leveler(bot)   File "/root/Red-DiscordBot/cogs/leveler.py", line 61, in init     dbs = client.database_names()   File "lib/pymongo/mongo_client.py", line 1496, in list_database_names     for doc in self.list_databases(session, nameOnly=True)]   File "lib/pymongo/mongo_client.py", line 1476, in list_databases     "admin").command(cmd, session=session)   File "lib/pymongo/database.py", line 529, in command     with client._socket_for_reads(read_preference) as (sock_info, slave_ok):   File "/usr/local/lib/python3.6/contextlib.py", line 82, in enter     return next(self.gen)   File "lib/pymongo/mongo_client.py", line 982, in _socket_for_reads     server = topology.select_server(read_preference)   File "lib/pymongo/topology.py", line 224, in select_server     address))   File "lib/pymongo/topology.py", line 183, in select_servers     selector, server_timeout, address)   File "lib/pymongo/topology.py", line 199, in _select_servers_loop     self._error_message(selector)) pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused Traceback (most recent call last):   File "/root/Red-DiscordBot/cogs/owner.py", line 65, in load     self._load_cog(module)   File "/root/Red-DiscordBot/cogs/owner.py", line 942, in _load_cog     self.bot.load_extension(mod_obj.name)   File "lib/discord/ext/commands/bot.py", line 738, in load_extension     lib.setup(self)   File "/root/Red-DiscordBot/cogs/leveler.py", line 3284, in setup     n = Leveler(bot)   File "/root/Red-DiscordBot/cogs/leveler.py", line 61, in init     dbs = client.database_names()   File "lib/pymongo/mongo_client.py", line 1496, in list_database_names     for doc in self.list_databases(session, nameOnly=True)]   File "lib/pymongo/mongo_client.py", line 1476, in list_databases     "admin").command(cmd, session=session)   File "lib/pymongo/database.py", line 529, in command     with client._socket_for_reads(read_preference) as (sock_info, slave_ok):   File "/usr/local/lib/python3.6/contextlib.py", line 82, in enter     return next(self.gen)   File "lib/pymongo/mongo_client.py", line 982, in _socket_for_reads     server = topology.select_server(read_preference)   File "lib/pymongo/topology.py", line 224, in select_server     address))   File "lib/pymongo/topology.py", line 183, in select_servers     selector, server_timeout, address)   File "lib/pymongo/topology.py", line 199, in _select_servers_loop     self._error_message(selector)) pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused

AznStevy commented 6 years ago

Did you install mongodb like the instructions say?

ghost commented 6 years ago

Yes

ghost commented 6 years ago

I have make a fresh install ans i have that : [0m  File "/root/Red-DiscordBot/cogs/leveler.py", line 3286, in setupbot.add_cog(n)    File "lib/discord/ext/commands/bot.py", line 655, in add_cogself.add_command(member)    File "lib/discord/ext/commands/core.py", line 487, in add_commandraise discord.ClientException('Command {0.name} is already registered.'.format(command)) discord.errors.ClientException: Command badge is already registered. Traceback (most recent call last): Tr File "/root/Red-DiscordBot/cogs/owner.py", line 65, in load self._load_cog(module)    File "/root/Red-DiscordBot/cogs/owner.py", line 942, in _load_cog self.bot.load_extension(mod_obj.name)    File "lib/discord/ext/commands/bot.py", line 738, in load_extension lib.setup(self)    File "/root/Red-DiscordBot/cogs/leveler.py", line 3286, in setup bot.add_cog(n)    File "lib/discord/ext/commands/bot.py", line 655, in add_cog self.add_command(member)    File "lib/discord/ext/commands/core.py", line 487, in add_command raise discord.ClientException('Command {0.name} is already registered.'.format(command)) discord.errors.ClientException: Command badge is already registered.

AznStevy commented 6 years ago

It's conflicting with another cog, I forgot which.

ghost commented 6 years ago