Getting Started – Ubuntu
6 Troubleshooting
No web access, “zero sized reply”
(scripts die with no output)
Verify the existence of the log file directory. The default is
/home/sts/current/logs/
Check that the log files are rotated correctly. If they reach 2 GB, applications will stop
working.
Check that the log level is not set too high, i.e. no more than 2 or 3 for normal operation.
Check that the user running the web server has permissions for the log files.
HTML web pages are fast, but web
access is very slow for PHP scripts
This may be due to MySQL doing a DNS lookup of the IP address doing the database
connection:
• Add entries to
/etc/hosts
• Configure DNS correctly and add forward and reverse entries, making sure the
firewall does not block DNS.
• Run MySQL with the
--skip-name-resolve
option.
• Verify DNS with
host -t ptr
IP address, then host “name returned from
previous call”
Loading the live view page takes a
long time and logs contain entries
curl_call:
Operation
too slow
. General problems
accessing devices.
Restart the ST server.
Check that there are not multiple instances of the ST server running with the same
configuration.
If the problem does not apply to all devices, check the individual camera connections.
No access to admin GUI
Check the web server configuration.
Check the SSL configuration for HTTPS. The admin GUI is only available via HTTPS.
Database problems
Database is “not working”
Run
current/db/update_db.php
to see if you have access.
If you have database replicas, ensure that the master configuration is correct on all nodes, i.e.
that the host is not
127.0.0.1
or
localhost
.
Try e.g.
current/db/update_db.php --dostuff --sql “SELECT * from
stservers”
Web portal problems
Changes in System configuration
have no effect
Verify the symbolic links to
config/config_main.php
from
config_main.php
in
all other directories. Links may be incorrect if you have moved or copied the directories.
Check the write permissions to the files.
Web “does not work”
Verify the existence of the log file directory. The default is
/home/sts/current/logs/
Check that the log files are rotated correctly. If they reach 2 GB, applications will stop
working.
Check that the user running the web server has permissions for the log files.
When using ports below 1024, note that only root has access to these ports.
Run
https://<your-host-name>/admin/test.php
for further diagnostic
information.
The portal looks strange — PHP
code is written out instead of
being interpreted
Ensure that
short_open_tag
is enabled in the PHP configuration file
php.ini
. To find
php.ini
, use
php -i | grep ini
In Firefox, only 3 live streams can
be viewed, the 4th does not show
up
1. In the browser, enter (as a URL)
about:config
2. Enter
persistent
in the
Filter
field.
3. Double-click and edit (increase) the values for:
network.http.max-persistent-connections-per-proxy
network.http.max-persistent-connections-per-server
22