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  2021  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: RE: Alarms.services in Phoebus Alarms
From: SAINTIN Katy via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 16 Nov 2023 13:44:12 +0000

Hello Xiaomin

 

1 - We had the same issue, at CEA when we use systemctl to start alarm server as a service.

The reason was  that the environment variable such as $EPICS_CA_ADDR_LIST is not defined when the service is started.

So we solve the problem in calling source /etc/bashrc to set all the variable environment.

 

2 – Phoebus client only know Kafka server, on there is no connexion betwenn phoebus alarm service and Phoebus client.

You have to check that Kafka is running on server side.

>> systemctl status kafka

 

I hope it will help you.

 

Katy

 

 

De : Tech-talk <tech-talk-bounces at aps.anl.gov> De la part de ??? via Tech-talk
Envoyé : jeudi 16 novembre 2023 08:23
À : tech-talk at aps.anl.gov
Objet : Alarms.services in Phoebus Alarms

 

Hi,

I'm having a problem with alarm-servers. I've attached the error. Phoebus shows normal when I execute the ./alarm-server.sh directly in the terminal, but it shows ‘No Alarm Server Connection’ when I use the alarms.service file for autostart. At the same time, I find it strange that the alarm config file can be imported successfully. It seems that the alarm-server can connect to Phoebus, but PV cannot. The PV data is incorrect, and what is the reason for this?

The alarms.server file is as follows:

[Unit]  

After=network.target kafka.target

Requires=zookeeper.service

Requires=kafka.service

[Service]

User=sysadmin

Type=simple

ExecStart=/opt/alarm/phoebus/services/alarm-server/alarm-service.sh -settings /opt/alarm/phoebus/services/alarm-server/settings.ini

WorkingDirectory=/opt/alarm/phoebus/services/alarm-server/

RemainAfterExit=true

[Install]

WantedBy=multi-user.target 

 

Thanks,

xiaomin


References:
Alarms.services in Phoebus Alarms 刘晓敏 via Tech-talk

Navigate by Date:
Prev: Re: StreamDevice (streamCore::readCallback called unexpectedly) Zimoch Dirk via Tech-talk
Next: Re: RE: EPICS Archiver Appliance and Channel Filter Shankar, Murali 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  2021  2022  <20232024 
Navigate by Thread:
Prev: Alarms.services in Phoebus Alarms 刘晓敏 via Tech-talk
Next: Re: RE: EPICS Archiver Appliance and Channel Filter Shankar, Murali 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  2021  2022  <20232024 
ANJ, 16 Nov 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·