Skip to content

When enabling or disabling a jail via the UI, the reload fails #104

@spacecitycoog

Description

@spacecitycoog

I’m encountering a consistent reload failure in Docker (Unraid environment).

When enabling or disabling a jail via the UI, the reload fails and I get this error:
ERROR NOK: ('Failed to change log target',) Failed to change log target

However, running reload manually works perfectly:

docker exec -it fail2ban fail2ban-client reload

Returns: OK

Environment

  • Unraid OS (Slackware-based)
  • Docker
  • Host networking
  • Config mounted at /config
  • File-based logtarget: /config/log/fail2ban/fail2ban.log

What I verified

  • logtarget is defined only once in fail2ban.conf
  • No overrides in jail.local or jail.d
  • The log file exists and has correct permissions
  • UI database does not store or override logtarget
  • Runtime logtarget matches config fail2ban-client get logtarget
  • Manual reload succeeds consistently
  • Only UI-triggered jail operations fail

The failure only occurs when the reload is initiated via the UI during jail enable/disable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions