VIAVI TestCenter-HLTAPI:RuntimeError in perform: Unable to open /home/eotResultsHltApi113044.db
Knowledge Base - FAQ
• Getting the below error with HLTAPI 4.46 GA while stopping the traffic while running the script on command line (single api at a time):
{stream_id streamblock1} {status 1}
% set hSb1 [keylget streamblock_ret1 stream_id]
streamblock1
% set streamhandle "$hSb1"
streamblock1
% set cmdRet [sth::traffic_control -stream_handle $streamhandle -action "run" -duration 2]
{status 1}
% set cmdRet [sth::traffic_control -stream_handle $streamhandle -action "stop"]
: error in ::sth::Traffic::traffic_control_imp -stream_handle streamblock1 -action stop -->: RuntimeError in perform: Unable to open /home/eotResultsHltApi113044.db
{log {error in ::sth::Traffic::traffic_control_imp -stream_handle streamblock1 -action stop -->: RuntimeError in perform: Unable to open /home/eotResultsHltApi113044.db}} {status 0}
• When we run complete script we don't see the issue
• If we run whole as a script the DB file will get saved to the same working directory but if we run execute the commands one by one for example from /home/sohelt/ directory using command line the DB gets saved to /home/. If we don’t have permission to the folder to write or modify we have observed the above error
N/A