INTO-CPS-Association / DTaaS-examples

Examples to demonstrate the features of DTaaS software
https://into-cps-association.github.io/DTaaS/development/user/examples/index.html
3 stars 8 forks source link

Fix of CORBA ORB not working #51

Closed mortenhaahr closed 1 month ago

mortenhaahr commented 2 months ago

The NuRV Monitor Service example stopped working. @Valdemartt found some bug fixes that are introduced in this PR.

All credits to @Valdemartt

prasadtalasila commented 1 month ago

@mortenhaahr The lifecycle/create script for this DT is not installing as many packages as that of plain incubator script. Is there a tacit assumption of using plain Incubator DT before using the DT with NuRV monitor service? Thanks for the clarification.

prasadtalasila commented 1 month ago

@Valdemartt and @mortenhaahr There seems to be a subtle error when executing this DT. There was an error when it was run the first time but works when it was run again.

▶ lifecycle/execute
Using LIFECYCLE_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle
Using NURV_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle/../../../common/services/NuRV
Using INCUBATOR_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle/../../../common/digital_twins/incubator
Started omniNames server
Started NuRV server
Established connection with NuRV
Starting incubator
Connected to rabbitmq server.
Running scenario with initial state: lid closed and energy saver on
Setting energy saver mode: enable
Setting G_box to: 0.5763498
State: !anomaly & !energy_saving, verdict: Unknown
State: !anomaly & !energy_saving, verdict: Unknown
State: !anomaly & !energy_saving, verdict: Unknown
State: !anomaly & !energy_saving, verdict: Unknown
State: !anomaly & !energy_saving, verdict: Unknown
State: !anomaly & !energy_saving, verdict: Unknown
State: !anomaly & !energy_saving, verdict: Unknown
State: !anomaly & !energy_saving, verdict: Unknown
mortenhaahr commented 1 month ago

@mortenhaahr The lifecycle/create script for this DT is not installing as many packages as that of plain incubator script. Is there a tacit assumption of using plain Incubator DT before using the DT with NuRV monitor service? Thanks for the clarification.

No. This is a bug. I fixed it in the latest commit.

mortenhaahr commented 1 month ago

@Valdemartt and @mortenhaahr There seems to be a subtle error when executing this DT. There was an error when it was run the first time but works when it was run again.

We are aware that there are some instability issues in this example. But once it gets started then it is stable.

Do you still have the error logs of it??

prasadtalasila commented 1 month ago

@Valdemartt and @mortenhaahr There seems to be a subtle error when executing this DT. There was an error when it was run the first time but works when it was run again.

We are aware that there are some instability issues in this example. But once it gets started then it is stable.

Do you still have the error logs of it??

They look like this:

▶ lifecycle/execute    
Using LIFECYCLE_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle
Using NURV_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle/../../../common/services/NuRV
Using INCUBATOR_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle/../../../common/digital_twins/incubator
Started omniNames server
Started NuRV server
Established connection with NuRV
Starting incubator
Connected to rabbitmq server.
Running scenario with initial state: lid closed and energy saver on
Setting energy saver mode: enable
Setting G_box to: 0.5763498
An error has occurred
Stopping nurvProcess with pid: 419612
Stopping omniNames with pid: 419608
Stopping incubator with pid: 419621
prasadtalasila commented 1 month ago

@mortenhaahr I get the following error on a clean workspace.

▶ lifecycle/execute 
Using LIFECYCLE_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle
lifecycle/execute: line 8: .venv/bin/activate: No such file or directory
Using NURV_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle/../../../common/services/NuRV
Using INCUBATOR_PATH: /workspace/examples/digital_twins/incubator-NuRV-monitor-service/lifecycle/../../../common/digital_twins/incubator
Traceback (most recent call last):
  File "execute.py", line 8, in <module>
    from omniORB import CORBA
ModuleNotFoundError: No module named 'omniORB'
(base) 
mortenhaahr commented 1 month ago

They look like this:

Had the same error happen to me but it also disappeared when retrying. If it continues I might look into it in a separate fix.

@mortenhaahr I get the following error on a clean workspace.

I cannot replicate this. I tried to delete my examples folder and rerun the example but it worked as intended. I also verified that omniorb-py is installed in the create script and everything appears good. Did the create script successfully execute?

@prasadtalasila can you provide details on this and whether it still happens?

prasadtalasila commented 1 month ago

@mortenhaahr The example works for me now. I might have been using the commit before updating the installation script. Thanks for rechecking everything.