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.

cpaddons build not working in 11.25 ?

Discussion in 'cPanel Developers' started by hostmedic, Dec 21, 2009.

  1. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    in 11.24 this worked like a charm however - in 11.25 no such luck.

    Even worse - the installers we had built in 11.24 will not work in 11.25 so this actually has a client side impact ...

    When we execute the build script - it errors out while trying to build the .cpanelsync file

    PHP:
    /scripts/cpanelsync_build_cpaddons_dir -/home/cpaddoni/public_html/data -u cpaddoni -a bz2 -v WEC
      cPAddonsAvailable
    .tar:  7.344:1,  1.089 bits/byte86.38saved3584 in488 out.
    bzip2Input file WEC.pm.bz2 already has .bz2 suffix.
    bzip2Input file .cpanelsync.bz2 already has .bz2 suffix.
      .
    cpanelsync.lock:  no data compressed.
      .
    cpanelsync:  0.708:111.294 bits/byte, -41.18saved68 in96 out.
    bzip2Input file .cpanelsync.lock.bz2 already has .bz2 suffix.
      
    WEC.pm:   1.933:1,  4.139 bits/byte48.26saved460 in238 out.
    /
    scripts/cpanelsync_build_cpaddons_dir [0 0 : /home/cpaddoni/public_html/data/cPAddonsAvailableBuilding .cpanelsync file...
    Done
      cPAddonsMD5
    .tar:  5.919:1,  1.352 bits/byte83.11saved4096 in692 out.
      
    WEC.pm:   1.634:1,  4.896 bits/byte38.80saved786 in481 out.
    /
    scripts/cpanelsync_build_cpaddons_dir [0 0 : /home/cpaddoni/public_html/data/cPAddonsMD5Building .cpanelsync file...
    Done
    bzip2
    Output file Web_Empowered_Church/CP_Test.pm.bz2 already exists.
      
    CP_Test.tar:  1.059:1,  7.554 bits/byte,  5.57saved31175168 in29439096 out.
    /
    scripts/cpanelsync_build_cpaddons_dir [0 0 : /home/cpaddoni/public_html/data/WEC/Web_Empowered_Church/CP_TestBuilding .cpanelsync file...
    Done
    /scripts/cpanelsync_build_cpaddons_dir [0 0 : /home/cpaddoni/public_html/data/WECBuilding .cpanelsync file...
    bzip2Input file ./Web_Empowered_Church/CP_Test.tar.bz2 already has .bz2 suffix.
    bzip2Input file ./Web_Empowered_Church/FE_Edit.tar.bz2 already has .bz2 suffix.
    Done
    bzip2
    Output file Web_Empowered_Church/United_Methodist.pm.bz2 already exists.
    /
    scripts/cpanelsync_build_cpaddons_dir [0 0 : /home/cpaddoni/public_html/data/WEC/Web_Empowered_Church/United_MethodistBuilding .cpanelsync file...
    Use 
    of uninitialized value in split at /usr/local/lib/perl5/site_perl/5.8.8/cPanel/SyncUtil.pm line 166.
    Done
    /scripts/cpanelsync_build_cpaddons_dir [0 0 : /home/cpaddoni/public_html/data/WECBuilding .cpanelsync file...
    Use 
    of uninitialized value in split at /usr/local/lib/perl5/site_perl/5.8.8/cPanel/SyncUtil.pm line 166.
    Done
    /scripts/cpanelsync_build_cpaddons_dir [0 0 : /home/cpaddoni/public_html/data/WEC/Web_Empowered_Church/No_ContentBuilding .cpanelsync file...
    Use 
    of uninitialized value in split at /usr/local/lib/perl5/site_perl/5.8.8/cPanel/SyncUtil.pm line 166.
    Done
    Use of uninitialized value in chdir at /usr/local/lib/perl5/site_perl/5.8.8/cPanel/SyncUtil.pm line 152.
    Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/local/lib/perl5/site_perl/5.8.8/cPanel/SyncUtil.pm line 152.
    /scripts/cpanelsync_build_cpaddons_dir [0 0 : /rootBuilding .cpanelsync file...
    Use 
    of uninitialized value in split at /usr/local/lib/perl5/site_perl/5.8.8/cPanel/SyncUtil.pm line 166.
    Done
    It appears that the files are not updated (when looking @ the time stamps)
    Also -
    when we moved them out - deleted them - they do not get rebuilt either
     
  2. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    I just wanted to note here for anyone interested what we've discovered thus far via hostmedic's ticket regarding this thread.

    Essentially it appears that this issue is unrelated to an 11.25 update after all. That statement is based on the fact that none of the code involved is distributed as part of cPanel and the one CPAN module it uses that cPanel maintains has not been updated for over 2 years.

    It does appear that there are some lower level system issues happening:

    Use of uninitialized value in split at
    /usr/local/lib/perl5/site_perl/5.8.8/cPanel/SyncUtil.pm line 167.

    Is because this backtick execution of `find .` is returning undef for some
    reason.

    Use of uninitialized value in chdir at
    /usr/local/lib/perl5/site_perl/5.8.8/cPanel/SyncUtil.pm line 152.

    is because Cwd::cwd() is returning undef for some reason.

    It is interesting to note that they both work fine several times through the loop then at some point it starts in with the undef()
    behavior.

    I am curious if the path is part of a remote mount or if there are other low level issues causing file system related tasks to fail.

    One we regain access we may be able to find out more specifics.
     
  3. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    Awesome

    I gotta tell everyone - I have written this before...

    The # 1 reason we use cPanel vs. the other guys (who even gave us all their control panel software for free where they charge $$$Huge $$$ is simply because they understand we - the customer - have people that depend upon us.

    How awesome is it - to have a group that responds quickly and works an issue till its resolved !
     
  4. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    The specific details for this server will be put in the ticket but the bottom line is that this was a VM and was running out of memory:

    # grep privvmpages /proc/user_beancounters
    privvmpages 167883 260276 262144 274644 731
    #

    Sure enough a strace of said command showed memory exhaustion:

    # grep -i nomem strace_limits
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    25610 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7c84708) = -1 ENOMEM (Cannot allocate memory)
    #
     
Loading...

Share This Page