Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Version 2.0.2 released

Hi,
I've just "received" version 2.0.2 as part as Ubuntu 16.04 update, and it seems websockets is not enabled ?

Also, the new permission scheme needs the daemon user to be able to write to pidfile directory, /var/run in my case. And even then it dies because of permissions when trying to bind to a second listener:

#1:
write(4, "1607859366: Opening ipv4 listen "..., 53) = 53
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(5, SOL_IPV6, IPV6_V6ONLY, [1], 4) = -1 ENOPROTOOPT (Protocol not available)
fcntl(5, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
bind(5, {sa_family=AF_INET, sin_port=htons(1883), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(5, 100)                          = 0

#2:
write(4, "1607859366: Opening ipv4 listen "..., 52) = 52
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 7
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(7, SOL_IPV6, IPV6_V6ONLY, [1], 4) = -1 ENOPROTOOPT (Protocol not available)
fcntl(7, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
bind(7, {sa_family=AF_INET, sin_port=htons(995), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EACCES (Permission denied)
write(4, "1607859366: Error: Permission de"..., 37) = 37
close(7)                                = 0
unlink("/var/run/mosquitto.pid")        = -1 EACCES (Permission denied)

I'm using 995 (pop3s), no other daemon is there.
Using root user as a bandaid...

-Carlos

Roger Light @ 10/12/2020 20:57 -0300 dixit:
Dear all,

Version 2.0.2 has been released. 2.0.1 introduced a build regression
on non-Linux systems when websockets support was included.

Details of the changes in 2.0.1 are at the link below, they are mainly
build related but do include a fix for websockets connection delay.

https://mosquitto.org/blog/2020/12/version-2-0-2-released/

Regards,

Roger
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev


--
Carlos G Mendioroz  <tron@xxxxxxxxxxx>  LW7 EQI  Argentina

--
Carlos G Mendioroz  <tron@xxxxxxx>


Back to the top