WHMCS fails to provision with Virtualmin

Team,

When attempting to provision a virtual server using WHMCS it reaches a timeout. I have enabled rpc calls for the root and my whmcs user account but it isn't working. I have also made sure the hostname and ip address has the virtualmin port and if I click login it will log me into virtualmin from WHMCS. Any thoughts? This is a fresh install with the latest Virtualmin and Webmin packages.

Status: 
Active

Comments

Assigned: ยป Unassigned

Howdy -- hmm, is there any chance you could share the exact error that you're receiving?

Also, is there a firewall running on your server? If so, you may want to temporarily disable it, just to ensure that it's not interfering.

Is whmcs running on the same server as virtualmin? if so the firewall isn't the issue. If you have a separate machine for whmcs then you need to see what ports are needed..then you can create a rule that allows that traffic from the whmcs box to your virt box at that port is allowed.

Separate boxes. Firewall allows 10000 on the Virtualmin host. Might not be open on the WHMCS host. Here's the error: Curl Error: 28 - Connection timed out after 60001 milliseconds

yeppers. make sure the firewalls on both sides allow traffic from the other machine.

I'm checking with the other host about the port now.

I'd definitely recommend disabling the firewall. The RPC uses ports other than 10000, and it will rule some other things out as well.

However, if it's using RPC you'd want to open ports 10001 - 10010.

At the time only 10000 can be opened. If the need arises then I can apply pressure. However I don't plan to be at this host much longer.

Disabling the firewall is not a fix.

you need a host that allows you to control your firewalls. I am with one that allows you to setup your own firewalls at the machines....checkout reliablehostingservices.net. Tell them William Warren sent you. You can then setup firewalls on each machine and have full control over the traffic.

Firewall hasn't been disabled. Had host open 10000 on their side. It's where whmcs is and where I put my cPanel clients.

Hello Guys,

I am facing the same issue. Both installations are on the same VPS, clean installation. I get no errors in the logs.

In WHMCS when I click Create (to create a new service), the Working... symbol keeps going and never ends. The Virtual Server is actually created successfully on Virtualmin, but WHMCS does not know thus not deploying the information (sending e-mails) nor populating the client account with the new product. I hope someone can give some clue, is very annoying issue.

Best regards to all.

Have you raised this issue with WHMCS?

Yeah I did, no reply yet. If I link an other server (same Debian/Virtualmin environment) it works with no problem, I tried last night.

I compare things in the hope to find the difference but nothing is different from the settings point of view, made everything rigorously identical (plan and template). I have enabled PHP Logs but nothing in the logs. It is very annoying. If someone has some clue please help. I will update you if I receive any answer from WHMCS support.

To give more information; If the option Accept and Create the server immediately is selected, it will drop an Internal Server Error 500. And no logs at all are recorded.

The 500 error should definitely produce an error log somewhere. You may want to review the logs in /var/log/virtualmin and /var/log/apache/error_log to see which Apache logs are generating an error at the time that happens.

However, we'd definitely recommend reaching out to the WHMCS folks, as they'd better understand what's going on there.

We're happy to help them out in any way we can though.

Hi andreycheck,

Incredibly there is no error generated at all. I got crazy over this. From WHMCS support I received a reply to check permissions and owners, did everything. The fact that WHMCS works if connected to an other Virtualmin server means that there might be no issue with the WHMCS installation. Because I could not solve this, I am reinstalling the VPS hopping that I did some mistake somewhere (which I doubt) previously. I will update you just for information if this will solve the issue. Regards, Endri.

Hi everybody,

I reinstalled everything and restored the WHMCS database. Now it works fine. But I am concerned about this issue, I didn't find what was causing it. If it happens again it would be a mess on a populated system...

In WHMCS when I click Create (to create a new service), the Working... symbol keeps going and never ends. > The Virtual Server is actually created successfully on Virtualmin, but WHMCS does not know thus not deploying the information (sending e-mails) nor populating the client account with the new product.

I have a similar issue CentOS 7 VPS, latest versions of everything.

When I do create package command from WHMCS, I also get the Working...symbol going on forever and never ends.

  1. As with yourself the Virtual Server is created successfully on Virtualmin.

  2. New Hosting Account Information is not sent, same as you.

  3. The client's account is however populated with the new product. So it's "working".

However, overuse is not calculated properly. It appears Overuse is calculated on the Default Plan which has unlimited traffic, as opposed to my "Basic" plan which has a 1 GB limit.

I want to know if it's possible to debug the Remote API / CGI interface? Is there a log file?