Trying to get MQTT broker on Alpine running => keeps crashing
Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to get MQTT broker on Alpine running => keeps crashing
Hi, I'm trying to get Eclipse MQTT broker to work in a Alpine Linux LXC (on Proxmox).
I'm not very skilled with Linux, use it now with a Debian LXC because there is just more information about Debian.
Recently I discovered Alpine, managed to get WireGuard running on it and I'm very surprised of the speed/small footprint.
So now I'm trying to do the same with MQTT but I'm struggling for hours and hours to get it working and cannot find a lot of information about this combo.
Any help to get this working is highly appreciated!
P.
I do not have much details since I don't know that much about Linux, and even less about Alpine.
Do you think that my HW has a role in this issue?
My Proxmox is up-to-date with Bookworm and the LXC Alpine v3.19.1
As you can see from the link that I posted, there is a package for mosquitto, so I didn't compile it myself.
What have you done, and what goes wrong? Describe how you got the package installed, and what it said when you tried to run it. What's mosquito? What's Alpine? What installer do they use? I'm going away if I can't get some sense of what your problem. Read post #2 again. Then answer my questions.
Nothing, just found out that the service has the crashed state
Quote:
Originally Posted by business_kid
What's mosquito?
'Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers.'
Quote:
Originally Posted by business_kid
What's Alpine?
First line of my OP: 'Alpine Linux'
Quote:
Originally Posted by business_kid
What installer do they use?
Dunno
Quote:
Originally Posted by business_kid
I'm going away if I can't get some sense of what your problem. Read post #2 again. Then answer my questions.
Quote:
Originally Posted by business_kid
What's your pc spec & distro? It's on github, so how did the compile go? Errors? What errors (copy & paste message or log snippet)
Pc spec: it's an i5, but since it's a virtual environment I think it's of no importance.
Distro: from my OP, Proxmox (Debian based), Alpine Linux container.
As for the directory, probably everything in /var/run is deleted during shutdown in case there's some stray stuff hanging about. So why not recreate it in rc.local or some other startup script?
Code:
install -o mosquitto -d /var/run/mosquitto
Er, on 2nd thoughts, better create the directory before running mosquitto
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.