eclipse-mosquitto / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
9.1k stars 2.4k forks source link

Mosquitto Windows/x64 persistence file missing character #1967

Open RobThree opened 3 years ago

RobThree commented 3 years ago

I'm running mosquitto 2.0.3a on Windows, X64, as service. In my mosquitto.conf file I have the following:

persistence_file mosquitto.db
persistence_location D:\Test\Mosquitto\

However, the file that is created is: D:\Test\Mosquitto\mosquitto.d, note the last b in .db is missing. When I change the config to:

persistence_file mosquitto.dbX

the file created is D:\Test\Mosquitto\mosquitto.db (note the b in .db apeared). So it seems that the last character from the config is ignored.

ralight commented 3 years ago

You're definitely using 2.0.3a? That should have fixed this problem.

RobThree commented 3 years ago

I must admit I looked up the version by checking which file I downloaded at https://mosquitto.org/download/ and there it showed 2.0.3a. Having downloaded the file not longer than a few hours ago I assumed it was/is the current version. Apparently not;

❯ .\mosquitto.exe -h
mosquitto version 2.0.3

However, mosquitto.org seems to be down currently so I can't download 2.0.3a.

Edit: Aaaaaaand it's up again. Downloaded it and installed it; but it still shows 2.0.3? The installer I downloaded and used is named mosquitto-2.0.3a-install-windows-x64.exe.

image

However, the problem seems to be solved?

Also: the installer appears to overwrite the mosquitto.conf without confirmation?