Description
The following instructions discuss setting up Cloudvue video devices for use in specific engineering and production environments.
Product
- C2C
- Cloudvue Gateway
Cloudvue Gateways
The basic steps to specify the use of a particular environment are:
- Drop and Create smartvuedb
- Set the desired environment
- Restart nvr-cloud-messaging service
Drop and Create smartvuedb
sudo mysql smartvuedb -s -e "drop database smartvuedb;"
sudo mysql -s -e "create database smartvuedb;"
sudo -i
bash /opt/smartvue/services/nvr-database-migrate/installer.sh
bash /smartvue/updater.sh
Set the Environment
Edit the file /smartvue/cloud-config.json to set the desired environment.
sudo nano /smartvue/cloud-config.json
Development
{"cloud":{"uri":"wss://dev-messaging.cloudvue.com"}}
Production
{"cloud":{"uri":"wss://messaging.cloudvue.com"}}
Staging
{"cloud":{"uri":"wss://staging-messaging.cloudvue.com"}}
Restart nvr-cloud-messaging service
sudo service nvr-cloud-messaging restart
Troubleshooting
The messaging debug script can be very helpful in troubleshooting connection issues.
sudo -i
bash /opt/smartvue23.9.0/bin/nvr-debug nvr-cloud-messaging