Closed mwweb closed 4 years ago
I also had the same issue when editing the product - module settings, there was no "storage" directory, so I created it with the proper permission, the issue remained.
I tried the same. Which is where i finally posted the issue.
I also have the same issue even after creating storage folder manually and given full permission.
According to Helper.php, it needs whmcs/modules/servers/upCloudVm/storage/target.config.d/ directory to be available, please create it and try to reproduce the issue.
I created the storage folder, and created a target.config.d file in that folder. Same issue.
I created the storage folder, and created a target.config.d file in that folder. Same issue.
target.config.d is a directory, not a file
Changing to a folder resolved the error. Now just waiting for it to load any module options/setting in the module tab. It's been about 5 minutes so far.
I'll test again when I'm at my computer, and not my phone, but based on what I'm seeing so far, it looks like it isn't communicating with the api, even though a connection test is successful.
It is working for me. Thank you for your :)
On Tue, May 7, 2019, 8:54 AM aroeroe notifications@github.com wrote:
I created the storage folder, and created a target.config.d file in that folder. Same issue.
target.config.d is a directory, not a file
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/UpCloudLtd/upcloud-whmcs-module/issues/1#issuecomment-489892984, or mute the thread https://github.com/notifications/unsubscribe-auth/AATHH2LQ6R7YYJZGULF5VDTPUDZADANCNFSM4HKX7S7A .
Hi,
I tried creating vm from whmcs order page and server was successfully deployed but I can not manage it via client area. It giving error : Oops!Something went wrong and we couldn't process your request.
The error log log showing following error : [Tue May 07 11:04:57.381409 2019] [proxy_fcgi:error] [pid 28751:tid 139685749643008] [client 49.32.196.236:53534] AH01071: Got error 'PHP message: PHP Fatal error: require(): Failed opening required '/var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVmDSlangDSenglish.php' (include_path='.:/opt/plesk/php/7.0/share/pear') in /var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVm/Helper.php on line 54\nPHP message: [WHMCS Application] ERROR: Whoops\Exception\ErrorException: require(): Failed opening required '/var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVmDSlangDSenglish.php' (include_path='.:/opt/plesk/php/7.0/share/pear') in /var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVm/Helper.php:54 Stack trace: #0 /var/www/vhosts/ cloud4it.in/httpdocs/shop/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(64, 'require(): Fail...', '/var/www/vhosts...', 54) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} {"exception":"[object] (Whoops\\Exception\\ErrorException(code: 64): require(): Failed opening required '/var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVmDSlangDSenglish.php' (include_path='.:/opt/plesk/php/7.0/share/pear') at /var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVm/Helper.php:54)"} []\n', referer: https://cloud4it.in/shop/clientarea.php?action=services
Please help
On Tue, May 7, 2019 at 9:52 AM prabhat d dprabhat@gmail.com wrote:
It is working for me. Thank you for your :)
On Tue, May 7, 2019, 8:54 AM aroeroe notifications@github.com wrote:
I created the storage folder, and created a target.config.d file in that folder. Same issue.
target.config.d is a directory, not a file
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/UpCloudLtd/upcloud-whmcs-module/issues/1#issuecomment-489892984, or mute the thread https://github.com/notifications/unsubscribe-auth/AATHH2LQ6R7YYJZGULF5VDTPUDZADANCNFSM4HKX7S7A .
-- Regards, D.Prabhat
Hi all, indeed it seems the /storage/target.config.d directories were missing from the repo. These have now been added and the module should install correctly. You can add the same folders manually to fix the issue, though make sure your web server process has write permissions to them.
Hi, I tried creating vm from whmcs order page and server was successfully deployed but I can not manage it via client area. It giving error : Oops!Something went wrong and we couldn't process your request. The error log log showing following error : [Tue May 07 11:04:57.381409 2019] [proxy_fcgi:error] [pid 28751:tid 139685749643008] [client 49.32.196.236:53534] AH01071: Got error 'PHP message: PHP Fatal error: require(): Failed opening required '/var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVmDSlangDSenglish.php' (include_path='.:/opt/plesk/php/7.0/share/pear') in /var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVm/Helper.php on line 54\nPHP message: [WHMCS Application] ERROR: Whoops\Exception\ErrorException: require(): Failed opening required '/var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVmDSlangDSenglish.php' (include_path='.:/opt/plesk/php/7.0/share/pear') in /var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVm/Helper.php:54 Stack trace: #0 /var/www/vhosts/ cloud4it.in/httpdocs/shop/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(64, 'require(): Fail...', '/var/www/vhosts...', 54) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} {"exception":"[object] (Whoops\\Exception\\ErrorException(code: 64): require(): Failed opening required '/var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVmDSlangDSenglish.php' (include_path='.:/opt/plesk/php/7.0/share/pear') at /var/www/vhosts/ cloud4it.in/httpdocs/shop/modules/servers/upCloudVm/Helper.php:54)"} []\n', referer: https://cloud4it.in/shop/clientarea.php?action=services Please help … On Tue, May 7, 2019 at 9:52 AM prabhat d @.> wrote: It is working for me. Thank you for your :) On Tue, May 7, 2019, 8:54 AM aroeroe @.> wrote: > I created the storage folder, and created a target.config.d file in that > folder. Same issue. > > target.config.d is a directory, not a file > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <#1 (comment)>, > or mute the thread > https://github.com/notifications/unsubscribe-auth/AATHH2LQ6R7YYJZGULF5VDTPUDZADANCNFSM4HKX7S7A > . > -- Regards, D.Prabhat
This error with the client area not loading was due to missing directory separators in the Helper.php file. Should now also be fixed.
Try updating the files and see if it works.
Still encountering issues, and this is WEIRD.
I setup the server, and got success when testing the connection. I created the server group. I created a product group I created a product, set as Server/VPS.
When navigating to the Module Settings tab, Module Name is set as UpCloud VM. I then select my server group, and it just sits and sits and sits.
I enabled module debug in WHMCS, and am receiving messages that authentication is required, which should have already been taken care of with the server.
I have tested with PostMan, and the API username and password work as they should.
After updating Helper.php the Client area server management working perfectly. Thanks for resolving the issue :)
Note: Under client area vm management it will be better to have option for cancellation/termination request
Still encountering issues, and this is WEIRD.
I setup the server, and got success when testing the connection. I created the server group. I created a product group I created a product, set as Server/VPS.
When navigating to the Module Settings tab, Module Name is set as UpCloud VM. I then select my server group, and it just sits and sits and sits.
I enabled module debug in WHMCS, and am receiving messages that authentication is required, which should have already been taken care of with the server.
I have tested with PostMan, and the API username and password work as they should.
The Module Settings tab is likely trying to get information on the available locations, plans, and templates and needs to make API calls for that.
When you created your server group, did you select the server with your UpCloud API credentials to that group? Example picture below.
https://upcloud.com/wp-content/uploads/2019/04/whmcs-8-new-server-group.png
Yes I did. Settings from the 2 screenshots previously, and yes the upcloud server that was created was added to the upcloud server group.
It is like the communication isn't leaving WHMCS.
Hi,
While creating Windows VM via whmcs order it is giving following error; Module Command Error The request body contains an unknown attribute vnc.
I am using latest whmcs 7.2
The 'unknown attribute vnc' error should now be fixed.
Make sure that /home/{my-account}/public_html/modules/servers/upCloudVm/storage directory is writable
My server is running on cPanel, and installed per your directions starting with the installing the server module, since I already have a lamp stack and WHMCS running. After "installing" in the modules/servers folder, I followed the steps to add the server, and create a server group. I added the username and password for the API user I created in my UpCloud account, tested connection, and it connected successfully.
Next I went to add a product. That is where it breaks down. Under the module settings, as soon as I select the server group, I get the message above. A storage folder doesn't even exist, no even on GitHub.