Categories
Cloudvue Cloudvue Cameras Knowledge Support Cloudvue Gateway Support Categories

Cloudvue Gateway H.264/H.265 Support

Description 

H.265 encoding is supported on certain Illustra cameras which have been added as model specific.  It is configured using Cloudvue (Settings > Device > Edit > Video > Archive Video Codec).

All other cameras, including Illustra cameras added as ONVIF must be configured to use H.264. 

Product 

  • Cloudvue Gateway
Categories
Cloudvue Knowledge Support Cloudvue Gateway Support Categories

Dropping and Creating the smartvuedb Database

Description 

At times it may be necessary to drop (delete) and create the smartvuedb database.  WARNING VIDEO LOSS is expected, and except for rare occasions this should only be performed on newly deployed NVRs.

Product 

Cloudvue Gateway

Prerequisite

  • ssh access to the Cloudvue Gateway
  • see KB #13051 “Cloudvue SSH Tunneling” or KB #13667 “Tunneling to a Cloudvue Gateway From a Local Windows Machine”

Solution

Issue the following commands from terminal

** WARNING ** WILL RESULT IN VIDEO LOSS

<code>sudo service cron stop <br>mysqldump -u root -p smartvuedb camera camera_setting camera_view nvr_setting schedule user user_setting user_Status User_view view > /home/smartvue/smartvuedb_backup.sql <br>sudo mysql smartvuedb -s -e “drop database smartvuedb;”<br>sudo mysql -s -e “create database smartvuedb;”<br>sudo -i <br> bash /opt/smartvue/services/nvr-database-migrate/installer.sh<br>bash /smartvue/updater.sh<br>mysql -u root smartvuedb -p < /smartvue/mysql/multi-tables_smartvuedb_backup_file.sql<br>exit<br>sudo service cron start</code>


Command Explanation

cron stop – Stops scripts from being launched by cron during this process

msyqldump – (Optional) can be used to create a backup of specified tables within the existing smartvuedb database

drop database smartvuedb – Removes the existing smartvuedb database

create database smartvuedb – creates an empty smartvuedb database

sudo -i – switch to root user

installer.sh – runs the installer script which sets permissions for smartvuedb and will return the following lines if successful

++ pwd -P <br>+ SERVICE_DIR=/root <br>SERVICE_DIR=/root <br>SMV_NVR_DB_USER=root <br>/root/node_modules/db-migrate/bin/db-migrate up <br> /opt/smartvue/services/nvr-database-migrate/installer.sh: line 4: /root/node_modules/db-migrate/bin/db-migrate: No such file or directory <br>exit 127

updater.sh – runs the updater script which populates default values in certain tables within smartvuedb database and takes several minutes to complete.

mysql -u root smartvuedb -p – (Optional) can be used to import tables previously backed up with the mysqldump

cron start – Starts cron service

Categories
Cloudvue Cameras Knowledge Support Cloudvue Cloudvue Gateway Support Categories

Remote Port Forwarding using the Reverse Tunneling Script

Description 

At times you may need to remotely access the web interface of either a Cloudvue Gateway or camera.  The following instructions can be used to establish a tunnel, gain ssh access and setup remote port forwarding via the reverse tunnel script.  Once setup you will be able to access the terminal (ssh) or the Web Interface of equipment local to the video device, such as Cloudvue Local or C2C cameras (reverse port forwarding).

Product 

  • C2C
  • Cloudvue Gateway

Solution

From Cloudvue Manager

  • Setup a Tunneling port, see “Cloudvue SSH Tunneling” KB# 13051

From your Tunneling Machine

Terminal Window #1 – Establish a Tunnel

./createTunnel.sh -t PNUM

Note: PNUM is the port number created in Cloudvue Manager


Terminal Window #2 – Establish SSH Connection

./sshTunnel.sh -p PNUM

$ watch -n 30 ls -alh

Note: PNUM is the port number created in Cloudvue Manager and the watch command is used to keep the connection from timing out use Ctrl+c to stop the watch command.

In the event the following warning appears run the full “ssh-keygen” command found in the message to clear the /root/.ssh/known_hosts file, then try establishing the ssh connection again.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


Terminal Window #3 Establish Port Forwarding via Reverse Tunnel

./reverseTunnel.sh -p 80 -l 80

NOTE: it may be necessary to manually configure the correct tunneling port by changing ./config/tunnelInfo.txt

Categories
Knowledge Support Cloudvue Cloudvue Gateway Support Categories

Troubleshooting 100% Smartvue Partition Disk Space Usage

Description 

The Disk Space Use% for the partition mounted as /smartvue should not reach 100%.  If it does odd behavior too include loss of live or recorded video may occur.  Further troubleshooting should help decide if the issue is related to a failed or failing hard drive or a corrupted database.

