Skip to content

Unable to run commands #83

Description

@healy93

Hi, I’m having trouble with Nutify sending commands to a UPS through a remote NUT server.

Setup:

  • Nutify running in Docker compose (dartsteven/nutify:amd64-latest)
  • Remote NUT server is reachable
  • upsd.users allows a non-root account with actions = SET, actions = FSD, instcmds = ALL

From CLI everything works:

  • upsc returns UPS status correctly
  • upscmd -u <user> -p <pass> apc@192.168.xx.xx beeper.enable works (returns OK)

From Nutify WebUI:

  • Any command (e.g. beeper.enable, test.battery.start.quick) fails with:

Output command: Username (root):
Errors: Error reading from stdin!

It seems Nutify tries to run upscmd as root inside the container instead of using the configured NUT user.
The socket connection is fine and metrics display correctly, only instant commands fail.

Any ideas?

Thanks, Healy

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions