• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT cannot be disabled on nightly image
#1
Hello,

I've just moved to the nightly image and noticed that pilight is now occupying the port 1883 for its embedded MQTT broker. However, in my system, that clashes with another MQTT broker I'm using.

After reading pilight documentation (https://manual.pilight.org/configuration....html#mqtt), I noticed that there is a way to disable the pilight MQTT broker, simply setting

"mqtt-enable": 0

However, that doesn't work and pilight is still occupying that port:
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      15257/pilight-daemo

Then I've tried changing the port used to another one, via:

"mqtt-port": 9883

But unfortunately even that doesn't work.

As a temporary workaround, I'm going to compile pilight from sources (so that I can disable mqtt at compile time hopefully). However, I just wanted to report this and ask around if this is a well-known issue?

Thanks in advance
 
Reply
#2
Too bad, even trying to compile MQTT out fails:

Code:
[ 87%] Building C object CMakeFiles/pilight.dir/libs/pilight/lua_c/network/mqtt.c.o
/home/pi/Downloads/pilight/libs/pilight/lua_c/network/mqtt.c: In function ‘plua_network_mqtt_connect’:
/home/pi/Downloads/pilight/libs/pilight/lua_c/network/mqtt.c:501:13: error: ‘MQTT_PORT’ undeclared (first use in this function); did you mean ‘MQTT_QOS1’?
 int port = MQTT_PORT, args = lua_gettop(L), freeid = 0;
            ^~~~~~~~~
            MQTT_QOS1
/home/pi/Downloads/pilight/libs/pilight/lua_c/network/mqtt.c:501:13: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [CMakeFiles/pilight.dir/build.make:2402: CMakeFiles/pilight.dir/libs/pilight/lua_c/network/mqtt.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:258: CMakeFiles/pilight.dir/all] Error 2
make: *** [Makefile:152: all] Error 2


I guess I'll have to switch back to the master branch and compile from there.

Please let me know if I can raise these two issues somewhere. Looking at pilight on GitHub, it seems issues reporting is disabled.

Thanks
 
Reply
#3
Nice catch! Should be fixed.
 
Reply
#4
(04-30-2020, 07:52 PM)curlymo Wrote: Nice catch! Should be fixed.

Hello,

thanks for your reply. How do I go about opening the issue so that someone can have a look?

I looked in GitHub, but it seems issues tracking is disabled.

Thanks
 
Reply
#5
As i said, it should already be fixed. The github issues are closed because they were used too much as a helpdesk and not for serious development issues like you mentioned in this thread.
 
Reply
#6
Ah, sorry, that was so fast that I misread your comment as "It should be fixed (at some point by someone)"  Smile

BTW, I just looked at your pull request for the issue and I'm under the impression your code fixes only part of the non-working MQTT config problems, namely allowing the user to override the port.

However, I don't see code changes regarding the main issue, that is the fact that setting "mqtt-enable" to 0 in the config file doesn't actually prevent the MQTT from being spawned.

Am I missing something?

Thanks
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  problem publish to pilight MQTT server Emiks5 4 258 08-31-2020, 07:45 PM
Last Post: Emiks5
  Nightly versions less than 8.1.5-59 missing? felfert 4 226 07-28-2020, 07:50 PM
Last Post: felfert
  MQTT external Broker (not local) configuration nicky 3 318 06-02-2020, 05:00 PM
Last Post: curlymo
  stable/nightly Release is no longer signed DSLeX 1 544 05-14-2020, 01:09 PM
Last Post: peteratoce
  MQTT subscribe to a weather station? peteratoce 5 493 04-08-2020, 07:17 AM
Last Post: curlymo
  hardware module issues in nightly apartmedia 17 3,148 04-05-2019, 06:59 PM
Last Post: curlymo
  pilight not working with fresh Openhab 2 image habitoti 2 922 01-24-2019, 08:44 PM
Last Post: habitoti
  Update to v8.0.10-nightly-a1279212 Ulrich.Arnold 3 1,844 06-04-2018, 08:31 PM
Last Post: curlymo
  Updates for nightly Ulrich.Arnold 1 926 01-26-2018, 07:31 PM
Last Post: curlymo
  MQTT subscribe/publish in pilight? cactli 9 4,577 01-02-2018, 05:05 PM
Last Post: xelarep

Forum Jump:


Browsing: 1 Guest(s)