dexjul

Active Member
Apr 24, 2006
25
0
151
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...
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
15
313
Houston, TX
cPanel Access Level
Root Administrator
Hi,

...

Warning: deprecated mbox still in use. Please switch to maildir soon.

...
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.
 

junglecat

Well-Known Member
Jul 6, 2004
168
0
166
/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.
Does this mean you have to leave the SSH window open for maybe a day? That wouldn't be possible for me to do. :(
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
15
313
Houston, TX
cPanel Access Level
Root Administrator
Does this mean you have to leave the SSH window open for maybe a day? That wouldn't be possible for me to do. :(
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&
 
Last edited:

junglecat

Well-Known Member
Jul 6, 2004
168
0
166
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&
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).
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
15
313
Houston, TX
cPanel Access Level
Root Administrator
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).
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.
 
Last edited:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
15
313
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 :)
 

gribozavr

Member
Aug 15, 2007
23
1
53
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).
 

junglecat

Well-Known Member
Jul 6, 2004
168
0
166
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?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
15
313
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.
 

jeremy_reliable

Active Member
PartnerNOC
Mar 8, 2004
26
0
151
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 :)
:D
since people complain about bad programming usually I'll make a post just to say good job with that one.