Hello all
I saw in my logs that I have a problem with changing the current data source.
I updated the RDM version on 02.08 and after this I get errors. I came from version 2020.3.29 or something like this. At least the "2020." is right and somewhere was a nine.
Now I have 2021.1.41
You can see a test with the integrated PowerShell tool in RDM in the attachments. Please have a look at the "IsConnected"-property.
If I open RDM the current selected data source is the one i get with Get-RDMCurrentDataSource.
If I try to switch to another one the "IsConnected"-property is always false. Even if i try to switch back.
Commands like "Get-RDMSession" will always bring the error "Get-RDMSession :Connection not found".
Data Source Settings:
If I use VSC with integrated PowerShell I do not get the error if I just use one data source in the script (does not matter which one) and restart the PowerShell module every time.
The error appears if I switch the data source in a script. Or if I don't restart the PowerShell module
and run two scripts working with two different data sources. Then the error "WARNING: Your connection is not ready" appears.
Unfortunately, I found nothing in your Cmdlet documentation nor in your release notes. Did you change something or am I doing it wrong? (Maybe this post belongs to the bug section. I don't know.)
Best regards
Rolf
Problem.zip
Hello Rolf,
Using RDM 2021.1.41, I am not able to replicate your issue. I used the same commands to connect to a SQL data source and the IsConnected is set to True.
Set-RDMCurrentDataSource $list[7].ID Get-RDMCurrentDataSource
ID : 6a5f7400-befb-4fe6-9c73-7df2954c425d
IsConnected : True
IsOffline : False
Name : SQL Devo test
Type : SQLServer
I am then able to retrieve the session normally. I can also change it multiple times and the IsConnected is set to true for the current data source, as expected.
Just to be sure, did you upgrade the database after performing the upgrade of RDM? https://help.remotedesktopmanager.com/database_upgrade.html
Best regards,
Richard Boisvert
Hello Richard
Thanks for the fast reply.
I did not update the database but when I try to click the update button nothing happens.
When I press Validate Database i get this:
I'am logged in with the sa-user as you can see in my firsst message. So I have all rights on that database.
Still have the problem.
Best regards
Rolf
Hello Rolf,
Just to be sure the version is not the issue, Can you go to File > My Data Source Information
The version will be shown on the 3rd line:
Best regards,
Richard Boisvert
Hello Richard
This is the same for all three.
Best regards
Rolf
Hello Rolf,
Perfect, the version is not the issue then. I am still, however, unable to replicate your issue.
Are you able to replicate the issue on another computer?
If it is a test environment and everything is local, you could try with a portable version as well:
Best regards,
Richard Boisvert
Hello Richard
I tried it with our RDM in Citrix for all our employees. The Version here is 2021.1.40.0
Before I tried it on our RDM-Server with its local RDM Client.
(Below: "Ihr neues Passwort ist jetzt aktiv" means "your new password is now active". Had to change it, because it was my first login to that data source.)
As you can see its the same behavior as before.
Best regards
Rolf
Hello Rolf,
On the local RDM installed directly on the server, could you try to update RDM to 2021.1.41 and verify one last time it behaves the same way.
If it does, I will contact the engineering team since I am still unable to replicate the issue.
Best regards,
Richard Boisvert
Hello Richard
The management decided we are not allowed to update the RDM for at least 2 or 3 month in Citrix.
So i will try the portable RDM Version tomorrow.
Maybe I have to do a rollback to Version 2021.1.20 or 2020.3.29 for the RDM-Client on our RDM Server. Is this possible?
Best regards
Rolf
Hello Rolf,
You can roll back to 2021.1.20 to try it out (or use the portable version of that version: https://cdn.devolutions.net/download/Devolutions.RemoteDesktopManager.Bin.2021.1.20.0.zip).
Since a database upgrade was required for 2021.1.20, 2020.3.29 is no longer compatible with your SQL data source.
Let us know the result of your tests.
Best regards,
Richard Boisvert
Hello Richard
I installed the portable version and added the data sources. But now I get an error when I click on the Powershell tool in RDM: "file:///C:\Users\rsu\Desktop\RDM\Devolutions.RemoteDesktopManager.Bin.2021.1.41.0\RemoteDesktopManager.PowerShellModule.dll" or dependencies could not be find (exception for HRESULT: 0x80131515).
The path copy-pasted from explorer is: C:\Users\rsu\Desktop\RDM\Devolutions.RemoteDesktopManager.Bin.2021.1.41.0
And in that folder are the following files.
Can you please try to run the powershell tool from the version you gave me above (https://remotedesktopmanager.com/home/thankyou/rdmbin).
I think something is broken with this files. I copied the PowerShell files from the Server Version and it works better but still some errors occur.
Best regards
Rolf
Hello Rolf,
Unfortunately, I am still unable to replicate your problem. Using the portable version (.zip), the PowerShell module loads properly, without the need to copy over files, and I can perform the same commands as previously: change the data source, view the sessions, etc.
It is normally not required, but could you try to open RemoteDesktopManager64.exe as an administrator to see if it helps? It will say elevated in the status bar at the bottom.
Best regards,
Richard Boisvert
Hello Richard
I just had the brilliant idea to google the error message :D.
https://stackoverflow.com/questions/34400546/could-not-load-file-or-assembly-operation-is-not-supported-exception-from-hres
I just needed to allow the .dll
But now I have this:
I imported two data sources and both work fine in the GUI.
In the powershell module I'am not able to get any data. No data source, no vault, no sessions...
Best regards
Rolf
Hello Rofl,
Good find, Windows sometimes blocks files download from the Internet.
I will verify with the engineering team to see if they have an idea.
Best regards,
Richard Boisvert
Hello Rolf,
After you receive the Data source not found, could you run the following command? It will return the RDM version and the path to the config (.cfg) file.
Get-RDMInstance
Please make sure it is the path that is associated with the portable version. If it is instead the one located in your %LOCALAPPDATA%\Devolutions\RemoteDesktopManager, it will fail to decrypt the data sources.
Best regards,
Richard Boisvert
Hello Richard
I get an exception.
There is no reference. How Can i change the path?
Iam OOO now for today.
Best regrads
Rolf
Hello Rolf,
I discussed with the engineer that built the PowerShell module and for the portable version issue, it looks like the RDM instance is not able to start in PowerShell mode.
For the initial issue, there is something blocking the connection to the data source, without throwing any exception.
We will probably need to get QA involved to replicate your environment. I have made an internal ticket (RDMW-8189), I will report back their findings.
Best regards,
Richard Boisvert
Hi Richard
Thank you very much.
If you need something, just ask.
Best regards
Rolf
Hello
We updated our Clients to 2021.1.41 and I tried it local with a normal User. Still the same effect. If I change the datasource with Powershell I'am not connected to any datasource.
Best regards
Rolf