-
Notifications
You must be signed in to change notification settings - Fork 2
PVWS
Chsudeepta edited this page Nov 4, 2024
·
17 revisions
(PV Web socket)
we run a PVWS instance on NDAEXTWEB3 for the Web Dashboard
this is done with a native tomcat service (rather than a container) following the PVWS instructions, though it could be run as a container in the future.
Things to consider when updating Tomcat/PVWS:
- Tomcat installer from https://tomcat.apache.org/download-90.cgi installed in
C:\Program Files\Apache Software Foundation\Tomcat 9.0 - (
pvws)[https://github.com/ornl-epics/pvws] - we are using the latest nightly .war as of 01/11/24 - to update download this and place in the tomcatdir\webappsfolder and restart the service - jdk 21 from https://adoptium.net/en-GB/ installed in
C:\Program Files\Eclipse Adoptium\jdk-21.0.5.11-hotspot
- install tomcat as a windows service, running on port
7777using the wizard:

- copy
pvws.warto thewebappsdirectory in the tomcat directory (usuallyC:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps) - in your
tomcat\bindirectory, we need to add theEPICS_CAvariables that specify the gateway address so PVWS knows where to look for PVs. this is done by runningTomcat9.exewith the//US(update server) flag ie:C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin>Tomcat9.exe //US ++Environment EPICS_CA_AUTO_ADDR_LIST=NO;EPICS_CA_ADDR_LIST=<ip>where ip is the gateway address. (more info on this command here) - create a
.pfxfile if you need a new certificate by using Windows'certificate manager -> wherever the cert is -> all tasks -> export
- no, do not export the private key
- "personal information exchange",
include all certificates in the certification path if possible: true, delete the private key if export is successful: false, export all extended properties: false, enable certificate privacy: false
Note
when finished you'll need to add local service to the users that can read this file like so:

- edit
server.xmlto contain these lines:
<Connector port="7777" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true"
maxParameterCount="1000" Server=" "
scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="file:///C:/PROGRA~1/APACHE~1/TOMCAT~1.0/dataweb.pfx" keystoreType="PKCS12" keystorePass="<keeper:.pfx keystore password for PVWS tomcat instance on NDAEXTWEB3>"
>
</Connector>this will start a https connector using the .pfx file generated from the certificate.
- go to
services.mscand hit restart on the tomcat service then navigate tohttps://<machine name>:7777/pvws- this should present the PVWS test page. - if you want the web dashboard to permanently use this, update https://github.com/ISISComputingGroup/WebDashboard/blob/main/.env