Both Cloudvue Gateways and C2C devices store video in 30 second increments. Cloudvue Gateways use MP4 and C2C uses MKV container formwats. The MKV video files on C2C devices are encrypted and cannot simply be copied and played. The MP4 video files on Cloudvue Gateways are NOT encrypted and can be copied and played.
Adding an Amcrest camera as ONVIF to a Cloudvue Gateway fails with an error message “Invalid Username / Password”. This is true even if the credentials being used work to login to the cameras web interface.
Product
Cloudvue Gateway
Cloudvue Software v22.9.2
Steps to Reproduce
From the Devices tab in Cloudvue Local (Settings > Devices)
Scan For devices , select and add an Amcrest Camera
When prompted enter username, password and add as ONVIF
Expected Results
Camera adds
Actual Results
Camera fails to add with an error message “Camera Save Failed … Invalid Username / Password”
Solution
Create a user in the camera called “onvif” and use those credentials when adding the camera in Cloudvue Local.
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.
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
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
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.
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.
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
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
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.