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.

eximup problem

Discussion in 'Data Protection' started by dexjul, Aug 22, 2007.

  1. dexjul

    dexjul Active Member

    Joined:
    Apr 24, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    When I update exim (/scripts/eximup --force.

    I got this:

    Insecure dependency in chown while running with -T switch at /scripts/cPScript/SafetyBits.pm line 176.


    And lots of errors in /scripts/updateuserdomains

    Warning: deprecated mbox still in use. Please switch to maildir soon.
    Warning: deprecated mbox still in use. Please switch to maildir soon.
    Entry for 34095 missing in /etc/shadow at /scripts/cPScript/PwCache.pm line 200
    cPScript::PwCache::_readshadow(34095, 2) called at /scripts/cPScript/PwCache.pm line 355
    cPScript::PwCache::_getpwdata(34095, 2) called at /scripts/cPScript/PwCache.pm line 292
    cPScript::PwCache::_pwfunc(34095, 2) called at /scripts/cPScript/PwCache.pm line 135
    cPScript::PwCache::getpwuid(34095) called at /scripts/cPScript/AccessIds.pm line 33
    cPScript::AccessIds::setuids(34095, 34098) called at /scripts/convertemails line 62

    Please help. Thank in advance...
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I would highly recommend migrating to maildir as mbox is no longer being supported on cPanel/WHM. Migrate to maildir and see if these problems persist. You can do this by executing:

    /scripts/convert2maildir

    Note, this script can take anywhere from a minute to over a day to execute depending on the amount of mail stored on your server. The biggest mistake people make when executing this script is terminating the process because they feel it is hung. Just let it do its thing, because if you terminate the process you'll have a half-converted system and that leads to a whole new set of problems.
     
  3. junglecat

    junglecat Well-Known Member

    Joined:
    Jul 6, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Does this mean you have to leave the SSH window open for maybe a day? That wouldn't be possible for me to do. :(
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    EDIT: This will not work, see below post for reasoning and correction.

    Just put an ampersand at the end of the command so it'll run in the background. Note, doing this will still display output to the screen so you may want to also pipe output to a file for later viewing.

    E.g. /scripts/convert2maildir&
     
    #4 cPanelDavidG, Sep 17, 2007
    Last edited: Sep 17, 2007
  5. junglecat

    junglecat Well-Known Member

    Joined:
    Jul 6, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    So this will keep it running when I lose my internet connection? I am in the boonies with a BAD dialup connection, and I get disconnected very frequently. I also can't leave my computer running at night (it's in my mother's house and she won't let me run it overnight).
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    EDIT: This will not work, see below post for reasoning and correction.

    Yes, there's even some nifty tutorials about this if you perform an Internet search for ampersand background lose ssh.
     
    #6 cPanelDavidG, Sep 17, 2007
    Last edited: Sep 17, 2007
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Correction:

    The QA Staff has informed me that since /scripts/convert2maildir is an interactive script that asks for user input, the ampersand trick wont work. However, the actual conversion process will be run in the background so just run /scripts/convert2maildir and even if you lose internet connectivity after going through the interactive prompt(s), everything will still keep on going with the conversion process :)
     
  8. gribozavr

    gribozavr Member

    Joined:
    Aug 15, 2007
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    I always run all such critical programs (that do major changes to the system and cannot be interrupted) from a program called screen. It can keep a terminal open even after you logout, reconnect, login, logout, reconnect (any number of times).
     
  9. junglecat

    junglecat Well-Known Member

    Joined:
    Jul 6, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Ok, I decided to try to start this and got stuck right away. The first thing I'm supposed to do apparently is have it back up mail folders, but here is what happened:


    maildir is not active, this system is using mbox

    1) Backup all mail folders on this server
    2) Restore a mail backup
    3) Start maildir conversion process
    4) Request Technical Support
    *) Exit
    Enter Selection---] 1
    Backup directory (backup) does not exist or is not configured in Web Host Manager! at /scripts/cPScript/MailDir.pm line 31, <STDIN> line 1.
    root@server [~]# maildir is not active, this system is using mbox
    -bash: maildir: command not found
    root@server [~]#
    root@server [~]# 1) Backup all mail folders on this server
    -bash: syntax error near unexpected token `)'
    root@server [~]# 2) Restore a mail backup
    -bash: syntax error near unexpected token `)'
    root@server [~]# 3) Start maildir conversion process
    -bash: syntax error near unexpected token `)'
    root@server [~]# 4) Request Technical Support
    -bash: syntax error near unexpected token `)'
    root@server [~]# *) Exit
    -bash: syntax error near unexpected token `)'
    root@server [~]# Enter Selection---] 1
    -bash: Enter: command not found
    n Web Host Manager! at /scripts/cPScript/MailDir.pm line 31, <STDIN> line 1.ed i
    -bash: syntax error near unexpected token `('
    root@server [~]# root@server [~]#
    -bash: root@server: command not found


    What do I do?
     
  10. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The conversion script will use the backup directory set in WHM. This path is set in WHM -> Backup -> Configure Backup in the field Backup Destination (this should be a directory/NFS/Coda mount with at least twice the space of all your /home* partitions. Setting this to /home is a very bad idea.).

    If the directory you specify does not exist, you may wish to create it.
     
  11. jeremy_reliable

    jeremy_reliable Active Member
    PartnerNOC

    Joined:
    Mar 8, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    :D
    since people complain about bad programming usually I'll make a post just to say good job with that one.
     
Loading...

Share This Page