The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with Custom cPAddons manually installation

Discussion in 'cPanel Developers' started by Jinvan, Oct 15, 2013.

  1. Jinvan

    Jinvan Registered

    Joined:
    Oct 15, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi all,
    I made a custom cPAddon, and test to install it.
    but it didn't work.
    the install log is:
    Code:
    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 - '
    Code:
    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 - '
    Code:
    /usr/local/cpanel/cpaddons/cPAddonsMD5/ZhuJi91.pm
    '.

    Any knows the reason?

    Some file my
     
  2. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
    What are the contents of your config file? Specfically, what's this variable set to?

    Code:
     'addon_path' => 'Vendor/Category/Name',    #Path of install files on server
    
     
  3. Jinvan

    Jinvan Registered

    Joined:
    Oct 15, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
  4. Jinvan

    Jinvan Registered

    Joined:
    Oct 15, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Where should I put the 'addon_path' variables ?
     
  5. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
    It looks like the 'addon_path' variable defaults to your package path so, if you define:

    Code:
    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:

    Code:
    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.pm
     
Loading...

Share This Page