Troubleshooting Unexpected Service Terminations
Symptom
The system is unexpectedly terminating services (for example, hosting accounts).
Causes
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.
Troubleshooting
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.
![Configuration > System Logs](https://media.screensteps.com/image_assets/assets/007/764/104/original/6fe809ac-d8f3-4974-b5d1-111d8424365f.png)
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.
Fixed Term
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
To address this:
- Go to Configuration > System Settings > Products/Services.
- Edit the desired product.
- In the Pricing tab, set Auto Terminate/Fixed Term to
0
. - Click Save Changes.
Repeat the process for any other products that you do not want to automatically terminate after a fixed term.
Overdue Termination
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.
Admin Termination
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.