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  <20202021  2022  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Re: lakeshore336 msi: Can't open file 'ioc_sns.db'
From: Juliane Reinhardt via Tech-talk <tech-talk at aps.anl.gov>
To: "Pearson, Matthew R." <pearsonmr at ornl.gov>, "Hartman, Steven" <hartmansm at ornl.gov>, Jeong Han Lee <citadel.lee at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 17 Dec 2020 21:53:31 -0800
Hi everyone,

Thanks for your help to build the IOC.
I pulled the latest version with the sns specific template removed and rebuilt the application after modifying the configure/RELEASE file. That worked fine. However, when starting the IOC I get multiple errors. I searched for solutions but wasn't successful yet. I would appreciate if you could point me to some solution as I am still relatively new to EPICS and with every IOC installation I learn more but only after running into quite some issues. I attached the output of the ioc startup.

Best,
Juliane

On 12/15/20 07:27, Pearson, Matthew R. wrote:
Hi,

Sorry about that. Steve is right, it's just a SNS specific template that shouldn't have been in the example IOC. I've removed the use of devIocStats from the example IOC on GitHub.

Cheers,
Matt

-----Original Message-----
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Hartman,
Steven via Tech-talk
Sent: Tuesday, December 15, 2020 9:15 AM
To: Jeong Han Lee <citadel.lee at gmail.com>; Juliane Reinhardt
<jreinhardt at lbl.gov>
Cc: tech-talk <tech-talk at aps.anl.gov>
Subject: Re: [EXTERNAL] Re: lakeshore336 msi: Can't open file 'ioc_sns.db'



On Dec 15, 2020, at 2:27 AM, Jeong Han Lee via Tech-talk <tech-
talk at aps.anl.gov> wrote:
  Please look at the example.substitutions file. It uses ioc_sns.db
within there. My first guess ioc_sns.db file is missing or is located
in a wrong directory.


ioc_sns.db is a local configuration file for customizing iocStats on the SNS
beam lines. It can be safely ignored / commented out.

--
Steven Hartman
hartmansm at ornl.gov



--
Juliane Reinhardt, PhD
Project Scientist | ALS Computing Group
Blg. 15-337E | phone: 510-486-4313
jreinhardt at lbl.gov
Lawrence Berkeley National Lab

