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> 2021 2022 2023 2024 2025 | 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> 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Archiver Appliance PVs never connect to be archived, always "Initial Sampling" |
From: | "Manoussakis, Adamandios via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Jeong Han Lee <citadel.lee at gmail.com> |
Cc: | tech-talk <tech-talk at aps.anl.gov> |
Date: | Thu, 29 Oct 2020 01:20:40 +0000 |
Just an update it seems
EPICS_CA_AUTO_ADDR_LIST=YES
EPICS_CA_ADDR_LIST=localhost
must be in the archappl.conf file otherwise it does not connect to the PVs
I dont quite understand why since I thought it is just setting environment variables from that script and having them exported in the ~/.profile should be enough? Maybe Han you can clear this up for me why the install looks in this archappl.conf file and not
at the env variables that are set in ~/.profile?
Thanks
From: Jeong Han Lee <citadel.lee at gmail.com>
Sent: Wednesday, October 28, 2020 6:04 PM To: Manoussakis, Adamandios <manoussakis1 at llnl.gov> Cc: Wang, Lin <wanglin at ihep.ac.cn>; tech-talk <tech-talk at aps.anl.gov> Subject: Re: Archiver Appliance PVs never connect to be archived, always "Initial Sampling" Thank you all, if you leave comments or proposals in issue, I will
update them in my repository. I am glad this repo helps you to figure out archiver appliances at the beginning. Thanks, Han On Wed, Oct 28, 2020 at 6:00 PM Manoussakis, Adamandios via Tech-talk <tech-talk at aps.anl.gov> wrote: > > IT WORKS! Just need to track down which change made it work now haha. But it has something to do with either changing the AUTO_ADDR back to NO or adding the env variables to the archappl.conf file. Will update once I figure out which one it is. But thank you both for helping me debug it was extremely helpful! > ________________________________ > From: Manoussakis, Adamandios <manoussakis1 at llnl.gov> > Sent: Wednesday, October 28, 2020 5:53 PM > To: Wang, Lin <wanglin at ihep.ac.cn> > Cc: tech-talk <tech-talk at aps.anl.gov> > Subject: Re: Archiver Appliance PVs never connect to be archived, always "Initial Sampling" > > Hi Lin, > > currently I have in my ~/.profile > > export EPICS_CA_AUTO_ADDR_LIST=YES > export EPICS_CA_ADDR_LIST=localhost > > do I need to have these located in the archappl.conf instead of being exported through profile, seems like the scripts do the same thing at the end of the day just export the env variables? > > Thanks > > > ________________________________ > From: Wang, Lin <wanglin at ihep.ac.cn> > Sent: Wednesday, October 28, 2020 5:41 PM > To: Manoussakis, Adamandios <manoussakis1 at llnl.gov> > Cc: tech-talk <tech-talk at aps.anl.gov> > Subject: Re: Archiver Appliance PVs never connect to be archived, always "Initial Sampling" > > > Hello, > > You may also want to make sure the EPICS-related environment variable (EPICS_CA_AUTO_ADDR_LIST and EPICS_CA_ADDR_LIST) loaded by Archiver Appliance is correct, probably in your case "localhost" should be in the EPICS_CA_ADDR_LIST address list. > > > For example, in the Archiver Appliance single machine installation sample, the following line locates in sampleStartup.sh file, and setEPICSEnv.sh file sets the two environment variables above. In your case this line can be in the conf file, > > source /opt/local/setEPICSEnv.sh > > > > Regards, > > Lin > > > > -----Original Messages----- > From:"Manoussakis, Adamandios via Tech-talk" <tech-talk at aps.anl.gov> > Sent Time:2020-10-28 14:45:17 (Wednesday) > To: tech-talk <tech-talk at aps.anl.gov> > Cc: > Subject: Archiver Appliance PVs never connect to be archived, always "Initial Sampling" > > Hello All, > > I have started to build the epics archiver appliance following Hans repo at https://github.com/jeonghanlee/epicsarchiverap-env. Everything seems to be working great with the application and I am able to access the archiver web application just fine. I start up a basic softIoc with a couple PVs and my pyDM widget is able to control and access them just fine but I cannot get them to be archived by the appliance. I can also use caget/camonitor/caput without any issue to manipulate the softIoc. I saw another post about checking the ports in the appliances.xml but that seems to be correct from what I can tell. I tried to look through the logs in /opt/epicsarchiverap/engine mgmt etl retrieval but I didnt see any errors that stood out. I am not sure if its a connection issue with the ca and the archiver or a record thing I am missing but any advice would be helpful. I have tried using ca://calc:a , calc:a but no luck getting it to archive. > > appliances.xml > > <appliances> > <appliance> > <identity>appliance0</identity> > <cluster_inetport>localhost:16670</cluster_inetport> > <mgmt_url>http://localhost:17665/mgmt/bpl</mgmt_url> > <engine_url>http://localhost:17666/engine/bpl</engine_url> > <etl_url>http://localhost:17667/etl/bpl</etl_url> > <retrieval_url>http://localhost:17668/retrieval/bpl</retrieval_url> > <data_retrieval_url>http://localhost:17668/retrieval</data_retrieval_url> > </appliance> > </appliances> > > also checked the conf file for archappl > > JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" > JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom" > CATALINA_HOME="/usr/share/tomcat9" > CATALINA_OPTS="-XX:MaxMetaspaceSize=256m -Xms512m -Xmx512m -XX:+UseG1GC -ea" > > ARCHAPPL_APPLIANCES="/opt/epicsarchiverap/appliances.xml" > ARCHAPPL_POLICIES="/opt/epicsarchiverap/policies.py" > ARCHAPPL_PROPERTIES_FILENAME="/opt/epicsarchiverap/archappl.properties" > ARCHAPPL_MYIDENTITY="appliance0" > ARCHAPPL_STORAGE_TOP="/arch" > ARCHAPPL_SHORT_TERM_FOLDER="/arch/sts/ArchiverStore" > ARCHAPPL_MEDIUM_TERM_FOLDER="/arch/mts/ArchiverStore" > ARCHAPPL_LONG_TERM_FOLDER="/arch/lts/ArchiverStore" > > Example Record for one of the PVs > > record(ao,"$(INST):a"){ > field(DESC,"Input A") > field(DTYP,"Soft Channel") > field(PREC,1) > field(DRVH,10) > field(HOPR,10) > field(VAL,0) > field(LOPR,-10) > field(DRVL,-10) > field(UDF,1) > field(FLNK,"$(INST):sum") > field(ADEL,0) > field(MDEL,0) > } > > Thanks |