Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite3 tests might block database [return code 5] #240

Closed
zmichaels11 opened this issue Dec 19, 2019 · 11 comments
Closed

SQLite3 tests might block database [return code 5] #240

zmichaels11 opened this issue Dec 19, 2019 · 11 comments
Assignees
Labels
bug Something isn't working tests Failing or missing tests

Comments

@zmichaels11
Copy link
Contributor

record_end_to_end_test has a small chance of failing:

  [1.194s] 1: [ERROR] [1576711769.035610056] [rosbag2_storage]: Could not open 'tmp_test_dir.jpS0UF/bag/bag_0' with 'sqlite3'. Error: Failed to setup storage. Error: Error processing SQLite statement. Return code: 5
  [1.195s] 1: [ERROR] [1576711769.035829055] [rosbag2_storage]: Could not load/open plugin with storage id 'sqlite3'.
  [1.195s] 1: [ERROR] [1576711769.035939955] [rosbag2_transport]: Failed to record: No storage could be initialized. Abort

This test has failed 3x total with a frequency of about 1/40 tests.

Resources:

@alrashwa
Copy link

alrashwa commented Jan 2, 2020

I'm seeing a similar error while following the ROS2 "Recording and Playing back data" tutorial. Any updates on this?

~/bag_files$ ros2 bag record /turtle1/cmd_vel
[ERROR] [rosbag2_storage]: Could not load/open plugin with storage id 'sqlite3'.
[ERROR] [rosbag2_transport]: Failed to record: No storage could be initialized. Abort

@zmichaels11
Copy link
Contributor Author

@alrashwa that error looks like its caused by not having the rosbag2 sqlite3 storage plugin installed. Its provided by the package rosbag2_storage_default_plugins.

If that's not the cause, can you please respond back with more information (ROS2 distro, OS, type of ROS2 install) so I can determine if its related to this issue?

Thanks

@alrashwa
Copy link

alrashwa commented Jan 3, 2020

Thanks, I think that package was it. It looks like the rosbag2 install process as shown in the tutorials usually would install this package. I ran into an issue (looks like others have as well) where the installer is interrupted when it hits a dependency on ros-eloquent-ros1-bridge.

I was able to install the rosbag2_storage_default_plugins individually using apt-get install ros-eloquent-rosbag2-storage-default-plugins ros-eloquent-ros2bag and continue the tutorial.

@zmichaels11
Copy link
Contributor Author

I want to go through the build & test history and get a better metric at how frequent this fails.

@emersonknapp emersonknapp added the bug Something isn't working label Jan 29, 2020
@zmichaels11
Copy link
Contributor Author

#278

@Karsten1987 Karsten1987 changed the title record_end_to_end_test unstable SQLite3 tests might block database [return code 5] May 11, 2020
@hazkaz
Copy link

hazkaz commented Jun 8, 2020

For complete noobs who might have made the mistake I did - the tutorial asked me to install ros2bag using this command

sudo apt-get install ros-<distro>-ros2bag ros-<distro>-rosbag2*

I ended up typing the last part as ros2bag* instead of rosbag2*

@chapulina chapulina added the tests Failing or missing tests label Apr 19, 2021
@emersonknapp
Copy link
Collaborator

It seems that mostly this was an issue in the documentation and/or user error - that should be resolved now, as you can just apt-get install ros-<distro>-rosbag2 and get all the required packages.

If this is a flaky recording test - we'll roll that into the work for #732

@revanthsenthil
Copy link

@zmichaels11 I have the exact same issue that you initially commented, but none of these fixes fixed it. I am just trying to run ros2 bag record <topic>. Any fixes on this?

@zmichaels11
Copy link
Contributor Author

Hi @revanthsenthil,
I haven't worked on rosbag2 in a few years so I'm not familiar with any changes since I saw this issue. I think it might be worth opening a new issue and describing the bug you are experiencing since it has been a while since this initial issue was opened.

@ronyshaji
Copy link

@zmichaels11 I have the exact same issue that you initially commented, but none of these fixes fixed it. I am just trying to run ros2 bag record <topic>. Any fixes on this?

Did you able to find a solution for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests Failing or missing tests
Projects
None yet
Development

No branches or pull requests

7 participants