PDA

View Full Version : Jobqueue backed up


ra3don
3rd April 2009, 02:54
Hey everyone, and thanks for taking the time to read this.
I am currently having a problem where I can't perform any action under ISPConfig. It just adds it to the jobqueue and they just keep stacking up. I have tracked down to this error:
maildirmake: /var/vmail/beastlytech.com/admin: Permission denied
chown: cannot access `/var/vmail/beastlytech.com/admin': No such file or directory

After I saw this, I set all of the permissions in the vmail recursively to the user vmail and the group vmail. However the jobqueue doesn't seem to be clearing...

till
3rd April 2009, 10:07
You have to clear / delete the last error in the jobqueue that holds the server from continuing in the jobqueue view of the monitor.

ra3don
3rd April 2009, 14:58
Ok, thanks for your reply. However, i did not see a way to do this. Do i do this through the ISPConfig webpage? I'm running ISPConfig 3.0.1.1

till
4th April 2009, 10:32
The jobqueue is in the monitor module. You just have to click on the delete icon of the error message in the jobqueue.

ra3don
4th April 2009, 17:43
I must be doing something wrong. There isn't an error in the jobqueue but nothing has moved for the past 3 days. I've attatched a screenshot of what i'm seeing. I found out there was an error in the cron.log.

http://beastlytech.com/images/jobqueueshot.jpg

ra3don
7th April 2009, 06:04
I finally gave in and just ended up uninstalling ISPConfig and reinstalled it. Everything seems to be working just fine now. Thanks for the help.

snorkels
11th May 2009, 16:03
I must be doing something wrong. There isn't an error in the jobqueue but nothing has moved for the past 3 days. I've attatched a screenshot of what i'm seeing. I found out there was an error in the cron.log.

http://beastlytech.com/images/jobqueueshot.jpg

Same problem here running ispconfig 3.0.1.1. Jobqueue just stopped working, after a month of succesfull uptime.
Looking in this thread with similar problem:
http://www.howtoforge.com/forums/showthread.php?t=33445&referrerid=60006

Could be mysql perrmisions problem ? How to fix it ?

Also reinstallation is not possible due to allready deployed websites.

till
11th May 2009, 19:42
Take a look at page 4 of the jobqueue, there must be an error at the end of the last page. Fix the reson for the error and then delete the error in the list.

snorkels
11th May 2009, 21:18
Thanks for the very quick reply ! :)
There is no error message.
http://www.kabkai.lv/error.jpg

snorkels
15th May 2009, 10:44
I`ve gone threw the logs, and they show no errors.
Where could be the problem that command are not executing and staying in queue ?

till
16th May 2009, 12:28
Please enable debugging in /usr/local/ispconfig/server/lib/config.inc.php and then run the following command as root user:

/usr/local/ispconfig/server/server.sh

and post the output.

snorkels
18th May 2009, 10:57
Hello,
Thanks for the quick reply,
After executing as root /usr/local/ispconfig/server/server.sh
as mac users sometimes says - it just works :) !

root@ronis:~# /usr/local/ispconfig/server/server.sh
18.05.2009-10:47 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
18.05.2009-10:47 - DEBUG - Found 7 changes, starting update process.
...

beryl
23rd June 2009, 17:48
Hello,

I get the
DEBUG - There is already a lockfile set. Waiting another 10 seconds...

Error, for several hour.

How do i find the correct lockfile to delete?

Croydon
23rd June 2009, 18:52
Hello,

I get the
DEBUG - There is already a lockfile set. Waiting another 10 seconds...

Error, for several hour.

How do i find the correct lockfile to delete?

/usr/local/ispconfig/server/temp/.ispconfig_lock

beryl
23rd June 2009, 19:24
Now it works :-)

But i get

msg 90/90 (822 bytes), delivery error (command sendmail 3575 error (127, exec of command sendmail failed (refuse to invoke external commands as root or GID 0 by default)))

When i run /usr/local/bin/run-getmail.sh

Croydon
23rd June 2009, 19:54
Now it works :-)

But i get

msg 90/90 (822 bytes), delivery error (command sendmail 3575 error (127, exec of command sendmail failed (refuse to invoke external commands as root or GID 0 by default)))

When i run /usr/local/bin/run-getmail.sh

You may not run this command as root.
ISPConfig runs it under the user "getmail".

