Skip to content →

计算机和信息技术

本页面收集所有关于信息技术,软件和计算机

MQTT server mosquitto on Raspberry Smarthome server does not start

Problem

After a few days of absence, I was unfortunately faced with some problems on my Raspberry smart home server.

Among other things, the Mosquitto MQTT server, which is supposed to receive and process messages from the various iot devices, was not available.

Analysis

After analyzing the process overview with

ps -A | grep mosq

unfortunately no output was shown, i.e. the process had obviously not started.

The manual start with

sudo mosquitto

then led to success. The MQTT server was running and also receiving or processing all messages. Only the service to the Mosquitto caused problems.
After completing the manually started process, another attempt was made with

sudo systemctl start mosquitto.service

then start the service. The subsequent query with

sudo systemctl status mosquitto.service

initially provided a promising answer that the service had started successfully.

Unfortunately not quite successful, there is still no entry for mosquitto in the process overview, and the MQTT message processing did not work either.

Reason

After some troubleshooting, the problem was solved. The cause was an apparently corrupt mosquitto.db that is used by the mosquitto service to cache messages.

Solution

This problem can be easily solved by deleting the corresponding file in the directory / var / lib / mosquitto using:

sudo rm mosquitto.db

If then restarted with

sudo systemctl restart mosquitto.service

 mosquitto works fine. The service is automatically restarted even after a reboot.

点击这里阅读更多

Howto: Change Wordpress homepage-adress to https://

Img Wordpress+https

As you may have noticed, this website has been switched to https:// several days ago. This means that ways4.eu is no longer available with https://www.ways4.eu.Instead with https://www.ways4.eu it is available. If you haven't already done so, please change the bookmarks saved as favorites in the browser accordingly. However, the site is currently still accessible via http, but the response time takes slightly longer: in such cases the https page is called via a redirect that will result in the longer response time. If you are also considering upgrading your Wordpress installation to https (better SEO and safer), here's a well-written guide:

Howto: Wordpress on https:// (sorry only in german language)

点击这里阅读更多

[Total: 0    Average: 0/5]

Comments

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

%d 博主赞过: