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  <20222023  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  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: dbpf error - Operation not permitted at IOC initialization
From: "Marco A. Barra Montevechi Filho via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 14 Jun 2022 20:20:14 +0000
Hello and good evening, all.

We are running an OPCUA IOC which works relatively fine. The IOC had some problems with PINI so we defined a few dbpf's in some PROC fields in its st.cmd file, right after iocInit.
At initialization i often get several "Operation not permitted - dbPutField error" which i believe might be another version of the problem we were having with the PINI field. However, if i initialize the IOC, wait for my epics terminal and type:

dbpf <MY_PV>.PROC 1
dbpf <MY_PV>.PROC 0

it works just fine.

Based on this, can i assume my links are not connected yet when the first dbpfs are called? How do i debug this kind of problem?
If my links are indeed not connected and i should wait for connection, what is the EPICS recommended way of doing this?
I append the IOC initialization log at the end of this message. Thanks in advance for any help 🙂


#!/usr/local/epics/apps/OPCUA_IOC/bin/linux-x86_64/OPCUAIOC
cd ..
epicsEnvSet IOC OPCUAIOC
epicsEnvSet("IOCNAME", "MGN-A-OPCUA")
dbLoadDatabase "/usr/local/epics/apps/OPCUA_IOC/dbd/OPCUAIOC.dbd",0,0
OPCUAIOC_registerRecordDeviceDriver pdbbase
drvOpcuaSetup("opc.tcp://10.32.8.200:4840","","",0)
dbLoadRecords("/usr/local/epics/apps/config/OPCUA/MGN_PPS_GLOBAL.db","P=MGN:G:,Q=PPS01")
dbLoadRecords("/usr/local/epics/apps/config/OPCUA/MGN_PPS_MACHINE.db","P=MGN:M:,Q=PPS01")
dbLoadRecords("/usr/local/epics/apps/config/OPCUA/MGN_PPS_FE.db","P=MGN:F:,Q=PPS01")
dbLoadRecords("/usr/local/epics/apps/config/OPCUA/MGN_PPS_OEA.db","P=MGN:A:,Q=PPS01")
dbLoadRecords("/usr/local/epics/apps/config/OPCUA/MGN_PPS_ESB.db","P=MGN:B:,Q=PPS01")
setIocLogDisable 1
# See init warnings
opcuaDebug(1)
iocInit
Starting iocInit
############################################################################
## EPICS R3.14.12.8
## EPICS Base built Nov  5 2018
############################################################################
cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 33251,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)
OpcUaSetupMonitors Browsepath ok len = 0
DevUaSubscription::createMonitoredItems

Add monitored items to subscription ...
iocRun: All initialization complete
# Be quiet
opcuaDebug(0)
opcuaStat(0)
OpcUa driver: Connected items: 67
dbpf MGN:M:PPS01:HABILITACAO_MAQUINA.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:M:PPS01:HABILITACAO_MAQUINA.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:SYSTEM_STATUS.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:SYSTEM_STATUS.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:FALHA_GLOBAL.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:FALHA_GLOBAL.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:EMERGENCIA_GLOBAL.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:EMERGENCIA_GLOBAL.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:ACQ_REC_GLOBAL.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:ACQ_REC_GLOBAL.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:ACK_OP_Q.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:G:PPS01:ACK_OP_Q.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:F:PPS01:PG_STATUS.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:F:PPS01:PG_STATUS.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:F:PPS01:PG_FEEDBACK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:F:PPS01:PG_FEEDBACK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:F:PPS01:HABILITACAO_EPS.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:F:PPS01:HABILITACAO_EPS.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:F:PPS01:FOEPGCYCLES.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:F:PPS01:FOEPGCYCLES.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:F:PPS01:FOEOPENCLOSE.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:F:PPS01:FOEOPENCLOSE.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:B:PPS01:SEARCH_OK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:SEARCH_OK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PROCURA_FINALIZADA.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PROCURA_FINALIZADA.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PROCURA_EM_ANDAMENTO.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PROCURA_EM_ANDAMENTO.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO2_OSSD.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO2_OSSD.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO2_LOCK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO2_LOCK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO2_CLOSED.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO2_CLOSED.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO1_OSSD.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO1_OSSD.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO1_LOCK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO1_LOCK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO1_CLOSED.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:PIZZATO1_CLOSED.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:LC_INT.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:LC_INT.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:LC_EXT.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:LC_EXT.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ESB_LAB_KEY.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ESB_LAB_KEY.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ESB_HABILITADA.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ESB_HABILITADA.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_SP4.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_SP4.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_SP3.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_SP3.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_SP2.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_SP2.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_SP1.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_SP1.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_LC_INT.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_LC_INT.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_KPF.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_KPF.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_ESB.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:EMERGENCIA_ESB.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ABB_OSSD.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ABB_OSSD.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ABB_LOCK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ABB_LOCK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ABB_INFO.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:B:PPS01:ABB_INFO.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:SEARCH_OK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:SEARCH_OK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:RESET_KEY.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:RESET_KEY.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:RAD_KEY.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:RAD_KEY.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PROCURA_FINALIZADA.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PROCURA_FINALIZADA.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PROCURA_EM_ANDAMENTO.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PROCURA_EM_ANDAMENTO.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO2_OSSD.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO2_OSSD.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO2_LOCK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO2_LOCK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO2_CLOSED.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO2_CLOSED.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO1_OSSD.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO1_OSSD.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO1_LOCK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO1_LOCK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO1_CLOSED.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PIZZATO1_CLOSED.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PG_STATUS.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PG_STATUS.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PG_FEEDBACK.PROC 1
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:PG_FEEDBACK.PROC 0
filename="../dbTest.c" line number=364
Operation not permitted - dbPutField error

dbpf MGN:A:PPS01:OEA_HABILITADA.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:OEA_HABILITADA.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:OEAPGCYCLES.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:OEAPGCYCLES.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:O3_FAILURE.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:O3_FAILURE.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:O3_ALARM_2.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:O3_ALARM_2.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:O3_ALARM_1.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:O3_ALARM_1.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:O3.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:O3.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:O2_FAILURE.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:O2_FAILURE.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:O2_ALARM.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:O2_ALARM.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:O2.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:O2.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:LC_INT.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:LC_INT.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:HABILITACAO_EPS.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:HABILITACAO_EPS.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:ESB_KEY.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:ESB_KEY.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:EMERGENCIA_SP1.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:EMERGENCIA_SP1.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:EMERGENCIA_OEA.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:EMERGENCIA_OEA.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:EMERGENCIA_LC_INT.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:EMERGENCIA_LC_INT.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:EMERGENCIA_KPF.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:EMERGENCIA_KPF.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:ABB_OSSD.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:ABB_OSSD.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:ABB_LOCK.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:ABB_LOCK.PROC 0
DBR_UCHAR:          0         0x0                
dbpf MGN:A:PPS01:ABB_INFO.PROC 1
DBR_UCHAR:          1         0x1                
dbpf MGN:A:PPS01:ABB_INFO.PROC 0
DBR_UCHAR:          0         0x0                
epics>

Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.


Replies:
Re: dbpf error - Operation not permitted at IOC initialization Eric Norum via Tech-talk
Re: dbpf error - Operation not permitted at IOC initialization Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Problem with NTP configuration Matt Rippa via Tech-talk
Next: Re: dbpf error - Operation not permitted at IOC initialization Eric Norum 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  <20222023  2024 
Navigate by Thread:
Prev: Re: win10 and base7.0.6.1 Ralph Lange via Tech-talk
Next: Re: dbpf error - Operation not permitted at IOC initialization Eric Norum 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·