There are certain situations when you can encounter such cPanel update error message.
In order to update cPanel has to download new files and packages to replace outdated. For this it requires about 1.8Gb of free space on /usr partition. What can you do to fix the problem if you get this error message ?
The course of action heavily depends on your server initial disk layout:
- You have single partition disk for everything (i.e. /, /home, /usr, and /var are on the same partition) and you suddenly don’t have spare 1.6Gb on it to update cPanel. That actually means bigger problems all together because any spike in disk usage – rapidly growing log file or cPanel upgrade can use all available disk space. The only possible solution apart of reinstallation is to add 1 more disk to the server and evacuate some disk content there. Possible candidates for evacuation /home, /var or /usr whichever is bigger.
- If you have multiple filesystems you have an option to transfer cPanel files from /usr/local to another filesystem that has more free space – if none of your server filesystems have 3+Gb free space available you will have to resort to the solution from item 1 – adding another disk.
- If you can move cPanel files to another filesystem that has more free space, lets say /home – this is how you do it:
1/etc/init.d/cpanel stop; cd /usr/local; rsync -avS cpanel /home/; mv cpanel cpanel_old; ln -sf /home/cpanel /usr/local/cpanel; /etc/init.d/cpanel start - Login to cPanel via your web browser and check if everything works correctly. If you are satisfied you can go back to ssh terminal and safely remove /usr/local/cpanel_old and run software update manually from WHM menu
Important Update:
It seems that symlink method breaks cPanel functionality because some scripts use real path to determine CWD. SO the proper way would be to mount –bind from cpanel new location to default location:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
/etc/init.d/cpanel stop Stopping tailwatchd: [30106] [2013-12-06 15:44:15 +0100] [main] Current process '12380' stopped [ OK ] Stopping cPanel services: Waiting for cpsrvd,cpsrvd-ssl,whostmgrd,cpaneld,webmaild to shutdown ..... terminated. [ OK ] Stopping cPanel dav services: [Fri Dec 6 15:44:16 2013] Current process '12827' stopped Waiting for cpdavd,cpdavd-ssl to shutdown ... not running. [ OK ] Stopping cPanel queue services: Graceful shutdown of cPanel TaskQueue Daemon requested.. complete [ OK ] Stopping cPanel brute force detector services: Waiting for cphulkd.pl,cPhulkd,cphulkd to shutdown ... not running. [ OK ] Stopping pop3 services: Waiting for (?^:^cppop(?:-ssl)?$) to shutdown ... not running. [ OK ] Stopping cPanel log services: Stopping cPanel Chat services: [FAILED] Stopping cPanel ssl services: Waiting for (?^:^(?:stunnel$|stunnel-[0-9\.]+local)) to shutdown ... not running. [ OK ] Stopping mailman services: Shutting down Mailman's master qrunner PID unreadable in: /usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid [Errno 2] No such file or directory: '/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid' Is qrunner even running? mailmanctl: no process killed [FAILED] cd /usr/local/ rm cpanel rm: remove symbolic link `cpanel'? y mkdir cpanel mount --bind /home/cpanel cpanel /etc/init.d/cpanel start Starting SMTP Tweak: SMTP Mail protection has been enabled. All outbound SMTP connctions will be redirected to localhost except: uid is root (ports: 25,465,587) uid is cpanel (ports: 25,465,587) gid is mail (ports: 25,465,587) gid is mailman (ports: 25,465,587) [ OK ] Starting cPanel services: Waiting for cpsrvd,cpsrvd-ssl,whostmgrd,cpaneld,webmaild to shutdown ... not running. Starting cpsrvd. [ OK ] Starting cPanel brute force detector services: [ OK ] Starting cPanel dav services: [ OK ] Starting pop3 services: Waiting for (?^:^cppop(?:-ssl)?$) to shutdown ... not running. [ OK ] Starting cPanel Chat services: Starting cPanel ssl services: Waiting for (?^:^(?:stunnel$|stunnel-[0-9\.]+local)) to shutdown ... not running. Using Native SSL support (stunnel not needed) [ OK ] Starting cPanel Queue services: [ OK ] Starting tailwatchd: !! ATTENTION ATTENTION ATTENTION ATTENTION Cpanel::TailWatch::Eximstats appears to have unprocessed SQL in /var/cpanel/sql/eximstats.sql. When mysql is unable to execute a query they are logged for processing later. Eventually these SQL files may be handled automatically and this message will not appear. In the meantime you can execute the queries as root with something like this: mv /var/cpanel/sql/eximstats.sql /var/cpanel/sql/eximstats.sql.tmp_working_copy /scripts/restartsrv_tailwatchd mysql eximstats < /var/cpanel/sql/eximstats.sql.tmp_working_copy Once you are sure all is well you can remove /var/cpanel/sql/eximstats.sql.tmp_working_copy ATTENTION ATTENTION ATTENTION ATTENTION !! [Fri Dec 6 15:45:02 2013] Starting /usr/local/cpanel/libexec/tailwatch/tailwatchd daemon Log is at /usr/local/cpanel/logs/tailwatchd_log [ OK ] Starting cPanel Log services: ==> cPanel Log Daemon version 26.0 [ OK ] Starting mailman services: [ OK ] grep cpan /etc/mtab >> /etc/fstab |
your fstab is incorrect. Right one is:
/home/cpanel /usr/local/cpanel none defaults,bind 0 0
Where exactly do you see /etc/fstab entry in my post that you think is incorrect?