Skip to content

[BUG] sudo missing for restart #283

Open
@FlyingRatBull

Description

@FlyingRatBull

Describe the bug
When restarting OctoPrint (via Popup after Plugin changes/Through the menu), the console prints an error about sudo not being found and OctoPrint doesn't restart:

anycubic-i3p-1  | 2025-06-02 18:14:31,242 - octoprint.server.api.system - WARNING - Command for core:restart failed with return code 127:
anycubic-i3p-1  | ! 
anycubic-i3p-1  | ! STDOUT:
anycubic-i3p-1  | ! 
anycubic-i3p-1  | ! 
anycubic-i3p-1  | ! STDERR:
anycubic-i3p-1  | ! /bin/sh: 1: sudo: not found

Container Details

Image date: 2025-05-18T20:59:20.359Z

To Reproduce
Steps to reproduce the behavior:

  1. Click on the "System" button in the menu
  2. Click on "Restart OctoPrint"

Expected behavior
OctoPrint restarts

Screenshots

Desktop (please complete the following information):

  • OS: Ubuntu 24.04 LTS
  • Browser: Firefox 139.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions