Giter Site home page Giter Site logo

lxc-attach: waydroid: ../src/lxc/attach.c: lxc_attach_run_command: 1841 No such file or directory - Failed to exec "service" about waydroid-magisk HOT 11 CLOSED

nitanmarcel avatar nitanmarcel commented on June 23, 2024
lxc-attach: waydroid: ../src/lxc/attach.c: lxc_attach_run_command: 1841 No such file or directory - Failed to exec "service"

from waydroid-magisk.

Comments (11)

nitanmarcel avatar nitanmarcel commented on June 23, 2024 1

Ignore that. I should probably silence it. Or probably see why it's broken on some distros.

Anyway, closing this issue :) glad we got it working

from waydroid-magisk.

Just-A-Pony avatar Just-A-Pony commented on June 23, 2024

https://drive.google.com/file/d/1IzjPT9Q9XrGycC-C3ow-NaUHjLmccexG/view?usp=sharing
https://drive.google.com/file/d/1SZHD8O-q3gPvn4JNIT11H19bG2jfSgca/view?usp=sharing
/usr/share/waydroid-extra/images/

from waydroid-magisk.

nitanmarcel avatar nitanmarcel commented on June 23, 2024

Are the images used clean? Meaning no other modifications applied to it.

Also a cleanup with rm -rf /var/lib/waydroid and sudo waydroid init should probably fix it, as it seems something went wrong when installing Magisk

from waydroid-magisk.

nitanmarcel avatar nitanmarcel commented on June 23, 2024

Oh sorry.

The last two commits should fix it. Instead of cleaning the images you can do (after updating waydroid-magisk)

sudo waydroid_magisk remove

Then start everything based by the instructions.

from waydroid-magisk.

nitanmarcel avatar nitanmarcel commented on June 23, 2024

And about the Magisk Delta Manager error. I've moved the FAQ related to it from the Ubuntu Touch section to a section of it's own.

https://github.com/nitanmarcel/waydroid-magisk#magisk-delta-fails-to-patch-selinux-policy (Note that you can still use Magisk Delta Manager, but just don't update, do the additional setup from the manager"

from waydroid-magisk.

Just-A-Pony avatar Just-A-Pony commented on June 23, 2024

Oh sorry.

The last two commits should fix it. Instead of cleaning the images you can do (after updating waydroid-magisk)

sudo waydroid_magisk remove

Then start everything based by the instructions.

Thanks! it works!

[21:19:59] - INFO - Daemon: Running
[21:19:59] - INFO - Magisk Version: 80855189-delta:MAGISKSU

But there's still a lxc-attach: waydroid: ../src/lxc/attach.c: lxc_attach_run_command: 1841 No such file or directory - Failed to exec "service" during the waydroid_magisk.py setup

[21:19:08] - INFO - Stopping Waydroid in 5 (press ^C to cancel)
[21:19:09] - INFO - Stopping Waydroid in 4 (press ^C to cancel)
[21:19:10] - INFO - Stopping Waydroid in 3 (press ^C to cancel)
[21:19:11] - INFO - Stopping Waydroid in 2 (press ^C to cancel)
[21:19:12] - INFO - Stopping Waydroid in 1 (press ^C to cancel)
[21:19:13] - INFO - Stopping waydroid
lxc-attach: waydroid: ../src/lxc/attach.c: lxc_attach_run_command: 1841 No such file or directory - Failed to exec "service"
[21:19:13] - INFO - Starting Waydroid

from waydroid-magisk.

nitanmarcel avatar nitanmarcel commented on June 23, 2024

Actually @Just-A-Pony in sudo waydroid shell can you do which service and send me the output?

Thanks

from waydroid-magisk.

Just-A-Pony avatar Just-A-Pony commented on June 23, 2024

Actually @Just-A-Pony in sudo waydroid shell can you do which service and send me the output?

Thanks

/system/bin/service
And if I run service call waydroidhardware 4manually in the waydroid,It seams work properly which restart the waydroid

from waydroid-magisk.

Just-A-Pony avatar Just-A-Pony commented on June 23, 2024

I found this in archwiki :

5.3 Error: unknown command
The error may happen when a basic command (ls, cat, etc.) on an attached container is typed hen a different Linux distribution is containerized relative to the host system (e.g. Debian container in Arch Linux host system). Upon attaching, use the argument --clear-env:
lxc-attach -n container_name --clear-env

from waydroid-magisk.

nitanmarcel avatar nitanmarcel commented on June 23, 2024

I found this in archwiki :

5.3 Error: unknown command
The error may happen when a basic command (ls, cat, etc.) on an attached container is typed hen a different Linux distribution is containerized relative to the host system (e.g. Debian container in Arch Linux host system). Upon attaching, use the argument --clear-env:
lxc-attach -n container_name --clear-env

Oh. My bad there. It seems I forgot to pass the env argument in subprocess.run

from waydroid-magisk.

nitanmarcel avatar nitanmarcel commented on June 23, 2024

I found this in archwiki :

5.3 Error: unknown command
The error may happen when a basic command (ls, cat, etc.) on an attached container is typed hen a different Linux distribution is containerized relative to the host system (e.g. Debian container in Arch Linux host system). Upon attaching, use the argument --clear-env:
lxc-attach -n container_name --clear-env

this should be also fixed now

from waydroid-magisk.

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.