-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
If "FATAL:Cannot open database" #493
Comments
ditto |
What's your Syncthing version? Go to Help -> About. |
same |
Having this issue too...Mine says syncthing version unknown. I'm guessing it's the new v1.0.0 Edit:
|
I have the exact same issue. On only one of 4 systems here running synctrayzor. |
The only explanation is that you have run Syncthing 0.14.53 or higher outside of SyncTrayzor (or another SyncTrayzor instance which contains a newer Syncthing version, but shares the same database location). Another possibility is that something deleted your Roaming profile folder, but not your Local profile folder. The copy of Syncthing which SyncTrayzor uses is in The workaround is to download Syncthing 1.0.0 and put it in If one of you could send me your log files from the time that the problem started happening (File -> Settings -> Logging -> Show SyncTrayzor log files, then send me the file corresponding to the point in time where the problem first started happening), that might help track down what exactly is going on with Syncthing. |
Just an idea: would it help to tie the config into an appdata\local\synctrayzor\config folder too? So if a user would run a newer version Outside it won't affect the wrappers version and config. |
@Catfriend1 I have no idea what you're trying to say I'm afraid. Which config? Tie how? This has nothing to do with the wrapper's version, or the wrapper's config. In fact is has nothing to do with any config. |
Outstanding stuff @canton7 and that was the one (Sync) 'thing' I did not try yet (manually), but you confirmed my last thoughts and worked for me. Thank you and will certainly be donating towards your efforts, because you are making 'my world' far easier and fun 😻 |
Thank you all for your comments. Finally I had to reinstall a computer to make Sync working again. On top of this I had to restore router/firewall from backup because not proper network behavior. |
@canton7 I mean is it possible to tell syncthing which directory contains its config and index files so this could be a directory different from the default. |
@Catfriend1 so you're saying that SyncTrayzor should keep its Syncthing database and Syncthing configuration separate to other Syncthing instances on that machine? Well, that means that instead of very occasionally having trouble with two Syncthing instances on the same machine, we now always have trouble with two Syncthing instances on the same machine (since users very rarely want to have two Syncthing instances with different databases and configuration). On top of that, we're not even sure if this issue is caused by two Syncthing instances on the same machine at all! |
Confirming this fixed it up. |
Can someone else is hitting this, please let me know this information:
Right now I still don't know what's causing this, so there's no way to fix it for other people! |
@canton7 I get this after following your steps:
Please let me know how do I resolve this. I started getting this error as I was first using the portable version and then I closed the application and installed the .exe version. And when I ran synctrayzor, I started getting this error as shown in the screenshot below: |
I was able to finally resolve the issue by deleting all folders related to SyncTrayzor and Syncthing in AppData. Can't recall the exact folder location. |
I had this issue right from installation. |
@rampatra I'm afraid I need the entire log at the point that the problem started happening - I need to see why it started happening.
There's no need for that - there's a post earlier in this thread on what to do. |
@jrongit Were you running Syncthing separately, before you started using SyncTrayzor? There is no such thing as the "wrong version": we ship with Syncnthing v0.14.51, which will then auto-upgrade to the latest version the first time that it is run. v0.14.51 will not create a database which is only readable by v0.14.53. Therefore another Syncthing instance is creating the database, and I'm trying to work out how, using information which I've asked for, but which people seem very reluctant to give me... |
This is happening to me and yes I did run syncthing outside synctrazor first. What happened is I'm just starting to use syncthing so I went to the official Syncthing Getting Started Guide and set it up and tested it a bit. Then I looked into synctrayzor later when the manual mentioned it as an option for autostart on windows. I installed both syncthing and synctrazor using chocolatey. Updating syncthing.exe in AppData\Roaming\SyncTrayzor fixed it. |
@canton7 - Yes, I installed Syncthing separately first. I didn't realise that SyncTrayzor included Syncthing and thought I'd experiment with the core application first (then realised that SyncTryzor is what I really needed). From other replies it sounds like this might be the issue. Happy to help/reply where I can, just takes me a while to get back here to check the thread. |
I think... Although syncthing.exe appears on program files, the exe that matters is in your hidden roaming appdata profile folder. Make sure it's current.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: jrongit <notifications@github.com>
Sent: Sunday, February 10, 2019 6:39:13 PM
To: canton7/SyncTrayzor
Cc: drink7up; Comment
Subject: Re: [canton7/SyncTrayzor] If "FATAL:Cannot open database" (#493)
@canton7<https://github.com/canton7> - Yes, I installed Syncthing separately first. I didn't realise that SyncTrayzor included Syncthing and thought I'd experiment with the core application first. From other replies it sounds like this might be the issue. Happy to help/reply where I can, just takes me a while to get back here to check the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#493 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AsoujP0nFfMTSE0x7xQlL1OPCCbOOs1Vks5vL8yhgaJpZM4Z39c->.
|
I started the portable version first. Then I installed and got an error.
AppData\Local\Syncthing |
this helped and explains the problem perfectly. maybe the log should point out that under the roaming folder is the "real" version of Synthing which SyncTraytor uses. It was exactly like this with my set up. I tried Trayor awhile ago, used the CLI version besides that and the roaming one was "too old". thank you, maybe this should get fixed / logged that you know what to do. |
Chiming in to say that the fix (replacing the Syncthing binary in I'd be more than happy to send logs describing when this first started to happen, but this started happening months ago and I made a zipped-up copy of the logs directory just now if that'll help. |
The latest version will ship with Syncthing 1.1.1, which should solve the issue... until Syncthing next changes its database schema format. Ideally we want ot explicitly tell Syncthing to upgrade itself if we need to copy it to AppData (but only if updates to Syncthing are allowed) |
The copy of Syncthing which SyncTrayzor uses is in C:\Users<You>\AppData\Roaming\SyncTrayzor (see the README). If you were replacing the copy that's in C:\Program Files, that won't have made any difference. The workaround is to download latest version of your OS build _Syncthing and put it in C:\Users<You>\AppData\Roaming\SyncTrayzor (for the installed version) , just overwrite the file it will work ! |
"I've finally got it to run. Go into synctrayzor, let it error out as usual. Then go to the settings button bottom right, syncthing tab, open advanced and put this code "-allow-newer-config" in the first line (without "")." |
So, I downloaded, installed and ran synching windows version and quickly noticed that I would have to keep this black terminal window open for service to keep on running. Read a little bit more on download page saw that SyncTrayzor was the right way to go so downloaded, installed and ran getting this "FATAL:Cannot open database" error even after confirming that no other instance of Syncthing or SyncTrayzor was running. Solution: delete both "Syncthing" and "SyncTrayzor" folders from below two locations Hope this helps. Regards! |
thx to @jjarandab , u fixed my issue perfectly!!! |
I am not able to start SyncTrayzor on PC although it was working there before. I tryied a complete new instalation, delete program folder, delete Roaming folder, reboot system - again and again the same.
Error message in log is:
FATAL: Error opening database: Syncthing v0.14.53 required
SyncTrayzor version 1.1.22, OS Windows 10 Profesional
Can somebody help please?
The text was updated successfully, but these errors were encountered: