apt-cache policy mosquitto returns the following.
Regards. Ahmet Tekelioglu +90 (530) 410 9807
pi@amasya:~ $ sudo apt-cache policy mosquitto mosquitto: Kurulu: 1.5.7-1+deb10u1 Aday: 2.0.12-0mosquitto1~buster1 Sürüm çizelgesi: 2.0.12-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 2.0.11-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 2.0.10-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 2.0.9-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 2.0.8-0mosquitto2~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 2.0.8-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.12-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.11-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.10-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.8-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.7-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.6-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.4-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.3-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.2-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages 1.6.1-0mosquitto1~buster1 500 500 https://repo.mosquitto.org/debian buster/main armhf Packages *** 1.5.7-1+deb10u1 500 500 http://raspbian.raspberrypi.org/raspbianbuster/main armhf Packages 100 /var/lib/dpkg/status
On 19 Aug 2022, at 09:50, Ahmet Tekelioglu via mosquitto-dev <mosquitto-dev@xxxxxxxxxxx> wrote:
Hi Roger,
I have removed the old version (just removed it, not purged it), then rebooted for good measure and then followed the instructions for Ubuntu 20.04.4 virtual server or container (does that matter?)
The error message for this clean installation was the same as before.
ahmett@nbs:~$ sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa[sudo] password for ahmett: More info: https://launchpad.net/~mosquitto-dev/+archive/ubuntu/mosquitto-ppaPress [ENTER] to continue or Ctrl-c to cancel adding it.Get:1 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal InRelease [23.8 kB]Hit:2 http://ppa.launchpad.net/ondrej/apache2/ubuntu focal InReleaseGet:3 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal/main amd64 Packages [2,792 B]Get:4 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal/main Translation-en [1,660 B]Hit:5 http://archive.ubuntu.com/ubuntu focal InReleaseGet:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]Get:8 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,039 kB]Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [364 kB]Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [15.8 kB]Get:12 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [939 kB]Get:13 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [212 kB]Get:14 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,673 kB]Get:15 http://archive.ubuntu.com/ubuntu focal-security/main Translation-en [282 kB]Get:16 http://archive.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [10.8 kB]Get:17 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [714 kB]Get:18 http://archive.ubuntu.com/ubuntu focal-security/universe Translation-en [130 kB]Fetched 6,745 kB in 7s (950 kB/s)Reading package lists... Doneahmett@nbs:~$ahmett@nbs:~$ sudo apt-get updateHit:1 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal InReleaseHit:2 http://archive.ubuntu.com/ubuntu focal InReleaseHit:3 http://archive.ubuntu.com/ubuntu focal-updates InReleaseHit:4 http://ppa.launchpad.net/ondrej/apache2/ubuntu focal InReleaseHit:5 http://archive.ubuntu.com/ubuntu focal-backports InReleaseHit:6 http://archive.ubuntu.com/ubuntu focal-security InReleaseReading package lists... Doneahmett@nbs:~$ sudo apt-get install mosquitto mosquitto-devReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required: libdlt2 libev4 libwebsockets15Use 'sudo apt autoremove' to remove them.The following NEW packages will be installed: mosquitto mosquitto-dev0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded.Need to get 0 B/336 kB of archives.After this operation, 812 kB of additional disk space will be used.Selecting previously unselected package mosquitto.(Reading database ... 115356 files and directories currently installed.)Preparing to unpack .../mosquitto_2.0.15a-0mosquitto1~focal1_amd64.deb ...Unpacking mosquitto (2.0.15a-0mosquitto1~focal1) ...Selecting previously unselected package mosquitto-dev.Preparing to unpack .../mosquitto-dev_2.0.15a-0mosquitto1~focal1_all.deb ...Unpacking mosquitto-dev (2.0.15a-0mosquitto1~focal1) ...Setting up mosquitto (2.0.15a-0mosquitto1~focal1) ...Installing new version of config file /etc/mosquitto/mosquitto.conf ...Job for mosquitto.service failed because the control process exited with error code.See "systemctl status mosquitto.service" and "journalctl -xe" for details.invoke-rc.d: initscript mosquitto, action "restart" failed.● mosquitto.service - Mosquitto MQTT Broker Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Fri 2022-08-19 09:38:46 +03; 7ms ago Docs: man:mosquitto.conf(5) man:mosquitto(8) Process: 2747 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS) Process: 2748 ExecStartPre=/bin/chown mosquitto:mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS) Process: 2754 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS) Process: 2759 ExecStartPre=/bin/chown mosquitto:mosquitto /run/mosquitto (code=exited, status=0/SUCCESS) Process: 2760 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=1/FAILURE) Main PID: 2760 (code=exited, status=1/FAILURE)Aug 19 09:38:48 nbs systemd[1]: Starting Mosquitto MQTT Broker...Aug 19 09:38:48 nbs mosquitto[2820]: 1660891128: Loading config file /etc/mosquitto/conf.d/broker.confAug 19 09:38:48 nbs systemd[1]: mosquitto.service: Main process exited, code=exited, status=1/FAILUREAug 19 09:38:48 nbs systemd[1]: mosquitto.service: Failed with result 'exit-code'.Aug 19 09:38:48 nbs systemd[1]: Failed to start Mosquitto MQTT Broker.Aug 19 09:38:49 nbs systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 5.Aug 19 09:38:49 nbs systemd[1]: Stopped Mosquitto MQTT Broker.Aug 19 09:38:49 nbs systemd[1]: mosquitto.service: Start request repeated too quickly.Aug 19 09:38:49 nbs systemd[1]: mosquitto.service: Failed with result 'exit-code'.Aug 19 09:38:49 nbs systemd[1]: Failed to start Mosquitto MQTT Broker.dpkg: error processing package mosquitto (--configure): installed mosquitto package post-installation script subprocess returned error exit status 1dpkg: dependency problems prevent configuration of mosquitto-dev: mosquitto-dev depends on mosquitto (<< 2.0.15a-0mosquitto1~focal1.1~); however: Package mosquitto is not configured yet. mosquitto-dev depends on mosquitto (>= 2.0.15a-0mosquitto1~focal1); however: Package mosquitto is not configured yet.dpkg: error processing package mosquitto-dev (--configure): dependency problems - leaving unconfiguredProcessing triggers for man-db (2.9.1-1) ...Processing triggers for systemd (245.4-4ubuntu3.17) ...Errors were encountered while processing: mosquitto mosquitto-devE: Sub-process /usr/bin/dpkg returned an error code (1)ahmett@nbs:~$Ahmet Tekelioglu +90 (530) 410 9807 On 18 Aug 2022, at 19:59, Roger Light <roger@xxxxxxxxxx> wrote:
Hi Ahmet,The Raspberry Pi packages provided by the project aren't available asyet because I've been having problems with incompatibility when crosscompiling that I need to sort out. You should still be getting a morerecent version if you've configured repo.mosquitto.org though. Couldyou see what the output of `apt-cache policy mosquitto` shows?Your ubuntu problem is described in the error log - something didn'twork properly when installing/upgrading the package so it isn'tinstalled fully. I have tried an install and an upgrade on my systemand everything went ok, so I assume there must be a small somethingodd on your end. Perhaps you could try removing the old version andreinstalling.Regards,RogerOn Thu, 18 Aug 2022 at 13:27, Ahmet Tekelioglu via mosquitto-dev<mosquitto-dev@xxxxxxxxxxx> wrote:
Hi Roger,
At the Ubuntu server, instead of apt-get upgrade, I did apt-get install mosquitto mosquitto-dev
Long story short, here is the error message and the configuration file that worked perfectly in the old version.
Setting up mosquitto (2.0.15a-0mosquitto1~focal1) ...
Job for mosquitto.service failed because the control process exited with error code.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mosquitto, action "restart" failed.
● mosquitto.service - Mosquitto MQTT Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2022-08-18 15:20:12 +03; 6ms ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 2612 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS)
Process: 2613 ExecStartPre=/bin/chown mosquitto:mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS)
Process: 2621 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS)
Process: 2622 ExecStartPre=/bin/chown mosquitto:mosquitto /run/mosquitto (code=exited, status=0/SUCCESS)
Process: 2623 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=1/FAILURE)
Main PID: 2623 (code=exited, status=1/FAILURE)
Aug 18 15:20:13 nbs systemd[1]: Starting Mosquitto MQTT Broker...
Aug 18 15:20:13 nbs mosquitto[2666]: 1660825213: Loading config file /etc/mosquitto/conf.d/broker.conf
Aug 18 15:20:13 nbs systemd[1]: mosquitto.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:20:13 nbs systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Aug 18 15:20:13 nbs systemd[1]: Failed to start Mosquitto MQTT Broker.
Aug 18 15:20:14 nbs systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 5.
Aug 18 15:20:14 nbs systemd[1]: Stopped Mosquitto MQTT Broker.
Aug 18 15:20:14 nbs systemd[1]: mosquitto.service: Start request repeated too quickly.
Aug 18 15:20:14 nbs systemd[1]: mosquitto.service: Failed with result 'exit-code'.
Aug 18 15:20:14 nbs systemd[1]: Failed to start Mosquitto MQTT Broker.
dpkg: error processing package mosquitto (--configure):
installed mosquitto package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mosquitto-dev:
mosquitto-dev depends on mosquitto (<< 2.0.15a-0mosquitto1~focal1.1~); however:
Package mosquitto is not configured yet.
mosquitto-dev depends on mosquitto (>= 2.0.15a-0mosquitto1~focal1); however:
Package mosquitto is not configured yet.
dpkg: error processing package mosquitto-dev (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mosquitto
mosquitto-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
ahmett@nbs:/etc/mosquitto/conf.d$ vi broker.conf
listener 8883
tls_version tlsv1.3
ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256
cafile /etc/mosquitto/ca_certificates/ca.crt
certfile /etc/mosquitto/certs/nbstakibi.crt
keyfile /etc/mosquitto/certs/nbstakibi.key
require_certificate true
max_inflight_messages 1
max_queued_messages 6000
Ahmet Tekelioglu
+90 (530) 410 9807
On 18 Aug 2022, at 01:11, Roger Light <roger@xxxxxxxxxx> wrote:
Hi Ahmet,
I haven't heard of anything like that, sorry. Do you have any more
details of how exactly you are setting things up?
Regards,
Roger
On Wed, 17 Aug 2022 at 11:01, Ahmet Tekelioglu via mosquitto-dev
<mosquitto-dev@xxxxxxxxxxx> wrote:
Hello,
I am using mosquitto in an application that collects telemetry data form several dozen clients. I have already activated the MQTT/TLS parameters and selected relatively safe TLS parameters. However, partly out of curiosity, I am also implementing the Diffir-Hellman protocol for key exchange. The protocol itself works fine and produces the same key at both ends, the client and the server. It is possible to exchange keys many times and that part appears to work flawlessly.
However, after the first key exchange, I find that the telemetry data arriving from the clients becomes erratic so that only one third is saved to the database. Before the Diffie-Hellman protocol, data transfer was always one-way, from the clients to the server. The trouble started when I began to send D-H responses to the client from the server. Any clues?
Has anybody run into unexpected behaviour after two-way messaging?
Ahmet Tekelioglu
+90 (530) 410 9807
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev
_______________________________________________mosquitto-dev mailing listmosquitto-dev@xxxxxxxxxxxTo unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev
|