Hey Guys,
after i updated to the newest version of the NRP recently (~3 days ago, ./update_nrp update all), the backend seems to break after one experiment. What i mean by that is the following:
- cle-frontend
- cle-start
- start your experiment of choice
- close your experiment
- try to restart the experiment
- get this:
2018-01-29 16:21:41,250 [uWSGIWorker1] [hbp_nrp_back] [ERROR] ‘Error while communicating with the CLE (timeout exceeded while waiting for service /ros_cle_simulation/create_new_simulation)’ (CLE error)
Traceback (most recent call last):
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/flask/app.py”, line 1612, in full_dispatch_request
rv = self.dispatch_request()
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/flask/app.py”, line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/flask_restful/init.py”, line 480, in wrapper
resp = resource(*args, **kwargs)
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/flask/views.py”, line 84, in view
return self.dispatch_request(*args, **kwargs)
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/flask_restful/init.py”, line 595, in dispatch_request
resp = meth(*args, **kwargs)
File “./hbp_nrp_backend/rest_server/__SimulationService.py”, line 176, in post
sim.state = “initialized”
File “./hbp_nrp_backend/simulation_control/__Simulation.py”, line 237, in state
self.__lifecycle.accept_command(new_state)
File “/home/ben/Documents/NRP/ExDBackend/hbp_nrp_commons/hbp_nrp_commons/simulation_lifecycle.py”, line 182, in accept_command
self.__machine.events[command].trigger()
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/transitions/extensions/locking.py”, line 22, in trigger
super(LockedEvent, self).trigger(*args, **kwargs)
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/transitions/core.py”, line 222, in trigger
return self.machine.process(f)
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/transitions/extensions/locking.py”, line 15, in call
return self.func(*args, **kwargs)
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/transitions/core.py”, line 526, in process
return trigger()
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/transitions/core.py”, line 247, in _trigger
if t.execute(event):
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/transitions/core.py”, line 145, in execute
machine.callback(func, event_data)
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/transitions/extensions/locking.py”, line 15, in call
return self.func(*args, **kwargs)
File “/home/ben/.opt/platform_venv/lib/python2.7/site-packages/transitions/core.py”, line 516, in callback
func(event_data)
File “./hbp_nrp_backend/simulation_control/__BackendSimulationLifecycle.py”, line 223, in initialize
“CLE error”)
NRPServicesGeneralException: ‘Error while communicating with the CLE (timeout exceeded while waiting for service /ros_cle_simulation/create_new_simulation)’ (CLE error)
Sometimes, you don’t get an exception and everything works fine, but the experiments seem to get cached now? Any changes you make after an initial cle-start seem disregarded in the next run of the experiment (if it does not break like above), only a cle-kill cle-start gets your changes through then.
Regards,
Ben