←  Crystal Trader Tech Support

Crystal Scripts Support Forum

»

Cron problem

SicKk's Photo SicKk 20 Oct 2011

hi there,

to get started with the system :

Linux kernel 64-bit 2.7
Ubuntu 8.04 LTS
PHP Version 5.2.4-2ubuntu5.14
Zend Engine v2.2.0, Copyright © 1998-2007 Zend Technologies
with the ionCube PHP Loader v4.0.4, Copyright © 2002-2010, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright © 1998-2009, by Zend Technologies

i can't get the cron to start. every cron on the server is working except the one of the Crystal Trader cron with the line :

* * * * * cd /full_path/to/your/domain/root/directory/crtr/bin && ./cron.sh 1>/dev/null 2>/dev/null

all the parts are complited with the domain preferences and still the cron isn't working.

if you got some ideas how I could get the cron runnung I would appreaciat it.

Regards

SicKk
Quote

Support's Photo Support 20 Oct 2011

Hello
It'll be better and faster if you contact me icq 412826686

What you need to check in first:

1. Go to System - Info and check that detected OS and OS in 'Config system info' block are similar. You have linux 64 bit. Another number (for example 2.5 or 2.7) is not a linux kernel version, it is a glibc version. If you don't know what glibc version you have just run ldd --version (ssh command). If you have wrong 'Config system info' settings - correct it and run update (System - Update - Update current version files).
2. Go to Settings - Main settings - Database. First field 'MySQL host/socket' must contain path to MySQL socket (sometimes you can see 'localhost' in that field and it is the reason of cron error). If you see 'localhost' of 'false' in that field - corrent it. Click 'search' button on the right or ask your hosting administrator about MySQL socket path. Specify ans save that path.
3. Go to System - Logs. Specify cron log in the form in the upper-left corner. See it or show me it, if it contains some errors/warnings.
4. Run cd /full_path/to/your/domain/root/directory/crtr/bin then press Enter ./cron.sh then press Enter (start your cron manually). See output or show me output.
5. Check what user you run cron. If it is root - add cron from user which own this domain. Don't add cron from root anyway.

Any of these points may be the reason of cron error.
Check it, correct it and after 2-3 minutes you'll see that cron is working.
If not - contact me icq, plz
Quote

SicKk's Photo SicKk 25 Nov 2011

o.k. I've done everything what you've written, but the cron just won't work.
this is the log of thw manually started cron.sh
18:07:39 25-Nov-2011 after while, i == 0 (line: 2681) (last error: Success)
18:07:39 25-Nov-2011 piTradersGetTop, *piTopTradersNum = 0 (line: 2727) (last error: No such file or directory)
18:07:39 25-Nov-2011 piTradersGetTop failed or no traders (line: 1354)
18:39:56 25-Nov-2011 after while, i == 0 (line: 2681) (last error: Success)
18:39:56 25-Nov-2011 piTradersGetTop, *piTopTradersNum = 0 (line: 2727) (last error: No such file or directory)
18:39:56 25-Nov-2011 piTradersGetTop failed or no traders (line: 1354)

I'll just hit you up later on ICQ m8.

cheers
Quote

Support's Photo Support 25 Nov 2011

Contact me (ICQ better) and show me the admin area, plz
Quote

SicKk's Photo SicKk 25 Nov 2011

thank you for your help !
Quote

Support's Photo Support 26 Nov 2011

You're welcome
Quote