Product 

  • Cloudvue Gateway

Steps to Reproduce 

  • Access the Cloudvue Gateway via Cloudvue Manager
  • Expand Disk Space
  • Check the Use% for the partition Mounted on /smartvue

Expected Results 

smartvue Use% should be less than 100%

Actual Results 

smartvue Use% is 100%

Solution

Escalate to L3 for further troubleshooting or to setup a repair RMA. 

Troubleshooting

Attempt to gain SSH access to the NVR either by tunneling or arranging a remote session for local ssh access.  Review the syslogs to see if they give any clues.

Checking  syslog for errors

$ cd /var/log/

$ ls -alh syslog*

-rw-r—– 1 syslog adm 1.5K Aug 1 08:05 syslog

-rw-r—– 1 syslog adm 6.7K Aug 1 06:25 syslog.1

-rw-r—– 1 syslog adm 1004 Jul 31 06:25 syslog.2.gz

-rw-r—– 1 syslog adm 40K Jul 30 06:25 syslog.3.gz

-rw-r—– 1 syslog adm 781 Jul 28 06:25 syslog.4.gz

-rw-r—– 1 syslog adm 610 Jul 27 06:25 syslog.5.gz

-rw-r—– 1 syslog adm 898 Jul 26 06:25 syslog.6.gz

-rw-r—– 1 syslog adm 545 Jul 25 06:25 syslog.7.gz

$ grep -i “error” syslog*

$ zgrep -i “error” syslog*

Checking MySQL error logs

$ cd /var/log/mysql/

$ ls -alh

total 36K

drwxr-s— 2 mysql adm 4.0K Aug 8 06:25 .

drwxrwxr-x 11 root syslog 4.0K Aug 8 06:25 ..

-rw-r—– 1 mysql adm 0 Aug 8 06:25 error.log

-rw-r—– 1 mysql adm 20 Aug 7 06:25 error.log.1.gz

-rw-r—– 1 mysql adm 20 Aug 6 06:25 error.log.2.gz

-rw-r—– 1 mysql adm 676 Aug 6 00:01 error.log.3.gz

-rw-r—– 1 mysql adm 20 Aug 4 06:25 error.log.4.gz

-rw-r—– 1 mysql adm 20 Aug 3 06:25 error.log.5.gz

-rw-r—– 1 mysql adm 20 Aug 2 06:25 error.log.6.gz

-rw-r—– 1 mysql adm 20 Aug 1 06:25 error.log.7.gz

$ cat error.log

Hard Drive Failure

Check the sylog files in /var/log for entries similar to: 

Jul 27 22:40:30 SMV-K2 kernel: [1763274.568932] ata1.00: error: { UNC }

Jul 27 22:40:30 SMV-K2 kernel: [1763274.778400] sd 0:0:0:0: [sda] tag#1 Sense Key : Medium Error [current] [descriptor]

Jul 27 22:40:30 SMV-K2 kernel: [1763274.778403] sd 0:0:0:0: [sda] tag#1 Add. Sense: Unrecovered read error – auto reallocate failed

Jul 27 22:40:30 SMV-K2 kernel: [1763274.778408] blk_update_request: I/O error, dev sda, sector 3625797376

Jul 27 22:40:30 SMV-K2 kernel: [1763274.838298] res 41/40:08:00:47:1d/00:00:d8:00:00/00 Emask 0x409 (media error) <F>

Database Corruption

Look in the syslog files in /var/log for something similar to

Jul 13 07:17:32 SMV-K1 /etc/init.d/mysql[18996]: error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’

Also check the /var/log/mysql/error.log for entries simalr to:

230713 13:17:39 [ERROR] mysqld got signal 6 ;

Cloudvue Warranty

Cloudvue Gateway and C2C cameras have a 3-year warranty.  Check the build date in Cloudvue Manager to figure out if a repair RMA is In or Out of Warranty.

Categories
Knowledge Support Cloudvue Cloudvue Gateway Support Categories Products

Cloudvue Gateway – Registration Wizard Fails to Complete

Description

We are seeing a rise in cases where Cloudvue Gateways will not progress past the Registration Wizard. Everything goes normally until time to submit the registration. At this point nothing appears to be happening when clicking submit and users are unable to finalize the registration process.

Product

• Cloudvue Gateway

Steps to Reproduce

• Follow the instructions found in KB #16967 “Cloudvue Gateway Registration Wizard”

• Click Submit to submit the registration.

Expected Results

• Registration Wizard completes and Cloudvue Local page is displayed.

Actual Results

• Registration does not complete and will not progress past this point.

Solution

• It is recommended that these cases be escalated to L3.

• The workaround requires tunneling to the NVR and recreating the local Cloudvue database. KB#17178 “Dropping and Creating the smartvuedb Database”

