#1  
Old 17th April 2011, 05:58
Nolan Nolan is offline
Member
 
Join Date: Nov 2010
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Default Cron issue in Debian 6

Hi, I've got a cron job to execute every minute, and It's not working. The web files were transferred from a different server with permissions.
Here's the ISPConfig Cron - Log:
Code:
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
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
ERROR: /var/www/clients/client1 is writable by group or others!mkdir: cannot create directory `/var/www/clients/client1/web2/var': File exists
mkdir: cannot create directory `/var/www/clients/client1/web2/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client1/web2/var/run/mysqld': File exists
ERROR: /var/www/clients/client1 is writable by group or others!ERROR: /var/www/clients/client1 is writable by group or others!invalid shell, /var/www/clients/client1/web2/bin/bash does not exist
usermod: no changes
PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
ERROR: /var/www/clients/client1 is writable by group or others!mkdir: cannot create directory `/var/www/clients/client1/web2/var': File exists
mkdir: cannot create directory `/var/www/clients/client1/web2/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client1/web2/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client1/web2/var/run/mysqld/mysqld.sock': File exists
ERROR: /var/www/clients/client1 is writable by group or others!ERROR: /var/www/clients/client1 is writable by group or others!invalid shell, /var/www/clients/client1/web2/bin/bash does not exist
usermod: no changes
PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
ERROR: /var/www/clients/client1 is writable by group or others!mkdir: cannot create directory `/var/www/clients/client1/web2/var': File exists
mkdir: cannot create directory `/var/www/clients/client1/web2/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client1/web2/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client1/web2/var/run/mysqld/mysqld.sock': File exists
ERROR: /var/www/clients/client1 is writable by group or others!ERROR: /var/www/clients/client1 is writable by group or others!invalid shell, /var/www/clients/client1/web2/bin/bash does not exist
usermod: no changes
PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
repquota: Cannot find any quota file to work on.
Any suggestions?

-Nolan

Last edited by Nolan; 17th April 2011 at 06:48.
Reply With Quote
Sponsored Links
  #2  
Old 18th April 2011, 08:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Quote:
Originally Posted by Nolan View Post
The web files were transferred from a different server with permissions.
Do the same users exist on this server as well?

Does MySQL run? What's the output of
Code:
netstat -tap | grep mysql
?

Is this a physical machine or a virtual server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th April 2011, 15:40
Nolan Nolan is offline
Member
 
Join Date: Nov 2010
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Default

Yes, the users are the same, and MySQL is running
It's a xen VPS.

The cron job works now, removing the one that was there, then adding again made it work, those MySQL errors are now gone.

However, the quota error is still there, and I'd like to enable that.
Reply With Quote
  #4  
Old 18th April 2011, 15:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,413
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
Default

Please see perfect setup guide for ispconfig 3 on debian 6 on how to enable quota on a debian 6 server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 18th April 2011, 16:13
Nolan Nolan is offline
Member
 
Join Date: Nov 2010
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Default

I already had something similiar to what was in the /etc/fstab file in the guide.

I'm not sure what that UUID stuff in the example is
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=92bceda2-5ae4-4e3a-8748-b14da48fb297 /               ext3    errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0       1
# swap was on /dev/sda5 during installation
UUID=e24b3e9e-095c-4b49-af27-6363a4b7d094 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
Here is my /etc/fstab/
Code:
/dev/xvda1       /             ext3     errors=remount-ro,usrjquota=aquota.user,
grpjquota=aquota.group,jqfmt=vfsv0       0 1
/dev/xvda2       swap          swap     defaults       0 0
proc             /proc         proc     defaults       0 0

Last edited by Nolan; 18th April 2011 at 16:16.
Reply With Quote
  #6  
Old 18th April 2011, 16:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,413
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
Default

Your fstab looks ok. Now proceed with the next steps from the tutorial to activate quota.
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 18:20
Please help me whit bind9 astra2000 Server Operation 12 10th October 2007 02:43
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
iptables issue with xen perfect setup - debian alexnz HOWTO-Related Questions 3 25th November 2006 13:49
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 12:27.


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