EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Question about retrieve history data in archiver appliance
From: "Wilson, Andy \(DLSLtd, RAL, LSCI\) via Tech-talk" <tech-talk at aps.anl.gov>
To: "Shankar, Murali" <mshankar at slac.stanford.edu>, neu lzf <lzfneu at live.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 23 Aug 2021 10:01:29 +0000
Hello,

You mentioned that you are using quickstart.sh​.

By default, when you use quickstart.sh​, the configuration does not persist when you restart the archiver appliance [1].  This means that the list of PVs to be archived will be lost on restart.

You'll need to set up a persistence layer such as MySQL. You can follow this guide: https://slacmshankar.github.io/epicsarchiver_docs/installguide.html

Thanks,
Andy



[1]. At the bottom of the quickstart guide (https://slacmshankar.github.io/epicsarchiver_docs/quickstart.html) it says
We do not persist configuration in this setup. That is, if you kill the Tomcat process, you'll need to resubmit your PV's to the archiver on restart.
In `quickstart.sh` this is set here:

# Use an in memory persistence layer, if one is not defined in the environment
if [ -z ${ARCHAPPL_PERSISTENCE_LAYER} ]
then
export ARCHAPPL_PERSISTENCE_LAYER=org.epics.archiverappliance.config.persistence.InMemoryPersistence
fi

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of neu lzf via Tech-talk <tech-talk at aps.anl.gov>
Sent: Monday, August 23, 2021 07:16
To: Shankar, Murali <mshankar at slac.stanford.edu>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Re: Question about retrieve history data in archiver appliance
 
Hi,

Thanks for your reply. Unfortunately I still cannot get the history data of PV by using Control System Studio (CSS) without running the IOC, let me describe my starting steps in detail.

I am new to use archiver appliance, my test contains two steps: first, I run my IOC and archive appliance program to archive the data of PV; then I shut down my IOC and restart the archive appliance program and try to get the history data of the PV from database by using CSS.

The first step:
a) Start the program and archive the data of the PV
I successfully start the archiver appliance with the command: 
./quickstart.sh apache-tomcat-9.0.52.tar.gz

The host name of my computer is 'test'. After running the IOC, I successfully archive the PV data by filling in the URL in browser:
http://test:17665/mgmt/ui/index.html
and then press the Archive butto
n. After a while, the live data curve of the PV can be seen by EPICS Archiver Appliance Viewer.

b) Get live data by using CSS:
 According to the user guide, I replace the string 'http' with the string 'pbraw' in appliances.xml, namely this line: <data_retrieval_url>http://localhost:17665/retrieval</data_retrieval_url>

Therefore, in the databrowser of CSS, according to the user guide, the 'Archive Data Server URLs' and 'Default Archive Data Sources' I filled in is:
pbraw://localhost:17665/retrieval
CSS can also successfully draw the live and history data curve by dragging the PV name from Archive Search column to Data Browser.

The second step and the problem is:
c) If I shut down my IOC and restart the data archive appliance program and try to use CSS to retrieve the history data of the PV without running the IOC (offline).

The database server can be connected successfully by CSS with the URL:
pbraw://localhost:17665/retrieval

However, when search the PV name in CSS, there is no available PV name listed in Archive Search column. I still cannot get and draw the history data curve of the PV.
Do I miss some steps?

Any help will be appreciated and thank you again.



From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Shankar, Murali via Tech-talk <tech-talk at aps.anl.gov>
Sent: 17 August 2021 18:09
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Re: Question about retrieve history data in archiver appliance
 
>> I intend to retrieve history data of some PV without running the IOC (offline), is it possible to implement that in archiver appliance.
Yes; this should be just fine. 

>> I have no idea how to retrieve the history data of some PV without running the IOC
You should not have to do anything at all. Please check the use guide at https://slacmshankar.github.io/epicsarchiver_docs/userguide.html. For debugging, I usually find it simpler to start using something like curl to see what's going in. You can construct a retrieval URL and then use curl to retrieve the data using a .txt mime type. 

Hope that helps.

Regards,
Murali


 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 


References:
Re: Question about retrieve history data in archiver appliance Shankar, Murali via Tech-talk
Re: Question about retrieve history data in archiver appliance neu lzf via Tech-talk

Navigate by Date:
Prev: Re: Question about retrieve history data in archiver appliance neu lzf via Tech-talk
Next: Re: RE: Question about retrieve history data in archiver appliance lzfneu at live.com via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Question about retrieve history data in archiver appliance neu lzf via Tech-talk
Next: Re: RE: Question about retrieve history data in archiver appliance lzfneu at live.com via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 23 Aug 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·