Current time: 05-17-2024, 10:31 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[HowTO] add cronjob on Debian Lenny Improved
Author Message
xtc007 Offline
Junior Member
*

Posts: 26
Joined: Dec 2009
Reputation: 0
Post: #11
RE: [HowTO] add cronjob on Debian Lenny Improved
have you build the sql table with the sql file provided, a field have been added from the older version,

you must have the true_domain_id field, else an error will occure

i suppose this are a wrong line typed too fast...

server: localhost:

the second : aren't supposed to be here...

xtc007
RTMedia.ca

(01-03-2010 06:24 AM)MasterTH Wrote:  Array
File: /var/www/ispcp/gui/client/cronjobs_overview.php (Line: 63) Function: exec_query
File: /var/www/ispcp/gui/client/cronjobs_overview.php (Line: 123) Function: gen_cron_jobs


I get this email from the ispcp daemon.

The databasesettings are correct.
server: localhost:
Port: 3306
Database: ispcp
table : hcrondtab

as connectionuser i used the root-user but this shouldnt be the problem
(This post was last modified: 01-03-2010 06:41 AM by xtc007.)
01-03-2010 06:36 AM
Find all posts by this user
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #12
RE: [HowTO] add cronjob on Debian Lenny Improved
yes typed too fast, its just "localhost"

and yes i'm imported the *.sql-file which comes in the package
in the table is a file called true_domain_id
01-03-2010 09:23 AM
Find all posts by this user
xtc007 Offline
Junior Member
*

Posts: 26
Joined: Dec 2009
Reputation: 0
Post: #13
RE: [HowTO] add cronjob on Debian Lenny Improved
use the fqnl of the machine, like web.server.com or the ip of the machine, i don't have tried with localhost in field

xtc007
RTMedia.ca
01-03-2010 09:39 AM
Find all posts by this user
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #14
RE: [HowTO] add cronjob on Debian Lenny Improved
same error occured
01-03-2010 11:29 PM
Find all posts by this user
xtc007 Offline
Junior Member
*

Posts: 26
Joined: Dec 2009
Reputation: 0
Post: #15
RE: [HowTO] add cronjob on Debian Lenny Improved
are you able to connect in mysql command line with your user and password, or with phpmyadmin? i have reproduce your problem by inserting a bad password in my /etc/hcrondrc file

# host - address (IP or hostname) of server running mysql
host = put your fully qualified name

# port - the port mysql listens to
port = 3306

# user - username
user = username

# pass - password
pass = yourpassword

# dbnm - database name
dbnm = ispcp

# table - table name
table = hcrondtab



you can try that line too
# allow_root (bool) - allow running cmd with uid=0 or gid=0
allow_root = no

try to put yes on this line

xtc007
RTMedia.ca
(This post was last modified: 01-04-2010 08:58 AM by xtc007.)
01-04-2010 08:47 AM
Find all posts by this user
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #16
RE: [HowTO] add cronjob on Debian Lenny Improved
this is my config file:
Code:
# sample hcrond config file

# comments begin with #, whole line is ignored
# empty lines are ignored
# so is all whitespace other than newline
# one 'option = "value"' per line, "s can be omitted unless empty

# the values used here are the defaults

# bool values are expressed (case insensitively) with any of
# 1, 0, true, false, yes, no

# command line options have preference over these
# there are other command line options:
#  configfile - configfile filename
#  help - show help
#  version - show version

# XXX Please note that many of the options are not yet implemented, see --help

# pidfile - hcrond pidfile filename
pidfile = /var/run/hcrond.pid

# host - address (IP or hostname) of server running mysql
host = 127.0.0.1

# port - the port mysql listens to
port = 3306

# user - username
user = root

# pass - password
pass = password

# dbnm - database name
dbnm = ispcp

# table - table name
table = hcrondtab

# allow_root (bool) - allow running cmd with uid=0 or gid=0
allow_root = yes

# allow_uidgid (bool) - allow running cmd with different uid && gid
allow_uidgid = yes

# force_uid - run everything with this uid or username
force_uid = ""

# force_gid - run everything with this gid or groupname
force_gid = ""

# force_hostname - use this hostname for comparison with `machine' field
force_hostname = ""

# ignore_machine (bool) - ignore the `machine' field
ignore_machine = false

# allow_notnice (bool) - allow negative nice values
allow_notnice = false

# force_shell - always use this shell
force_shell = ""

# force_shell_die (bool) - die if forced shell different from `sh'
force_shell_die = true

# reload - reload
reload = 30

# debug (bool) - debug mode (no detach and more verbosity)
debug = false

# max_jobs - keep only up to $max_jobs jobs running at the same time (0 = oo)
max_jobs = 5

PMA & mysql over shell works fine...
When i enable the debug mode in the config file i could see that the connection to the mysql has been made.
01-04-2010 03:14 PM
Find all posts by this user
xtc007 Offline
Junior Member
*

Posts: 26
Joined: Dec 2009
Reputation: 0
Post: #17
RE: [HowTO] add cronjob on Debian Lenny Improved
let me sleep on it, i will think what's wrong with your configuration...

all gui files are copied at good place?

you have set permission on them

the current cronjob are a fresh install or you have tried to install before on this server?

xtc007
RTMedia.ca
01-04-2010 03:20 PM
Find all posts by this user
koko92_national Offline
Junior Member
*

Posts: 70
Joined: Jul 2008
Reputation: 0
Post: #18
RE: [HowTO] add cronjob on Debian Lenny Improved
I think that host shouldn't be 127.0.0.1 but it should be host.domain.com It works fine for me.
(This post was last modified: 01-04-2010 08:54 PM by koko92_national.)
01-04-2010 08:53 PM
Find all posts by this user
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #19
RE: [HowTO] add cronjob on Debian Lenny Improved
i'll try it with domain.tld and post back.

its a fresh installation, all files are where they should be (i followed the readme)
01-05-2010 03:14 PM
Find all posts by this user
koko92_national Offline
Junior Member
*

Posts: 70
Joined: Jul 2008
Reputation: 0
Post: #20
RE: [HowTO] add cronjob on Debian Lenny Improved
After you edit the config file do you restart the service? Its a silly question but i have to ask.
01-05-2010 03:19 PM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)