• A ticket has been raised with Engineering AES-553, currently we are tracking Salesforce Cases to better understand the issue

Categories
Knowledge Support Cloudvue Cloudvue Gateway Support Categories Products

Cloudvue Gateway Registration Wizard

Description 

New Cloudvue Gateways will automatically launch the Registration Wizard when accessed via Cloudvue Local.  This article has a description of the registration process using the web browser of a locally connected computer along with screenshots of each step.

Product 

  • Cloudvue Gateway

Basic Steps

  • Using a computer connected to the same network as the Cloudvue Gateway enter the IP address of the Gateway in the URL bar of your web browser.
    • Note: Google Chrome is the recommended browser.  Other browsers may limit features within the program.
    • The Gateway Registration Wizard will automatically display if a user does not already exist in the local Cloudvue database.
  • Confirm your language and country settings.
    • English and United States are the defaults.
    • Use the drop-down menu to change the settings.
  • Read and accept the End User License Agreement
  • Read and accept the Privacy Policy
  • Enter the Cloudvue Partner Code/ID
  • Confirm the Partner Code/ID
    • Click Assign if the Partner Code/ID is correct.
    • Click Cancel to make corrections.
  • Assign a Server Name
  • Enter user information and configure a password for the Primary/Administrative User
    • NOTE: You can change the administrator later if needed
  • Submit the registration.
  • The Cloudvue Local interface is now available.
  • Add cameras and configure.

Cloudvue Gateway Registration Wizard Screenshots

Categories
Knowledge Support Cloudvue Cloudvue Gateway Support Categories Products

Gateway Tools Designed for Cloudvue Only

Description 

Gateway Tools are designed to work with Cloudvue only and will display a “Device Offline” error if launched from Cloudvue Local.

Product 

  • Cloudvue
  • Cloudvue Local

Steps to Reproduce 

  • Access an NVR via Cloudvue Local
  • Navigate to Settings > Settings Tab > Gateway Tools
  • Click either Sync Gateway or Reboot Gateway

Expected Results 

Popup Message “Device Offline” “Reconnect Device to Continue”

Solution

This is by design, use Cloudvue (www.cloudvue.com) to launch Gateway Tools

STWELVE-10439

Categories
Cloudvue Knowledge Support Cloudvue Gateway Support Categories Products

Adding a multi channel camera to a Cloudvue Gateway

Description 

This document will outline how to add a camera that has multiple channels but 1 IP address

Product 

Cloudvue Gateway

Steps to Reproduce 

  • Select the gateway in Cloudvue
  • Select “Settings” icon
  • Select “Devices”
  • Then Click “add device by IP address”
  • Select the manufracture
  • Select the model make sure its channel 1 for that type
  • Repeat for channel 2,3&4

Notes

If a master password is set this will be change the password when the first channel is added so the master password will need to be used for channels 2,3 & 4

Illustra Flex multi sensor camera should use the ONVIF model type.

Categories
Cloudvue Knowledge Support Cloudvue Gateway Support Categories Products

How to edit a user in Cloudvue Manager

Description 

This document will cover how to access a user, edit and reset a password. If a user cannot login or need a password reset

Product 

Cloudvue Manager (CVM)

Steps to Reproduce 

To edit a user please follow these steps

  • Login to CVM
  • Select search and “Search Users”
  • Type in the name you are looking for and click on this name.
  • Click on edit user
  • On this screen you can change what is required
  • Please note the email address is case sensitive for login
  • If you need to reset the password check the checkbox for “Reset Password and accept EULA/TOS”
Categories
Knowledge Support Cloudvue Cloudvue Gateway Support Categories

Moving Files From Cloudvue Gateway to Windows

Description 

At times it may be necessary to move or copy files from a Cloudvue Gateway to a local machine. WinSCP Portable establishes an SSH  connection between a machine running Windows and a Gateway.  It offers a convenient side by side file explorer view of the local and Gateway directories and files making it simple to drag and drop files from the Gateway to the local machine.

Product 

  • Cloudvue Gateway

Solution

WinSCP Portable

Cloudvue Manager

  • Access the Cloudvue Gateway device page
  • Make note of the SSH password and the Network IP Address

Connecting to a Cloudvue Gateway

  • Launch WinSCP Portable
  • A New Session Login window will appear
  • Enter the appropriate settings
    • File Protocol: SCP
    • Host name: Host name or IP address of the Cloudvue Gateway
    • Port number: 7627
    • User name: smartvue
    • Password: [SSH password]
  • Click Login
  • NOTE: A window like the following will appear on the initial connection
  • Select Yes
  • Once connected you will have a side-by-side file explorer view of your host machine and the Gateway
  • Drag and drop to move files between the machines