Importing rdm entries into MariaDB

Importing rdm entries into MariaDB

avatar
mephisto
Disabled

Hi guys,

I'm migrating away from Windows/MS SQL as RDM backend to Ubuntu and MariaDB. I'm importing entries on MariaDB through RDM, but half way through I have the following error from the image captured attached here. I end up with about 30% of my entries imported.

I've tried to export the entries without security groups as well to test if it was a problem with MariaDB not supporting some sort of entry from RDM but it didn't make any difference.

The error that I get is the following:


MySql.Data.MySqlClient.MySqlException (0x80004005): Cannot add or update a child row: a foreign key constraint fails (`rdm`.`Connections`, CONSTRAINT `FK_Connections_GroupInfo` FOREIGN KEY (`SecurityGroup`) REFERENCES `GroupInfo` (`ID`))
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseConnectionDataSource.ExecuteNonQuery(String sql, IDbTransaction dbTransaction, IDbDataParameter[] parameters, Int32 commandTimeout)
at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseConnectionDataSource.InsertConnection(Connection connection, IDbTransaction dbTransaction, ISecurityProvider provider, Nullable`1 repositoryID)
at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseConnectionDataSource.SaveConnections(IEnumerable`1 connections, IDbTransaction dbTransaction, ISecurityProvider provider, Nullable`1 repositoryID)
at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseConnectionDataSource.SaveConnection(Connection connection)


I'm using RDM 14.1.3.0 64bit

Capture.JPG

All Comments (5)

avatar

By the way I'm running ubuntu 18.04 and mariadb Ver 15.1 Distrib 10.1.38-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

avatar

I've done a bit further testing and I narrowed down the folder that is causing this when imported, so it seems there is some entry perhaps created on RDM in MS SQL that perhaps is not supported on mariadb?

avatar

Hello,


Thanks for the test and finding the culprit. I would like to investigate. If you still have access to this folder (probably in MS SQL) could you export it in .rdm type and send it at ticket@devolutions.net.

I will look with the engineering department if we can do something to prevent the error.


Best regards,

David Grandolfo

avatar

Hi David,

I've opened a ticket as well just in case. Is it something I can check on logs here on my side? I've been trying to dig through the logs to find when it stops importing entries but I don;t know which one fails as there is no way to identify that. I can't send the RDM file as it has confidential data in it.

avatar

Hi,

Thanks again for your time on the remote session. As discussed parts of the issue was related to user rights. The Export function appears but access was limited.

We fix this internally and it should be available on our next release.

Regards,

David Grandolfo

Closed