Problem with Custom cPAddons manually installation
Hi all,
I made a custom cPAddon, and test to install it.
but it didn't work.
the install log is:
From the log, I noticed these words - '
'. Cpanel seems to fetch some file on the internet, but my addon is a local addon, it should fetch the file in the path - '
'. Any knows the reason? Some file my
Updating Local Addons Database...
Fetching http://httpupdate.cpanel.net/cpanels...panelsync.lock (connected:0).......(request attempt 1/12)...Resolving httpupdate.cpanel.net...(resolve attempt 1/65)...Resolving httpupdate.cpanel.net using backup method... Fetching http://httpupdate.cpanel.net/mirror_addr_list (connected:0).......(request attempt 1/3)......connecting to 69.72.212.11...@69.72.212.11......connected......receiving...100%......request success......Done ...found 43 host(s) from mirror_addr_list......searching for mirrors (mirror search attempt 1/3)......loaded mirror speeds from cache......mirror search success...@69.72.212.11......connected......receiving......request success......Done Fetching http://httpupdate.cpanel.net/cpanels...cpanelsync.bz2 (connected:1).......(request attempt 1/12)...Using dns cache file /root/.HttpRequest/httpupdate.cpanel.net......searching for mirrors (mirror search attempt 1/3)......loaded mirror speeds from cache......mirror search success......connecting to 208.74.123.21...@208.74.123.21......connected......receiving...100%......request success......Done Fetching http:///cPAddonsMD5/ZhuJi91.pm (connected:0).......(request attempt 1/12)...Resolving ...(resolve attempt 1/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 2/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 3/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 4/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 5/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 6/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 7/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 8/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 9/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 10/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 11/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 12/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 13/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 14/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 15/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 16/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 17/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 18/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 19/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 20/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 21/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 22/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 23/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 24/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 25/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 26/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 27/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 28/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 29/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 30/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 31/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 32/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 33/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 34/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 35/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 36/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 37/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 38/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 39/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 40/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 41/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 42/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 43/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 44/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 45/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 46/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 47/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 48/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 49/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 50/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 51/65)...Resolving using backup method...Waiting for dns resolution to become available....Resolving ...(resolve attempt 52/65)...Resolving using backup method...Waiting for dns resolution to become available....... Timeout on request ... .
From the log, I noticed these words - '
Fetching http:///cPAddonsMD5/ZhuJi91.pm
'. Cpanel seems to fetch some file on the internet, but my addon is a local addon, it should fetch the file in the path - '
/usr/local/cpanel/cpaddons/cPAddonsMD5/ZhuJi91.pm
'. Any knows the reason? Some file my
-
What are the contents of your config file? Specfically, what's this variable set to? 'addon_path' => 'Vendor/Category/Name', #Path of install files on server
0 -
Thanks for the response. Actually, I just copy the WordPress Addon on the cpanel sync server at [url=http://httpupdate.cpanel.net/cpanelsync/cpaddons/cPanel/Blogs/]Index of /cpanelsync/cpaddons/cPanel/Blogs/ to get start with cPAddons. I see the variables of 'addon_path' at the doc([url=http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/ConfigFileVars]Configuration File Variables), but I don't see it in the WordPress.pm file. Which file and section should I put the 'addon_path' to ? thanks. My .pm file is just the same as 0 -
[quote="KostonConsulting, post: 1482921">What are the contents of your config file? Specfically, what's this variable set to? 'addon_path' => 'Vendor/Category/Name', #Path of install files on server
Where should I put the 'addon_path' variables ?0 -
[quote="Jinvan, post: 1483821">Where should I put the 'addon_path' variables ?
It looks like the 'addon_path' variable defaults to your package path so, if you define:package My::Software::Advanced_Addon;
addon_path with be /usr/local/cpanel/cpaddons/My/Software/Advanced_Addon Now, you need to ensure that your .tar.gz archive is present in that path and named the same as your version is set. So if you set version like so:our $meta_info = { 'version' => '2.2.3' ...... };
You should verify that your .tar.gz archive is located at /usr/local/cpanel/addons/My/Software/Advanced_Addon/2.2.3.tar.gz BTW, if you want to dive into the installer code, it's available in /usr/local/cpanel/Cpanel/cPAddons.pm0
Please sign in to leave a comment.
Comments
4 comments