-
Notifications
You must be signed in to change notification settings - Fork 80
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
Backup to USB drive fails, with no useful error message #831
Comments
Please attach a log exported from "Expert settings" behind three dot menu on main screen.
Seedvault uses the Storage Access Framework (SAF) to access your drive and that API doesn't provide user-actionable debugging information. |
See Update 4 from yesterday. The log file has been created, but it was of 0 byte size and empty.
It could at least say something like 'Could not write to flash drive, check this and this ....'. It doesn't give any additional information at all, despite in the notification claiming that if you click on that, it will tell you more. |
That update talks about "Protocol file". No idea what that is. You are the first having issues to export a log file. What ROM / LOS version are you on? |
I'm using it in German... thought you spoke German as a first language, too? |
This was on LineageOS 21, I think. I moved to 22.1 yesterday. Don't know what version of seedvault they ship. |
I still don't know how people translate every part of the UI in every language I speak.
Please send a screenshot from the About screen. Does log export work now? |
It's 15-5.2 (hope that replaces the screenshot). Okay, so,
So, things to fix:
Hope it helps. It would certainly have made my life easier. |
The expected behavior is that it only makes a backup to the flash drive, if you had set up this very flash drive for backups in the past and the last backup is more in the past than your backup frequency.
Yes flash drives have UIDs.
This dialog comes from the OS, we have no control over it. Just give it permission to read the log.
not possible as far as I know. So for the the important question is where is the log? Without log I am not able to help you much nor improve the app. If for some reason, the log export doesn't work for you, please get logs manually via adb. |
The log ISN'T WRITTEN INTO. It has a size of 0 bytes. The file is created when I allow to write to the file 'THIS ONE TIME'. When the error occurs later, my suspicion is that seedvault cannot access the file to update it with the latest problems. At least that seems like the logical reason to me. How about allowing it to write to a specific folder instead, if file access is limited to single time access and there is no way to work around that for a single file? |
(the log is in the Documents folder, but that is completely irrelevant to the problem) |
(and getting it via adb is useless, too. What would you want to do with an empty file anyway?) |
To write it in easy-to-understand terms: If you want to access a file multiple times, to add things to it, you need permission to do that. Personally, I don't care how that is achieved, and also, I don't know about the options. But the way it is implemented in the version I have, it CANNOT work. |
You are the first one that has a 0 byte log file. So I'd like an adb logcat for the log export and the original issue you are having.
It isn't useless, because you are not supposed to get an empty file (of course!), but run the |
What makes you so sure? Are you the developer here? As I said, you are the first person with this issue. It worked for everybody else so far.
Thanks for educating me. How would I know otherwise? We are creating a new file for each export and thus only need permission to write to that file once. |
There also might be a misunderstanding. The export log feature in Seedvault exports what's available in that log, just that one time. There's no continuous or ongoing logging feature, to keep things simpler both from a development perspective, and privacy wise. Any time you notice an issue, if you can get a log just after that as soon as it happened - that log should hopefully indicate what happened, and help us figure out the problem.
@Moini so that is not how this feature is implemented. If an error occurs later, you can export a fresh log again, and give that to us. |
Thanks for this helpful comment. I'm quite sure that the first log file I got was actually created in that way, because I only discovered the functionality after the backup failed. But I'll try again next time I have access to that adaptor. |
Hi - first time user of seedvault on LineageOS here.
I first configured seedvault to backup to internal storage, as I did not have a USB drive with adaptor available.
Then I changed the backup target to a freshly formatted (ext4) USB drive, when I found one and attached it with a borrowed adaptor.
However, when I now choose to 'Backup now', all I get is a short flashing up of the backup icon in the notifications bar, which after a couple seconds changes to a warning cloud icon, with a notification that says to tap for more information. However, no other information appears, only the seedvault app opens.
I have no idea how to find out what is wrong. Nor what is wrong. Suggestions for figuring out the cause of the failure are appreciated.
I had activated to backup data, which, after reading the issues here, I have deactivated, but that did not make a difference. Same for 'backup apps themselves'.
Update:
After choosing 'USB drive' a second time, it does not show the warning icon, however, the progress bar does not move, it seems to be stuck at the first app already 'bluetooth', and the flash drive seems empty according to the Android file manager.
Update 2:
I tried to stop the non-running backup by just pulling out the stick, and seedvault didn't even notice that. Force terminated seedvault.
Update 3:
It's now showing the progress bar for the backup at the same time as a 'the backup failed' message. I'm giving up and will look into adb backups for my new device again. This is only eating up my time.
Update 4:
Tried the protocol option. Protocol file was created, but is empty. 🤷
Update 5:
Formatted the stick from Android. Now it appears to work. Why can't the backup software tell me what is wrong? I was able to read the contents of the drive just fine, there was no indication that it would not work with seedvault.
The text was updated successfully, but these errors were encountered: