Koozali.org: home of the SME Server

reinstalled/moved egroupware & now getting cron message every 5 minutes

Offline janet

  • *****
  • 4,812
  • +0/-0
Hi

I had egroupware installed in an ibay called egroupware.
After backing up, I deleted the ibay, and installed the same version (1.4.002) to /opt/egroupware as per
http://wiki.contribs.org/Egroupware

Then I adjusted the header.inc.php to point at the old db in /var/lib/mysql

Everything is working fine with egroupware except I now get a email message every 5 minutes, that has references to files in the old ibay location.
I cannot find the source of this message even after looking in /etc/cron.XX
There was one egroupware cron job in there but I removed that.
I have stopped and restarted crond.
If I stop crond the message stops.

Can someone suggest where this message is originating from

Thanks

Hi. This is the qmail-send program at mydomain.org
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<www@server.mydomain.org>:
Recipient unknown

--- Below this line is a copy of the message.

Return-Path: <root@mydomain.org>
Received: (qmail 9436 invoked by alias); 5 May 2008 12:25:01 -0000
Delivered-To: alias-localdelivery-www@mydomain.org
Received: (qmail 9433 invoked by uid 102); 5 May 2008 12:25:01 -0000
Date: 5 May 2008 12:25:01 -0000
Message-ID: <20080505122501.9432.qmail@mydomain.org>
From: root@mydomain.org(Cron Daemon)
To: www@mydomain.org
Subject: Cron <www@server> php -qC /home/e-smith/files/ibays/egroupware/html/phpgwapi/cron/asyncservices.php default
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/e-smith>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=www>
X-Cron-Env: <USER=www>

No input file specified.


Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Did you already try to grep your /etc/cron* files and folders for the executed filename like so:

Code: [Select]
grep -iR '/home/e-smith/files/ibays/egroupware/html/phpgwapi/cron/asyncservices.php' /etc/cron*
Did you have a look at the /var/log/messages file? Perhaps there might be a clue in there...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • *****
  • 4,812
  • +0/-0
cactus

Quote
grep -iR '/home/e-smith/files/ibays/egroupware/html/phpgwapi/cron/asyncservices.php' /etc/cron*

I had already manually search/read all the cron files, but when I run the above command there is no output, so nothing is found.

Quote
Did you have a look at the /var/log/messages file?

Nothing related to those messages

I looked at /var/log/cron and see this entry every 5 minutes

May  6 00:25:01 server crond[15227]: (www) CMD (php -qC /home/e-smith/files/ibays/egroupware/html/phpgwapi/cron/asyncservices.php default)


If I type at the command prompt

php -qC /home/e-smith/files/ibays/egroupware/html/phpgwapi/cron/asyncservices.php
or as little as
php -qC /home
I get
No input file specified.

It does seem to be a cron job, as disabling crond stops the messages, but I just can't see where it's coming from.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
It does seem to be a cron job, as disabling crond stops the messages, but I just can't see where it's coming from.

Try running:

crontab -u www -l

Offline janet

  • *****
  • 4,812
  • +0/-0
Thank's Charlie

Quote
crontab -u www -l

That command gives:

*/5 * * * * php -qC /home/e-smith/files/ibays/egroupware/html/phpgwapi/cron/asyncservices.php default

So that's looks like the source, but where is it hiding ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
So that's looks like the source, but where is it hiding ?
No idea, but the man pages suggest a way to remove it, although I do not know if this is the proper way, but judging from them this should prompt you for removal of crontab jobs owned by the user www:

Code: [Select]
crontab -u www -r -i
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • *****
  • 4,812
  • +0/-0
cactus

Quote
crontab -u www -r -i

When I run that, it asks to delete www's crontab
I answer  y

Then when I do
crontab -u www -l
I get
no crontab for www

I have just waited for the next scheduled 5 minute message, but it did not happen, so problem appears fixed.

Thank you very much both Charlie & cactus, as usual both very helpful

Learn something every day !
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.