I am having issues with my linux machine running openSUSE MicroOS. It runs fine but I can’t power it off via SSH. I tried shutdown, poweroff and halt but no command turned the machine off. I then have to physically push the power button but I don’t feel comfortable doing that too often because I might interrupt some processes which are still running? Is there something I could still try or something I did wrong?

  • mantra@lemmy.zip
    link
    fedilink
    arrow-up
    8
    ·
    12 days ago

    Did you use any arguments with shutdown? Does shutdown spin down the system, but not turn off the hardware, or does it not do anything? You can try " shutdown now -h". That should halt the system after a graceful shutdown.

      • mantra@lemmy.zip
        link
        fedilink
        arrow-up
        4
        ·
        11 days ago

        Sounds like that shutdown the system, so the problem is just getting it to power off. You could try "halt -p”. That explicitly calls for the system to power off. If that doesn’t work, perhaps try “halt -verbose”, which will give a bunch of info on the next boot about what halt was doing, might show an error there that could you lead you in the right direction.

        • theorangeninja@sopuli.xyzOP
          link
          fedilink
          arrow-up
          1
          ·
          11 days ago

          Will that show the info only when I connect a screen directly to the machine? Or also when I log into it with SSH the first time after the reboot?

  • nyan@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 days ago

    Can you power it off from the command line without SSH? You may have a hardware problem that’s keeping the board from responding to soft poweroff at all.

    Provided the machine isn’t writing to disk or holding unwritten data in a disk cache at the moment you press the button, you’re unlikely to damage anything with a hard poweroff.

    • theorangeninja@sopuli.xyzOP
      link
      fedilink
      arrow-up
      1
      ·
      10 days ago

      I hooked up a screen and keyboard but I couldn’t even login using the TTY (I didn’t install a DE). Maybe I fucked up when setting the machine up.

      Good to know that at least I am not damaging anything. I should be more than safe if I halt the system and the do a hard poweroff.

  • Oinks@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 days ago

    Running poweroff is one of the correct ways on anything Systemd (details). If that doesn’t work then something is broken.

    If you haven’t done so already try looking into the journal. sudo journalctl -b -1 -e will take you to the end of the log for the last boot.

  • muhyb@programming.dev
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    12 days ago

    This might sound stupid but before logging into SSH, open XTERM first and give the commands through it. On the other hand, be sure that the user you logged into it has sudo privileges on your MicroOS machine.