-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cron & Client Area errors: Post-install, errors with API Class (includes) & Client Area info (if no-PVE) #13
Comments
Routed end user to this issue. Pushed commit to prefix ROOTDIR onto API class file: 4950738 Need to know update, and whether the module is otherwise functional? |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
@elitbiz that error would make sense if it can't populate the data / connect, though ideally would be caught earlier.
Re: Your original Cron error, is that still problematic with each Daily Cron firing? Re: Proxmox API access, can you verify ANY connections from WHMCS? Re: Functionality, we only pushed 1.1-beta a few days ago now. |
Hi @elitbiz just checking in for an update? Would be great to get it running smoothly for you. :-) |
Same problem, how can I check if the connection is working currently? When setting up the Server in WHMCS(8.6.0) it connected successfully! |
You should be able to see the connections from your WHMCS server on the Proxmox host in the |
Yes it connects: |
Great. Does it create the VM/CT okay? @elitbiz says that it doesn't for them. |
No it doesn’t create it, it only throws the error i sent… |
Got it, thanks. This is in Admin Area or Client Area? Screenshot also please. |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
Thank you both! Will work on this and get a test fix to you shortly. |
Hi, please update from master and check Admin + Client areas again? If the VM/CT Creation doesn't work, please:
|
Okay now I get a „VM/CT not found in Cluster Resources.“ page. I get the following error when I want to create it manually in admin panel: if I want to add an IP to an IP pool, the button doesn’t render and I get the following error when trying to add an IP to an pool: ParseError: The (real) cast has been removed, use (float) instead in /var/www/vhosts/abc/whmcs/modules/addons/pvewhmcs/Ipv4/Address.php:32 One more question: for example I have 3 ips assigned to the proxmox Server. 123.456.789.1(main ip of the proxmox server), 123.456.789.4 and 123.456.789.6 how would the ip pool have to look like? |
Here are the logs of the Proxmox Servher when trying to manually create the server in admin area(with getting the error) and after trying to access it from client area! ::ffff:IP - - [12/06/2023:14:30:44 +0200] "POST /api2/json/access/ticket HTTP/1.1" 200 1325 |
Thank you kindly, that's very helpful. I've pushed 2 commits now to master - 1x for IPv4 add, 1x for icon. As for acceptance of order (ie. provisioning of VM/CT), can you please send any WHMCS/PHP logs that you can see? If none are being generated or stored, you can change your WHMCS Config to log/display errors. Or use debug mode. https://docs.whmcs.com/Enabling_Error_Reporting Re: IP Pool, you would only want to have IP Addresses in the Pool which you intend to assign to VMs/CTs. |
This comment was marked as abuse.
This comment was marked as abuse.
@elitbiz update from master again. That error should be cleared already. @WaldperlachFabi thank you, I'll see what we can improve to get the actual error thrown/logged instead. |
End user reported error with WHMCS System Cron post-install.
Unable to include the PHP Class for PVE2 API. Pushed tweak to use ROOTDIR prefix.
ERROR: Error: Failed opening required 'modules/addons/pvewhmcs/proxmox.php' (include_path='.:/usr/share/pear:/usr/share/php') in /sites//billing/modules/servers/pvewhmcs/pvewhmcs.php:5
Stack trace:
#0 /sites//billing/vendor/whmcs/whmcs-foundation/lib/Module/AbstractModule.php(0): unknown()
#1 /sites//billing/vendor/whmcs/whmcs-foundation/lib/Product/Server.php(0): WHMCS\Module\AbstractModule->load('pvewhmcs')
#2 /sites//billing/vendor/whmcs/whmcs-foundation/lib/Product/Server.php(0): WHMCS\Product\Server->getModuleInterface()
#3 /sites//billing/vendor/whmcs/whmcs-foundation/lib/Cron/Task/TenantUsageMetrics.php(0): WHMCS\Product\Server->getMetricProvider()
#4 [internal function]: WHMCS\Cron\Task\TenantUsageMetrics->__invoke()
#5 /sites//billing/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): call_user_func_array(Object(WHMCS\Cron\Task\TenantUsageMetrics), Array)
#6 /sites//billing/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Scheduling\Task\AbstractTask->execute()
#7 /sites//billing/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Scheduling\Task\AbstractTask->run()
#8 /sites//billing/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Cron\Console\Command\AbstractCronCommand->executeCollection(Object(WHMCS\Scheduling\Task\Collection))
#9 /sites//billing/vendor/symfony/console/Command/Command.php(298): WHMCS\Cron\Console\Command\AbstractCronCommand->execute(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /sites//billing/vendor/symfony/console/Application.php(1028): Symfony\Component\Console\Command\Command->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /sites//billing/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand(Object(WHMCS\Cron\Console\Command\AllCommand), Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /sites//billing/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /sites//billing/crons/cron.php(0): Symfony\Component\Console\Application->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 {main} {"exception":"[object] (Error(code: 0): Failed opening required 'modules/addons/pvewhmcs/proxmox.php' (include_path='.:/usr/share/pear:/usr/share/php') at /sites//billing/modules/servers/pvewhmcs/pvewhmcs.php:5)"} []
Error: Failed opening required 'modules/addons/pvewhmcs/proxmox.php' (include_path='.:/usr/share/pear:/usr/share/php') in /sites//billing/modules/servers/pvewhmcs/pvewhmcs.php:5
LH202321616
The text was updated successfully, but these errors were encountered: