Categories
Knowledge Support Support exacqVision Webservice Categories Products

Manually Enabling Remote Web Service Configuration

THIS ARTICLE HAS BEEN DEPRECATED

By default, exacqVision Web Service restricts configuration to the browser on the local machine. Through the configuration, a user can disable this restriction to enable remote configuration. However, there could be a need to manually remove this restriction (such as when installing the Web Service in a virtual environment, such as exacqVision Virtual).

<br>

To manually enable remote configuration, complete the following steps:

<br>

NOTE: These instructions assume that the file to edit does not contain any text. If it has previously been changed, merge the changes specified here into the existing file.

  1. With administrator credentials, open the file .evws-login for editing. By default, this file is found in Windows at C:\Program Files (x86)\exacqVision\WebService\bin\.evws-login, or in Linux at /etc/.evws-login.
  2. Add the following into the file:

    [Settings]
    restricttolocalhost = 0
  3. Save the file.
  4. Restart the Web Service.

<br>

After restarting, the Web Service will have remote administration enabled.

<br>

You can also use the Web Service Configuration page to deselect the Enable Localhost Restriction option.

Categories
Knowledge Support Support exacqVision Webservice Categories Products

Update web service for Apache httpoxy vulnerabilities

Description

The version of Apache embedded in the web service has been found to expose a security vulnerability, known as “httpoxy” (technical details: ​CVE-2016-5387). This vulnerability can be avoided by changing the configuration of Apache.

<br>

Version Introduced

2.3.9

<br>

Platform

Web Service / All

<br>

Work Around

  1. Open the evApache httpd.conffile for editing

    Windows: C:\Program Files\exacqVision\WebService\evApache\conf\httpd.conf
    Linux: /etc/evapache/httpd.conf
  2. Find and change the line #LoadModule headers_module modules/mod_headers.so to LoadModule headers_module modules/mod_headers.so. (Remove the ‘#’)
  3. Add the following line to the end of the file: RequestHeader unset Proxy early
  4. Save the file.
  5. Restart the web service.
Categories
Knowledge Support Support Categories exacqVision Webservice Products

Servers are able to be enabled if Web Service initialization fails

Description

When connecting to a web service whose initialization fails, all servers should be disabled.

<br>

Version Introduced

8.0

<br>

Platform

All

<br>

Steps to reproduce

Add a web service that causes initialization to fail.

<br>

Expected result

The enable toggles for each server on the web service is disabled.

<br>

Actual result

The enable toggle is not disabled.

<br>

Work Around

None

<br>

Version Fixed

8.3.6

Categories
Knowledge Support Support Categories exacqVision Webservice Products

Toggling a Web Service Connection Multiple Times Can Cause Failed Initialization

Description

Enabling and then Disabling a Web Service multiple times within Exacq Mobile 3 during the connection process can prevent the servers from being retrieved.

<br>

Version Introduced

  • Exacq Mobile 3, version 8.0

<br>

Platform

Mobile-All

<br>

Steps to reproduce

  • Add a Web Service
  • Toggle the Web Service from Enable to Disable back to Enable while it’s connecting
  • Expand the Server List

<br>

Expected result

The Server List is displayed

<br>

Actual result

The Text ‘Unable to retrieve servers’ is displayed

<br>

Work Around

Disable and then Enable the web server again to display the server list correctly.

Categories
Knowledge Support Support Categories exacqVision Webservice Products

Server-side digital PTZ is not restored on resume

Description

When reopening the Exacq Mobile 3 app, the previously set cameras are reloaded into the live page. During this process, server-side digital PTZ (dewarp) is not restored, leaving the camera in the default state.

Note: This is for server-side digital PTZ only (i.e. dewarp only). Pinch-to-zoom functionality is properly restored on resume.

<br>

Version introduced

Exacq Mobile 3, version 3.3.8

<br>

Platform

Mobile / All

<br>

Steps to reproduce

  1. Select a digital PTZ camera (I used the FE8172V Fisheye on vivotek.exacq.com).
  2. Perform a server-side digital PTZ action.
  3. Return to the main panel.
  4. Suspend the app.
  5. Resume the app.

<br>

Expected result

The digital PTZ settings are restored.

<br>

Actual result

The digital PTZ settings will not be restored.

<br>

Work Around

