Troubleshooting Unexpected Service Terminations
The system may terminate services for the following reasons:
- The product's configuration automatically terminates it after a fixed term. (The system will terminate it at the end of that term.)
- The service's Next Due Date value is far enough in the past to trigger the Overdue Termination function.
- An admin clicked Terminate in the Module Commands section for the service.
WHMCS can also perform service cancellations. For more information, see Cancellation Requests.
All module actions, including termination, create an entry in the Activity Log at Configuration > System Logs. Review the log entries at the time of termination to identify the cause.
If there is not an entry in the Activity Log at Configuration > System Logs, the current WHMCS installation did not perform the termination. Check for previous installations of WHMCS or actions that occurred directly on the hosting server.
If the termination is due to the end of a fixed term, you will see the following log entry:
Cron Job: Auto Terminating Fixed Term Service - Service ID: x ... Automated Task: Starting Fixed Term Terminations
If the termination is because the service is overdue, you will see the following log entry:
Cron Job: Terminating Service - Service ID: x ... Automated Task: Starting Overdue Terminations
To address this:
- Go to Configuration > System Settings > Automation Settings.
- Increase the Termination Days value.
- Click Save Changes.
This will increase the time before the system terminates overdue services.
If the termination is because an admin terminated the service, you will see the following log entry:
Module Terminate Successful - Service ID: x
This entry indicates that an admin clicked Terminate under the Module Commands section in the Products/Services tab of the client's profile.
You can review the User column for the log entry to determine which admin performed the action.
You can control the permissions that admins have to perform module command operations at Configuration > System Settings > Administrator Roles.