update to 1.36.33 on Suse 15.4: blank index page in firefox [SOLVED]

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
carverknut
Posts: 18
Joined: Sun Jan 15, 2017 9:16 am

update to 1.36.33 on Suse 15.4: blank index page in firefox [SOLVED]

Post by carverknut »

Hi,

I just updated my machine from suse leap 15.2 to 15.4. The update also included an update of zoneminder from 1.34 to 1.36.33.

The video streams in vlc of my cameras are running normally, just like before the update.

Code: Select all

systemctl status zm.service
reveals:

Code: Select all

systemctl status zm.service
● zm.service - ZoneMinder Video Surveillance System
     Loaded: loaded (/usr/lib/systemd/system/zm.service; enabled; vendor preset: disabled)
     Active: active (running) since Mon 2023-05-29 20:30:44 CEST; 22min ago
   Main PID: 7343 (zmdc.pl)
      Tasks: 6 (limit: 4915)
     CGroup: /system.slice/zm.service
             ├─ 7343 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
             ├─ 7720 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=1 --daemon
             ├─ 7790 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=2 --daemon
             ├─ 7795 /usr/bin/perl -wT /usr/bin/zmwatch.pl
             ├─ 7801 /usr/bin/perl -wT /usr/bin/zmupdate.pl -c
             └─ 7805 /usr/bin/perl -wT /usr/bin/zmstats.pl

Mai 29 20:30:42 mymachine systemd[1]: Starting ZoneMinder Video Surveillance System...
Mai 29 20:30:42 mymachine zm_database_init[7332]: INFO: when db is correctly installed and you just reinstalled rpm, then answer all questions with 'n'
Mai 29 20:30:42 mymachine zm_database_init[7332]: no lockfile found, proceed anyway? [y/N]:  N
Mai 29 20:30:44 mymachine systemd[1]: Started ZoneMinder Video Surveillance System.
Seems to be running OK to me.

When I open firefox to check

Code: Select all

localhost/zm/index.php
I get a blank page, no content.

I was running 1.34 without any bugs or hiccups before.

Any idea, where I might start looking?

Thank you!
Last edited by carverknut on Wed May 31, 2023 7:05 am, edited 1 time in total.
carverknut
Posts: 18
Joined: Sun Jan 15, 2017 9:16 am

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by carverknut »

I am not the greatest DB user, but

Code: Select all

mysql -u zmuser -p zm
Enter password: 
ERROR 1045 (28000): Access denied for user 'zmuser'@'localhost' (using password: YES)
maybe that helps to set me up with a solution?

Thanks!
dougmccrary
Posts: 1150
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by dougmccrary »

try preceding those with sudo su
carverknut
Posts: 18
Joined: Sun Jan 15, 2017 9:16 am

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by carverknut »

Thank you for your reply.

I should have mentioned in my initial post that the orders in konsole are made as su, sorry for that.

So, if I add sudo

Code: Select all

sudo mysql -u zmuser -p zm
Enter password: 
ERROR 1045 (28000): Access denied for user 'zmuser'@'localhost' (using password: YES)
it is the same result. Any other ideas, other than a complete clean install (rather than the update)?
dougmccrary
Posts: 1150
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by dougmccrary »

Depending, user/password "root" might get you in if you're trying "zmpass"
carverknut
Posts: 18
Joined: Sun Jan 15, 2017 9:16 am

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by carverknut »

thank you for your reply.

As I wrote above, I am not a DB expert, so I do not understand what to to with your kind advice.

If you could give more detailed steps please, I could move along your advice.

Thank you!
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by iconnor »

blank page means error in apache/php land..

Check apache logs to find out what the error is.
carverknut
Posts: 18
Joined: Sun Jan 15, 2017 9:16 am

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by carverknut »

thanks for your directions, here is the content of the two log files (/var/log/apache2):

access log file:

Code: Select all

127.0.0.1 - - [30/May/2023:12:30:10 +0200] "GET /zm HTTP/1.1" 301 228 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:30:10 +0200] "GET /zm/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:30:10 +0200] "GET /favicon.ico HTTP/1.1" 404 1092 "http://localhost/zm/" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:30:15 +0200] "GET /zm/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:30:28 +0200] "GET /zm/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:32:26 +0200] "GET /zoneminder HTTP/1.1" 404 967 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:32:38 +0200] "GET /zm.php HTTP/1.1" 404 967 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:32:44 +0200] "GET /zm/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:40:11 +0200] "GET /zm HTTP/1.1" 301 228 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:40:11 +0200] "GET /zm/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:41:13 +0200] "GET /zm/index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:41:13 +0200] "GET /favicon.ico HTTP/1.1" 404 1110 "http://localhost/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:41:18 +0200] "GET /zm/index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:43:30 +0200] "GET /zm/index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:45:07 +0200] "GET /favicon.ico HTTP/1.1" 404 1110 "http://localhost/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:45:14 +0200] "GET /zm/index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:57:49 +0200] "GET /zm/index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:12:59:55 +0200] "GET /zm/index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:14:42:35 +0200] "GET /zm/index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:14:42:35 +0200] "GET /favicon.ico HTTP/1.1" 404 1110 "http://localhost/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
127.0.0.1 - - [30/May/2023:14:43:43 +0200] "GET /zm/index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
and the error log file:

