Git Product home page Git Product logo

Comments (3)

vilgotf avatar vilgotf commented on June 12, 2024

"Operation not permitted", could you run it in debug mode and post output when it fails?
https://github.com/Nefelim4ag/systemd-swap/blob/b00c92864fd9258a072181c23300e28f2a071e5f/src/systemd-swap.py#L63

from systemd-swap.

blacklight avatar blacklight commented on June 12, 2024

Same issue here - also occurring on Arch Linux:

$ sudo systemctl start systemd-swap.service
Job for systemd-swap.service failed because the control process exited with error code.
See "systemctl status systemd-swap.service" and "journalctl -xe" for details.

$ sudo systemctl status systemd-swap.service
● systemd-swap.service - Manage swap spaces on zram, files and partitions.
     Loaded: loaded (/usr/lib/systemd/system/systemd-swap.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2021-02-19 21:36:36 CET; 3s ago
    Process: 6626 ExecStart=/usr/bin/systemd-swap start (code=exited, status=203/EXEC)
   Main PID: 6626 (code=exited, status=203/EXEC)

Feb 19 21:36:36 volta systemd[1]: Starting Manage swap spaces on zram, files and partitions....
Feb 19 21:36:36 volta systemd[6626]: systemd-swap.service: Failed to execute /usr/bin/systemd-swap: Operation not permitted
Feb 19 21:36:36 volta systemd[6626]: systemd-swap.service: Failed at step EXEC spawning /usr/bin/systemd-swap: Operation not permitted
Feb 19 21:36:36 volta systemd[1]: systemd-swap.service: Main process exited, code=exited, status=203/EXEC
Feb 19 21:36:36 volta systemd[1]: systemd-swap.service: Failed with result 'exit-code'.
Feb 19 21:36:36 volta systemd[1]: Failed to start Manage swap spaces on zram, files and partitions..

Note that the output above is printed with IS_DEBUG=True, no extra debug lines are available.

When I start it through the systemd-swap executable everything works fine though.

from systemd-swap.

oold avatar oold commented on June 12, 2024

I did some searching and the issue could be that python3 is not where the script expects it to be, which would be /usr/bin/python3. Could also be something with SELinux or the file not having executable permissions. Whatever it is, it fails when trying to spawn the process with execve().

from systemd-swap.

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.