Page 1 of 1

server access problem

Posted: Tue Jun 06, 2023 7:49 pm
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

Re: server access problem

Posted: Wed Jun 07, 2023 12:02 am
by bbunge
Better install instructions. https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x
Use Mariadb instead of MySQL for fewer issues.

Re: server access problem

Posted: Wed Jun 07, 2023 6:44 am
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

Re: server access problem

Posted: Wed Jun 07, 2023 6:50 am
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

Re: server access problem

Posted: Wed Jun 07, 2023 12:35 pm
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...

Re: server access problem

Posted: Wed Jun 07, 2023 1:58 pm
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....

Re: server access problem

Posted: Wed Jun 07, 2023 8:36 pm
by pat2
exactly same sw configuration here. on ARM64 hw.

fully working, ZM and ZM Ninja

Re: server access problem

Posted: Thu Jun 08, 2023 7:14 pm
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

Re: server access problem

Posted: Thu Jun 08, 2023 7:55 pm
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

Re: server access problem

Posted: Tue Jul 18, 2023 2:34 am
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.

Re: server access problem

Posted: Wed Nov 15, 2023 4:21 am
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?