Re-apply the digital PTZ settings after restarting.

<br>

Version Fixed

Unknown

Categories
Knowledge Support Support Categories exacqVision Webservice Products

Downgrading exacqVision Web Server

Issue

Due to the configuration migration which occurs when upgrading to exacqVision Web Server 9.6 you can not downgrade from 9.6 or higher versions to 9.4 or earlier versions using an older installer. 

<br>

To downgrade to a version of exacqVision Web Server prior to 9.6 you must completely uninstall exacqVision Web Server and then run the old installer. 

<br>

Note:  Once you are on 9.6 or higher You can then upgrade/downgrade to any version 9.6 and higher version using the desired versions installer. This is where you start your issue. 10pt

<br>

Downgrading-exacqVision-Web-Server.pdf
Categories
Knowledge Support Support Categories exacqVision Webservice Products

Removal of Web Sockets from Web Service

ExacqVision Web Service version 7.2 introduced video streams over web sockets.

Web Sockets were removed in favor of other performance enhancements with version 9.6.

<br>

Categories
User Guides Categories exacqVision Webservice Products

Updating an exacqVision System Without Internet Connection Using Web Server

The Update tab on the ‘Configure System’ page in the exacqVision Client allows you to update an exacqVision server’s software. If the system is on a closed network with no internet access, the update can still be provided by using an exacqVision Web Server.

The exacqVision Web Service can be downloaded and installed from our Software Downloads page if you do not already have a web server configured.

To prepare the service with a local manifest file and update, use the steps below:

1) Export your server license list.

From the Systems list page in the exacqVision Client, click on the ‘Export Licenses’ button. Save the file.

2) On a machine that has internet access, go to https://exacq.com/support/downloads.php

3) Scroll towards the bottom of the page and expand the menu labeled, ‘Software Updates Packaging Utility’.

Click on the link to access and create the package.

4) Click on the ‘Upload License File’ button and select the ‘licenses.csv’ file you created in Step 1.

     Or, you may click on the ‘Recent Software Versions’ button.

     Using the license file will provide you with relevant versions if any of your systems have expired license subscriptions.

5) Once you’ve uploaded the CSV file, check mark the installers you wish to download.

     Click the ‘Zip Selected Files’ button. Please be patient as it may take several minutes to package the installers chosen.

6) When the process has completed, select ‘Click to Download Packaged Files’.

7) Transfer this Zip file to the machine running your exacqVision Web Service by copying it to USB flash drive or CD/DVD.

8) On the machine running your exacqVision Web Service, unpack the contents of the Zip file.

After unpacking the files, copy them to the following directory:

Windows 64-bit: C:\Program Files\exacqVision\WebService\htdocs
Windows 32-bit: C:\Program Files (x86)\exacqVision\WebService\htdocs
Ubuntu/Linux: /var/www

9) Open the ‘evFileInfo.txt’ file to edit it.

This file has a block of text for each installer. Locate the line beginning with ‘Link=’.

Edit this line to provide the file path to your downloaded installers in the following format:

http://IPADDRESS/static/FILENAME where IPADDRESS is replaced by your machine’s IP address

Example: If the line reads, ‘Link=http://cdnpublic.exacq.com/9.4/exacqVisionServer_9.4.3.136542_x64.exe’

Change it to read, ‘Link=http://192.168.0.5/static/exacqVisionServer_9.4.3.136542_x64.exe’

Change the ‘Link’ line for each block of text in this file, then Save the file and exit.

10) In the exacqVision Client, open the ‘Configure System’ page and select the ‘Update’ tab.

11) Check the ‘Show Advanced Options’ box. 

12) In the ‘Location’ box, enter the address of your exacqVision Web Service with path to ‘evFileInfo.txt’. 

http://IPADDRESS/static/evFileInfo.txt

     Replace IPADDRESS with the IP address to your system. 

13) Press ‘Check for Updates’.

14) Using the drop-down menu, select the Version to install.

15) Press the ‘Update’ button to perform the update. 

<br>

Updating-an-exacqVision-System-Without-Internet-Connection-Using-Web-Server.pdf
Categories
exacqVision Webservice Linux x64 exacqVision Webservice Linux exacqVision Webservice Windows exacqVision Webservice Windows x64 User Guides Documentation Categories exacqVision Webservice Products

