Closed agausmann closed 7 years ago
Try turning off data and event recording in Strongback's configuration. And, since the exception is due to permission problems, so it’d be awesome if you can try to debug the problem and see if the fix is a change to the directory structure or if a different path is needed this year.
I found the problem. The working directory of our robot was the root... obviously an unprivileged user wouldn't have write access. I patched the problem by running this in robotInit()
:
Strongback.configure()
.recordDataToFile("/home/lvuser/")
.recordEventsToFile("/home/lvuser/", 2097152); // 2 megabytes
Closing since this isn't a Strongback issue.
I'm going to reopen this issue so that we change the default directories where these files are read. Currently, the default location is not writable on the robot, which is run from the root directory as user lvuser
. However, the default really should be the home directory for this user, which we can find using system properties.
Closing after better documenting the recordDataToFile(...)
and recordEventsToFile(..)
methods in #85.
This occurs when I call
Strongback.start()
in my robot'steleopInit()
method. Removing the method call fixes the problem, but I assume Strongback is not fully initialized if I do so.