Hi Dennis,
I tried what you suggested. But...
php.ini's
hostname:/etc# find . -name php.ini
./php5/apache2/php.ini
./php5/cli/php.ini
hostname:/etc# head php5/apache2/php.ini
[PHP]
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
hostname:/etc# head php5/cli/php.ini
[PHP]
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
Apache was restarted. Now when i try to execute task.php on command line this happens:
hostname:/etc# /usr/bin/php /var/www/testrail/task.php
Another task instance is still running.
hostname:/etc#
and in syslog:
hostname:/etc# tail -f /var/log/syslog
…
Feb 1 17:44:01 hostname /USR/SBIN/CRON[9975]: (www-data) CMD (/usr/bin/php /var/www/testrail/task.php)
Feb 1 17:44:01 hostname /USR/SBIN/CRON[9974]: (CRON) error (grandchild #9975 failed with exit status 1)
...
Feb 1 17:45:01 hostname /USR/SBIN/CRON[9988]: (www-data) CMD (/usr/bin/php /var/www/testrail/task.php)
Feb 1 17:45:01 hostname /USR/SBIN/CRON[9987]: (CRON) error (grandchild #9988 failed with exit status 1)
...
Feb 1 17:46:01 hostname /USR/SBIN/CRON[10014]: (www-data) CMD (/usr/bin/php /var/www/testrail/task.php)
Feb 1 17:46:01 hostname /USR/SBIN/CRON[10013]: (CRON) error (grandchild #10014 failed with exit status 1)
And now in testrail under the admin tab every minute:
[ERROR] 2012-02-01 17:52:01 [38ms]: [ModelException] Another task instance is still running.
at ex::raise (ex.php:23)
at ex::raise (model.php:67)
at Model->_raiset (task.php:55)
at Task_model->_trx_acquire_lock (callback.php:58)
at callback::runv (database.php:1002)
at Database_library->_transaction_run (database.php:1093)
at Database_library->transaction_run (task.php:27)
at Task_model->acquire_lock (tasks.php:81)
at Tasks_controller->_acquire_lock (tasks.php:110)
at Tasks_controller->index (controller.php:76)
at Controller->_invoke_cli (controller.php:64)
at Controller->_invoke (gizmo.php:108)
at require_once (index.php:106)
at require_once (task.php:44)
[ERROR] 2012-02-01 17:51:01 [38ms]: [ModelException] Another task instance is still running.
at ex::raise (ex.php:23)
at ex::raise (model.php:67)
at Model->_raiset (task.php:55)
at Task_model->_trx_acquire_lock (callback.php:58)
at callback::runv (database.php:1002)
at Database_library->_transaction_run (database.php:1093)
at Database_library->transaction_run (task.php:27)
at Task_model->acquire_lock (tasks.php:81)
at Tasks_controller->_acquire_lock (tasks.php:110)
at Tasks_controller->index (controller.php:76)
at Controller->_invoke_cli (controller.php:64)
at Controller->_invoke (gizmo.php:108)
at require_once (index.php:106)
at require_once (task.php:44)

Do you have additional suggestions?
Thanks,
S.
Update: The problem is solved now: we changed is_locked column in the MySQL DB to 0.
Thanks for your help!
Last edited by smann (2012-02-02 14:04:03)