zoneminder 1.36 web interface blank
zoneminder 1.36 web interface blank
Hi,
With a fresh ubuntu 22.04 + zoneminder 1.36.16 everything works.
But
I have a server (upgraded from beta 22.04) that I cannot re-install, and it had a messed up zoneminder install on it.
I did an apt --purge mysql, apache2 zoneminder...(the lot, hopefully)
And then reinstalled everything according to https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x
When I now go to http://localhost/zm I just get a totally blank page.
I have compared (all??) the config files against the 'fresh install' PC, but still just a blank page.
Please can I have some ideas on how to fix this.
Thanks in advance,
Zoltan
With a fresh ubuntu 22.04 + zoneminder 1.36.16 everything works.
But
I have a server (upgraded from beta 22.04) that I cannot re-install, and it had a messed up zoneminder install on it.
I did an apt --purge mysql, apache2 zoneminder...(the lot, hopefully)
And then reinstalled everything according to https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x
When I now go to http://localhost/zm I just get a totally blank page.
I have compared (all??) the config files against the 'fresh install' PC, but still just a blank page.
Please can I have some ideas on how to fix this.
Thanks in advance,
Zoltan
Re: zoneminder 1.36 web interface blank
Hi Magic919
I get the default apache page - which I edited to make certain it was :the correct" default page (I reckon I'm OCD )
Looking in the logs below (thanks for the hint), I see there is an unset constant - I've had a look in the scripts, but there must be a chain of events before logger.php is called, that set up these constants.
I'll dig around further, but if you have some more pointers as to why this install went awry, please fire away.
Thanks for this assistant.
Zoltan
Then in /var/log/apache2/access.log
127.0.0.1 - - [29/May/2022:07:51:13 +0200] "GET / HTTP/1.1" 200 3478 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
127.0.0.1 - - [29/May/2022:07:51:13 +0200] "GET /icons/ubuntu-logo.png HTTP/1.1" 200 3607 "http://gs00/" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
127.0.0.1 - - [29/May/2022:07:51:13 +0200] "GET /favicon.ico HTTP/1.1" 404 482 "http://gs00/" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
127.0.0.1 - - [29/May/2022:07:56:41 +0200] "GET /zm/ HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
127.0.0.1 - - [29/May/2022:07:56:41 +0200] "GET /favicon.ico HTTP/1.1" 404 488 "http://localhost/zm/" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
and in /var/log/apache2/error.log
Sun May 29 00:00:02.434167 2022] [mpm_prefork:notice] [pid 3274] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Sun May 29 00:00:02.434186 2022] [core:notice] [pid 3274] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 29 07:56:41.456483 2022] [php:error] [pid 3354296] [client 127.0.0.1:50588] PHP Fatal error: Uncaught Error: Undefined constant "ZM\\ZM_LOG_LEVEL_DATABASE" in /usr/share/zoneminder/www/includes/logger.php:102\nStack trace:\n#0 /usr/share/zoneminder/www/includes/logger.php(197): ZM\\Logger->initialise()\n#1 /usr/share/zoneminder/www/includes/config.php(142): ZM\\Logger::fetch()\n#2 /usr/share/zoneminder/www/index.php(46): require_once('...')\n#3 {main}\n thrown in /usr/share/zoneminder/www/includes/logger.php on line 102
I get the default apache page - which I edited to make certain it was :the correct" default page (I reckon I'm OCD )
Looking in the logs below (thanks for the hint), I see there is an unset constant - I've had a look in the scripts, but there must be a chain of events before logger.php is called, that set up these constants.
I'll dig around further, but if you have some more pointers as to why this install went awry, please fire away.
Thanks for this assistant.
Zoltan
Then in /var/log/apache2/access.log
127.0.0.1 - - [29/May/2022:07:51:13 +0200] "GET / HTTP/1.1" 200 3478 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
127.0.0.1 - - [29/May/2022:07:51:13 +0200] "GET /icons/ubuntu-logo.png HTTP/1.1" 200 3607 "http://gs00/" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
127.0.0.1 - - [29/May/2022:07:51:13 +0200] "GET /favicon.ico HTTP/1.1" 404 482 "http://gs00/" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
127.0.0.1 - - [29/May/2022:07:56:41 +0200] "GET /zm/ HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
127.0.0.1 - - [29/May/2022:07:56:41 +0200] "GET /favicon.ico HTTP/1.1" 404 488 "http://localhost/zm/" "Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0"
and in /var/log/apache2/error.log
Sun May 29 00:00:02.434167 2022] [mpm_prefork:notice] [pid 3274] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Sun May 29 00:00:02.434186 2022] [core:notice] [pid 3274] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 29 07:56:41.456483 2022] [php:error] [pid 3354296] [client 127.0.0.1:50588] PHP Fatal error: Uncaught Error: Undefined constant "ZM\\ZM_LOG_LEVEL_DATABASE" in /usr/share/zoneminder/www/includes/logger.php:102\nStack trace:\n#0 /usr/share/zoneminder/www/includes/logger.php(197): ZM\\Logger->initialise()\n#1 /usr/share/zoneminder/www/includes/config.php(142): ZM\\Logger::fetch()\n#2 /usr/share/zoneminder/www/index.php(46): require_once('...')\n#3 {main}\n thrown in /usr/share/zoneminder/www/includes/logger.php on line 102
Re: zoneminder 1.36 web interface blank
It’s a bit tricky to unravel when it’s a bit messy and largely unexplained.
The Apache access logs show 404 and 500 errors. I’d suggest going through the Apache a2en* commands and making sure Apache has all the modules and that the ZM site is configured. The 404 suggests it doesn’t know about /zm to me. Good luck.
The Apache access logs show 404 and 500 errors. I’d suggest going through the Apache a2en* commands and making sure Apache has all the modules and that the ZM site is configured. The 404 suggests it doesn’t know about /zm to me. Good luck.
-
Re: zoneminder 1.36 web interface blank
Problem summary: PC1 is fresh ubuntu 22.04 with fresh zoneminder 1.36.15 working
PC2 is ubuntu 22.04 beta with ZFS, mail, and also zoneminder 1.36.15 NOT working.
I do not want to re-install everything on this server from scratch, but I must get ZM working
I have just run a 'find / -name *zm* on both PCs and they look similar enough that nothing should be missing.
I have done a systemctl list-unit-files | grep disabled and seems similar enough on both PCs
I have done a systemctl list-unit-files | grep enable | grep {zm zonemin, apache, maria....} and seems similar enough.
Zoneminder IS running on both PCs
On PC2, going to http://localhost/zm gives me a blank page.
On PC1 everything is working.
So: "and that the ZM site is configured."
So where should this config be?
It's not in /etc/zm/.......
Is there a config script I can find somewhere, check inside and rerun manually?
Where does apache know to look when it gets a URL/zm folder?
Is there a man-page for zm 1.36.15 that lists (all) the e2enmod requirements?
TIA,
Zoltan
PC2 is ubuntu 22.04 beta with ZFS, mail, and also zoneminder 1.36.15 NOT working.
I do not want to re-install everything on this server from scratch, but I must get ZM working
I have just run a 'find / -name *zm* on both PCs and they look similar enough that nothing should be missing.
I have done a systemctl list-unit-files | grep disabled and seems similar enough on both PCs
I have done a systemctl list-unit-files | grep enable | grep {zm zonemin, apache, maria....} and seems similar enough.
Zoneminder IS running on both PCs
On PC2, going to http://localhost/zm gives me a blank page.
On PC1 everything is working.
So: "and that the ZM site is configured."
So where should this config be?
It's not in /etc/zm/.......
Is there a config script I can find somewhere, check inside and rerun manually?
Where does apache know to look when it gets a URL/zm folder?
Is there a man-page for zm 1.36.15 that lists (all) the e2enmod requirements?
TIA,
Zoltan
Re: zoneminder 1.36 web interface blank
Your link above has all the a2en* commands in the script.
The a2enconf command does the website. It’ll be part of the conf-available under /etc/apache2 and gets symlinked when you run the a2enconf to be in conf-enabled.
Hopefully you will get some clues once you have site.
You can progress with checking the DB and making sure the processes are running if needs be.
The a2enconf command does the website. It’ll be part of the conf-available under /etc/apache2 and gets symlinked when you run the a2enconf to be in conf-enabled.
Hopefully you will get some clues once you have site.
You can progress with checking the DB and making sure the processes are running if needs be.
-
Re: zoneminder 1.36 web interface blank
So I noticed javascript-common not enabled on this PC, but was on the zm-working PC.
a2enconf javascript-common ; systemctl reload apache2 (still blank localhost/zm)
Then mods folders:
ssl was not enabled so: a2enmod ssl ; systemctl restart apache2 (still blank localhost/zm)
sites-available and enabled identical on both PCs.........[bummer]
Not sure how to "check the DB", but will start by comparing folders on both PCs
a2enconf javascript-common ; systemctl reload apache2 (still blank localhost/zm)
Then mods folders:
ssl was not enabled so: a2enmod ssl ; systemctl restart apache2 (still blank localhost/zm)
sites-available and enabled identical on both PCs.........[bummer]
Not sure how to "check the DB", but will start by comparing folders on both PCs
Re: zoneminder 1.36 web interface blank
I'm not clear on what you are seeing when you say the page is blank. Is it literally white and no source at all?
You can run a2query -s (then -c and -m) to check what's enabled.
Check out the content of the zoneminder.conf to see what Apache is getting.
With ZM running or not and even DB problems you normally get something.
You can run a2query -s (then -c and -m) to check what's enabled.
Check out the content of the zoneminder.conf to see what Apache is getting.
With ZM running or not and even DB problems you normally get something.
-
Re: zoneminder 1.36 web interface blank
Sounds like perhaps the Config table has been lost.
run at a command prompt
sudo zmupdate.pl -f
run at a command prompt
sudo zmupdate.pl -f
Re: zoneminder 1.36 web interface blank
Hi, Thanks for the inputs.
When I put in http://localhost/zm, the 'blank' page I get is:
This page isn’t workinglocalhost is currently unable to handle this request.
HTTP ERROR 500
Above message when using google-chrome
Screen is totally blank when using firefox.
Running zmupdate.pl I get:
root@gs00:/home/geograph# zmupdate.pl -f
Freshening configuration in database
Use of uninitialized value $Config{"ZM_DYN_DB_VERSION"} in string lt at /usr/bin/zmupdate.pl line 1065.
Use of uninitialized value $Config{"ZM_DIR_IMAGES"} in string ne at /usr/bin/zmupdate.pl line 1073.
Migrating custom config values from Options -> Paths
to /etc/zm/conf.d/zmcustom.conf.
Please verify these values before starting ZoneMinder.
Use of uninitialized value $value in concatenation (.) or string at /usr/bin/zmupdate.pl line 1108.
Migratings passwords, if any...
Loading config from DB 0 entries
Saving config to DB 221 entries
root@gs00:/home/geograph# systemctl restart zoneminder
root@gs00:/home/geograph#
The contents of zmcustom.conf are:
# These values were autogenerated by zmupdate.pl
# You may edit these values. ZoneMinder will not overwrite them.
#
ZM_DIR_EVENTS=/var/cache/zoneminder/events
ZM_DIR_IMAGES=
ZM_PATH_ARP=/usr/sbin/arp
Hopefully the "uninitialised string" can guide us to the solution?
Thanks again,
Zoltan
When I put in http://localhost/zm, the 'blank' page I get is:
This page isn’t workinglocalhost is currently unable to handle this request.
HTTP ERROR 500
Above message when using google-chrome
Screen is totally blank when using firefox.
Running zmupdate.pl I get:
root@gs00:/home/geograph# zmupdate.pl -f
Freshening configuration in database
Use of uninitialized value $Config{"ZM_DYN_DB_VERSION"} in string lt at /usr/bin/zmupdate.pl line 1065.
Use of uninitialized value $Config{"ZM_DIR_IMAGES"} in string ne at /usr/bin/zmupdate.pl line 1073.
Migrating custom config values from Options -> Paths
to /etc/zm/conf.d/zmcustom.conf.
Please verify these values before starting ZoneMinder.
Use of uninitialized value $value in concatenation (.) or string at /usr/bin/zmupdate.pl line 1108.
Migratings passwords, if any...
Loading config from DB 0 entries
Saving config to DB 221 entries
root@gs00:/home/geograph# systemctl restart zoneminder
root@gs00:/home/geograph#
The contents of zmcustom.conf are:
# These values were autogenerated by zmupdate.pl
# You may edit these values. ZoneMinder will not overwrite them.
#
ZM_DIR_EVENTS=/var/cache/zoneminder/events
ZM_DIR_IMAGES=
ZM_PATH_ARP=/usr/sbin/arp
Hopefully the "uninitialised string" can guide us to the solution?
Thanks again,
Zoltan
-
- Posts: 1
- Joined: Tue Jul 09, 2024 5:03 am
Re: zoneminder 1.36 web interface blank
Thank you for the suggestion to look at the apache logs. I was installing zoneminder for the first time. Looking at the apache error log allowed me to identify after further googling that PHP was missing an extension - intl. Editing the relevant php.ini and uncommenting this entry allowed zoneminder to start.
Thanks again
Thanks again