Coder Social home page Coder Social logo

Comments (6)

mrrfv avatar mrrfv commented on August 18, 2024

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.

traycerb avatar traycerb commented on August 18, 2024

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.

traycerb avatar traycerb commented on August 18, 2024

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.

mrrfv avatar mrrfv commented on August 18, 2024

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.

mrrfv avatar mrrfv commented on August 18, 2024

I can reproduce this on Windows 11 22H2 (works just fine on Windows 10 for me though)

from open-android-backup.

mrrfv avatar mrrfv commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.