Project

General

Profile

Bug #66187

Use correct web URL for Zoneminder installation

Added by Anders Axelsson over 2 years ago. Updated over 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Martin Wilke
Category:
Plugins
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I'm running the latest Freenas on the 11.2 stable train and installed the Zoneminder plugin.
The GUI looked a bit fishy and when looking at the network traffic did I see that all files loaded from "/cache" fail to load (did load the index page using that url).

The fix was to add the cache path to nginx and create 2 directories:

ee /usr/local/etc/nginx/conf.d/zoneminder.conf

        location /cache {
                alias /var/cache/zoneminder;
        }

sudo service nginx restart

mkdir /var/db/zoneminder/events
mkdir /var/db/zoneminder/images

chown www:www /var/db/zoneminder/events
chown www:www /var/db/zoneminder/images/

If I click on a added camera then that page (/index.php?view=watch&mid=3) fail to load another url (/zm/index.php?view=request&request=status&entity=events&id=3&count=20&sort=Id desc) using ajax.
This can probably be fixed by adding "/zm" to nginx, I guess.

History

#1 Updated by William Grzybowski over 2 years ago

  • Assignee changed from Release Council to Martin Wilke
  • Target version changed from Backlog to 11.2-U3

#2 Updated by Martin Wilke over 2 years ago

  • Status changed from Unscreened to Ready for Testing

#4 Updated by Dru Lavigne over 2 years ago

  • Subject changed from Zoneminder plugin fail to load cached frontend files (css/js) to Create Zoneminder data directories on install
  • Target version changed from 11.2-U3 to 11.2-U2
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#5 Updated by David Beitey over 2 years ago

  • Subject changed from Create Zoneminder data directories on install to Use correct web URL for Zoneminder installation

Anders Axelsson wrote:

I'm running the latest Freenas on the 11.2 stable train and installed the Zoneminder plugin.
The GUI looked a bit fishy and when looking at the network traffic did I see that all files loaded from "/cache" fail to load (did load the index page using that url).

The fix was to add the cache path to nginx and create 2 directories:

[...]

I didn't see this issue but separately have already PR'd and had merged:

https://github.com/freenas/iocage-plugin-zoneminder/pull/4
https://github.com/freenas/iocage-plugin-zoneminder/pull/3

So that solves part of the issue above.

I can echo Anders' sentiments about the last part of the issue though too:

If I click on a added camera then that page (/index.php?view=watch&mid=3) fail to load another url (/zm/index.php?view=request&request=status&entity=events&id=3&count=20&sort=Id desc) using ajax.
This can probably be fixed by adding "/zm" to nginx, I guess.

I found the same issue. So, I've updated the subject of this ticket and also now opened https://github.com/freenas/iocage-plugin-zoneminder/pull/5 to resolve this issue, which should hopefully be the last of the issues with setting up this plugin.

ZM itself is prickly and I have other issues like my cameras not connecting stably but afaict it's not a packaging-related issue.

#6 Updated by Martin Wilke over 2 years ago

David thank you, i have merged your pull request.

https://github.com/freenas/iocage-plugin-zoneminder/pull/5

#9 Updated by Dru Lavigne over 2 years ago

  • Status changed from Ready for Testing to Done
  • Target version changed from 11.2-U2 to Master - FreeNAS Nightlies
  • Needs QA changed from Yes to No

Also available in: Atom PDF