Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 'fail2ban_filters' is not a directory #1389

Closed
5 tasks done
strarsis opened this issue Jun 3, 2022 · 1 comment · Fixed by #1407
Closed
5 tasks done

Bug: 'fail2ban_filters' is not a directory #1389

strarsis opened this issue Jun 3, 2022 · 1 comment · Fixed by #1407
Labels

Comments

@strarsis
Copy link
Contributor

strarsis commented Jun 3, 2022

Terms

Description

What's wrong?

Ansible warning during Trellis provision of existing Trellis installation:

TASK [fail2ban : build list of fail2ban filter templates] **********************
[WARNING]: Skipped 'fail2ban_filters' path due to this access issue:
'fail2ban_filters' is not a directory

What have you tried?

Re-provisioned the Trellis server multiple times.

What insights have you gained?

Despite multiple re-provisions the warning persists.

Possible solutions

A directory is missing? Or this warning can be safely ignored? Though then the task that causes the warning should be conditionally handled to avoid the warning at each provisioning run.

Temporary workarounds

Ignoring the warning for now.

Steps To Reproduce

  1. Use an older version of Trellis (2 months ago).
  2. Provision a server with it.
  3. Update to the latest version of Trellis (now).
  4. Re-provision the server with it.
    Notice the warning.

Expected Behavior

No warnings.

Actual Behavior

Warning at each provision:

TASK [fail2ban : build list of fail2ban filter templates] **********************
[WARNING]: Skipped 'fail2ban_filters' path due to this access issue:
'fail2ban_filters' is not a directory

Relevant Log Output

TASK [fail2ban : build list of fail2ban filter templates] **********************
[WARNING]: Skipped 'fail2ban_filters' path due to this access issue:
'fail2ban_filters' is not a directory

Versions

Add built-in fail2ban filters (#1375)

@strarsis strarsis added the bug label Jun 3, 2022
@swalkinshaw
Copy link
Member

A directory is missing? Or this warning can be safely ignored? Though then the task that causes the warning should be conditionally handled to avoid the warning at each provisioning run.

Yeah that's all correct. Ansible produces the warning but just ignores that missing path so everything works as expected.

There's no built-in way to handle/ignore this warning afaik. Unfortunately I think the only solution is to add a task to check if the path exists or not first 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants