Lost WEB Interface

Forum for questions and support relating to 1.33.x development only.
Locked
puggyjay
Posts: 10
Joined: Thu Jan 24, 2019 1:26 am

Lost WEB Interface

Post by puggyjay »

I just noticed after last update, I think it was yesterday, WEB interface isn't working. WEB server is fine other things are working off it. Status says Zoneminder is running. Don't anything in logs.

● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-02-14 15:33:15 EST; 6min ago
Process: 1301 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
Main PID: 1317 (zmdc.pl)
Tasks: 21 (limit: 4915)
CGroup: /system.slice/zoneminder.service
├─1317 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
├─1461 /usr/bin/zmc -m 1
├─1472 /usr/bin/zmc -m 2
├─1483 /usr/bin/zma -m 1
├─1490 /usr/bin/zmc -m 3
├─1507 /usr/bin/zma -m 2
├─1514 /usr/bin/zmc -m 4
├─1528 /usr/bin/zma -m 3
├─1530 /usr/bin/zmc -m 5
├─1534 /usr/bin/zma -m 4
├─1541 /usr/bin/zmc -m 6
├─1550 /usr/bin/zma -m 5
├─1552 /usr/bin/zmc -m 7
├─1555 /usr/bin/zma -m 6
├─1563 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=164 --daemon
├─1567 /usr/bin/zma -m 7
├─1569 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=165 --daemon
├─1576 /usr/bin/perl -wT /usr/bin/zmwatch.pl
├─1582 /usr/bin/perl -w /usr/bin/zmupdate.pl -c
├─1603 /usr/bin/perl -w /usr/bin/zmtelemetry.pl
└─1654 /usr/bin/perl -wT /usr/bin/zmstats.pl

Feb 14 15:33:15 server sudo[1578]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl st
Feb 14 15:33:15 server sudo[1578]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Feb 14 15:33:15 server sudo[1578]: pam_unix(sudo:session): session closed for user www-data
Feb 14 15:33:15 server sudo[1584]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl st
Feb 14 15:33:15 server sudo[1584]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Feb 14 15:33:15 server sudo[1584]: pam_unix(sudo:session): session closed for user www-data
Feb 14 15:33:15 server sudo[1623]: root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl st
Feb 14 15:33:15 server sudo[1623]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Feb 14 15:33:15 server sudo[1623]: pam_unix(sudo:session): session closed for user www-data
Feb 14 15:33:15 server systemd[1]: Started ZoneMinder CCTV recording and surveillance system.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Lost WEB Interface

Post by rockedge »

upgraded from which version? There are major differences on how the web console renders CSS from v 1.30.4 to 1.33.1
puggyjay
Posts: 10
Joined: Thu Jan 24, 2019 1:26 am

Re: Lost WEB Interface

Post by puggyjay »

I had 1.33.3 if I remember, 1.33 something at least. I noticed it in the Update Manager it was in the list of updates and I just let it install, I think that was Monday. I can see ZM is running and recording data but when you go to the WEB interface it never loads the page just a blank page.

The ZM log files in var/log/zm are empty. If I do a count on the database log table records are going in it. MPG files are being created to.

From Apache log when you try to connect.
"GET /zm/ HTTP/1.1" 200 203 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0"

Running on Mint
jay@server:~$ cat /proc/version
Linux version 4.15.0-45-generic (buildd@lgw01-amd64-031) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019
jay@server:~$ cat /etc/*release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19
DISTRIB_CODENAME=tara
DISTRIB_DESCRIPTION="Linux Mint 19 Tara"
NAME="Linux Mint"
VERSION="19 (Tara)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19"
VERSION_ID="19"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide. ... en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tara
UBUNTU_CODENAME=bionic
cat: /etc/upstream-release: Is a directory
puggyjay
Posts: 10
Joined: Thu Jan 24, 2019 1:26 am

Re: Lost WEB Interface

Post by puggyjay »

Not sure if this means anything but this shows up in the Firefox Browser Console when I try to connect to the ZM WB page

[Exception... "Favicon at "http://10.0.0.231/favicon.ico" failed to load: Not Found." nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource:///modules/FaviconLoader.jsm :: onStopRequest :: line 186" data: no]

onStopRequest resource:///modules/FaviconLoader.jsm:186 next self-hosted:1212
next self-hosted:1212

Also running version check works fine just can’t bring up the console
http://10.0.0.231/zm/api/host/getVersion.json
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Lost WEB Interface

Post by rockedge »

have you enabled the ZM conf file for Apache? Is there a /usr/share/zoneminder/www/cache symlink or Alias for it?
puggyjay
Posts: 10
Joined: Thu Jan 24, 2019 1:26 am

Re: Lost WEB Interface

Post by puggyjay »

This was working fine until the update happened Monday or at least Monday is when I ran Update Manager. I was running version 1.33. I did not update from something before 1.33. I re-ran the steps for Apache setup just to be sure. Like I said Zoneminder seems to be running fine just no WEB interface.

zm.conf is enabled
jay@server:/usr/share$ sudo a2enconf zoneminder
Conf zoneminder already enabled

This is the www directory I don't see a cache
jay@server:/usr/share/zoneminder/www$ ls -l
total 124
drwxr-xr-x 2 www-data www-data 4096 Feb 13 19:49 ajax
drwxr-xr-x 4 www-data www-data 4096 Feb 13 19:49 api
-rw-r--r-- 1 www-data www-data 65492 Sep 18 21:37 cambozola.jar
drwxr-xr-x 2 www-data www-data 4096 Feb 13 19:49 css
drwxr-xr-x 2 www-data www-data 4096 Feb 13 19:49 fonts
drwxr-xr-x 2 www-data www-data 4096 Feb 13 19:49 graphics
drwxr-xr-x 4 www-data www-data 4096 Feb 13 19:49 includes
-rw-r--r-- 1 www-data www-data 8294 Feb 12 17:34 index.php
drwxr-xr-x 2 www-data www-data 4096 Feb 13 19:49 js
drwxr-xr-x 2 www-data www-data 4096 Feb 13 19:49 lang
-rw-r--r-- 1 www-data www-data 29 Feb 12 17:34 robots.txt
drwxr-xr-x 3 www-data www-data 4096 Sep 18 21:15 skins
drwxr-xr-x 3 www-data www-data 4096 Sep 18 21:15 tools
drwxr-xr-x 2 www-data www-data 4096 Feb 13 19:49 views
puggyjay
Posts: 10
Joined: Thu Jan 24, 2019 1:26 am

Re: Lost WEB Interface

Post by puggyjay »

Figured it out working again. The php.ini file had no time zone entry. Not sure how that changed.

/etc/php/7.2/apache2/php.ini

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York
Locked