'300 Login Required' error via cron job?

Submitted by TinWhisker on 2013-06-27


I have configured a Cron job to call the job.php every minute, which lists as Started/Finished as expected.

However, I get an error thrown:

Unhandled System_Api_Error: 300 Login Required in /var/www/webissues/system/api/principal.inc.php on line 117

after each call.

The most frequent (every minute) was from /server/actions.inc.php 'listProjects()'
Second, less frequent (every 15 minutes) was from 'listUsers()'

The system itself works, web and Windows client.

I've tried version 1.0.5 and 1.1-beta1 - same issue.

It makes no difference disabling the mail settings - which does not work on either standard php mailer or configured - despite 'Test Connection' reporting successful.

I even 777'd recusively on the whole webissues folder for fun - no difference.

Any pointers?


PHP version:	5.3.3-7+squeeze15 (apache2handler)
Web server:	Apache/2.2.16 (Debian)
Operating system:	Linux 2.6.32-5-686
Host name:	WikiBug

Database server:	MySQL 5.1.66-0+squeeze1
Host name:	localhost
Database name:	webissues
Table prefix:	webissues

Ok, scrap that - traced it to a stuck client process on another PC.

What a doughnut!

The email may be another issue, but i'm getting test ones. I'll open a new thread if I get stuck on that.