Ubuntu : Snap : Skype : DENIED : profile= »snap.skype.skype » name= »/sys/devices/* »

Je viens de voir l’erreur en boucle sur mon Ubuntu :

$ dmesg | grep skype | grep "DENIED" | awk '{print $7 " " $8}' | tail
profile="snap.skype.skype" name="/sys/devices/virtual/net/tap0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/virbr0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/virbr0-nic/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/anbox0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/vmnet1/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/lo/speed"
profile="snap.skype.skype" name="/sys/devices/pci0000:00/0000:00:1d.0/0000:3b:00.1/net/enp59s0f1/speed"
profile="snap.skype.skype" name="/sys/devices/pci0000:00/0000:00:1d.1/0000:40:00.0/net/wlp64s0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/tap0/speed"
profile="snap.skype.skype" name="/sys/devices/virtual/net/virbr0/speed"

$ snap info skype
name:      skype
summary:   One Skype for all your devices. New features. New look. All Skype.
publisher: Skype✓
store-url: https://snapcraft.io/skype
contact:   https://www.skype.com/
license:   unset
description: |
  Skype keeps the world talking. Say “hello” with an instant message, voice or video call – all for
  free. Skype is available on phones, tablets, PCs, Macs and Linux.
  
  • Video calls – Don’t just hear the cheers, see it! Get together with 1 or 49 of your friends and
  family on a video call. Watch everyone’s smiles and cries when you tell them “We’re engaged!!!"
  
  • Chat – Reach people instantly. Send messages to your friends, liven up conversations with
  emoticons and Mojis, or create a group chat to make weekend plans with up to 300 people.
  
  • Share – Do more together. Easily share your screen, photos, videos, documents, and files with
  your family and friends. Unlike email, Skype will transfer up to 300MB per file.
  
  • Voice calls – Camera shy? Make voice calls to anyone on Skype. You can also call mobile and
  landlines at low rates.
  
  Microsoft Services Agreement - https://go.microsoft.com/fwlink/?linkid=2097426
commands:
  - skype
snap-id:      QRDEfjn4WJYnm0FzDKwqqRZZI77awQEV
tracking:     latest/stable
refresh-date: 8 days ago, at 11:59 CEST
channels:
  latest/stable:     8.75.0.140 2021-08-12 (183) 145MB -
  latest/candidate:  ↑                                 
  latest/beta:       ↑                                 
  latest/edge:       ↑                                 
  insider/stable:    8.76.76.70 2021-08-20 (184) 145MB -
  insider/candidate: ↑                                 
  insider/beta:      ↑                                 
  insider/edge:      ↑                                 
installed:           8.75.0.140            (183) 145MB -

J’ai donc ajouté les droits via l’interface :

On peut le faire en ligne de commande :

$ snap connections | grep skype
audio-playback                                skype:audio-playback                      :audio-playback                                                       -
audio-record                                  skype:audio-record                        :audio-record                                                         -
browser-support                               skype:browser-sandbox                     :browser-support                                                      -
browser-support                               skype:browser-support                     :browser-support                                                      -
camera                                        skype:camera                              :camera                                                               -
content[gnome-3-28-1804]                      skype:gnome-3-28-1804                     gnome-3-28-1804:gnome-3-28-1804                                       -
content[gtk-3-themes]                         skype:gtk-3-themes                        gtk-common-themes:gtk-3-themes                                        -
content[icon-themes]                          skype:icon-themes                         gtk-common-themes:icon-themes                                         -
content[sound-themes]                         skype:sound-themes                        gtk-common-themes:sound-themes                                        -
desktop                                       skype:desktop                             :desktop                                                              -
desktop-legacy                                skype:desktop-legacy                      :desktop-legacy                                                       -
gsettings                                     skype:gsettings                           :gsettings                                                            -
home                                          skype:home                                :home                                                                 -
mount-observe                                 skype:mount-observe                       :mount-observe                                                        manual
network                                       skype:network                             :network                                                              -
network-observe                               skype:network-observe                     :network-observe                                                      manual
opengl                                        skype:opengl                              :opengl                                                               -
password-manager-service                      skype:password-manager-service            :password-manager-service                                             -
screen-inhibit-control                        skype:screen-inhibit-control              :screen-inhibit-control                                               -
unity7                                        skype:unity7                              :unity7                                                               -
wayland                                       skype:wayland                             :wayland                                                              -
x11                                           skype:x11                                 :x11                                                                  -

La clef c’est « skype:network-observe » … il faut donc faire un connect sur la clef.

 

NextCloud : Snap : Issue bookmarks_fulltextsearch : PHP Fatal error: Declaration of OCA

Suite à la mise à jours de NextCloud, j’avais l’erreur suivante :

$ sudo tail -f /var/snap/nextcloud/current/apache/logs/php_errors.log

[01-Feb-2020 18:18:07 UTC] PHP Fatal error:  Declaration of OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider::getSearchTemplate(): OCP\FullTextSearch\Model\SearchTemplate must be compatible with OCP\FullTextSearch\IFullTextSearchProvider::getSearchTemplate(): OCP\FullTextSearch\Model\ISearchTemplate in /var/snap/nextcloud/18204/nextcloud/extra-apps/bookmarks_fulltextsearch/lib/Provider/BookmarksProvider.php on line 55

Voici ma version :

$ snap --version
snap    2.42.1+18.04
snapd   2.42.1+18.04
series  16
ubuntu  18.04
kernel  5.0.0-37-generic
$ snap list | grep nextcloud
nextcloud                16.0.7snap2                 18204  stable    nextcloud*             -

J’ai donc supprimé le plugin bookmarks_fulltextsearch, la méthode n’est pas propre mais efficace :

$ sudo rm -rf /var/snap/nextcloud/18204/nextcloud/extra-apps/bookmarks_fulltextsearch/

J’en profite pour faire un petit mémo pour NextCloud et Snap :

Pour passer en mode debug :

$ sudo snap set nextcloud mode=debug

Pour faire la mise à jours :

$ sudo nextcloud.occ app:update --all

Pour relancer :

$ sudo snap restart nextcloud

Pour mettre le site en maintenance:

$ sudo nextcloud.occ maintenance:mode --on

Pour enlever le site de la maintenance :

$ sudo nextcloud.occ maintenance:mode --off

Pour voir les interfaces possible !

$ snap connections nextcloud
Interface        Plug                       Slot              Notes
network          nextcloud:network          :network          -
network-bind     nextcloud:network-bind     :network-bind     -
removable-media  nextcloud:removable-media  :removable-media  manual