Detector Operation›Automation
#12545
Problem in AlpMain due to mysterious changes in the config file
This morning I was called in Control Room since the automation was no longer properly working (with the consequent impossibilty to work on locking).
I spent a few hours in investigating the problem, also with the help of Matt, Stefano, Allberto and Alain (at phone).
The problem was quite hidden and initially masked by a problem occurred on the CoilRelayServer. Indeed, the CoilRelayServer seemed initially the source of the problem, but later we realized that it was only a consequence due to too many command request send by AlpMain.
The real origin of the problem was in the main logic of AlpMain server, that was generating a nested behaviour of LockInit macro.
The main logic of AlpMain was spoiled due to a few changes in a related config file (Service.cfg), occurred between Monday 21:49 and Thursday 11:02.
Some of the identified changes are:
ctrl12[~/home]: diff log_Alp_11_02_03.log Alp_log_19Jun_21.49.18.log
1c1
< Open at Jun20,06-11:02:07 - Host olserver1
---
> Open at Jun19,06-21:49:21 - Host olserver1
667c667
< CMD_CM Sa_EServerDSP_PR StartRampe -i 2 -text txMarMis -f 0 -i 300
---
> CMD_CM Sa_EServerDSP_PR StartRampe -i 2 -text txMarMis -f 0 -i 500
774c774
< IF WAITT <= 1
---
> IF WAITT <= 0
779c779
< IF LOCKED == 1
---
> IF LOCKED == 0
1052,1053c1052,1053
< OP i = 1
< OP TMP = 1
---
> OP i = 0
> OP TMP = 0
In particular, the change of " IF LOCKED == 0 " into "IF LOCKED == 1 " has produced the crazy behaviour.
I restored the initial value and after that (at around 14:00) it was possible to go on with the locking activity.
Please, in the future, before performing similar changes, inform me (even if you are sure that these changes could improve the system).