Problems registering RDM on Linux closes at registration time.
I have been testing RDM on Windows (No problems) and now on Linux (for work reasons), but in Linux it has been quite complicated, I used it in Ubuntu 20.04 and when trying to register to use it, I ran into the error of that when I try to register with the Devolutions account, it just closes and so on, I can only enter the test mode, but when I want to login it just closes, I can't find any logic, now, I'm using FerenOS, which is my working distro for a few months, but the same thing happens here, it closes me in the same way and I can't register.
Attached console detail when I run it.
nmartinez@sj-nmartinez1:/usr/lib/devolutions/RemoteDesktopManager.Free$ remotedesktopmanager.free
(RemoteDesktopManager.Free:8419): Gtk-WARNING **: 21:50:48.726: Theme parsing error: gtk-contained-dark.css:399:2606: 'insensitive_unfocused_selected_fg_color_br
eeze' is not a valid color name
(RemoteDesktopManager.Free:8419): Gtk-WARNING **: 21:50:48.726: Theme parsing error: gtk-contained-dark.css:401:5346: 'insensitive_unfocused_selected_fg_color_br
eeze' is not a valid color name
(RemoteDesktopManager.Free:8419): Gtk-WARNING **: 21:50:48.732: Theme parsing error: gtk-contained-dark.css:655:193: 'insensitive_unfocused_selected_fg_color_bre
eze' is not a valid color name
(RemoteDesktopManager.Free:8419): Gtk-WARNING **: 21:50:48.732: Theme parsing error: gtk-contained-dark.css:657:316: 'insensitive_unfocused_selected_fg_color_bre
eze' is not a valid color name
(RemoteDesktopManager.Free:8419): Gtk-WARNING **: 21:50:48.742: Theme parsing error: gtk-contained-dark.css:2250:873: 'insensitive_unfocused_selected_fg_color_br
eeze' is not a valid color name
(RemoteDesktopManager.Free:8419): Gtk-WARNING **: 21:50:48.742: Theme parsing error: gtk-contained-dark.css:2250:939: 'insensitive_unfocused_selected_bg_color_br
eeze' is not a valid color name
(RemoteDesktopManager.Free:8419): GLib-GObject-CRITICAL **: 21:50:50.891: g_signal_connect_data: assertion 'c_handler != NULL' failed
(RemoteDesktopManager.Free:8419): GLib-GObject-CRITICAL **: 21:50:50.940: g_signal_connect_data: assertion 'c_handler != NULL' failed
(RemoteDesktopManager.Free:8419): GLib-GObject-CRITICAL **: 21:50:50.949: g_signal_connect_data: assertion 'c_handler != NULL' failed
(RemoteDesktopManager.Free:8419): GLib-GObject-CRITICAL **: 21:50:50.957: g_signal_connect_data: assertion 'c_handler != NULL' failed
(RemoteDesktopManager.Free:8419): GLib-GObject-CRITICAL **: 21:50:50.963: g_signal_connect_data: assertion 'c_handler != NULL' failed
(RemoteDesktopManager.Free:8419): GLib-GObject-CRITICAL **: 21:50:50.971: g_signal_connect_data: assertion 'c_handler != NULL' failed
Marshaling clicked signal
Exception in Gtk# callback delegate
Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Devolutions.RemoteDesktopManager.Business.TryGoOfflin
eException: Unable to connect to Devolutions account.
at Devolutions.RemoteDesktopManager.RDMOProxy.RDMOWebApiClient.Login (System.String username, System.String datasourceID, System.Boolean forcePromptLucid, Syst
em.String source, System.String applicationPassword) [0x0037e] in <97c95ba0b56a477fab7460f3ffd0dfc0>:0
at Devolutions.RemoteDesktopManager.Managers.RDMOManager.GetLoginInfo (System.Boolean forcePromptLucid, System.Boolean isFirstLogin) [0x0002d] in <97c95ba0b56a
477fab7460f3ffd0dfc0>:0
at Devolutions.RemoteDesktopManager.Managers.RDMOManager.Login (System.Boolean forcePromptLucid, System.Boolean isFirstLogin) [0x00009] in <97c95ba0b56a477fab7
460f3ffd0dfc0>:0
at Devolutions.RemoteDesktopManager.Managers.RDMOManager.EnsureLogged (System.Boolean forcePromptLucid) [0x00007] in <97c95ba0b56a477fab7460f3ffd0dfc0>:0
at Devolutions.RemoteDesktopManager.Managers.RDMOManager.ApplyFreeEditionLicense () [0x00000] in <97c95ba0b56a477fab7460f3ffd0dfc0>:0
at Devolutions.RemoteDesktopManager.Managers.RDMOManager.ApplyUserLicense () [0x00007] in <97c95ba0b56a477fab7460f3ffd0dfc0>:0
at Client.Windows.RegistrationFreeOptionWindow.ValidateRegistration () [0x00034] in <07af1acce5f745dfba5c26585148f32a>:0
at Client.Windows.RegistrationFreeOptionWindow.OnOk (System.Object sender, System.EventArgs args) [0x00000] in <07af1acce5f745dfba5c26585148f32a>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] p
arameters, System.Globalization.CultureInfo culture) [0x0006a] in <a17fa1457c5d44f2885ac746c1764ea5>:0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] p
arameters, System.Globalization.CultureInfo culture) [0x00083] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00034] in <5a34df7d261240358d61453b6bc52857>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00009] in <5a34df7d261240358d61453b6bc52857>:0
at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntP
tr invocation_hint, System.IntPtr marshal_data) [0x00080] in <5a34df7d261240358d61453b6bc52857>:0
at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, System.Boolean is_terminal) [0x00000] in <5a34df7d261240358d61453b6bc52857>:0
at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntP
tr invocation_hint, System.IntPtr marshal_data) [0x00000] in <5a34df7d261240358d61453b6bc52857>:0
at System.Object.wrapper_native_0x7f3fd4e94c70 (System.IntPtr ) [0x00000] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at Gtk.Dialog.Run () [0x00000] in <c2feb1c5d39a4660b3f5c10dab7825eb>:0
at Devolutions.RemoteDesktopManager.Managers.UIManager.ShowFreeRegistration () [0x00000] in <07af1acce5f745dfba5c26585148f32a>:0
at Devolutions.RemoteDesktopManager.Services.UIService.ShowFreeRegistration () [0x00000] in <07af1acce5f745dfba5c26585148f32a>:0
at Devolutions.RemoteDesktopManager.Managers.RegistrationManager.ShowRegisterFree () [0x00000] in <97c95ba0b56a477fab7460f3ffd0dfc0>:0
at Devolutions.RemoteDesktopManager.Managers.ActionManager.RegisterVersion () [0x00000] in <07af1acce5f745dfba5c26585148f32a>:0
at Devolutions.RemoteDesktopManager.Managers.MainFormManager.CheckRegistration () [0x00000] in <07af1acce5f745dfba5c26585148f32a>:0
at Client.Windows.MainWindow..ctor (Gtk.Builder builder) [0x00000] in <07af1acce5f745dfba5c26585148f32a>:0
at Client.Windows.MainWindow..ctor () [0x00000] in <07af1acce5f745dfba5c26585148f32a>:0
at Devolutions.RemoteDesktopManager.App+<>c.<OnStartup>b__1_0 () [0x00000] in <66b30c1126f54204aa1031dd4819129b>:0
at Client.Windows.SplashScreenWindow.DoWork () [0x00000] in <07af1acce5f745dfba5c26585148f32a>:0
at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <5a34df7d261240358d61453b6bc52857>:0
at System.Object.wrapper_native_0x7f3fd4f259a0 () [0x00000] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at Gtk.Application.Run () [0x00000] in <c2feb1c5d39a4660b3f5c10dab7825eb>:0
at Devolutions.RemoteDesktopManager.Program.Main (System.String[] args) [0x00000] in <66b30c1126f54204aa1031dd4819129b>:0
Hi,
Most of the time, when the login fails, it's a problem with the generated certificates.
The installer post install script takes care of that but on 20.04, I've seen instances where the generated certificates were corrupted.
To make sure this is not the issue, make sure the ca-certificates is installed and up to date.
Then delete the .mono folder in "/usr/share", purge rdm and reinstall.
This should force the ssl certificates to be generated again.
Regards
Jonathan Lafontaine
Hello!
I have no .mono folder in system, how I can regenerate certificates?
I already try to just reinstall RDM, it's not help.
OS
Linux version 5.4.64-1-MANJARO (builder@d467f31eaa7a) (gcc version 10.2.0 (GCC))
RDM version
2020.2.4.0-1
Installed via AUR
https://aur.archlinux.org/packages/remote-desktop-manager-free/
Hi,
Indeed, reinstalling RDM would only be helpful if your package has a post install script like the .deb does.
You might want to take a look at this thread I created listing everything needed to successfully run RDM.
https://forum.devolutions.net/topics/34347/installing-rdm-on-an-unsupported-distro
To generate the mono certificates, you can follow these steps
* On some systems, the ca-certificates are located in /usr/share/pki/trust and have a pem extension. In this case, replace the previous command with "for f in /usr/share/pki/trust/*.pem ; do cp $f /usr/share/.mono/new-certs/Trust/$(openssl x509 -noout -hash -in $f).0 ; done"
Hope this helps you.
Regards
Jonathan Lafontaine
Thanks! it's help me to understand how to fix it.
FYI
Arch like distributive has not following folder: /usr/share/ca-certificates/mozilla/
so I run following script to do what you propose
mkdir -p /usr/share/.mono/new-certs/Trust sudo trust extract --filter=ca-anchors --format=pem-directory-hash /usr/share/.mono/new-certs/Trust/
Glad to know you were able to fix the issue.
Thank for the trust extract command, I'll add it to the sticky post, it might help others.
Jonathan Lafontaine
I believe this is now fixed in the AUR packages for both the free and enterprise version
Thank you to whoever is maintaining those packages.
Jonathan Lafontaine
"I believe this is now fixed (...)"
It is not.
5 minutes ago I checked latest from AUR on Manjaro pkgver=2021.1.1.4 and its still crashing on "Register with Devolutions Account".
mkdir -p /usr/share/.mono/new-certs/Trust sudo trust extract --filter=ca-anchors --format=pem-directory-hash /usr/share/.mono/new-certs/Trust/
This ^ also does not work for me.
Hi,
If you run remotedesktopmanager from a terminal, do you have more information about the crash?
What is the output of the trust extract command?
Jonathan Lafontaine
This is my output.
1st line is ok. I mean not ok, but rdm not crashing on it -> "(RemoteDesktopManager.Free:128493): .( ... ) /tmp/dbus-7aJQpioHAQ: Nie ma taki
ego pliku ani katalogu.
1st line shows at start, and rdm works well. I can add stuff, connect to sessions etc.
After click to OK on checked "Register with Devolutions Account" the rest shows up.
$ remotedesktopmanager.free (RemoteDesktopManager.Free:128493): dbind-WARNING **: 00:21:57.187: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-7aJQpioHAQ: Nie ma taki ego pliku ani katalogu Marshaling clicked signal Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Devolutions.RemoteDesktopManager.Business.TryGoOfflineExcept ion: Unable to connect to Devolutions account. at Devolutions.RemoteDesktopManager.RDMOProxy.RDMOWebApiClient.Login (System.String username, System.String datasourceID, System.Boolean forcePromptLucid, System.Stri ng source, System.String applicationPassword) [0x00381] in <d36ac718d0c9441ab03386add34c14bd>:0 at Devolutions.RemoteDesktopManager.Managers.RDMOManager.GetLoginInfo (System.Boolean forcePromptLucid, System.Boolean isFirstLogin) [0x0002d] in <8f0924561d7d4f08b5b cdaec260369dc>:0 at Devolutions.RemoteDesktopManager.Managers.RDMOManager.Login (System.Boolean forcePromptLucid, System.Boolean isFirstLogin) [0x00009] in <8f0924561d7d4f08b5bcdaec26 0369dc>:0 at Devolutions.RemoteDesktopManager.Managers.RDMOManager.EnsureLogged (System.Boolean forcePromptLucid) [0x00007] in <8f0924561d7d4f08b5bcdaec260369dc>:0 at Devolutions.RemoteDesktopManager.Managers.RDMOManager.ApplyFreeEditionLicense () [0x00000] in <8f0924561d7d4f08b5bcdaec260369dc>:0 at Devolutions.RemoteDesktopManager.Managers.RDMOManager.ApplyUserLicense () [0x00007] in <8f0924561d7d4f08b5bcdaec260369dc>:0 at Client.Windows.RegistrationFreeOptionWindow.ValidateRegistration () [0x00041] in <d5b92c19aa6944b0b32e04a225199337>:0 at Client.Windows.RegistrationFreeOptionWindow.OnOk (System.Object sender, System.EventArgs args) [0x00000] in <d5b92c19aa6944b0b32e04a225199337>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] paramete rs, System.Globalization.CultureInfo culture) [0x0006a] in <c453bf849bb84e719dbec0475e99db95>:0 --- End of inner exception stack trace --- at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] paramete rs, System.Globalization.CultureInfo culture) [0x00083] in <c453bf849bb84e719dbec0475e99db95>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <c453bf849bb84e719dbec0475e99db95>:0 at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <c453bf849bb84e719dbec0475e99db95>:0 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <c453bf849bb84e719dbec0475e99db95>:0 at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <c453bf849bb84e719dbec0475e99db95>:0 at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00034] in <5b0dd59206734c9f99b9f9b329cdd118>:0 at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00009] in <5b0dd59206734c9f99b9f9b329cdd118>:0 at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntPtr invo cation_hint, System.IntPtr marshal_data) [0x00080] in <5b0dd59206734c9f99b9f9b329cdd118>:0 at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, System.Boolean is_terminal) [0x00000] in <5b0dd59206734c9f99b9f9b329cdd118>:0 at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntPtr invo cation_hint, System.IntPtr marshal_data) [0x00000] in <5b0dd59206734c9f99b9f9b329cdd118>:0 at System.Object.wrapper_native_0x7f98d2f95800 (System.IntPtr ) [0x00000] in <c453bf849bb84e719dbec0475e99db95>:0 at Gtk.Dialog.Run () [0x00000] in <1bdf72322a644cc3917a854c8dfd1be8>:0 at Devolutions.RemoteDesktopManager.Managers.UIManager.ShowFreeRegistration () [0x00000] in <d5b92c19aa6944b0b32e04a225199337>:0 at Devolutions.RemoteDesktopManager.Services.UIService.ShowFreeRegistration () [0x00000] in <d5b92c19aa6944b0b32e04a225199337>:0 at Devolutions.RemoteDesktopManager.Managers.RegistrationManager.ShowRegisterFree () [0x00000] in <d36ac718d0c9441ab03386add34c14bd>:0 at Devolutions.RemoteDesktopManager.Managers.ActionManager.RegisterVersion () [0x00000] in <d5b92c19aa6944b0b32e04a225199337>:0 at Devolutions.RemoteDesktopManager.Managers.MainFormManager.CheckRegistration () [0x00000] in <d5b92c19aa6944b0b32e04a225199337>:0 at Client.Windows.MainWindow.AfterWindowShown () [0x00000] in <d5b92c19aa6944b0b32e04a225199337>:0 at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <5b0dd59206734c9f99b9f9b329cdd118>:0 at System.Object.wrapper_native_0x7f98d302b1d0 () [0x00000] in <c453bf849bb84e719dbec0475e99db95>:0 at Gtk.Application.Run () [0x00000] in <1bdf72322a644cc3917a854c8dfd1be8>:0 at Devolutions.RemoteDesktopManager.Program.Main (System.String[] args) [0x00000] in <03bd1ac7bedf44a4bef05e3c51491e10>:0
This is just note for support.
Registration via serial number works ok. -> for me - problem solved.
This is the kind of error RDM encounters when mono certificates are absent or invalid.
As long as RDM doesn't try to make any other https calls, you should be fine.
Otherwise, we'll have to found out why this command isn't working
sudo trust extract --filter=ca-anchors --format=pem-directory-hash /usr/share/.mono/new-certs/Trust/
Jonathan Lafontaine
Maybe this output tell something.
$ trust extract --filter=ca-anchors --format=pem-directory-hash /usr/share/.mono/new-certs/Trust/ p11-kit: format requires a purpose, specify it with --purpose; defaulting to 'server-auth' p11-kit: directory already exists: /usr/share/.mono/new-certs/Trust/
The same output is for # at 1st line (root).
Looks like the Trust folder already exists.
Is the Trust folder empty? If it is, you can simply delete it and run the command again.
Jonathan Lafontaine
Its empty, owned by root:root
# pwd /usr/share/.mono/new-certs/Trust # ls -al drwxr-xr-x 2 root root 4096 06-30 00:21 . drwxr-xr-x 3 root root 4096 06-30 00:21 ..
edit:
after deleting Trust subdir and running command, Trust is created again and its populated by many certificates .pem.
You can safely delete the folder and run
sudo trust extract --filter=ca-anchors --format=pem-directory-hash /usr/share/.mono/new-certs/Trust/
Jonathan Lafontaine
Seems like You found solution.
Registration via "Register with Devolutions Account" works well now.
Thank YOU.
[SOLVED]
My pleasure.
If anything else comes up, let us know.
Jonathan Lafontaine