server access problem

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
system87
Posts: 4
Joined: Tue Jun 06, 2023 7:29 pm

server access problem

Post by system87 »

Hi!
I don't know in which section of the forum to write and decided to write here,
because I think the problem is with the server itself, and not with the application.
This is my first time installing Zoneminder and I'm having trouble connecting from the ZoneMinder Client App.
when trying to connect to the Zoneminder server, nothing happens...

In the server logs:

Code: Select all

/var/log/zm/error.log

2023-06-06 22:13:34 Warning: Warning (2): Trying to access array offset on value of type null in [/usr/share/zoneminder/www/api/app/Controller/HostController.php, line 94]
Trace:
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
HostController::login() - APP/Controller/HostController.php, line 94
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
AppController::invokeAction() - APP/Plugin/Crud/Lib/CrudControllerTrait.php, line 31
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117
I used:
zoneminder 1.36.33-jammy1
Ubuntu 22.04.2 LTS
PHP 8.1.2
Apache/2.4.52
mysql Ver 8.0.33|

Installed using the manual: https://zoneminder.readthedocs.io/en/la ... buntu.html

Help, please, to solve a problem.

P.S. Cameras have not been added yet
access via http from the browser is
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: server access problem

Post by bbunge »

Better install instructions. https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x
Use Mariadb instead of MySQL for fewer issues.
system87
Posts: 4
Joined: Tue Jun 06, 2023 7:29 pm

Re: server access problem

Post by system87 »

bbunge wrote: Wed Jun 07, 2023 12:02 am Better install instructions. https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x
Use Mariadb instead of MySQL for fewer issues.
I reinstalled the program on your advice.
Unfortunately, the problem remains. The error is the same
system87
Posts: 4
Joined: Tue Jun 06, 2023 7:29 pm

Re: server access problem

Post by system87 »

I think one of the users has already described the same problem, but no one answered him:
Hi,
I've passed the credentials page by using the following url:
http://<zm_server_ip_address>/zm

and since then the loading circle is turning forever...

Does anyone know how to overcome this issue?

Thanks in advance,

Yaron
viewtopic.php?t=31418&start=15
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: server access problem

Post by bbunge »

To be honest I have not had a great deal of faith in Ubuntu since 18.04. 20.04 started changes that made installs more difficult for folks new to Linux. 22.04 is even worse! While I author several of the install procedures and I have few problems installing Zoneminder I still prefer Debian.

I have some errands to run this morning but will take some time this afternoon and load up Ubuntu 22.04 on my test bed and see what happens.

Stay tuned...
User avatar
iconnor
Posts: 2880
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: server access problem

Post by iconnor »

The error I think happens when one uses the API without authentication turned on.

Whatever client app this is isn't checking that auth isn't turned on before trying to login.

Technically it's a bug in our code, it shouldn't error, it should just... login....
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: server access problem

Post by pat2 »

exactly same sw configuration here. on ARM64 hw.

fully working, ZM and ZM Ninja
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
system87
Posts: 4
Joined: Tue Jun 06, 2023 7:29 pm

Re: server access problem

Post by system87 »

Thank you all for answering!
I can't install Ninja because it is not in the Google Play for android 13

I will try to install the Zoneminder on Debian this weekend
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: server access problem

Post by pat2 »

on jammy please try the following instructions:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo sudo apt autoremove
sudo reboot

===============================================================================================
sudo apt install apache2
sudo systemctl restart apache2
===============================================================================================
sudo apt install mysql-server
===============================================================================================
sudo apt install php libapache2-mod-php php-mysql
sudo nano /etc/php/8.1/apache2/php.ini
date.timezone = America/New_York (or whatever)
===============================================================================================
sudo -i

add-apt-repository ppa:iconnor/zoneminder-1.36

apt-get install zoneminder

chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
chown -R www-data:www-data /usr/share/zoneminder/
a2enmod cgi
a2enmod rewrite
a2enconf zoneminder
a2enmod expires
a2enmod headers
systemctl enable zoneminder
systemctl start zoneminder
sudo reboot
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
azshane0323
Posts: 1
Joined: Tue Jul 18, 2023 2:29 am

Re: server access problem

Post by azshane0323 »

I'm not sure if this will fix the issue that you were originally having, but I was not able to connect to my zoneminder from zmninja until I directed zmninja to use https, not http.
Sudis1984
Posts: 1
Joined: Wed Nov 15, 2023 4:17 am

Re: server access problem

Post by Sudis1984 »

azshane0323 wrote: Tue Jul 18, 2023 2:34 am I'm not sure if this will fix the issue that you were originally having, but I was not able to connect to my zoneminder from zmninja until I directed zmninja to use https, not http.geometry dash online
I wonder what the difference between https and http?
Post Reply