Page 1 of 4

Layout messed up after 1.31.44 update

Posted: Tue May 01, 2018 4:40 am
by sonicspeedway
I just updated to 1.31.44 from .42 and the skin is doing weird things and when I click on montage it goes to a white screen and buttons missing. Running Ubuntu 16.04.3. Zmninja still works fine though right now.

Re: Layout messed up after 1.31.44 update

Posted: Tue May 01, 2018 1:56 pm
by iconnor
There are additional apache config updates required.

Please see the following gist for an example

https://gist.github.com/connortechnolog ... 54ee45067e

Re: Layout messed up after 1.31.44 update

Posted: Wed May 02, 2018 6:42 am
by sonicspeedway
ok, I did that and it fixed all that but I can't see anything when I open a cam to watch or open montage, its just blank and I right click and view image and it gives this "requested URL /zm/cgi-bin/nph-zms was not found on this server." and log says cannot find sock file.

Re: Layout messed up after 1.31.44 update

Posted: Wed May 02, 2018 2:13 pm
by rockedge
double check the configuration of the PATH for the /cgi-bin/....

Re: Layout messed up after 1.31.44 update

Posted: Wed May 02, 2018 3:46 pm
by DVB Hardware
rockedge wrote: Wed May 02, 2018 2:13 pm double check the configuration of the PATH for the /cgi-bin/....
Is this for 1.34.44 master since 1.34.44 storageareas is in a file
Is Master include storageareas ?
Sometimes it gets confusing what release when there is the same 1.34.xx they are talking about

Jimmy

Re: Layout messed up after 1.31.44 update

Posted: Wed May 02, 2018 4:17 pm
by rockedge
1.30.4 Stable
1.31.1 Master (there is also 1.31.43 in the Master directory but not sure if any merge from storageareas branch occurred)
1.31.44 Storageareas

all those from the iconner PPA https://launchpad.net/~iconnor

all the versions after 1.30.4 have the Options->Paths now in a config file in /etc/zm
and custom changes that will not be over-written during update is under /etc/zm/conf.d ( i.e. /etc/zm/conf.d/zmcustom.conf )

Re: Layout messed up after 1.31.44 update

Posted: Wed May 02, 2018 6:25 pm
by juanmoura
After that update the layout actually got weird. I followed the guideline of opening the zoneminder.conf into conf-available and erasing all the contents and inserting the content of the gist Iconnor passed on correcting line 58 (indentation error). After changing the zoneminder.conf the layout was OK, but the images do not appear and the error log appears in PATH_ZMS. If I open restore the zoneminder.conf backup the layout gets strange again, but the cameras reappeared without the PATH_ZMS error. I believe there is some error in the gist script that is messing with PATH_ZMS.

Re: Layout messed up after 1.31.44 update

Posted: Wed May 02, 2018 7:32 pm
by sonicspeedway
Mine does the exact same as this. ^

Re: Layout messed up after 1.31.44 update

Posted: Thu May 03, 2018 2:19 am
by amritgary
Same issue ^

Re: Layout messed up after 1.31.44 update

Posted: Thu May 03, 2018 3:34 am
by rockedge
perhaps this may help : viewtopic.php?p=105647#p105647

Re: Layout messed up after 1.31.44 update

Posted: Thu May 03, 2018 4:03 am
by amritgary
Okay, figured it out..

Needed to reorder the code as shown below:
Alias /zm /usr/share/zoneminder/www needs to be defined later..

/etc/apache2/conf-available/zoneminder.conf:

<Directory "/var/cache/zoneminder/cache">
Options -Indexes +FollowSymLinks
AllowOverride None
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>

ScriptAlias /zm/cgi-bin/ /usr/lib/zoneminder/cgi-bin/
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>


Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
Options -Indexes +FollowSymLinks
AllowOverride All
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>

Re: Layout messed up after 1.31.44 update

Posted: Thu May 03, 2018 4:04 am
by amritgary
then just reload the conf and restart apache:
Here's what i did (maybe overkill, but works):

a2dismod cgi; a2enmod cgi; a2disconf zoneminder; a2enconf zoneminder; service apache2 reload; service apache2 restart

Re: Layout messed up after 1.31.44 update

Posted: Thu May 03, 2018 12:46 pm
by juanmoura
Perfect, after changing the reversing zoneminder.conf as per above orientation the system ran perfectly with the correct layout and all the functions working.
One note, if we do a clean installation direct to StorageAreas I no longer need to mess with PATH_ZMS. There is no longer any need to change the directory.
At that point my instance is running smoothly, recording with h264 passthroug.
But in the logs I found something I did not understand either.
Image
It appears that I need to restart, I restart zoneminder or even Ubuntu Server and the message continues.

Re: Layout messed up after 1.31.44 update

Posted: Thu May 03, 2018 1:07 pm
by mathijss
juanmoura wrote: Thu May 03, 2018 12:46 pm Perfect, after changing the reversing zoneminder.conf as per above orientation the system ran perfectly with the correct layout and all the functions working.
One note, if we do a clean installation direct to StorageAreas I no longer need to mess with PATH_ZMS. There is no longer any need to change the directory.
At that point my instance is running smoothly, recording with h264 passthroug.
But in the logs I found something I did not understand either.
Image
It appears that I need to restart, I restart zoneminder or even Ubuntu Server and the message continues.

I am having the same in my logs. Does your monitor restart every 10 minutes aswell?

Re: Layout messed up after 1.31.44 update

Posted: Thu May 03, 2018 1:45 pm
by rockedge