Open bcookatpcsd opened 1 year ago
I put this all into runit.. then it stopped working..
USER=root
SHLVL=2
HOME=/root
OLDPWD=/etc/sv/mosquitto
RC_SVCNAME=runitd
TERM=linux
RC_SERVICE=/etc/init.d/runitd
SVCNAME=runitd
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
PWD=/etc/mosquitto
TZ=America/New_York
1676137654: mosquitto version 2.0.15 starting
1676137654: Config loaded from /etc/mosquitto/mosquitto.conf.
1676137654: Loading plugin: /usr/lib/mosquitto_dynamic_security.so
1676137654: Error loading Dynamic security plugin config: File is not readable - check permissions.
1676137654: Opening ipv4 listen socket on port 8883.
1676137654: Opening websockets listen socket on port 1883.
1676137654: mosquitto version 2.0.15 running
1676137658: Client hBtkA7j8guMwZ0Zkivjjil8 closed its connection.
1676137659: Client hBtkA7j8guMwZ0Zkivjjil8 closed its connection.
1676137663: Client hBtkA7j8guMwZ0Zkivjjil8 closed its connection.
1676137663: Client hBtkA7j8guMwZ0Zkivjjil8 closed its connection.
1676137667: Client hBtkA7j8guMwZ0Zkivjjil8 closed its connection.
1676137667: Client hBtkA7j8guMwZ0Zkivjjil8 closed its connection.
1676137672: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137672: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137676: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137676: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137680: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137680: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137685: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137685: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137689: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137689: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137693: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137693: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137698: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137698: Client Z0mksJHrQ9tqfdJzHyac4IQ closed its connection.
1676137702: Client jb46p0G5hjmlKB4BE8ez5rj closed its connection.
1676137702: Client jb46p0G5hjmlKB4BE8ez5rj closed its connection.
1676137703: mosquitto version 2.0.15 terminating
USER=root
SHLVL=2
HOME=/root
OLDPWD=/etc/sv/netmaker
RC_SVCNAME=runitd
TERM=linux
RC_SERVICE=/etc/init.d/runitd
SVCNAME=runitd
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
PWD=/etc/netmaker
TZ=America/New_York
__ __ ______ ______ __ __ ______ __ __ ______ ______
/\ "-.\ \ /\ ___\ /\__ _\ /\ "-./ \ /\ __ \ /\ \/ / /\ ___\ /\ == \
\ \ \-. \ \ \ __\ \/_/\ \/ \ \ \-./\ \ \ \ __ \ \ \ _"-. \ \ __\ \ \ __<
\ \_\\"\_\ \ \_____\ \ \_\ \ \_\ \ \_\ \ \_\ \_\ \ \_\ \_\ \ \_____\ \ \_\ \_\
\/_/ \/_/ \/_____/ \/_/ \/_/ \/_/ \/_/\/_/ \/_/\/_/ \/_____/ \/_/ /_/
[netmaker] 2023-02-11 12:48:22 connecting to sqlite
[netmaker] 2023-02-11 12:48:22 database successfully connected
[netmaker] 2023-02-11 12:48:22 no OAuth provider found or not configured, continuing without OAuth
[netmaker] 2023-02-11 12:48:22 could not update user myusernameatnm
[netmaker] 2023-02-11 12:48:22 Configuring MQ...
[netmaker] 2023-02-11 12:48:22 MQ config exists already, So Updating Existing Config...
[netmaker] 2023-02-11 12:48:22 REST Server successfully started on port 8081 (REST)
[netmaker] 2023-02-11 12:48:22 connecting to mq broker at ws://127.0.0.1:1883 with TLS? false
[netmaker] 2023-02-11 12:48:29 Stopping the REST server...
[netmaker] 2023-02-11 12:48:29 REST Server closed.
[netmaker] 2023-02-11 12:48:29 http: Server closed
🤷
Contact Details
No response
What happened?
Alpine 3.17.2 as of this AM..
following the no docker documentation.. all seems straight forward.. mosquitto is different on alpine and confusing by nature it looks like..
mosquitto plugin is in a different location..
Alpine is musl and not glibc..
So I rebuilt netmaker binary.. ldd (which netmaker) /lib/ld-musl-x86_64.so.1 (0x7f3a5f4c4000) libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f3a5f4c4000)
using this mosquitto config
tied it directly to loopback..
no idea where to go from here..
I started netmaker before mosquitto to get the json file updated
more googling and reading..
this seems to work:
note the specific entry for protocol websocks on the 1883 listener..
and now.. we have this:
changed the path back to the local dir for the json file..
started netmaker and cp'd the json file to mosquitto and restarted mosquitto..
still seems to work..
Cunningham's Law applies here.. (please correct me if I'm wrong)
Will continue to plod on..
Version
v0.17.1
What OS are you using?
No response
Relevant log output
No response
Contributing guidelines