Skip to content

LDEV-6164 register BonCode event source to prevent midnight crash#39

Merged
zspitzer merged 6 commits into
masterfrom
LDEV-6164-boncode-event-source
Mar 19, 2026
Merged

LDEV-6164 register BonCode event source to prevent midnight crash#39
zspitzer merged 6 commits into
masterfrom
LDEV-6164-boncode-event-source

Conversation

@zspitzer
Copy link
Copy Markdown
Member

@zspitzer zspitzer commented Mar 18, 2026

Summary

Boncode AJP connector crashes at exactly midnight when logging is enabled and the Windows Event Log source "BonCodeConnector" is not registered. The crash leaves IIS unresponsive until the app pool is restarted.

  • Register BonCodeConnector event source via New-EventLog after Boncode connector install
  • Add installiis matrix flag to Windows CI (false and true) so we test both with and without IIS
  • IIS test verifies event source registration and that Lucee is served via Boncode on port 80

Root cause

Every midnight, Boncode reinitialises and logs its version string. EventLog.SourceExists() throws because the IIS worker process can't search the Security/State event logs. The exception bubbles into ConnectionError() which hits a null ref on p_NetworkStream (never assigned). Boncode enters a broken state permanently.

References

Test plan

  • test-windows (installiis: false) passes (existing behaviour unchanged)
  • test-windows (installiis: true) passes (IIS installed, Boncode configured, event source registered)
  • Event source verification step confirms BonCodeConnector is registered
  • IIS serves Lucee via Boncode on port 80

@zspitzer zspitzer merged commit 4ed05ff into master Mar 19, 2026
31 checks passed
@zspitzer zspitzer deleted the LDEV-6164-boncode-event-source branch March 19, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant