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 won't work anymore - is there a fix?

Discussion in 'cPanel Developers' started by kcooper, Jul 1, 2007.

  1. kcooper

    kcooper Registered

    Joined:
    Nov 20, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham UK
    I've tried to find the answer to this problem here but simple can't see it.

    When I go into Scripts Library I see ...

    [a fatal error or timeout occurred while processing this directive]

    And the same error when I pick on the scripts to install...

    [a fatal error or timeout occurred while processing this directive]
    cPAddon cPanel::CMS::Mambo

    This is a cPanel packaged module. (v0.2)

    Website http://www.mamboserver.com/

    It's the same error whatever module you choose.

    I am using 10.9.1-STABLE 14304

    My error log says ...

    (internal death) Sun Jul 1 10:56:56 2007 [6257] error: Can't locate File/Touch.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/cpaddons /usr/local/cpanel/perl /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/FileUtils.pm line 33, <THEMELANGFD> line 1084.
    eval {...} called at /usr/local/cpanel/Cpanel/FileUtils.pm line 33
    Cpanel::FileUtils::touchfile('/var/cpanel/cpaddons_moderated.yaml') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 2577
    Cpanel::cPAddons::_write_this('/var/cpanel/cpaddons_moderated.yaml', 'HASH(0x91e85e8)') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 2571
    Cpanel::cPAddons::_write_cache('/var/cpanel/cpaddons_moderated', 'HASH(0x91e85e8)') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 2528
    Cpanel::cPAddons::_read_cache('/var/cpanel/cpaddons_moderated', 'HASH(0x90413e4)') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 79
    Cpanel::cPAddons::cPAddons_init() called at (eval 23) line 1
    eval 'Cpanel::cPAddons::cPAddons_init();' called at cpanel.pl line 3597
    main::modloader('cPAddons') called at /usr/local/cpanel/Cpanel.pm line 241
    Cpanel::loadmodule('cPAddons') called at cpanel.pl line 540
    main::exectag('<cpanel cPAddons="mainpg(%FORM)">') called at cpanel.pl line 3496
    main::dotag(undef) called at cpanel.pl line 3410
    main::parsehtml('GLOB(0x8ef99a8)') called at cpanel.pl line 355
    touch: cannot touch `/var/cpanel/cpaddons_moderated.yaml': Permission denied
    Sun Jul 1 10:56:56 2007 warn [Cpanel::DataStore]: Could not open() file '/var/cpanel/cpaddons_moderated.yaml' for writing: Permission denied
    Sun Jul 1 10:56:56 2007 warn [Cpanel::DataStore]: at /usr/local/cpanel/Cpanel/DataStore.pm line 26
    Cpanel::DataStore::store_ref('/var/cpanel/cpaddons_moderated.yaml', 'HASH(0x91e85e8)') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 2579
    Cpanel::cPAddons::_write_this('/var/cpanel/cpaddons_moderated.yaml', 'HASH(0x91e85e8)') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 2571
    Cpanel::cPAddons::_write_cache('/var/cpanel/cpaddons_moderated', 'HASH(0x91e85e8)') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 2528
    Cpanel::cPAddons::_read_cache('/var/cpanel/cpaddons_moderated', 'HASH(0x90413e4)') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 79
    Cpanel::cPAddons::cPAddons_init() called at (eval 23) line 1
    eval 'Cpanel::cPAddons::cPAddons_init();' called at cpanel.pl line 3597
    main::modloader('cPAddons') called at /usr/local/cpanel/Cpanel.pm line 241
    Cpanel::loadmodule('cPAddons') called at cpanel.pl line 540
    main::exectag('<cpanel cPAddons="mainpg(%FORM)">') called at cpanel.pl line 3496
    main::dotag(undef) called at cpanel.pl line 3410
    main::parsehtml('GLOB(0x8ef99a8)') called at cpanel.pl line 355
    Sun Jul 1 10:56:56 2007 warn [cPAddons]: couldn't make missing yaml out of store
    Sun Jul 1 10:56:56 2007 warn [cPAddons]: at /usr/local/cpanel/Cpanel/cPAddons.pm line 2530
    Cpanel::cPAddons::_read_cache('/var/cpanel/cpaddons_moderated', 'HASH(0x90413e4)') called at /usr/local/cpanel/Cpanel/cPAddons.pm line 79
    Cpanel::cPAddons::cPAddons_init() called at (eval 23) line 1
    eval 'Cpanel::cPAddons::cPAddons_init();' called at cpanel.pl line 3597
    main::modloader('cPAddons') called at /usr/local/cpanel/Cpanel.pm line 241
    Cpanel::loadmodule('cPAddons') called at cpanel.pl line 540
    main::exectag('<cpanel cPAddons="mainpg(%FORM)">') called at cpanel.pl line 3496
    main::dotag(undef) called at cpanel.pl line 3410
    main::parsehtml('GLOB(0x8ef99a8)') called at cpanel.pl line 355

    Would really appreciate some help.

    Kind regards

    Karl
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    install perl module File::Touch
     
  3. triemstr

    triemstr Registered

    Joined:
    Aug 29, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    same problem

    I'm having the same problem. File::Touch is installed according to whm and according to the shell check for it. I have version .02 installed:

    File::Touch is up to date (0.02).

    Also, my log looks the same. Why is INC looking in 5.6.2 directories when it should be looking in my 5.8.8 directory? Right?

    /usr/lib/perl5/site_perl/5.6.2 has a CORE file and no perl modules, but File::Touch is in /usr/lib/perl5/site_perl/5.8.8

    Do I just remove the 5.6.2 directory and try again? I also have 5.8.0 and 5.8.4 directories, though those have File in them as well. I'm assuming I don't need any of these old directories and I can keep my 5.8.8 directory but would like to make sure before I blow them all away. Plus cpanel may still look in the wrong spot after I blow them away. Thoughts on how to fix?

    BTW, I need to load an addon but cannot upgrade cpanel to version 11 for a month at least for other reasons so I'm guessing I need help with a hack or pointed to a script that can recreate INC. I'm using 10.9.0-RELEASE 10737

    Thanks,
    Kevin
     
    #3 triemstr, Jul 10, 2007
    Last edited: Jul 10, 2007
  4. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    Have your admin go into WHM -> cPanel -> Manage cPAddons -> Update Moderation

    This will get /var/cpanel/cpaddons_moderated turned into /var/cpanel/cpaddons_moderated.yaml

    Then it won't be trying to touch or yaml-ify a file that it does not have permission to.

    I beleive this situation is detected and avoided in later versions but will check to be sure.

    Thanks!
     
  5. triemstr

    triemstr Registered

    Joined:
    Aug 29, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cpdan, that worked for the most part so thanks a lot for the reply.

    I also had to changed ownership in user directories:

    /home/user/.cpaddons/cPanel::Bulletin_Boards::phpBB.0.yaml

    from root:root to user:user and kept permissions at 600 then it worked.

    Thanks again! You're the man cpdan!

    -Kevin
     
  6. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    I see, that was resolved a while ago a shouldn't happen again.

    I'm gald it helped Kevin :)
     
Loading...
Similar Threads - cpaddons won't anymore
  1. JetfireMike
    Replies:
    1
    Views:
    145

Share This Page