errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.13k stars 615 forks source link

Replace SleekXMPP with more modern slixmpp #1380

Closed derek-austin closed 4 years ago

derek-austin commented 5 years ago

I am...

I am running...

Issue description

SleekXMPP don't connect to ejabberd

Steps to reproduce

wget https://raw.githubusercontent.com/rroemhild/docker-ejabberd/master/examples/docker-compose/docker-compose.yml
docker-compose up

Configure errbot

import logging

BACKEND = 'XMPP'  # defaults to XMPP
BOT_DATA_DIR = '/home/user/git/errbot/data_dir'
BOT_EXTRA_PLUGIN_DIR = None
PLUGINS_CALLBACK_ORDER = (None, )
BOT_LOG_FILE = BOT_DATA_DIR + '/err.log'
BOT_LOG_LEVEL = logging.DEBUG
BOT_LOG_SENTRY = False
SENTRY_DSN = ''
SENTRY_LOGLEVEL = BOT_LOG_LEVEL
BOT_IDENTITY = {
    'username': 'admin@example.com',  # The JID of the user you have created for the bot
    'password': 'password4321',       # The corresponding password for this user
    'server': ('127.0.0.1',5222), # server override
}

BOT_ADMINS = ('admin@example.com',)
BOT_ADMINS_NOTIFICATIONS = ('admin@example.com')

DIVERT_TO_PRIVATE = ()
DIVERT_TO_THREAD = ()
CHATROOM_RELAY = {}
REVERSE_CHATROOM_RELAY = {}
pipenv install errbot
pipenv run errbot
mkdir data_dir
errbot

Additional info

sijis commented 5 years ago

Could you try this PR https://github.com/errbotio/errbot/pull/1377 and set XMPP_SSL_VERSION as the example in the config shows.

derek-austin commented 5 years ago

Not working for me. If you want to replicate see https://github.com/errbotio/errbot/pull/1377#issuecomment-524784309

derek-austin commented 5 years ago

Slixmpp is the recomended for Python in xmpp.org. See https://xmpp.org/software/libraries.html Slixmpp is a fork of SleekXMPP.

Daniel-at-github commented 4 years ago

@sijis, SleekXMPP is oficially deprecated, and recommends Slixmpp. See https://github.com/fritzy/SleekXMPP

raspbeguy commented 4 years ago

I approve switching to Slixmpp. I have a TLS issue with SleekXMPP that nobody could help me solve, probably because it's deprecated.

raspbeguy commented 4 years ago

Thanks for solving this issue. How can we expect the next release that includes it?