Skip to content

Middleware starts CTI server before FreePBX is ready #8096

Description

@Stell0

During restore, nethcti-server.service is started too early by nethcti-middleware.service. The CTI server reaches start-limit-hit before FreePBX has completed its reconfiguration.

The intended flow seems to enable nethcti-server.service without starting it, wait for FreePBX readiness, and start/restart CTI later. However, nethcti-middleware.service has Wants=nethcti-server.service, so starting the middleware pulls the CTI server into the same systemd transaction.

The same issue can also happen during first configuration, but it is usually hidden because the CTI server is started again at the end of the wizard.

Steps to reproduce

  1. Restore a system with NethCTI enabled.
  2. Let the restore process start nethcti-middleware.service.
  3. Check the status or logs of nethcti-server.service before FreePBX finishes reconfiguration.

Expected behavior

nethcti-server.service should start only after FreePBX is ready and the wizard/restore gate allows it.

Actual behavior

nethcti-middleware.service starts nethcti-server.service too early through Wants=nethcti-server.service, causing the CTI server to fail with:

nethcti-server.service: Start request repeated too quickly.
nethcti-server.service: Failed with result 'start-limit-hit'.
Failed to start NethCTI server daemon.

See also

https://mattermost.nethesis.it/nethesis/pl/5s6384ox83yj3eow31u839y1jo

Metadata

Metadata

Assignees

Labels

nethvoiceBug or features releted to the NethVoice projecttestingPackages are available from testing repositories

Type

Fields

No fields configured for Bug.

Projects

Status
Testing

Relationships

None yet

Development

No branches or pull requests

Issue actions