Comments (6)
I wrote this feature on Windows 10 and it worked perfectly in my testing, so this shouldn't occur. Could you try installing libqt5x11extras5
on your Ubuntu container and see if it fixes the issue?
from open-android-backup.
Thanks for answering. It looks like I had it installed already. Sorry, I know debugging this kind of thing is frustrating, so many different enviroments to account for, esp multi-platform. I just tried again, same result. Tried both running the .ps1 file by double-clicking in explorer, and from MS Term's Powershell.
|~\> sudo apt install libqt5x11extras5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt5x11extras5 is already the newest version (5.12.8-0ubuntu1).
libqt5x11extras5 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I did find some reference to setting the DISPLAY variable export DISPLAY=:0
. Before setting this when I echo $DISPLAY
it shows nothing, but after setting it, it shows :0
. Since I'm doing on the command line, this change doesn't persist. I could put it in one of the various config files, but I'm not sure which one, or even if its relevant at all.
EDIT: I tried adding the export line to my .profile
, exited restarted terminal confirmed with echo $DISPLAY
, and re-ran the ps1 script and same error.
EDIT2: I worked around this by removing the kdialog section in functions\backup_func.sh:
# Check if we're running on Windows.
# If we are, then we will open a file chooser instead of asking the user for the file path thru CLI
# due to compatibility issues.
# TODO: also do this on Linux if KDialog is available
#if [ "$(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip')" ];
#then
# cecho "Running on Windows (WSL) - a graphical file chooser dialog will be open."
# cecho "You will be prompted for the backup location. Press Enter to continue."
# wait_for_enter
# archive_path=$(kdialog --getexistingdirectory /mnt/c || true)
#else
text_input "Please enter the backup location. Enter '.' for the current working directory." archive_path "."
#fi
This is very crude naturally, but it did allow the backup to progress, seems to be working, will see if it completes successfully. Also, after execution, the .sh
file is reverted back to original? Not sure exactly. In any case, this seems to be easier solution than debugging the above, but getting the GUI part working would of course also be preferred.
from open-android-backup.
I got an error, on the Exporting Contacts section:
Exporting contacts (as vCard).
2.37MiB 0:00:02 [ 927KiB/s] [ <=> ]
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Errors occurred while backing up . - this file (or multiple files) might've been ignored.
Removing temporary files created by the companion app.
Exporting internal storage - this will take a while.
Related in any way? If not, any ideas about this? I don't really need my contacts exported, but just don't want it to affect any other part of the backup, either the actual backing up, or down the line, any restoration.
from open-android-backup.
I got an error, on the Exporting Contacts section:
Exporting contacts (as vCard). 2.37MiB 0:00:02 [ 927KiB/s] [ <=> ] tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Errors occurred while backing up . - this file (or multiple files) might've been ignored. Removing temporary files created by the companion app. Exporting internal storage - this will take a while.
Related in any way? If not, any ideas about this? I don't really need my contacts exported, but just don't want it to affect any other part of the backup, either the actual backing up, or down the line, any restoration.
This is a known issue. Use the adb exporting method.
from open-android-backup.
I can reproduce this on Windows 11 22H2 (works just fine on Windows 10 for me though)
from open-android-backup.
It seems like WSL doesn't auto-update and sometimes even ships with an outdated version that's incapable of running GUI apps. The latest commit (b61945d) fixes this by ensuring WSL is fully up-to-date before continuing.
from open-android-backup.
Related Issues (20)
- Store apks using their original package names HOT 3
- versioning and tag names HOT 15
- E_FAIL 7-Zip error occurs if the backup archive isn't split HOT 3
- Android 13 support HOT 5
- Companion App doesn't work on privacy-focused Android distributions (CalyxOS, GrapheneOS) HOT 11
- line 6: [: -v: unary operator expected HOT 4
- Please add "Doesn't save MMS attachments" to the readme HOT 1
- Runtime error: Function a/e not defined. HOT 3
- get_text_input prompt result_var HOT 7
- Samsung Galaxy A40 needs 'USB Debugging' developer option
- Foreground color isn't reset HOT 3
- avoid overlong lines in output to stdout
- Loading subscripts is suboptimal
- Backup stalled HOT 3
- Error with call_log export HOT 3
- [Question] Does this backup applications' data too? HOT 13
- [Suggestion] Wifi passwords HOT 2
- nothing happens when run the script HOT 3
- clearly document limitations of backup tool HOT 6
- Out Of Memory when creating archive HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-android-backup.