Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 7th March 2012, 00:53
drapsag drapsag is offline
Junior Member
 
Join Date: Apr 2011
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any ideas?

It's still not working. The ISPConfig server.sh script is not removing the lock file after it runs unless I run it from a command prompt.

If I remove the file manually, it will run one time from the panel and not again. I keep getting "There is already an instance of server.php running. Exiting." in the System Log every minute (which means cron is running the script every minute like it's supposed to). This is happening on both of my servers. They are both running Squeeze and are up to date. This happened right after the upgrade to ISPConfig 3.0.4.3 but I also did some other updates as well on both servers (the usual apt-get update, apt-get upgrade) at the same time. My systems were working perfectly up to then.
Reply With Quote
Sponsored Links
  #12  
Old 7th March 2012, 09:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,213 Times in 4,088 Posts
Default

- Is this a multiserver or single server system?
- If its a multiserver system: is /var/vmail a local drive or a nfs or cluster filesystem?
- Do you use courier or imap?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 7th March 2012, 14:22
drapsag drapsag is offline
Junior Member
 
Join Date: Apr 2011
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

2 Servers. One server (the master) runs Web, DNS, File and DB. The Second server runs Mail and DNS only.

/var/vmail is on a local drive.

We use Dovecot.
Reply With Quote
  #14  
Old 7th March 2012, 14:26
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,213 Times in 4,088 Posts
Default

- How many gigabytes of email do you have approx in /var/vmail?
- Please post the dovecot.conf file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 7th March 2012, 14:48
drapsag drapsag is offline
Junior Member
 
Join Date: Apr 2011
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

/var/vmail has 2.7G

Here is dovecot.conf:

## ISPConfig3 Template file.
## This file was installed by ISPConfig3
## It will be replaced if ISPConfig3 is updated.

## Dovecot configuration file
base_dir = /var/run/dovecot/

protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "

# ssl_cert_file = /etc/ssl/_.my-domain.tld/_.my-domain.tld.crt
# ssl_key_file = /etc/ssl/_.my-domain.tld/_.my-domain.tld.key

ssl_cert_file = /etc/postfix/smtpd.cert
ssl_key_file = /etc/postfix/smtpd.key

mail_privileged_group = mail

login_greeting = ISPConfig3 IMAP server ready...

## IMAP specific settings
protocol imap {
mail_executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_plugins = quota imap_quota
}

## POP3 specific settings
protocol pop3 {
mail_executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/pop3
pop3_uidl_format = %08Xu%08Xv
mail_plugins = quota
}

## LDA specific settings
protocol lda {
# Address to use when sending rejection mails.
postmaster_address = postmaster@my-domain.tld

# Support for dynamically loadable plugins. mail_plugins is a space separated
# list of plugins to load.
mail_plugin_dir = /usr/lib/dovecot/modules/lda

# UNIX socket path to master authentication server to find users.
auth_socket_path = /var/run/dovecot/auth-master

# Enabling Sieve plugin for server-side mail filtering
mail_plugins = sieve quota
}


## Plugin settings
plugin {
quota = dict:user::file:/var/vmail/%d/%n/.quotausage
# Because the mail quota is called in the user query
# the maildir quota does not need to be set.
# You do not need: quota = maildir

sieve=/var/vmail/%d/%n/.sieve
}


## Authentication processes

# Executable location
#auth_executable = /usr/lib/dovecot/dovecot-auth
auth default {
mechanisms = plain login

# SQL database <doc/wiki/AuthDatabase.SQL.txt>
passdb sql {
# Path for SQL configuration file
args = /etc/dovecot/dovecot-sql.conf
}

# new quota support:
userdb prefetch {
}

userdb sql {
args = /etc/dovecot/dovecot-sql.conf
}


## dovecot-lda specific settings
##
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail # User running Dovecot LDA
#group = vmail # Or alternatively mode 0660 + LDA user in this group
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}

}

mail_location = maildir:/var/vmail/%d/%n/Maildir

mail_uid = 5000
mail_gid = 5000
Reply With Quote
  #16  
Old 7th March 2012, 15:13
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,213 Times in 4,088 Posts
Default

Thats ok. May you please pos the ls -la output of a mialdir, like:

ls -la /var/vmail/domain.tld/user/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 7th March 2012, 15:17
drapsag drapsag is offline
Junior Member
 
Join Date: Apr 2011
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

total 24
drwxr-xr-x 3 vmail vmail 4096 Mar 7 07:58 .
drwxr-xr-x 10 vmail vmail 4096 Apr 26 2011 ..
drwx------ 9 vmail vmail 4096 Mar 7 08:03 Maildir
-rw------- 1 vmail vmail 52 Mar 7 07:58 .quotausage
-rw-r--r-- 1 root root 48 Apr 26 2011 .sieve
-rw-r--r-- 1 vmail vmail 96 May 9 2011 .sieve.svbin
Reply With Quote
  #18  
Old 7th March 2012, 15:41
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,213 Times in 4,088 Posts
Default

Thats all ok, so its no problem with a long running statistics job.

Seems as if the php process is somehow dying when run as cronjob so that the lock file cant be removed. Do you get any errors in the ispconfig cron log file (in /var/log/ispconfig )
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #19  
Old 7th March 2012, 15:50
drapsag drapsag is offline
Junior Member
 
Join Date: Apr 2011
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just a couple of warnings:

PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 78
PHP Warning: mysql_errno() expects parameter 1 to be resource, boolean given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 63
PHP Warning: mysql_error() expects parameter 1 to be resource, boolean given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 64
PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 78
PHP Warning: mysql_errno() expects parameter 1 to be resource, boolean given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 63
PHP Warning: mysql_error() expects parameter 1 to be resource, boolean given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 64
PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 78
PHP Warning: mysql_errno() expects parameter 1 to be resource, boolean given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 63
PHP Warning: mysql_error() expects parameter 1 to be resource, boolean given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 64

I do have this over and over again in cron.log:

repquota: Cannot open quotafile //aquota.group: No such file or directory
repquota: Cannot open quotafile //aquota.user: No such file or directory

Not sure if that's related.

Last edited by drapsag; 7th March 2012 at 15:54.
Reply With Quote
  #20  
Old 7th March 2012, 15:55
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,213 Times in 4,088 Posts
 
Default

I'am a bit astonished about the line numbers in the error messages as they do not match with the line numbers of the file from 3.0.4.3. May you please post line 63 from the file /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.