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

Error on plugin load: runtime.tlsg: initial-exec TLS resolves to dynamic definition #20

Closed
huiser opened this issue May 29, 2019 · 6 comments

Comments

@huiser
Copy link

huiser commented May 29, 2019

2019-05-29T16:26:23: mosquitto version 1.6.2 starting
2019-05-29T16:26:23: Config loaded from /mosquitto/mosquitto.conf.
2019-05-29T16:26:23: Loading plugin: /mosquitto/go-auth.so
2019-05-29T16:26:23: Error: Unable to load auth plugin "/mosquitto/go-auth.so".
2019-05-29T16:26:23: Load error: Error relocating /mosquitto/go-auth.so: runtime.tlsg: initial-exec TLS resolves to dynamic definition in /mosquitto/go-auth.so

Mosquitto is built from source in Alpine Linux Docker container

@huiser
Copy link
Author

huiser commented May 29, 2019

Dockerfile.txt

@iegomez
Copy link
Owner

iegomez commented May 29, 2019

There's an ongoing bug when using cgo (which the plugin uses to implement mosquitto's expected plugin interface) on Alpine as it uses muslibc instead of glibc, as referenced in #14.

I mentioned some possible workarounds at #15 (comment), but still haven't tried any of those, so it'd be really helpful if you are willing and have the time to give it a go.

@huiser
Copy link
Author

huiser commented Jun 4, 2019

I can't get it working with Alpine, using the suggestion above.
I switched to the 'debian:stable-slim' base image, for now. If I have time, I will give it another try.

@iegomez
Copy link
Owner

iegomez commented Jun 4, 2019

Ok, thanks. I don't use docker and don't have the time right now to learn it properly and come up with a decent image, but I'll leave this open for the future.

In case you get it to work or believe that an alternative such as using debian:stable-slim is good enough and you want to contribute with docker related additions just make a PR, or let me know if you'd like me to link to an external repo with instructions on how to run a docker image with mosquitto and the plugin in the documentation.

@iegomez
Copy link
Owner

iegomez commented Jun 21, 2019

Hi, @huiser. I tried some workarounds a couple of days ago but couldn't get it to work with Alpine. I had started building another image based on debian:stable-slim but we got robbed at work and hadn't pushed it.

So I intend to rework on it next monday and add it to the repo in a docker directory that would look something like this:

-mosquitto-go-atuh
  -docker
    -auth
      acls
      passwords
  Dockerfile
  mosquitto.conf
  go-auth.conf

That's unless you wish to contribute your debian:stable-slim image. Just let me know if that's the case.

@iegomez
Copy link
Owner

iegomez commented Jun 26, 2019

I just added an example based in debian:stable-slim at the docker dir.
As I mentioned earlier and now at the example's readme, any contributions or help is very welcome.

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

2 participants