I read in some other post that restricted access to the default controller could lead to similar behavior. Try adding the config file as second parameter to yiic.
OK I’ve found out the cause of the problem. In my SiteController I have the following:
public function actionIndex()
{
$this->redirect(array('/admin'));
}
If I change this to:
public function actionIndex()
{
$this->render('index');
}
The yiic shell now works fine. But I prefer to redirect the users to index.php?r=admin in the default action. How can this be achieved without causing the yiic shell to break?