The FOSSBilling Forum
DirectAdmin - Activate Hosting - Printable Version

+- The FOSSBilling Forum (https://forum.fossbilling.org)
+-- Forum: Support (https://forum.fossbilling.org/forum-7.html)
+--- Forum: Support - Setup & Configuration (https://forum.fossbilling.org/forum-9.html)
+--- Thread: DirectAdmin - Activate Hosting (/thread-379.html)



DirectAdmin - Activate Hosting - Turkdale - 08-05-2025

Hello people,
I am testing FossBilling out as I liked the interface and the usability of the software a lot.
Until now everything is clear but I have a small problem: When I order and I try to activate the order/hosting, I have the following error:
Order could not be activated due to error: HttpClientException: Idle timeout reached for "https://XXX:2222/CMD_API_ACCOUNT_USER?action=create&add=Submit&username=XXX&email=XXX&passwd=XXX&passwd2=XXX&domain=test.com&ip=XXX&notify=no&package=Hosting-3GB".

This had something to do with the IP restrictions of my Login Keys as I tought, so I removed the IPv6 restriction and now the next problem did pop up:
Failed to API_ACCOUNT_USER on the DirectAdmin server, check the error logs for further details

In DirectAdmin I see the following things if I go to the logs of the login keys:
https://ibb.co/cSmMVQSV

Is there anything that I am missing?

PS. The login key does have ALL the permissions, later I will restrict the not needed permissions.


RE: DirectAdmin - Activate Hosting - Turkdale - 08-05-2025

UPDATE 05-08-2025 @ 22:38:
I just checked my DirectAdmin server and I see that it has created the user but it doesn't sees this in FossBilling.
Just wanted to add this here, maybe it can be intresting to use for debugging.


RE: DirectAdmin - Activate Hosting - BelleNottelling - 08-05-2025

Can you please check the error log in FOSSBilling?

It can be found in this path: 
Code:

data/log/php_error.log

(btw, the other log you attached won't load, but you should be able to just attach it to the post here on the forum)


RE: DirectAdmin - Activate Hosting - Turkdale - 08-05-2025

Error Log from PHP_Error.log:
Code:

[05-Aug-2025 19:31:40 UTC] Failed to API_ACCOUNT_USER on the DirectAdmin server, check the error logs for further details 0
[05-Aug-2025 19:36:55 UTC] PHP Warning:  Object of class Server_Exception could not be converted to int in /home/XXX/domains/XXX/public_html/vendor/gabordemooij/redbean/RedBeanPHP/QueryWriter/AQueryWriter.php on line 253
[05-Aug-2025 19:36:55 UTC] HttpClientException: Idle timeout reached for "https://XXX:2222/CMD_API_ACCOUNT_USER?action=create&add=Submit&username=XXX&email=XXX&passwd=XXX&passwd2=XXX&domain=deneme.com&ip=XXX&notify=no&package=Hosting-3GB". 0

Here is the image of DirectAdmin from the last post:
[Image: Screenshot-2025-08-05-203224.png]


RE: DirectAdmin - Activate Hosting - BelleNottelling - 08-06-2025

Seems odd that you're still seeing an idle timeout even though DirectAdmin is creating the user and it appears to be working correctly.
I seem to recall DirectAdmin being quite locked down by default in it's firewall, I wonder if there's a possibility of it blocking the outgoing response back to FOSSBilling?