Windows
|
If you have an existing VC Publisher installation on your system, please backup your VC Publisher data first as indicated in the Backup data chapter. Only once the backup is complete should the installation begin. |
System requirements
The VC Publisher requires, at minimum, Windows 10 or Windows Server 2016.
Make sure the following dependencies are installed on the system before any VC Publisher first-time installation or VC Publisher update:
Microsoft Visual C++ libraries
-
Microsoft Visual C++ 2012 (x64): https://www.microsoft.com/en-us/download/details.aspx?id=30679
-
Microsoft Visual C++ 2013 (x64): https://www.microsoft.com/de-de/download/details.aspx?id=40784
-
Microsoft Visual C++ 2015-2022 (x64): https://aka.ms/vs/17/release/vc_redist.x64.exe
Update
|
Skip this step if you are installing the VC Publisher for the first time! |
This section is intended for users who wish to upgrade an existing 5.3 installation of the VC Publisher to version 6.
-
Open the old VC Publisher administration panel and navigate to configuration. Check the currently used settings for
PUBLIC_DATA_PATH(path to public data folder),PRIVATE_DATA_PATH(path to private data folder) and cross origin header. Make a note of these values to use them in the new installation. -
Do a backup of your data!: Backup the database and other relevant files, see chapter Backup data below.
-
Update: If you want to upgrade from a version older than v5.3, please contact <support@vc.systems>. For all upgrade paths do a backup of your data first and then install the newer VC Publisher:
-
Unzip the downloaded zip file from the download page.
-
Stop VCPublisher services with the powershell script
.\stopServices.ps1(Powershell needs administrator permissions) -
Delete the folders
app,tools,jobsanddocsin the VCPublisher installation folder. When updating a VC Publisher 6.0.x also delete the foldersinternalPluginsandui. -
Archive, if you want to keep the old log files, and clear the
logsfolder.VC Publisher version 6 uses a different log structure than previous versions, so the old log files will not be continued in the new installation.
-
Copy the content of the folder vcPUBLISHER into the installation folder.
-
Update
vcPUBLISHER.envto include all required environment variables. Especially check the variablesPUBLIC_DATA_PATHandPRIVATE_DATA_PATH, which have been added with version 6. -
Open a powershell with administrator permissions in the installation folder to setup and start the Windows services
-
Call
.\removeServices.ps1to remove the existing servicesvcPUBLISHERandvcPUBLISHERMONGODB. This is required since the VC Publisher 6 uses different environment variable handling than previous versions..\removeServices.ps1 -
Call
.\setupServices.ps1to create the ServicesvcPUBLISHERandvcPUBLISHERMONGODBYou may need to remove or bypass the execution policy restriction for the powershell scripts. This can be done by running
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Processin the powershell before executing the setup script. See Microsoft help for more details..\setupServices.ps1 -
The services can be started with the script
.\startServices.ps1..\startServices.ps1
-
Now the VC Publisher can be accessed on the configured HOST and PORT (default is http://localhost:3003).
|
If the VC Publisher seems to be unavailable after installation and setting up the Windows services, please refer to chapter Troubleshooting at the end of this readme. |
Installation
-
Unzip the downloaded zip file from the download page.
-
Copy the included vcPUBLISHER folder to the desired installation folder (e.g.,
C:\Program Files\vcs\vcPUBLISHER) -
Create
vcPUBLISHER.envfile (you may use the providedvcPUBLISHERdummy.envas a template) in the installation folder with the required environment variables -
Create a
logsdirectory in the installation folder, where MongoDB, stdout and stderr log files will be stored. If you addedLOG_DIRto the environment variables, make sure to create this folder as well. Make sure the user has read and write permissions to these folders. -
Create data folders for the public and private data (see environment variables
PUBLIC_DATA_PATHandPRIVATE_DATA_PATH) and one for database data (e.g.,C:\publisher-mongodb) and make sure the user has read and write permissions to these folders.If your data folders are located on a network drive, please make sure to set up the access permissions as described in chapter Connecting network drives below.
-
Create
vcPUBLISHERMONGODB.envfile (you may use the providedvcPUBLISHERMONGODBdummy.envas a template) in the installation folder with the database data path from above set -
Open a powershell with administrator permissions in the installation folder to setup and start the Windows services
-
Call
.\setupServices.ps1to create the ServicesvcPUBLISHERandvcPUBLISHERMONGODBYou may need to remove or bypass the execution policy restriction for the powershell scripts. This can be done by running
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Processin the powershell before executing the setup script. See Microsoft help for more details..\setupServices.ps1 -
The services can be started with the script
.\startServices.ps1..\startServices.ps1
-
Now the VC Publisher can be accessed on the configured HOST and PORT (default is http://localhost:3003).
|
If the VC Publisher seems to be unavailable after installation and setting up the Windows services, please refer to chapter Troubleshooting at the end of this readme. |
Connecting network drives
By default, VC Publisher runs with the local user. For network drives, however, these rights of the local user role are insufficient, so that the Publisher has no read and write permissions for external paths.
To remove this restriction for network drives, the VC Publisher can be started with a user which has permission to access the network drive. Same user also requires read permission on the installation folder and write permission on the logs folder, as well as the configured public and private folder. If necessary, please ask your system administrator to set up a user with access rights to the desired folders.
With the tool nssm the user for the program start can then be changed:
-
Open Windows' own command interpreter (cmd) as administrator
-
In cmd change into the installation folder and then to path
.\tools\nssm -
Execute
nssm edit vcPUBLISHER -
The nssm service editor will open. Go to the "Log on" button and add a new user under this account.
Now the VC Publisher will be executed with the configured user and will also have it’s extended access permissions to the network drive.
Backup
-
Backup the database with the MongoDB tools using the mongodump.exe tool.
-
You can download the tool here.
-
Do the DB backup using your configured
MONGO_URL, e.g.:mongodump --uri=mongodb://localhost:27017/publisher /o c:\temp\publisherbackup
-
-
If you wish to have a complete backup of the VC Publisher data, it is advisable to make a security copy of both the public and private folders (see environment variable
PRIVATE_DATA_PATHandPUBLIC_DATA_PATH).
|
Depending on the streaming data, datasets in the projects can be very large (up to several hundred gigabytes). |
Uninstall
To uninstall the VC Publisher from a Windows system, please follow the steps below:
-
Open a powershell with administrator permissions in the installation directory of the VC Publisher
-
Call the Powershell script
.\stopServices.ps1to stop the services.\stopServices.ps1 -
Call the Powershell script
.\removeServices.ps1to remove the installed services..\removeServices.ps1 -
Then the VC Publisher installation directory can be deleted (e.g., C:\Program Files\vcs\vcPUBLISHER).
|
Only the VC Publisher software itself gets removed, the public and private data folders as well as the MongoDB data folder will not be deleted during this process. These folders can be used again with a new VC Publisher installation. |