reinstalled apache, now its broken.

Forum for questions and support relating to the 1.29.x releases only.
Locked
pellle87
Posts: 4
Joined: Thu Aug 10, 2017 11:26 am

reinstalled apache, now its broken.

Post by pellle87 »

I had some issues with apache so i decided to reinstall it on my debian machine.
I have enabled cgi etc but i cant get the cameras working, i did nothing to the zm install

errors:

Code: Select all

2017-08-10 13:23:37.478673	web_js		2064	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-761998s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	

2017-08-10 13:23:37.449820	web_php		2064	ERR	socket_sendto( /var/run/zm/zms-761998s.sock ) failed: No such file or directory	includes/functions.php	2371

2017-08-10 13:23:49.487037	web_php		1695	ERR	socket_sendto( /var/run/zm/zms-761998s.sock ) failed: No such file or directory	includes/functions.php	2371
Virtualhost that worked before...

Code: Select all


<VirtualHost *:80>
  ServerName ****************
        ErrorLog ${APACHE_LOG_DIR}/-error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    <Location />
    Redirect permanent / https://*****************
  </Location>
RewriteEngine on
RewriteCond %{SERVER_NAME} =************************
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>



<IfModule mod_ssl.c>
<VirtualHost *:443>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
        DocumentRoot /usr/share/zoneminder/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
 ServerName ************
        ServerAlias *******************
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

SSLCertificateFile /etc/letsencrypt/live/***************/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/*******************/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

the only files that exsist in /var/run/zm is zmdc.sock and zm.pid

Also i cant login with the ios app, says that credentials are wrong strange enough

any ideas?
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: reinstalled apache, now its broken.

Post by bbunge »

Force a reinstall. With Debian 8 your database will not be changed. With Debian 9 backup your zm database and restore it once the zoneminder install finishes.
pellle87
Posts: 4
Joined: Thu Aug 10, 2017 11:26 am

Re: reinstalled apache, now its broken.

Post by pellle87 »

bbunge wrote: Sat Aug 12, 2017 2:23 am Force a reinstall. With Debian 8 your database will not be changed. With Debian 9 backup your zm database and restore it once the zoneminder install finishes.
I did, but still the same problem sadly :/

i even did a apt-get remove, purge and autoremove then reinstalled it

Code: Select all

● zoneminder.service - ZoneMinder CCTV recording and surveillance system
   Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled)
   Active: active (running) since Mon 2017-08-14 08:03:20 CEST; 31min ago
 Main PID: 29907 (zmdc.pl)
   CGroup: /system.slice/zoneminder.service
           ├─29907 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
           ├─29936 /usr/bin/zmc -m 1
           ├─29944 /usr/bin/zmc -m 2
           ├─29953 /usr/bin/zmc -m 3
           ├─29958 /usr/bin/perl -wT /usr/bin/zmfilter.pl
           ├─29966 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
           └─29973 /usr/bin/perl -wT /usr/bin/zmwatch.pl

Aug 14 08:32:01 nas zmc[29944]: INF [Altan: 43000 - Capturing at 25.00 fps]
Aug 14 08:32:01 nas zmc[29953]: INF [Tvattstugan: 43000 - Capturing at 25.00 fps]
Aug 14 08:32:41 nas zmc[29944]: INF [Altan: 44000 - Capturing at 25.00 fps]
Aug 14 08:32:41 nas zmc[29953]: INF [Tvattstugan: 44000 - Capturing at 25.00 fps]
Aug 14 08:33:16 nas zmc[29936]: INF [Garage: 18000 - Capturing at 10.00 fps]
Aug 14 08:33:21 nas zmc[29944]: INF [Altan: 45000 - Capturing at 25.00 fps]
Aug 14 08:33:21 nas zmc[29953]: INF [Tvattstugan: 45000 - Capturing at 25.00 fps]
Aug 14 08:34:01 nas zmc[29944]: INF [Altan: 46000 - Capturing at 25.00 fps]
Aug 14 08:34:01 nas zmc[29953]: INF [Tvattstugan: 46000 - Capturing at 25.00 fps]
Aug 14 08:34:16 nas systemd[1]: Started ZoneMinder CCTV recording and surveillance system.
Still getting the freaking socket error
There is no socket files created in /var/run/zm
pellle87
Posts: 4
Joined: Thu Aug 10, 2017 11:26 am

Re: reinstalled apache, now its broken.

Post by pellle87 »

what a complete retard i am, a2enconf zoneminder... problem solved
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: reinstalled apache, now its broken.

Post by rockedge »

:D
Locked