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.

Update Config - Fatal Error (Can't locate Template/Iterator.pm in...)

Discussion in 'General Discussion' started by thobarn, Jul 22, 2008.

  1. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    [SOLVED]
    WHM 11.23.2 cPanel 11.23.4-E26139
    CENTOS Enterprise 5.2 i686 on virtuozzo - WHM X v3.1.0

    Server Configuration => Update Config returns the following error. I tried Upgrade to Latest Version => Force a reinstall even if the system is update to date. Any clues how can I fix this? Thanks

    [a fatal error or timeout occurred while processing this directive]
    failed to load Template/Iterator.pm: Can't locate Template/Iterator.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Time /scripts /usr/local/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Digest /usr/local/cpanel/build-tools/stubs /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/lib/perl5/site_perl/5.6.2/i686-linux/Template/Config.pm line 88. eval {...} called at /usr/local/cpanel/whostmgr/docroot/themes/x/templates/updateconf line 7 Template::Document::__ANON__('Template::Context=HASH(0xbba1758)') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Document.pm line 155 eval {...} called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Document.pm line 153 Template::Document::process('Template::Document=HASH(0xbbc1050)', 'Template::Context=HASH(0xbba1758)') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Context.pm line 345 eval {...} called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Context.pm line 319 Template::Context::process('Template::Context=HASH(0xbba1758)', 'Template::Document=HASH(0xbbc1050)') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Service.pm line 94 eval {...} called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Service.pm line 91 Template::Service::process('Template::Service=HASH(0xbba1530)', '/usr/local/cpanel/whostmgr/docroot/themes/x/templates/updateconf', 'HASH(0xbba0cdc)') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template.pm line 68 Template::process('Template=HASH(0xbba0f64)', '/usr/local/cpanel/whostmgr/docroot/themes/x/templates/updateconf', 'HASH(0xbba0cdc)', 'SCALAR(0x99fe9f4)') called at /usr/local/cpanel/Cpanel/Template.pm line 125 Cpanel::Template::process_template('updateconf', 'HASH(0xbba0cdc)') called at whostmgr/bin/whostmgr2.pl line 1418 main::updateconf() called at whostmgr/bin/whostmgr2.pl line 810
    [a fatal error or timeout occurred while processing this directive]
    1
    [a fatal error or timeout occurred while processing this directive]
    1
    [a fatal error or timeout occurred while processing this directive]
    1
    [a fatal error or timeout occurred while processing this directive]undef error - failed to load Template/Iterator.pm: Can't locate Template/Iterator.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Time /scripts /usr/local/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Digest /usr/local/cpanel/build-tools/stubs /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/lib/perl5/site_perl/5.6.2/i686-linux/Template/Config.pm line 88.
     
    #1 thobarn, Jul 22, 2008
    Last edited: Jul 25, 2008
  2. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    This appears to be a problem with the Perl modules, or with the with cPanel release. Try updating Perl or run "/scripts/upcp --force" from the SSH to update cPanel. Hope that helps.. :)
     
  3. manuki

    manuki Member

    Joined:
    Dec 18, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I got also problems when I was testing EDGE on one of my servers. In WHM ->Update Config I get:

    "[a fatal error or timeout occurred while processing this directive]
    failed to load Template/Iterator.pm: Can't locate Template/Iterator.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Time /scripts /usr/local/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Digest /usr/local/cpanel/build-tools/stubs /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/lib/perl5/site_perl/5.6.2/i686-linux/Template/Config.pm line 88. eval {...} called at /usr/local/cpanel/whostmgr/docroot/themes/x/templates/updateconf line 7 Template::Document::__ANON__('Template::Context=HASH(0xa2164ac)') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Document.pm line 155 eval {...} called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Document.pm line 153 Template::Document::process('Template::Document=HASH(0xa20e230)', 'Template::Context=HASH(0xa2164ac)') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Context.pm line 345 eval {...} called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Context.pm line 319 Template::Context::process('Template::Context=HASH(0xa2164ac)', 'Template::Document=HASH(0xa20e230)') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Service.pm line 94 eval {...} called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template/Service.pm line 91 Template::Service::process('Template::Service=HASH(0xa21626c)', '/usr/local/cpanel/whostmgr/docroot/themes/x/templates/updateconf', 'HASH(0xa215a18)') called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Template.pm line 68 Template::process('Template=HASH(0xa2160bc)', '/usr/local/cpanel/whostmgr/docroot/themes/x/templates/updateconf', 'HASH(0xa215a18)', 'SCALAR(0x99fe9f4)') called at /usr/local/cpanel/Cpanel/Template.pm line 125 Cpanel::Template::process_template('updateconf', 'HASH(0xa215a18)') called at whostmgr/bin/whostmgr2.pl line 1418 main::updateconf() called at whostmgr/bin/whostmgr2.pl line 810
    [a fatal error or timeout occurred while processing this directive]
    1
    [a fatal error or timeout occurred while processing this directive]
    1
    [a fatal error or timeout occurred while processing this directive]
    1
    [a fatal error or timeout occurred while processing this directive]undef error - failed to load Template/Iterator.pm: Can't locate Template/Iterator.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Time /scripts /usr/local/cpanel/perl /usr/local/cpanel/Cpanel/CPAN/overload/__Digest /usr/local/cpanel/build-tools/stubs /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/lib/perl5/site_perl/5.6.2/i686-linux/Template/Config.pm line 88. "

    Any way to fix this other than installing everything again? Updating Perl and forcing Cpanel update did not work.
     
  4. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    Thanks for your reply and time. Unfortunately this did not work. So far I tried:

    Update Server Software
    Update System Software
    Rebuild RPM Database
    Upgrade to Latest Version (force)

    I am still receiving the error mentioned above. How can I roll back to more stable branch from EDGE using SSH? Thanks
     
  5. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    If you PM me the login details of your server, we can get this solved :)
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    This is a problem in the EDGE build and will be fixed with the next build.
     
  7. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    Update Config - Fatal Error [SOLVED]

    Hi, thanks for the reply but this is an authotised_keys access only SSH and I would have to give you my private key :D

    I will wait until next release. Thanks very much for your kind offer of help.
     
  8. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    You are most welcome :) It's my pleasure assisting you.. ;)
     
  9. jonyzinho

    jonyzinho Active Member

    Joined:
    Apr 2, 2005
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Change Update Config

    Hi,

    I have the same problem at 3 days.

    And now is ok. I make this:

    ======================================

    Login as the root via ssh.

    Edit /etc/cpupdate.conf file:

    # vi /etc/cpupdate.conf

    Find line:
    CPANEL=manual-edge

    Replace with:
    CPANEL=stable

    Save and close the file.

    Now update to stable:

    # /scripts/upcp --force

    ======================================

    Regards,

    Nunes, Joao
     
  10. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    Code:
    Can't locate Template/Iterator.pm in @INC
    just install the missing module

    Code:
    cpan Template::Iterator
    or probably more likely it's included with the main Template module:

    Code:
    cpan Template
     
Loading...

Share This Page