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

Jabber is broken for certain servers (e.g. jabber.de) #40

Closed
git-developer opened this issue Oct 29, 2021 · 5 comments · Fixed by #41
Closed

Jabber is broken for certain servers (e.g. jabber.de) #40

git-developer opened this issue Oct 29, 2021 · 5 comments · Fixed by #41

Comments

@git-developer
Copy link
Contributor

Bug description

  • When this Docker image is used for a FHEM instance containing a Jabber client connecting to jabber.de, Jabber fails to authenticate and remains Disconnected.

Steps to reproduce

  1. Prepare an account at jabber.de
  2. Start a container from this Dockerfile.
  3. Create a Jabber module instance, e.g.
    define jabber Jabber jabber.de 5222 <username> <password> 1 0
  4. Look at the modules internal CONNINFO:
    it contains the server response message error invalid-mechanism

Expected behavior

  • The device state should be Connected
  • The internal CONNINFO should contains the message Connected to jabber.de with username <username>

Environment

  • Raspberry Pi 3B+
  • Raspbian Buster
  • Docker 18.09.1

Additional context

Workaround

  • The problem does not occur when package libauthen-sasl-cyrus-perl is removed from this Dockerfile. This may be done by a tiny pre-init.sh script containing the line
    apt-get remove -y libauthen-sasl-cyrus-perl

Suggestion

  • Depending on whether libauthen-sasl-cyrus-perl is required for other purposes, it may be reasonable to remove this package from the Dockerfile and so avoid the problem without the need for an pre-init script.
@sidey79
Copy link
Contributor

sidey79 commented Oct 30, 2021

I haven't found any hints for what we use this package.

Can you tell us which Image exactly you used?

@git-developer
Copy link
Contributor Author

I'm using current latest from Docker Hub on a Raspberry Pi (armv7l):

$ docker images
REPOSITORY                   TAG                  IMAGE ID            CREATED             SIZE
fhem/fhem                    latest               85af1223416b        11 months ago       1.4GB

@sidey79
Copy link
Contributor

sidey79 commented Oct 30, 2021

Can you please confirm, that this Problem also exists with the updated Image which can be found here:

https://github.com/fhem/fhem-docker/pkgs/container/fhem-experimental/9137917?tag=dev

@git-developer
Copy link
Contributor Author

I can confirm that the problem still exists in the newer image, and that removal of libauthen-sasl-cyrus-perl fixes it.

Side note
The linked development image is not appropriate for use on a current Raspbian host because of moby/moby#40734. Summary:

  • Current Raspbian is based on Buster and bundles Docker 18.09.1 and libseccomp 2.3.3-4
  • Images based on Bullseye require at least Docker 19.03.9 and libseccomp version 2.4.2

sidey79 added a commit that referenced this issue Oct 30, 2021
Create a image based on buster  #40
@sidey79
Copy link
Contributor

sidey79 commented Oct 30, 2021

I've created a image based on buster:
https://github.com/fhem/fhem-docker/pkgs/container/fhem-experimental/9603541?tag=dev-buster

Would be nice to get some feedback from you.

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

Successfully merging a pull request may close this issue.

2 participants