Hello everyone,
I wanted to share my recent experience while working with the registry and integrating components into my robot's configuration. Before diving into developing a custom package, I decided to get a better understanding of how the registry functions.
After adding some components from the registry to my robot's configuration and saving the changes, I encountered a recurring issue. Most of the package installations failed with this error message: 'Error adding module - Module <<X>> - Error while starting module <<X>>: Timed out waiting for module <<X>> to start listening.'
In addition, on some occasions (seemingly without a pattern I could discern), I received a different error message: 'Resource rdk-internal:service:frame_system/builtin timed out during reconfigure. The default timeout is 1 minute (1m0s); you can update the VIAM_RESOURCE_CONFIGURATION_TIMEOUT environment variable to override this.'
Upon investigation, I discovered that these installation failures were due to a timeout, and to address this, I learned that the VIAM_RESOURCE_CONFIGURATION_TIMEOUT environment variable needs to be set in the service file. The format for this variable is a bit unusual, resembling '1m0s,' which translates to 1 minute and 0 seconds.
However, I couldn't find any information about this setting in the documentation, and I believe it's crucial to clarify this for others who may face similar issues. Additionally, I'm using a Raspberry Pi 3 with a relatively slow WiFi connection, which might be a contributing factor to these timeout errors.
I'd greatly appreciate it if anyone could confirm if my understanding is correct and offer any further insights or solutions to address these timeout problems. Thank you!