Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot save connection since Win10 upgrade #156

Open
kloggy opened this issue Jul 14, 2019 · 5 comments
Open

Cannot save connection since Win10 upgrade #156

kloggy opened this issue Jul 14, 2019 · 5 comments

Comments

@kloggy
Copy link

kloggy commented Jul 14, 2019

I am having an issue since (I assume) upgrading Windows 10 to 1903.

Firstly, I had a connection saved which disappeared, no big deal except that I cannot save it again. also not a show stopper but really annoying to have to create a new connection the same server every time I want to use it!

The errors I get are as shown here... I'm happy to provide any more info if it helps.

When I start MQTT Explorer I get this,

image

and after 'saving' the new connection and connecting (successfully) I get this, and the connection isn't saved

image

@thomasnordquist
Copy link
Owner

Thanks for reporting this issue. I am already familiar with it but I can neither reproduce it nor do I have an idea which circumstances lead to this issue.

Background

MQTT Explorer utilizes a "Database" that supports atomic writes (either everything is written or nothing). It achieves this by writing the new state into a file .~settings.json and then renaming it to settings.json.
My guess would be that somehow the file permissions of C:\Users\$YOUR_USERNAME\AppData\Roaming\MQTT-Explorer\ or the contained settings.json, .~settings.json prevent this rename (move one file on top of the other, overwriting settings.json).

Quickfix

The easy thing to to would be to remove C:\Users\$YOUR_USERNAME\AppData\Roaming\MQTT-Explorer\.

Helpful for others

It would be beneficial if you got some insights on what the file and directory permissions currently are, if the owner differs from your current user and if you, for instance, opened MQTT Explorer as an administrator at some time and which of those files in C:\Users\$YOUR_USERNAME\AppData\Roaming\MQTT-Explorer\ actually exist

This guide describes how to make the AppData directory visible.

@thomasnordquist thomasnordquist added the bug Something isn't working label Jul 15, 2019
@kloggy
Copy link
Author

kloggy commented Jul 15, 2019

It would be beneficial if you got some insights on what the file and directory permissions currently are

if the owner differs from your current user
The owner of that folder is the same user running MQTT Explorer

if you, for instance, opened MQTT Explorer as an administrator at some time
I don't remember ever opening MQTT Explorer as an Admin or any other user

which of those files in C:\Users$YOUR_USERNAME\AppData\Roaming\MQTT-Explorer\ actually exist
I have the following files in that folder:

14/07/2019  16:59    <DIR>          blob_storage
19/03/2019  21:48    <DIR>          Cache
18/03/2019  15:32    <DIR>          GPUCache
15/03/2019  14:04    <DIR>          Local Storage
15/03/2019  14:04            20,480 Cookies
15/03/2019  14:04                 0 Cookies-journal
20/03/2019  00:46                 2 electron-telemetry-data.json
16/03/2019  11:02                36 electron-telemetry-uuid.json
15/03/2019  23:06                61 Network Persistent State
19/03/2019  23:07               385 Preferences
18/03/2019  15:32             1,021 settings.json

The folder blob_storage is empty
The folder Cache contains:

19/03/2019  21:48            45,056 data_0
20/03/2019  00:48           270,336 data_1
15/03/2019  14:04             8,192 data_2
19/03/2019  21:48         4,202,496 data_3
19/03/2019  21:48            17,183 f_000008
15/03/2019  14:04           524,656 index

The folder GPUCache contains:

19/03/2019  22:04            45,056 data_0
20/03/2019  00:48           270,336 data_1
15/03/2019  14:04             8,192 data_2
19/03/2019  21:54         4,202,496 data_3
15/03/2019  14:08            17,368 f_000001
15/03/2019  14:08            16,724 f_000002
16/03/2019  11:03            16,724 f_000003
17/03/2019  12:27            17,368 f_000004
18/03/2019  15:32            18,368 f_000005
15/03/2019  14:04           262,512 index

The folder Local Storage contains a single folder called leveldb which contains:

16/03/2019  12:54               226 000003.log
15/03/2019  14:04                16 CURRENT
15/03/2019  14:04                 0 LOCK
19/03/2019  23:07                 0 LOG
19/03/2019  19:19               185 LOG.old
15/03/2019  14:04                41 MANIFEST-000001

I also have a folder MQTT Explorer no '-' betweent MQTT and Explorer which contains an empty folder called logs.

Deleting both the folders MQTT Explorer and MQTT-Explorer does not solve the problem, I get the same error message and what is more neither folder is recreated. I will try uninstalling and reinstalling....

@kloggy
Copy link
Author

kloggy commented Jul 15, 2019

Reinstalling seems to have fixed the problem but strangely, still neither of those folders seem to be being created.

I seem to be back and running normally, I'll leave it up to you if you want to close this issue ;-)

Thanks for the pointers and thanks mostly for MQTT Explorer!!

@thomasnordquist
Copy link
Owner

I will keep this issue open for now, in case more people experience these issues.

@thomasnordquist thomasnordquist removed the bug Something isn't working label Jul 17, 2019
@earwin
Copy link

earwin commented Nov 29, 2020

I have a similar problem with 0.3.5 Mac App Store version of MQTTE.

After restart it is always reset to default eclipse and mosquitto servers.
But there are no visible errors.

Upd: tried with a .dmg version, and settings are properly saved and restored. My guess it has something to do with sandboxing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants