reqable-app icon indicating copy to clipboard operation
reqable-app copied to clipboard

[bug] Imported collections vanish after restart

Open qbast opened this issue 1 month ago • 10 comments

Describe the bug

Imported collections vanish after application restart

To Reproduce Steps to reproduce the behavior:

  1. Import some collections from Postman
  2. Close the application. It usually does not happen on the first time, and I am not sure what exactly triggers it.
  3. Open Requable again
  4. All imported collections are replaced with "Untitled (0)"

Expected behavior

Imported collections should not be corrupted between restarts

Screenshots

Image

Information

  • Platform: Linux
  • OS: Kubuntu 25.10
  • Arch: x86-64
  • App Version: 3.0.22 but it happened on earlier 2.xx versions as well

qbast avatar Nov 11 '25 10:11 qbast

I am not 100% sure yet, but I think history also gets deleted at the same time when collections are corrupted

qbast avatar Nov 11 '25 10:11 qbast

@qbast Hello, this issue occurred because you upgraded to version 3.x and then downgraded to version 2.x, causing data loss. If you haven't done this multiple times, it's possible to recover your data from backups. Copy the two files from ~/.local/share/reqable/box.bak and overwrite the existing files in ~/.local/share/reqable/box, and restart the app.

MegatronKing avatar Nov 14 '25 05:11 MegatronKing

If data recovery fails, check the size of the backup file under box.bak. If the file is less than 1MB, it means the backup has been refreshed and cannot be recovered.

MegatronKing avatar Nov 14 '25 06:11 MegatronKing

Hello. I don't think this is caused by version changes. I had the same problem on version 2 before any upgrades. Then I upgraded to version 3, hoping it will fix the problem, but it does not. I never downgraded.

I managed to reproduce it right now: start reqable, import all my collections from postman, verify that box.data size is 208KB. Then I closed reqable, restarted it and collections were emptied again. I tried to restore from backup (it shows multiple possible date/times I could restore from), but it also does not bring back anything.

One thing I forgot to mention in the report: reqable is installed via flatpak. Could it be the issue? I will retest on requable installed from .deb

qbast avatar Nov 14 '25 08:11 qbast

Hello. I don't think this is caused by version changes. I had the same problem on version 2 before any upgrades. Then I upgraded to version 3, hoping it will fix the problem, but it does not. I never downgraded.

I managed to reproduce it right now: start reqable, import all my collections from postman, verify that box.data size is 208KB. Then I closed reqable, restarted it and collections were emptied again. I tried to restore from backup (it shows multiple possible date/times I could restore from), but it also does not bring back anything.

One thing I forgot to mention in the report: reqable is installed via flatpak. Could it be the issue? I will retest on requable installed from .deb

Okay, thank you for your reply. Could you please provide the log files(~/.local/share/reqable/log), compressed into a zip file, and send it to my email address [email protected] ?

MegatronKing avatar Nov 14 '25 09:11 MegatronKing

Sure, done.

qbast avatar Nov 14 '25 09:11 qbast

Sure, done.

But no email received in my message box. Also you can attach it here, the log contains no sensitive information.

MegatronKing avatar Nov 14 '25 09:11 MegatronKing

Maybe it got stuck in spam inbox? Anyway, here is the logs:

log.zip

It increasingly looks like this bugs is specific to flatpak-packaged reqable. After installing version from .deb, i restarted it multiple times and my collections are still there.

qbast avatar Nov 14 '25 11:11 qbast

Thanks very much. I think I know the reason: you started multiple instances, causing the database to fail to open, see https://github.com/objectbox/objectbox-dart/issues/288 . On Linux, we did not prevent multiple instances from starting, which can cause some problems.

MegatronKing avatar Nov 14 '25 11:11 MegatronKing

That's quite probable. Flatpak version does not show bird icon in taskbar (instead just empty rectangle), so it is easy to overlook already started instance. However I also tested it on .deb version - opened multiple instances, closed some of them, etc. - it still works. So the .deb version is rock solid for me. Flatpak does have some sandboxing, maybe this interferes with multiple running instances

qbast avatar Nov 14 '25 11:11 qbast