NethServer / nethsecurity

NethSecurity image and build environment
https://www.nethsecurity.org/
Other
98 stars 6 forks source link

API server does not always starts at boot #563

Closed gsanchietti closed 4 months ago

gsanchietti commented 4 months ago

Description

Sometimes, the nethsecurity-api service does not start at boot. The issue is not consistently reproducible, and logs do not provide clues because procd captures all output without logging anything in /var/log/messages.

Tests Conducted

Findings

The only effective solution was to delay the startup. Adding a one-second sleep on a reproducible machine resolved the issue.

Proposed Solution

Workaround

Manually restart the service:

/etc/init.d/ns-api-server restart

Components

NethSecurity version: 8-23.05.3-ns.1.0.0

github-actions[bot] commented 4 months ago

Testing image version: 8-23.05.3-ns.1.0.0-17-g2097c77

mamengoni commented 4 months ago

Tested and verified!