Skip to content

SQL Warnings When Removing Plugin #421

@oschwartz10612

Description

@oschwartz10612

Types of Issue

  • Anomaly report (something appears to not work correctly)
  • Enhancement request (describe the enhancement being requested)
  • Other (please ensure the description clarifies why the issue doesn’t fall into either of the above categories)

Descriptive summary

When removing a plugin using the web portal, the following SQL errors continue to be thrown:

2022-09-27 19:45:03.133511	WARNING	/home/V2X-Hub/src/tmx/TmxCore/src/MessageProfiler.cpp, 249	Cannot add or update a child row: a foreign key constraint fails (`IVP`.`messageActivity`, CONSTRAINT `messageActivity_ibfk_2` FOREIGN KEY (`pluginId`) REFERENCES `plugin` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)

The only way to resolve these errors is to restart v2x. This is in the Docker version.

V2XHUB version where this issue was discovered

7.0

Expected behavior

Plugin is removed an no errors arise.

Actual behavior

Steps to reproduce the actual behavior

  1. Install plugin
  2. Click the remove button in the web portal
  3. Watch logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions