ScenarioLoder Error "Permission denied"

24 views
Skip to first unread message

José Carlos de Campos

unread,
Jun 23, 2011, 8:14:37 PM6/23/11
to dx-comp...@googlegroups.com
Hi,

I compiled DX10 and installed it on my computer. After I changed config.xml of ExampleDA to enable system ADAPT and ran ./ScenarioLoder , the application returns:

SL: INFO: Iterating through DAs in:
/home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs
SL: INFO: Loading Diagnoser: Example Diagnosis Algorithm
SL: ERROR: Permission denied
SL: ERROR: Exception. Terminating DA.
DA unable to connect. Make sure ScenarioLoader (or StandaloneSDS) is running.
SL: INFO: Exiting...
SL: ERROR: Timed out waiting for scenario start (check DA -> SDS connection).
SL: ERROR: Exception. Terminating DA.
SL: INFO: Exiting...

analyzed the ScenarioLoder.cpp and the "SL: ERROR: Permission denied" happend at line 192 "da->start();" .
It doesn't permission to run or write something, but what?!

---8<---

When I run ./SDS -a -v ADAPT -o ../Scenarios/Results/a.out ../Scenarios/ADAPT/Exp_1158_pb_ADAPT.scn the aplication returns:

Writing to file.
Awaiting DA...
SDS: INFO: Parsing scenario file: ../Scenarios/ADAPT/Exp_1158_pb_ADAPT.scn
SDS: INFO: Running in abbreviated mode.
Scenario ended.

The first four lines of a.out (output file):

scenarioStatus @1308872627314 <DA> DA_READY;
scenarioStatus @1308872627315 <SDS> SCENARIO_STARTED;
scenarioInfo @1308872627343 <SDS> scenarioName = 'Exp_1158_pb_ADAPT', system = 'ADAPT', systemVersion = 'DXC10', daName = '', daVersion = '', frameworkVersion = '', scenarioLength = 240000, notes = 'Running in abbreviated mode.';
sensors @1308872627364 { E140 = 25.1279, E142 = 0.0, E165 = 0.146487, E181 = 0.0, E240 = 24.9522, E242 = 0.043946, E265 = 0.21973, E281 = 0.0292973, E340 = 24.6299, ESH141A = false, ESH144A = false, ESH241A = false, ESH244A = false, ESH341A = false, ESH344A = false, FT520 = 0.0, FT525 = 0.0, ISH136 = true, ISH236 = true, ISH336 = true, IT140 = 0.064112, IT167 = -0.00743261, IT181 = 0.0121179, IT240 = -0.0453708, IT267 = 0.00820779, IT281 = 0.000387593, IT340 = -0.0453708, ST515 = 0.0, ST516 = 0.0, TE128 = 69.2648, TE228 = 69.2937, TE328 = 71.5431, TE500 = 66.7346, TE501 = 66.7443, TE502 = 65.9602, TE505 = 67.6819, TE506 = 66.752, TE507 = 67.3001, TE510 = 68.856, TE511 = 65.1575 };

Can you tell me if this result is correct? Only just to know that I am running the example correctly.


FYI: my sistem is Debian GNU/Linux Wheezy



With kind regards,
José Carlos de Campos

Alexander Feldman

unread,
Jun 24, 2011, 1:15:16 AM6/24/11
to dx-comp...@googlegroups.com
Hi José,

Could you, please, send the output of:

ls -al /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs/*/*

Best regards,

-- Alex

José Carlos Campos

unread,
Jun 24, 2011, 5:56:42 AM6/24/11
to dx-comp...@googlegroups.com
-rw-r--r-- 1 zecarlos zecarlos  1580 Jun 24 00:37 /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs/ExampleDA/config.xml
-rwxr-xr-x 1 zecarlos zecarlos 33228 Jun 22 16:44 /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs/ExampleDA/ExampleDA
--
Regards,
José Carlos de Campos

Alexander Feldman

unread,
Jun 24, 2011, 6:03:04 AM6/24/11
to dx-comp...@googlegroups.com
OK,

Could you also please send the output of:

uname -a

and

file /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs/ExampleDA/ExampleDA

José Carlos Campos

unread,
Jun 24, 2011, 6:11:26 AM6/24/11
to dx-comp...@googlegroups.com
On Fri, Jun 24, 2011 at 11:03 AM, Alexander Feldman <feldm...@gmail.com> wrote:
OK,

Could you also please send the output of:

Yes, of course....
 

uname -a

Linux vaio 2.6.39-2-amd64 #1 SMP Wed Jun 8 11:01:04 UTC 2011 x86_64 GNU/Linux
 

and

file /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs/ExampleDA/ExampleDA

When I run ExampleDA alone, without ScenarioLoader ou SDS running the output is:

Alexander Feldman

unread,
Jun 24, 2011, 11:26:58 AM6/24/11
to dx-comp...@googlegroups.com
Hi José,

It seems to me that the problem is that you're trying to run a 32-bit executable on a 64-bit machine or vice-versa or a missing/wrong .so or something like that. To solve this fully could you also send the output of:

ldd /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs/ExampleDA/ExampleDA

also

ldd /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Lib/libdxcApi.so

Sorry it took so many steps - I am still unsure in the RCoF.

Best,

-- Alex

José Carlos Campos

unread,
Jun 24, 2011, 12:24:51 PM6/24/11
to dx-comp...@googlegroups.com
Hi Alex,

On Fri, Jun 24, 2011 at 4:26 PM, Alexander Feldman <feldm...@gmail.com> wrote:
Hi José,

It seems to me that the problem is that you're trying to run a 32-bit executable on a 64-bit machine or vice-versa or a missing/wrong .so or something like that.

I don't think so.... I tried it in a virtual machine with Ubuntu 32bits ( uname -a : Linux vb-VirtualBox 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux ) and the ./ScenarioLoader returns the same output.

 
To solve this fully could you also send the output of:

ldd /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs/ExampleDA/ExampleDA


linux-vdso.so.1 =>  (0x00007ffff73ff000)
libdxcApi.so => /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Lib/libdxcApi.so (0x00007fc44e90e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fc44e6f2000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fc44e3e7000)
libm.so.6 => /lib/libm.so.6 (0x00007fc44e165000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fc44df4f000)
libc.so.6 => /lib/libc.so.6 (0x00007fc44dbcb000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc44eb89000)

 
also

ldd /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Lib/libdxcApi.so

linux-vdso.so.1 =>  (0x00007fff26527000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fb2d500b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fb2d4d01000)
libm.so.6 => /lib/libm.so.6 (0x00007fb2d4a7e000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fb2d4868000)
libc.so.6 => /lib/libc.so.6 (0x00007fb2d44e5000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb2d54a2000)

 

Sorry it took so many steps - I am still unsure in the RCoF.

No problem... ;-)


Regards,
José Carlos de Campos

David Garcia

unread,
Jun 24, 2011, 12:32:59 PM6/24/11
to dx-comp...@googlegroups.com

I think the problem might be with the Oracle, since running SDS in standalone mode seems to work. Just to make sure it isn't a permissions issue, could you check that the following files are readable:

bin/models/*
SystemCatalogs/*

And that the Oracle binary in bin/ has the +x bit set?

David G

On Jun 24, 2011 8:27 AM, "Alexander Feldman" <feldm...@gmail.com> wrote:
> Hi José,
>
>>>> I analyzed the ScenarioLoder.cpp and the "/SL: ERROR:
>>>> Permission denied/" happend at line 192 "da->start();" .

José Carlos Campos

unread,
Jun 24, 2011, 12:48:52 PM6/24/11
to dx-comp...@googlegroups.com
Hi David,

On Fri, Jun 24, 2011 at 5:32 PM, David Garcia <davi...@gmail.com> wrote:

I think the problem might be with the Oracle, since running SDS in standalone mode seems to work. Just to make sure it isn't a permissions issue, could you check that the following files are readable:

bin/models/*
SystemCatalogs/*


Yes, the files on this foldes are readable. All files have -rw-r--r-- .
 

And that the Oracle binary in bin/ has the +x bit set?


Oracle binary had -rw-r--r-- so I changed to -rwxr-xr-x .
Now, when I run ./ScenarioLoader the output is:

SL: INFO: Iterating through DAs in: 
/home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Algs
SL: INFO: Loading Diagnoser: Example Diagnosis Algorithm
 Starting Oracle...
Couldn't find hostname. 31343
Oracle:OracleConnector::registerCallback: Unable to create OracleConnector, a common reason is that the SDS application not running. Exiting...
SDS: INFO: Parsing scenario file: /home/zecarlos/Desktop/DXC10v2.1-Linux-x86-Oracle_0/DXC/Scenarios/ADAPT/Exp_1158_pb_ADAPT.scn


What hostname?

David Garcia

unread,
Jun 24, 2011, 1:14:16 PM6/24/11
to dx-comp...@googlegroups.com
It's trying to resolve the hostname "localhost". Do you have it in your /etc/hosts?

David G

2011/6/24 José Carlos Campos <zecapi...@googlemail.com>

José Carlos Campos

unread,
Jun 24, 2011, 1:28:00 PM6/24/11
to dx-comp...@googlegroups.com
cat /etc/hosts

127.0.0.1 localhost
127.0.1.1 vaio.local.lan vaio

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
José Carlos de Campos

Alexander Feldman

unread,
Jun 24, 2011, 1:29:31 PM6/24/11
to dx-comp...@googlegroups.com
And if you type just `hostname'?

José Carlos Campos

unread,
Jun 24, 2011, 1:34:19 PM6/24/11
to dx-comp...@googlegroups.com
On Fri, Jun 24, 2011 at 6:29 PM, Alexander Feldman <feldm...@gmail.com> wrote:
And if you type just `hostname'?


I get "vaio" (without quotes).



--
Cumprimentos,
José Carlos de Campos

Please consider the environment before printing this e-mail

David Garcia

unread,
Jun 24, 2011, 1:46:56 PM6/24/11
to dx-comp...@googlegroups.com
Can you "ping localhost"? I suspect you will be able to, since the other DXC programs seem to be communicating fine, but it's worth a shot.

If ping works, I think we'll have to send you an updated version of the Oracle. (There is a patched version available on the website, but I think the issue it patches is different--though you should give it a try anyhow).

NASA folks will have to help us out with this, as the Oracle depends on the HyDE API, which I don't currently have a copy of.

Alexander Feldman

unread,
Jun 24, 2011, 1:48:49 PM6/24/11
to dx-comp...@googlegroups.com
José,

Which track are you in? If you're not developing for the industrial track you can disable the Oracle and the rest should work just fine.

Best,

-- A

José Carlos Campos

unread,
Jun 24, 2011, 1:57:48 PM6/24/11
to dx-comp...@googlegroups.com
Hi,

On Fri, Jun 24, 2011 at 6:48 PM, Alexander Feldman <feldm...@gmail.com> wrote:
José,

Which track are you in? If you're not developing for the industrial track you can disable the Oracle and the rest should work just fine.

No, I am not developing for the industrial track but for the software track. How can I disable the Oracle?
 

Best,

-- A


On 06/24/2011 07:46 PM, David Garcia wrote:
Can you "ping localhost"? I suspect you will be able to, since the other DXC programs seem to be communicating fine, but it's worth a shot.


Yes, I can ping localhost and vaio.

 
If ping works, I think we'll have to send you an updated version of the Oracle. (There is a patched version available on the website, but I think the issue it patches is different--though you should give it a try anyhow).

I can try, where is the new version or patch?



-- José Carlos de Campos

Alexander Feldman

unread,
Jun 24, 2011, 2:00:01 PM6/24/11
to dx-comp...@googlegroups.com
Make sure there there is the line

RUN_ORACLE = "FALSE"

in Dxc.cfg

Best,

-- Alex

José Carlos Campos

unread,
Jun 24, 2011, 2:25:57 PM6/24/11
to dx-comp...@googlegroups.com
On Fri, Jun 24, 2011 at 7:00 PM, Alexander Feldman <feldm...@gmail.com> wrote:
Make sure there there is the line

RUN_ORACLE = "FALSE"

in Dxc.cfg

Yah, now it runs ok.

In the past other participants doesn't had the same problems with Oracle? Or everyone use the version for windows?!

---8<---

Just to check.... First six lines of "Example Diagnosis Algorithm - ADAPT - Exp_1158_pb_ADAPT.scn":

scenarioStatus @1308938931894 <SDS> SDS_AWAITING_DA;
scenarioStatus @1308938932900 <DA> DA_READY;
scenarioStatus @1308938932901 <SDS> SCENARIO_STARTED;
scenarioInfo @1308938932901 <SDS> scenarioName = 'Exp_1158_pb_ADAPT', system = 'ADAPT', systemVersion = 'DXC10', daName = '"Example Diagnosis Algorithm"', daVersion = '"DXC10"', frameworkVersion = 'DXC10', scenarioLength = 240000, notes = '';
diagnosis @1308938932907 <DA> detection = true, isolation = true, candidates = { { a = bias, b = switchedOff } [weight = 0.3], { c = stuckClosed, d = stuckOpen } [weight = 0.5], { c = stuckOpen, d = stuckClosed } [weight = 0.2] }, notes = 'example diagnosis';
sensors @1308938932941 { E140 = 25.1279, E142 = 0.0, E165 = 0.146487, E181 = 0.0, E240 = 24.9522, E242 = 0.043946, E265 = 0.21973, E281 = 0.0292973, E340 = 24.6299, ESH141A = false, ESH144A = false, ESH241A = false, ESH244A = false, ESH341A = false, ESH344A = false, FT520 = 0.0, FT525 = 0.0, ISH136 = true, ISH236 = true, ISH336 = true, IT140 = 0.064112, IT167 = -0.00743261, IT181 = 0.0121179, IT240 = -0.0453708, IT267 = 0.00820779, IT281 = 0.000387593, IT340 = -0.0453708, ST515 = 0.0, ST516 = 0.0, TE128 = 69.2648, TE228 = 69.2937, TE328 = 71.5431, TE500 = 66.7346, TE501 = 66.7443, TE502 = 65.9602, TE505 = 67.6819, TE506 = 66.752, TE507 = 67.3001, TE510 = 68.856, TE511 = 65.1575 };

Can you tell me if this result is correct? Only just to know that I am running the example correctly and everything is fine.
Reply all
Reply to author
Forward
0 new messages