Running application as sudo

2 posts / 0 new
Last post
Offline
Last seen: 5 years 5 months ago
Joined: 12/07/2016
Posts: 10
Running application as sudo

Hi:

I'm trying to run my application with RT priority. This requesres a sudo permission. However, the RTI DDS keeps complaining that it can't find the licence. But the process runs fine when I run is myself.

RTI Data Distribution Service No source for License information
Please contact support@rti.com with any questions or comments.
DDSDomainParticipant_impl::create_disabledI:!create participant
DDSDomainParticipant_impl::createI:!create participant
DomainParticipantFactory_impl::create_participant():!create failure creating participant
Unable to create domain participant.
Cannot initialize Actuators Proxy, exiting...

Is the license file only installed for one user on a system? Should its permissions be set in a different way?

Thank you.

 

 

Fernando Garcia's picture
Offline
Last seen: 4 months 1 week ago
Joined: 05/18/2011
Posts: 200

Hi Ilya,

There are different ways in which you can indicate RTI Connext DDS the path to your license file. These are fully documented here.

If you are using the RTI_LICENSE_FILE environment variable, when you run the application with sudo, the new environment may not be inheriting your previous environment and therefore RTI Connext DDS may not be able to access the value of RTI_LICENSE_FILE. Is that your case?

Could you setting the dds.license.license_string or dds.license.license_file properties? I think that might be more suitable for your deployment scenario.

Thanks,
Fernando.