{\rtf1\ansi\ansicpg1252\cocoartf2513
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\f0\fs24 \cf0 cosmic@bl7011-IOC1:~/epics/R7.0.4/modules/support/lakeshore/lakeshore336/example/iocBoot/iocexample$ ../../bin/linux-x86_64/example st.cmd\
#!../../bin/linux-x86_64/example\
## You may have to change example to something else\
## everywhere it appears in this file\
< envPaths\
epicsEnvSet("IOC","iocexample")\
epicsEnvSet("TOP","/home/cosmic/epics/R7.0.4/modules/support/lakeshore/lakeshore336/example")\
epicsEnvSet("EPICS","/home/cosmic/epics/R7.0.4")\
epicsEnvSet("SUPPORT","/home/cosmic/epics/R7.0.4/modules/support")\
epicsEnvSet("ASYN","/home/cosmic/epics/R7.0.4/modules/support/asyn-R4-36")\
epicsEnvSet("STREAMDEVICE","/home/cosmic/epics/R7.0.4/modules/support/StreamDevice-2-8-9")\
epicsEnvSet("LAKESHORE336","/home/cosmic/epics/R7.0.4/modules/support/lakeshore/lakeshore336")\
epicsEnvSet("AUTOSAVE","/home/cosmic/epics/R7.0.4/modules/support/autosave-R5-10")\
epicsEnvSet("EPICS_BASE","/home/cosmic/epics/R7.0.4/base")\
cd /home/cosmic/epics/R7.0.4/modules/support/lakeshore/lakeshore336/example\
#Define protocol path\
epicsEnvSet("STREAM_PROTOCOL_PATH", "/home/cosmic/epics/R7.0.4/modules/support/lakeshore/lakeshore336/protocol/")\
## Register all support components\
dbLoadDatabase "dbd/example.dbd"\
Declaration of recordtype(scalcout) preceeded full definition.\
Error at or before "\}" in file "dbd/example.dbd" line 10293\
example_registerRecordDeviceDriver pdbbase\
registerRecordDeviceDriver failed aSub\
registerRecordDeviceDriver failed aao\
registerRecordDeviceDriver failed ai\
registerRecordDeviceDriver failed ao\
registerRecordDeviceDriver failed asyn\
registerRecordDeviceDriver failed bo\
registerRecordDeviceDriver failed int64in\
registerRecordDeviceDriver failed int64out\
registerRecordDeviceDriver failed longout\
registerRecordDeviceDriver failed lsi\
registerRecordDeviceDriver failed mbboDirect\
registerRecordDeviceDriver failed permissive\
registerRecordDeviceDriver failed seq\
registerRecordDeviceDriver failed stringout\
registryJLinkAdd failed calc\
registryJLinkAdd failed const\
registryJLinkAdd failed debug\
registryJLinkAdd failed state\
registryJLinkAdd failed trace\
drvAsynIPPortConfigure ("L0","192.168.10.200:48010",0,0,0)\
2020/12/17 21:41:39.851 L0 -1 autoConnect could not connect: Can't connect to 192.168.10.200:48010: Connection refused\
## Load record instances\
dbLoadRecords "db/example.db"\
Record "BL9:SE:LS:DISABLE" is of unknown type "bo"\
Error at or before ")" in file "db/example.db" line 31\
Error: syntax error\
dbLoadRecords: failed to load 'db/example.db'\
#################################################\
# autosave\
epicsEnvSet("IOCNAME","lakeshore")\
epicsEnvSet("SAVE_DIR","/tmp/lakeshore")\
save_restoreSet_Debug(0)\
### status-PV prefix, so save_restore can find its status PV's.\
save_restoreSet_status_prefix("BL9:CS:LS:")\
set_requestfile_path("/tmp/lakeshore")\
set_savefile_path("/tmp/lakeshore")\
save_restoreSet_NumSeqFiles(3)\
save_restoreSet_SeqPeriodInSeconds(600)\
set_pass0_restoreFile("lakeshore.sav")\
set_pass0_restoreFile("lakeshore_pass0.sav")\
set_pass1_restoreFile("lakeshore.sav")\
#################################################\
cd /home/cosmic/epics/R7.0.4/modules/support/lakeshore/lakeshore336/example/iocBoot/iocexample\
iocInit\
Starting iocInit\
############################################################################\
## EPICS R7.0.4\
## Rev. 2020-07-15T11:42-0700\
############################################################################\
reboot_restore: entry for file 'lakeshore.sav'\
reboot_restore: Found filename 'lakeshore.sav' in restoreFileList.\
*** restoring from '/tmp/lakeshore/lakeshore.sav' at initHookState 6 (before record/device init) ***\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.sav'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore.savB'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.savB'.\
save_restore: Can't figure out which seq file is most recent,\
save_restore: so I'm just going to start with '/tmp/lakeshore/lakeshore.sav0'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore.sav0'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.sav0'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore.sav1'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.sav1'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore.sav2'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.sav2'.\
save_restore: Can't find a file to restore from...save_restore: ...last tried '/tmp/lakeshore/lakeshore.sav2'. I give up.\
save_restore: **********************************\
\
save_restore: Can't open save file.reboot_restore: entry for file 'lakeshore_pass0.sav'\
reboot_restore: Found filename 'lakeshore_pass0.sav' in restoreFileList.\
*** restoring from '/tmp/lakeshore/lakeshore_pass0.sav' at initHookState 6 (before record/device init) ***\
save_restore: Can't open file '/tmp/lakeshore/lakeshore_pass0.sav'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore_pass0.savB'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore_pass0.savB'.\
save_restore: Can't figure out which seq file is most recent,\
save_restore: so I'm just going to start with '/tmp/lakeshore/lakeshore_pass0.sav0'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore_pass0.sav0'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore_pass0.sav0'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore_pass0.sav1'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore_pass0.sav1'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore_pass0.sav2'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore_pass0.sav2'.\
save_restore: Can't find a file to restore from...save_restore: ...last tried '/tmp/lakeshore/lakeshore_pass0.sav2'. I give up.\
save_restore: **********************************\
\
save_restore: Can't open save file.reboot_restore: entry for file 'lakeshore.sav'\
reboot_restore: Found filename 'lakeshore.sav' in restoreFileList.\
*** restoring from '/tmp/lakeshore/lakeshore.sav' at initHookState 7 (after record/device init) ***\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.sav'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore.savB'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.savB'.\
save_restore: Can't figure out which seq file is most recent,\
save_restore: so I'm just going to start with '/tmp/lakeshore/lakeshore.sav0'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore.sav0'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.sav0'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore.sav1'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.sav1'.\
save_restore: Trying backup file '/tmp/lakeshore/lakeshore.sav2'\
save_restore: Can't open file '/tmp/lakeshore/lakeshore.sav2'.\
save_restore: Can't find a file to restore from...save_restore: ...last tried '/tmp/lakeshore/lakeshore.sav2'. I give up.\
save_restore: **********************************\
\
save_restore: Can't open save file.iocRun: All initialization complete\
# Create request file and start periodic 'save'\
epicsThreadSleep(5)\
makeAutosaveFileFromDbInfo("/tmp/lakeshore/lakeshore.req", "autosaveFields")\
save_restore:makeAutosaveFileFromDbInfo - unable to open file '/tmp/lakeshore/lakeshore.req'\
makeAutosaveFileFromDbInfo("/tmp/lakeshore/lakeshore_pass0.req", "autosaveFields_pass0")\
save_restore:makeAutosaveFileFromDbInfo - unable to open file '/tmp/lakeshore/lakeshore_pass0.req'\
create_monitor_set("lakeshore.req", 5)\
save_restore:readReqFile: unable to open file lakeshore.req. Exiting.\
create_monitor_set("lakeshore_pass0.req", 30)\
save_restore:readReqFile: unable to open file lakeshore_pass0.req. Exiting.\
epics> save_restore: Can't connect to all status PV(s)\
\
epics>\
epics>\
epics> dbl\
epics>}

Replies:
Re: [EXTERNAL] Re: lakeshore336 msi: Can't open file 'ioc_sns.db' Jeong Han Lee via Tech-talk
References:
lakeshore336 msi: Can't open file 'ioc_sns.db' Juliane Reinhardt via Tech-talk
Re: lakeshore336 msi: Can't open file 'ioc_sns.db' Jeong Han Lee via Tech-talk
Re: [EXTERNAL] Re: lakeshore336 msi: Can't open file 'ioc_sns.db' Hartman, Steven via Tech-talk
RE: [EXTERNAL] Re: lakeshore336 msi: Can't open file 'ioc_sns.db' Pearson, Matthew R. via Tech-talk

Navigate by Date:
Prev: Re: Intended use of NTMultiChannel Paduan Donadio, Marcio via Tech-talk
Next: Re: [EXTERNAL] Re: lakeshore336 msi: Can't open file 'ioc_sns.db' Jeong Han Lee 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [EXTERNAL] Re: lakeshore336 msi: Can't open file 'ioc_sns.db' Juliane Reinhardt via Tech-talk
Next: Re: [EXTERNAL] Re: lakeshore336 msi: Can't open file 'ioc_sns.db' Jeong Han Lee 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  <20202021  2022  2023  2024 
ANJ, 18 Dec 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·