Skip to content

[Bug]: Eventmanager: trigger failed with error 255 #2167

@Joerg994

Description

@Joerg994

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

An Trigger rule is defined and the defined regex in trigger.json is correct and working. But sometimes the trigger ist not working without any logfiles. We can see:

{"level":"debug","time":"2026-01-27T00:33:50.740","sender":"eventmanager","message":"executed command "/usr/local/bin/trigger", elapsed: 180.549962ms, error: exit status 255"}
{"level":"error","time":"2026-01-27T00:33:50.740","sender":"eventmanager","message":"unable to execute action "trigger-action" for rule "trigger-rule", elapsed 180.635857ms, err: action "trigger-action" exit status 255"}

What can we do here?

Steps to reproduce

  1. not possible, with next event, trigger will work fine

Expected behavior

trigger works always and starts a following process

SFTPGo version

2.6.6

Data provider

dont know what is meant here

Installation method

Community Docker image

Configuration

trigger rules for new events and renamed events defined

Relevant log output

{"level":"debug","time":"2026-01-27T00:33:50.740","sender":"eventmanager","message":"executed command \"/usr/local/bin/trigger\", elapsed: 180.549962ms, error: exit status 255"}
{"level":"error","time":"2026-01-27T00:33:50.740","sender":"eventmanager","message":"unable to execute action \"trigger-action\" for rule \"trigger-rule\", elapsed 180.635857ms, err: action \"trigger-action\" exit status 255"}

What are you using SFTPGo for?

Private user, home usecase (home backup/VPS)

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions