Bug #804

XCache deleted

Added by Greg Nuttall 5 months ago. Updated 2 months ago.

Status:In Progress Start date:12/13/2011
Priority:Normal Due date:02/27/2012
Assignee:Danny Terweij % Done:

0%

Category:- Spent time: -
Target version:6.1.x
Affected version:All Operating System:CentOS 5
Resolution: Architecture:32 & 64 Bit
Reproduceable:

Description

Trying to add a domain on a slave server failed, unable to connect. Checked kloxo on remote and wasn't running, restarted, then got an error that xcache could not be found. Checked if was loaded and it wasn't. Installed it again, and ok. Also had xinetd errors, and found 2 xinetd processes running, and also spamdyke was not running, checked smtp_lxa and spamdyke was missing from server_args, so fixed (see bug 784). Killed all xinetd processes, restarted, then only one running, spamdyke running and no more xinetd errors in logs.

Why when I issue /script/restart does it remove xcache, the kloxo daemon also dies on this server about very 2 days.

Here's part of the log I found, where you can clearly see a yum -y remove php-xcache:

14:30 Dec/13/2011: 0: [(system:/usr/local/lxlabs/kloxo/httpdocs) 'chmod' '-R' '0755' '/script']
14:30 Dec/13/2011: 0: [(system:/usr/local/lxlabs/kloxo/httpdocs) 'yum' '-y' 'remove' 'php-xcache']
14:30 Dec/13/2011: 0: [(system:/usr/local/lxlabs/kloxo/httpdocs) 'chmod' '0755' '/etc/init.d/kloxo']
14:30 Dec/13/2011: 0: [(system:/usr/local/lxlabs/kloxo/httpdocs) 'chmod' '0755' '/home']

Should I just restart kloxo from /etc/init.d, does it do the same thing?

Thanks

Greg

Version 6.1.10
Centos 5.7
Slave Server

History

Updated by Mustafa Ramadhan 5 months ago

  • Assignee set to Mustafa Ramadhan
  • Target version set to 6.1.x

For xcache, it's old issue. As I know, appear since 6.1.0.

On old version (verion before 6.1.7), enable or disable xcache on kloxo no effect. Xcache still no install.

In 6.1.7-6.1.10, enable and disable successful for master but still problem for slave.

The reason, for enable or disable need to know '/usr/local/lxlabs/kloxo/etc/flag/xcache_enabled.flg' file exist or not. Sadly, '/usr/local/lxlabs/kloxo/etc/flag/' direcory not exist on slave. Need manual action with '/sh /script/xcache-install' on.

Updated by Greg Nuttall 5 months ago

Hi Mustafa

Indeed the directory is missing on 2 slaves, but exists on 1 other. If I create and copy the flag directory contents from either the master or the slave that has it, will that cure the problem of deleting xcache when restarting the kloxo daemon?

I ran sh /script/xcache-install, which just seems to do a yum install, it doesn't create the flag directory.

Thanks for your help

Greg

Updated by Mustafa Ramadhan 5 months ago

  • Affected version changed from 6.1.10 to All

Updated by Danny Terweij 3 months ago

  • Assignee deleted (Mustafa Ramadhan)

When teh flag dir is created by yoursefl on the slave what happens?
If it works fine with that then i can make a patch in xcache package.

Please test and let us know. I have other jobs to do.

Updated by Greg Nuttall 3 months ago

Hi Danny,

Manually added the flag directory and contents and restarted kloxo with no problems. Just a note, comparing the slave server that had the flag directory, the files in the slave are:

enable_xinetd.flg fix_secure_log.flg lowmem.flag restart_xinetd_for_pureftp.flg xcache_enabled.flg
fix_hordedb_proper.flg installgroupwareagain.flg remove_host_deny.flg start_vps.flg

but the master has:

addcustomername.flg fixadminuser.flg fixdirprotectagain.flg fix_phpini.flg lowmem.flag
convert_favorite.flg fix_awstats.flg fix_domainkey.flg fixrootquota.flg remove_host_deny.flg
cronfix.flg fixcgibin.flg fix_hordedb.flg fix_secure_log.flg restart_xinetd_for_pureftp.flg
dirprotectfix.flg fixcmlistagain.flg fix_hordedb_proper.flg fixsimpledocroot.flg start_vps.flg
dofixParentClname.flg fixcmlist.flg fix_move_to_client.flg fixtotaldiskusageplan.flg switchtoaliasnext.flg
enable_xinetd.flg fix_cname.flg fixphpinfo.flg installgroupwareagain.flg xcache_enabled.flg

I copied the master just in case, is this correct?

Thanks

Greg

Updated by Danny Terweij 3 months ago

  • Due date set to 02/27/2012
  • Status changed from New to In Progress
  • Assignee set to Danny Terweij
  • Target version changed from 6.1.x to 6.1.11

Okay great.

So basicly, Kloxo code itself has to be create the flag dir.
But i do it also with the new xcache package, just create the flag dir when the rpm is installed.

Í'll make it a 6.1.11 target because Kloxo has to create the flag dir as well and this is just one line of code :) So easy to to :)

I'll do it myself :)

Updated by Danny Terweij 3 months ago

  • Target version changed from 6.1.11 to 6.1.12

Updated by Danny Terweij 2 months ago

  • Target version changed from 6.1.12 to 6.1.x

Updated by Danny Terweij 2 months ago

  • Operating System set to CentOS 5
  • Architecture set to 32 & 64 Bit

I did not forget this.
New xCache package 1.3.2 is on its way, and will make a flag dir.

Also available in: Atom PDF