beryl
24th June 2009, 13:05
Had a feeling it was so, thanks for verifying :-)

beryl
16th July 2009, 13:25
Hello,

After running apt-get upgrade, and running upgrades for apache, kernel etc. I get the Error: configuration file /etc/getmail/*.conf does not exist

Of course, getmail command works.

And there are two fetchmail commands inside ispconfig.

I also tried removing them and recreating them, making sure they where processed.

still... Error: configuration file /etc/getmail/*.conf does not exist

And true, there are no .config files in /etc/getmail/*.conf

What do do?!!

Nicke
16th July 2009, 13:28
Hello,

After running apt-get upgrade, and running upgrades for apache, kernel etc. I get the Error: configuration file /etc/getmail/*.conf does not exist

Of course, getmail command works.

And there are two fetchmail commands inside ispconfig.

I also tried removing them and recreating them, making sure they where processed.

still... Error: configuration file /etc/getmail/*.conf does not exist

And true, there are no .config files in /etc/getmail/*.conf

What do do?!!


Thats normal.
You don't have to do anything.
We all get that message when we don't have any fetchmail configured.

Edit:
I see... you DO use fetchmail? Then.. i dont know. ;-)

beryl
16th July 2009, 13:34
True, i do have fetchmail... :-(

And Till is offline... aaah! This is extremely annoying.

falko
17th July 2009, 14:01
still... Error: configuration file /etc/getmail/*.conf does not exist


This is nothing to worry about. This happens if you did not configure any accounts under Fetchmail in ISPConfig.

beryl
17th July 2009, 14:08
Dear Falko,

EDIT: To put it simple, even though there are fetchmails configured, they do not get created on the server.

See nothing in the logs about any errors.

Does permission errors get logged?
EDIT: not a permission problem, the reinstalled working server have the same permissions on folders and files.

How is the getmail configs created? what files can i check?

Gimly
5th August 2009, 20:19
Hi All,

I've the same problem job doesn't work, there are no errors in jobqueue, ispconfig database user's permission is OK.

This is the result for command "/usr/local/ispconfig/server/server.sh":


ns1:~# /usr/local/ispconfig/server/server.sh
05.08.2009-19:14 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
05.08.2009-19:14 - DEBUG - No Updated records found, starting only the core.
05.08.2009-19:14 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.
ns1:~#

If you have an idea ?

Thank you in advance for your help :)

till
5th August 2009, 20:30
The debug output shows that everything is ok, at least on the server where you executed it.

1) Is this a multiserver system?
2) If yes, how did you add the slave servers?

Gimly
5th August 2009, 21:04
Yes, it's multiserver system. But it worked fine during 1 month and since 1 week, it bug :(.

There are no package updated before the problem.

till
5th August 2009, 21:08
Then you had run the script /usr/local/ispconfig/server/server.sh on the wrong server. You have to run it on the slave that does not work and not the master.

Gimly
5th August 2009, 22:11
Ok thanks Till, this is the result for the command on my sql server :

sql:~# /usr/local/ispconfig/server/server.sh
05.08.2009-21:00 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
05.08.2009-21:01 - WARNING - DB::connect()-> mysql_connect Can't connect to MySQL server on 'ns1.espace4you.org' (4)
05.08.2009-21:02 - WARNING - DB::connect()-> mysql_connect Can't connect to MySQL server on 'ns1.espace4you.org' (4)
sql:~#

I can view my sql serer can't access to my master server. If I uninstall ispconfig on my sql server and then I reinstall it, I don't miss any data ?

Maybe there are an other resolution ?

Thank you :)

crazylamp
8th May 2012, 08:44
I just delete /usr/local/ispconfig/server/temp/.ispconfig_lock
and everything is ok now...

crazylamp
8th May 2012, 08:57
kill all other ispconfig related thread:
$ ps aux | grep ispconfig
root 28043 0.0 0.0 9144 1032 ? Ss 13:52 0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh &> /var/log/ispconfig/cron.log
root 28045 0.0 0.0 106008 1336 ? S 13:52 0:00 /bin/sh /usr/local/ispconfig/server/server.sh
root 28061 0.0 0.1 393708 20144 ? S 13:52 0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php
root 28654 0.0 0.0 103152 832 pts/1 S+ 13:53 0:00 grep ispconfig

$ kill -9 28061