Skip to content

🐛 Bug: Missing sub declarations in ServerCheck.pm #98

@hawkeye4iot

Description

@hawkeye4iot

CSF › Version

v15.10

CSF › Release

Stable

System › OS

Linux

System › Distro & Version

Ubuntu 24.04

Control Panel › Name

Generic (None)

Priority

High

Issue Description

File: src/ConfigServer/ServerCheck.pm
CSF Version: v15.10
Severity: Critical : CSF cannot start at all (csf -ra, csf -v, etc. all fail)

Error

Unmatched right curly bracket at /usr/local/csf/lib/ConfigServer/ServerCheck.pm line 194, at end of line
syntax error at /usr/local/csf/lib/ConfigServer/ServerCheck.pm line 194, near "}"
Compilation failed in require at /usr/sbin/csf line 43.

Root Cause

Two subroutine declarations (sub report and sub servercheck) are missing from the file. The function bodies are present, but the sub name { opening lines were accidentally removed , likely during a refactor or merge.

Steps To Reproduce

Try a fresh install on Ubuntu 24.04 Lts

  1. git clone https://github.com/Aetherinox/csf-firewall.git
  2. cd csf-firewall/src
  3. sudo bash install.sh

Logs › Lfd

No response

Config › csf.conf

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type › BugSomething isn't working⚠ UrgentRequires urgent attention

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions