persistence file mosquitto.db doesn't update

Asked by daniel

Hi,

I have a problem using Mosquitto. The persistence file mosquitto.db doesn't update.
This is the situation: Mosquitto exits, write the persistence database and the file
"mosquitto.db" is generated in the location defined in the config file (this is correct).
Now, if Mosquitto tries to rewrite the persistence database (for some reason) the console
shows the messages:

- Saving in-memory database to //dir/mosquitto.db
- Error: File exists.

And in the persistence database's folder there are the first file written ("mosquitto.db")
and another db file named "mosquitto.db.new" . Mosquitto then considers always the first (old)
persistence database ("mosquitto.db"). This is incorrect.

Do you have any suggestions?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

Hi there,

What OS are you running, and what version of mosquitto? Did you compile mosquitto yourself?

Thanks,

Roger

Revision history for this message
daniel (daniel-degasperi) said :
#2

Hi Roger,

thanks for you quick reply!

OS is a Windows 8.1 pro, while version of mosquitto is the 1.3.2.
I'm using the binary file ("mosquitto-1.3.2-install-win32.exe") downloaded at this link http://mosquitto.org/download/.

Thanks,
Daniel

Revision history for this message
Roger Light (roger.light) said :
#3

Looks like Windows has different behaviour for rename() than anybody
else. I'll see about fixing it, thanks.

On Wed, Oct 8, 2014 at 4:01 PM, daniel
<email address hidden> wrote:
> Question #255501 on mosquitto changed:
> https://answers.launchpad.net/mosquitto/+question/255501
>
> Status: Needs information => Open
>
> daniel gave more information on the question:
> Hi Roger,
>
> thanks for you quick reply!
>
> OS is a Windows 8.1 pro, while version of mosquitto is the 1.3.2.
> I'm using the binary file ("mosquitto-1.3.2-install-win32.exe") downloaded at this link http://mosquitto.org/download/.
>
> Thanks,
> Daniel
>
> --
> You received this question notification because you are a member of
> Mosquitto PPA, which is an answer contact for mosquitto.

Revision history for this message
Roger Light (roger.light) said :
#4

I believe this is fixed in version 1.3.5.

Revision history for this message
daniel (daniel-degasperi) said :
#5

Thank so much Roger!

Can you help with this problem?

Provide an answer of your own, or ask daniel for more information if necessary.

To post a message you must log in.