Code: Select all

AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Tue May 30 12:26:38.199308 2023] [ssl:warn] [pid 763] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue May 30 12:26:38.221623 2023] [mpm_prefork:notice] [pid 763] AH00163: Apache/2.4.51 (Linux/SUSE) OpenSSL/1.1.1l PHP/7.4.33 configured -- resuming normal operations
[Tue May 30 12:26:38.221651 2023] [core:notice] [pid 763] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Tue May 30 12:28:39.081006 2023] [mpm_prefork:notice] [pid 763] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Tue May 30 12:28:39.147789 2023] [ssl:warn] [pid 12328] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue May 30 12:28:39.170480 2023] [mpm_prefork:notice] [pid 12328] AH00163: Apache/2.4.51 (Linux/SUSE) OpenSSL/1.1.1l PHP/7.4.33 configured -- resuming normal operations
[Tue May 30 12:28:39.170517 2023] [core:notice] [pid 12328] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Tue May 30 12:44:08.331834 2023] [mpm_prefork:notice] [pid 12328] AH00170: caught SIGWINCH, shutting down gracefully
[Tue May 30 12:44:54.694033 2023] [ssl:warn] [pid 2307] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue May 30 12:44:54.768984 2023] [mpm_prefork:notice] [pid 2307] AH00163: Apache/2.4.51 (Linux/SUSE) OpenSSL/1.1.1l PHP/7.4.33 configured -- resuming normal operations
[Tue May 30 12:44:54.769017 2023] [core:notice] [pid 2307] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Tue May 30 14:42:55.959899 2023] [mpm_prefork:notice] [pid 2307] AH00170: caught SIGWINCH, shutting down gracefully
[Tue May 30 14:42:56.037233 2023] [ssl:warn] [pid 30369] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue May 30 14:42:56.063094 2023] [mpm_prefork:notice] [pid 30369] AH00163: Apache/2.4.51 (Linux/SUSE) OpenSSL/1.1.1l PHP/7.4.33 configured -- resuming normal operations
[Tue May 30 14:42:56.063136 2023] [core:notice] [pid 30369] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
any further hint is most welcome, thanks!
Carsten
Posts: 1
Joined: Tue May 30, 2023 5:46 pm

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by Carsten »

Hi,

I managed to install ZoneMinder an opensuse leap 15.4 yesterday:

Following an extract of my history (as root):

- add repository and install

Code: Select all

     zypper addrepo  https://download.opensuse.org/repositories/home:/ecsos:/server/15.4/ ecsos
     zypper lr -d
     zypper refresh
     zypper install ZoneMinder
     zypper in php8-intl
- to avoid warning set ServerName in

Code: Select all

/etc/apache2/default-server.conf
- enable some needed/recommended modules:

Code: Select all

    a2enmod cgi
    a2enmod rewrite
    a2enmod expires
    a2enmod headers

    rcapache2 restart
- start mysql (mariadb):

Code: Select all

    systemctl enable mysql
    systemctl start mysql
- first time you have to start the start script manually (I assume that this is the main reason for your problem):

Code: Select all

    /usr/bin/zm_database_init
Answer the questions.

- install video codecs

Code: Select all

    zypper addrepo -f http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/ packman
    zypper install --allow-vendor-change ffmpeg-4 lame gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-plugins-ugly-orig-addon gstreamer-plugins-libav libavdevice57 libdvdcss2 vlc-codecs
- start zm

Code: Select all

    systemctl enable zm
    systemctl restart zm
- firewall config has to be adapted, for testing purposes:

Code: Select all

    rcfirewalld stop
Good luck
Carsten
carverknut
Posts: 18
Joined: Sun Jan 15, 2017 9:16 am

Re: update to 1.36.33 on Suse 15.4: blank index page in firefox

Post by carverknut »

Hi Carsten,
thank you very much for your comprehensive step by step procedure. It works like a charm :D

I had to go through a complete new install (again), but now ZoneMinder 1.36.33 is running on Suse Leap 15.4.

Again, thanks for sharing your know-how!
Post Reply