Common installation errors:
| Error | Solution |
|---|---|
| "Connection refused" | PostgreSQL not running or wrong port |
| "Authentication failed" | Wrong database credentials |
| "Database does not exist" | Create database first: createdb tirreno |
| "Permission denied" | Grant permissions: GRANT ALL ON DATABASE tirreno TO tirreno_app |
| "PDO PostgreSQL driver" | Install: apt install php-pgsql |
| "Config folder permission" | chmod 755 config && chown www-data:www-data config |
| "Memory limit" | Set memory_limit = 128M in php.ini |
| Invalid hostname (TN8001) | The application was accessed using a hostname that doesn't match the configured allowed host(s). This is a security measure to prevent host header attacks. The user must access the application through the correct URL defined in the configuration. |
| Failed DB connect (TN8002) | The application cannot establish a connection to the PostgreSQL database. This could be caused by incorrect database credentials, the database server being down, network issues, or misconfigured connection parameters in the config file. |
| Incomplete config (TN8003) | The application's configuration file (config/local/config.local.ini) is missing required settings or environment variable overrides are not properly set. The application cannot start without complete configuration. |
PHP version check:
tirreno requires PHP 8.0–8.3. Verify your PHP version:
|
If using multiple PHP versions, ensure Apache/Nginx uses the correct one:
|
Note: The API uses form-urlencoded format, not JSON.
Events not appearing in tirreno:
/sensor/ (with trailing slash)
|
Check response codes:
| Code | Meaning |
|---|---|
| 200 | Success |
| 401 | Invalid or missing API key |
| 400 | Missing required parameters |
| 429 | Rate limited |
| 500 | Server error |
The Logbook shows all incoming API requests:
What to look for:
Manual cron:
php /home/user/tirreno/index.php /cron
Common cron issues:
| Issue | Solution |
|---|---|
| Jobs not running | Check system cron is enabled: systemctl enable cron |
| "No jobs to run" | Normal if no jobs scheduled for current minute |
| Permission denied | Ensure www-data can read config files |
| Database errors | Check config/local/config.local.ini is readable |
________________________________________________________________________________