Quick Fix: Remmina client fails with Gtk-Message : Failed to load module "canberra-gtk-module"

Issue: Reminna client fails to launch

When directly launching the Remmina client on the Linux command line to access a remote server or virtual machine, the client fails with "Gtk-Message: Failed to load module "canberra-gtk-module". Several other error messages follow.

Command: sysadmin@demo:~$ remmina -c rdp://10.5.129.196

The full error message encountered

sysadmin@demo:~$ remmina -c rdp://10.5.129.196
Remmina plugin glibsecret (type=Secret) has registered but not yet initialized/activated. Initialization order is 2000.
Secret plugin glibsecret has been successfully initialized and will be your default secret plugin
StatusNotifier/Appindicator support: your desktop does support it and libappindicator is compiled in remmina. Good!
Running under Gnome Shell version 3.36.9

(org.remmina.Remmina:30020): Gtk-WARNING **: 17:19:31.076: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem




Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Opening in existing browser session.
libGL error: pci id for fd 25: 8086:9a49, driver (null)
libGL error: No driver found
libGL error: failed to load driver: (null)
libGL error: pci id for fd 25: 8086:9a49, driver (null)
libGL error: unable to load driver: iris_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: iris
^C

The Fix

Install the missing modules: libcanberra-gtk-module libcanberra-gtk3-module.

Command: sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

sysadmin@demo:~$ sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
[sudo] password for sysadmin: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libcanberra-gtk3-module is already the newest version (0.30-7ubuntu1).
libcanberra-gtk3-module set to manually installed.
The following NEW packages will be installed:
  libcanberra-gtk-module libcanberra-gtk0
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 17.8 kB of archives.
After this operation, 92.2 kB of additional disk space will be used.
Get:1 http://za.archive.ubuntu.com/ubuntu focal/universe amd64 libcanberra-gtk0 amd64 0.30-7ubuntu1 [7,916 B]
Get:2 http://za.archive.ubuntu.com/ubuntu focal/universe amd64 libcanberra-gtk-module amd64 0.30-7ubuntu1 [9,904 B]
Fetched 17.8 kB in 0s (52.5 kB/s)                  
Selecting previously unselected package libcanberra-gtk0:amd64.
(Reading database ... 192159 files and directories currently installed.)
Preparing to unpack .../libcanberra-gtk0_0.30-7ubuntu1_amd64.deb ...
Unpacking libcanberra-gtk0:amd64 (0.30-7ubuntu1) ...
Selecting previously unselected package libcanberra-gtk-module:amd64.
Preparing to unpack .../libcanberra-gtk-module_0.30-7ubuntu1_amd64.deb ...
Unpacking libcanberra-gtk-module:amd64 (0.30-7ubuntu1) ...
Setting up libcanberra-gtk0:amd64 (0.30-7ubuntu1) ...
Setting up libcanberra-gtk-module:amd64 (0.30-7ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...

Confirm the fix

Command: sysadmin@demo:~$ remmina -c rdp://10.5.129.196

sysadmin@demo:~$ remmina -c rdp://10.5.129.196
Remmina plugin glibsecret (type=Secret) has registered but not yet initialized/activated. Initialization order is 2000.
Secret plugin glibsecret has been successfully initialized and will be your default secret plugin
StatusNotifier/Appindicator support: your desktop does support it and libappindicator is compiled in remmina. Good!
Running under Gnome Shell version 3.36.9

(org.remmina.Remmina:30822): Gtk-WARNING **: 17:25:50.442: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem
[17:26:11:854] [30822:31066] [INFO][com.freerdp.core] - freerdp_connect:freerdp_set_last_error_ex resetting error state
[17:26:11:854] [30822:31066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[17:26:11:855] [30822:31066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[17:26:11:855] [30822:31066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[17:26:11:855] [30822:31066] [INFO][com.freerdp.client.common.cmdline] - loading channelEx drdynvc
[17:26:11:188] [30822:31066] [INFO][com.freerdp.primitives] - primitives autodetect, using optimized
[17:26:11:203] [30822:31066] [INFO][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex resetting error state
[17:26:11:203] [30822:31066] [INFO][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex resetting error state
[17:26:12:321] [30822:31066] [INFO][com.freerdp.gdi] - Local framebuffer format  PIXEL_FORMAT_BGRX32
[17:26:12:321] [30822:31066] [INFO][com.freerdp.gdi] - Remote framebuffer format PIXEL_FORMAT_BGRA32
[17:26:12:322] [30822:31066] [INFO][com.freerdp.channels.rdpsnd.client] - [static] Loaded fake backend for rdpsnd
[17:26:12:322] [30822:31066] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel rdpgfx
[17:26:12:322] [30822:31066] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel disp

(org.remmina.Remmina:30822): Gtk-WARNING **: 17:26:25.178: gtk_menu_detach(): menu is not attached
[17:27:00:882] [30822:31066] [WARN][com.freerdp.channels.cliprdr.common] - [cliprdr_packet_format_list_new] called with invalid type 0000baa0
[17:39:26:289] [30822:31066] [WARN][com.freerdp.channels.cliprdr.common] - [cliprdr_packet_format_list_new] called with invalid type 00006c20
[17:39:26:289] [30822:31066] [WARN][com.freerdp.channels.cliprdr.common] - [cliprdr_packet_format_list_new] called with invalid type 00006c20
[18:02:00:127] [30822:31066] [WARN][com.freerdp.channels.cliprdr.common] - [cliprdr_packet_format_list_new] called with invalid type 00003a90
[18:03:28:965] [30822:31066] [WARN][com.freerdp.channels.cliprdr.common] - [cliprdr_packet_format_list_new] called with invalid type 00006c20
[18:03:52:197] [30822:31066] [WARN][com.freerdp.channels.cliprdr.common] - [cliprdr_packet_format_list_new] called with invalid type 00007500
[18:07:08:410] [30822:31066] [WARN][com.freerdp.channels.cliprdr.common] - [cliprdr_packet_format_list_new] called with invalid type 00007500

The Remmina GUI loads successfully

Remmina GUI.png