Skip to content

Server doesn't shutdown properly #243

@SchoolGuy

Description

@SchoolGuy

Bug Report

Description

Currently, the fireactions server doesn't handle the shutdown signal fast enough, so systemd is killing it forcibly.

Expected Behavior

The server properly handles the shutdown signal in time.

Current Behavior

May 04 11:47:36 apollo01 systemd[1]: Started Fireactions.
May 04 11:47:36 apollo01 fireactions[14393]: 2025-05-04 11:47:36 INF server.go:125 > Starting server on 0.0.0.0:8080 commit=55274d6 date=2025-02-19T09:07:42Z version=0.3.0
May 04 11:47:36 apollo01 fireactions[14393]: 2025-05-04 11:47:36 WRN server.go:127 > Debug mode enabled
May 04 11:47:36 apollo01 fireactions[14393]: 2025-05-04 11:47:36 INF server.go:144 > Pool fireactions-performance started
May 04 11:47:38 apollo01 systemd[1]: Stopping Fireactions...
May 04 11:47:38 apollo01 fireactions[14393]: 2025-05-04 11:47:38 INF server.go:162 > Shutting down server
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: State 'stop-sigterm' timed out. Killing.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Killing process 14393 (fireactions) with signal SIGKILL.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Killing process 14403 (fireactions) with signal SIGKILL.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Killing process 14414 (fireactions) with signal SIGKILL.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Killing process 16465 (fireactions) with signal SIGKILL.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Killing process 20240 (fireactions) with signal SIGKILL.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Killing process 23315 (fireactions) with signal SIGKILL.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Killing process 27833 (fireactions) with signal SIGKILL.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Killing process 28507 (fireactions) with signal SIGKILL.
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Main process exited, code=killed, status=9/KILL
May 04 11:49:08 apollo01 systemd[1]: fireactions.service: Failed with result 'timeout'.
May 04 11:49:08 apollo01 systemd[1]: Stopped Fireactions.

Possible Solution

No idea

Steps to Reproduce (for bugs)

  1. Install Fireactions via the Ansible Playbook
  2. See issue during systemctl restart fireactions

Your Environment

  • Fireactions version: 0.3.0
  • OS: openSUSE Leap 15.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions