Openprovider-WHMCS-domains icon indicating copy to clipboard operation
Openprovider-WHMCS-domains copied to clipboard

[BUG]Problem with domain sync cron - Authentication/Authorization Failed

Open sapillai opened this issue 2 years ago • 1 comments

Describe the bug

I am creating this issue on behalf of an Openprovider reseller. The reseller reported a problem with domain sync. Domain status sync job always fails with the error "Authentication/Authorization Failed". API credentials are correct and all other operations including domain registration, TLD price sync, etc. are working fine.

Active Domain Syncs
- *******-*****.art: Error: Authentication/Authorization Failed
- *****************.com: Error: Authentication/Authorization Failed
- ****.net: Error: Authentication/Authorization Failed

As per module logs, 'generateauthtokenrequest' is using an empty username and password.

To Reproduce Steps to reproduce the behavior:

  1. Configure the WHMCS native cron in jailed shell.
  2. Check module log and cron report mail notification.

Expected behavior Domain sync should work without problem despite running the WHMCS cron in the jailed shell.

Screenshots image

Server info:

  • Distro: Almalinux 8.4
  • PHP: 7.2
  • Web server: Apache with FPM/FastCGI + Nginx as reverse proxy
  • Hosting control panel name and version: https://brainycp.com latest version

Additional context The problem only occurs when the WHMCS cron job is running in the jailed shell. When the cron is run as root or in a normal shell, domain sync is working fine. List of packages available in Jail Shell (BraincyCP)

image

Domain synchronization is working fine in the jailed shell with other reseller modules for example Resellerclub. Possibly, being unable to access the module/binary for encrypting username/password is causing the problem.

Regards, Openprovider Support

sapillai avatar Jul 04 '22 15:07 sapillai

We're having this bug as well, reported on ticket #1132110.

It's an intermittent situation. Either is throwing errors, or it works, can go either way without any criteria.

subedinfo-it avatar Jul 20 '22 15:07 subedinfo-it