Configuring Nginx or Apache as a Web Service Gateway

Description

The 9.0 release of the web service has replaced Apache with an in-house developed web frontend (WFE) for handling API requests. Certain users may wish to configure a gateway web server to enforce custom policies.

The following provides users with a reference for configuring either Nginx or Apache as a gateway. Additionally, it describes various undocumented settings in the new frontend configuration should the user need to modify them.

<br>

Gateway Configuration

The following sections explain how to set up Nginx or Apache to proxy requests to the web service. For the purposes of this guide, it is assumed the gateway server will be installed on the same machine as the web service and the service is listening on port 8080. The gateway must use a different listening port number than the ExacqVision Web Service.

Note: You may wish to backup the existing host files if they exist.

<br>

Nginx

Edit the virtual hosts file, located in:

Windows:
C:\nginx\conf\sites-available\default

Linux:
/etc/nginx/sites-available/default

with the following configuration:

server {
    listen 80 default_server;
    server_name localhost;

    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}

<br>

Apache

NOTE: The installation directory for Apache on Windows will vary based on how it was installed.

  1. Run the OS-specific command to enable the necessary modules for Apache.

Windows:
Ensure the following lines in <apache install directory>\conf\httpd.conf are UNcommented; they do NOT begin with a ‘#‘.

  • LoadModule proxy_module modules/mod_proxy.so
  • LoadModule proxy_http_module modules/mod_proxy_http.so
  • LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  • LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so<br>

Linux:
Open Terminal, by pressing CTRL+ALT+T and run the following commands:

  • sudo a2enmod proxy
  • sudo a2enmod proxy_http
  • sudo a2enmod proxy_balancer
  • sudo a2enmod lbmethod_byrequests<br><br>
  1. Edit the virtual hosts file with the following configuration:

    <VirtualHost *:80>
        ProxyPreserveHost On

        ProxyPass / http://127.0.0.1:8080/
        ProxyPassReverse / http://127.0.0.1:8080/
    </VirtualHost>

NOTE: You MUST have the ‘/’ at the end of each address, unlike Nginx.<br><br>

  1. Apache and Nginx will require restart before they can accommodate proxy requests.

<br>

Modifying the Web Frontend (WFE) configuration

The configuration for WFE contains several options that are omitted by default. These options can be used to place additional constraints on the web service if necessary.

The configuration file, which is stored as JSON, is located at:

Windows:
C:\ProgramData\Webservice\conf\wfe.json

Linux:
/etc/webservice/wfe.json

If you wish to restrict the service to listen for HTTP requests on a particular NIC, you can do so by specifying the NIC’s address using the webserver.address key:

{
    "webserver": {
        "listen": 8080,
        "address": 192.168.1.115,
        [...]
    }
}

NOTE: If the target is an IPv6 address, you MUST enclose the address in square brackets [ ].

<br>

The same can be done for HTTPS requests with the webserver.tls.address key:

{
    "webserver": {
        "listen": 8080,
        "tls": {
            "listen": 443,
            "address": [fe80::...],
            [...]
        }
    }
}

<br>

The way the web service handles HTTP requests when HTTPS is configured can be controlled with the webserver.tls.httpPolicy key:

{
    "webserver": {
        "listen": 8080,
        "tls": {
            "listen": 443,
            "httpPolicy": (redirect|disable),
            [...]
        }
    }
}

The key can be one of the following values:

  • redirect” will cause HTTP traffic to be redirected to HTTPS
  • disable” will reject any requests not sent over HTTPS

NOTE: This key will only take effect if SSL is configured.

<br>

Categories
Knowledge Support Support exacqVision Server Categories Products

Web Server – Saving frame image doesn’t include file extension

Description

When saving an image from a search, the file extension is not included on the file. The image data is correct, but the lack of extension causes the user to manually select an image viewer.
<br>

Tested Version

7.8.2
<br>

Platform

[All]
<br>

Steps to reproduce

  1. Create a search and start playback.
  2. Select the “Save Image” button.

<br>

Expected result

The image file is downloaded with a .jpg extension.
<br>

Actual result

The image file is downloaded with no extension.
<br>

Work Around

Rename the downloaded image file to include the .jpg extension.

<br>

Web-Server-Saving-frame-image-doesnt-include-file-extension.pdf