Refresh cannot upgrade link for another user

When running the command sudo snap refresh, I got the following error:

error: cannot perform the following tasks:
- Copy snap "joplin-desktop" data (cannot copy "/home/repair/snap/joplin-desktop/60" to "/home/repair/snap/joplin-desktop/62": failed to copy all: "'/home/repair/snap/joplin-desktop/60' -> '/home/repair/snap/joplin-desktop/62'\n'/home/repair/snap/joplin-desktop/60/.config' -> '/home/repair/snap/joplin-desktop/62/.config'\n'/home/repair/snap/joplin-desktop/60/.config/user-dirs.dirs' -> '/home/repair/snap/joplin-desktop/62/.config/user-dirs.dirs'\n'/home/repair/snap/joplin-desktop/60/.config/user-dirs.dirs.md5sum' -> '/home/repair/snap/joplin-desktop/62/.config/user-dirs.dirs.md5sum'\n'/home/repair/snap/joplin-desktop/60/.config/user-dirs.locale' -> '/home/repair/snap/joplin-desktop/62/.config/user-dirs.locale'\n'/home/repair/snap/joplin-desktop/60/.config/user-dirs.locale.md5sum' -> '/home/repair/snap/joplin-desktop/62/.config/user-dirs.locale.md5sum'\n'/home/repair/snap/joplin-desktop/60/.config/fontconfig' -> '/home/repair/snap/joplin-desktop/62/.config/fontconfig'\n'/home/repair/snap/joplin-desktop/60/.config/fontconfig/fonts.conf' -> '/home/repair/snap/joplin-desktop/62/.config/fontconfig/fonts.conf'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/fontconfig’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/dconf' -> '/home/repair/snap/joplin-desktop/62/.config/dconf'\n'/home/repair/snap/joplin-desktop/60/.config/dconf/user' -> '/home/repair/snap/joplin-desktop/62/.config/dconf/user'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/dconf’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/gtk-3.0' -> '/home/repair/snap/joplin-desktop/62/.config/gtk-3.0'\n'/home/repair/snap/joplin-desktop/60/.config/gtk-3.0/settings.ini' -> '/home/repair/snap/joplin-desktop/62/.config/gtk-3.0/settings.ini'\n'/home/repair/snap/joplin-desktop/60/.config/gtk-3.0/gtk.css' -> '/home/repair/snap/joplin-desktop/62/.config/gtk-3.0/gtk.css'\n'/home/repair/snap/joplin-desktop/60/.config/gtk-3.0/bookmarks' -> '/home/repair/snap/joplin-desktop/62/.config/gtk-3.0/bookmarks'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/gtk-3.0’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/gtk-2.0' -> '/home/repair/snap/joplin-desktop/62/.config/gtk-2.0'\n'/home/repair/snap/joplin-desktop/60/.config/gtk-2.0/gtkfilechooser.ini' -> '/home/repair/snap/joplin-desktop/62/.config/gtk-2.0/gtkfilechooser.ini'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/gtk-2.0’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/ibus' -> '/home/repair/snap/joplin-desktop/62/.config/ibus'\n'/home/repair/snap/joplin-desktop/60/.config/ibus/bus' -> '/home/repair/snap/joplin-desktop/62/.config/ibus/bus'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/ibus’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/Joplin' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Crashpad' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Crashpad'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Crashpad/client_id' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Crashpad/client_id'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Local Storage' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Local Storage'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Local Storage/leveldb' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Local Storage/leveldb'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Local Storage/leveldb/LOG' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Local Storage/leveldb/LOG'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Local Storage/leveldb/LOCK' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Local Storage/leveldb/LOCK'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Local Storage/leveldb/MANIFEST-000001' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Local Storage/leveldb/MANIFEST-000001'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Local Storage/leveldb/CURRENT' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Local Storage/leveldb/CURRENT'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Local Storage/leveldb/000003.log' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Local Storage/leveldb/000003.log'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Cache' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Cache'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Cache/Cache_Data' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Cache/Cache_Data'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Cache/Cache_Data/index' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Cache/Cache_Data/index'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Cache/Cache_Data/73f800c08c84e67b_0' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Cache/Cache_Data/73f800c08c84e67b_0'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Cache/Cache_Data/index-dir' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Cache/Cache_Data/index-dir'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Cache/Cache_Data/index-dir/the-real-index' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Cache/Cache_Data/index-dir/the-real-index'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Cache/Cache_Data/977efbd64d5d4f18_0' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Cache/Cache_Data/977efbd64d5d4f18_0'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache/js' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache/js'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache/js/index' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache/js/index'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache/js/index-dir' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache/js/index-dir'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache/js/index-dir/the-real-index' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache/js/index-dir/the-real-index'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache/wasm' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache/wasm'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache/wasm/index' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache/wasm/index'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache/wasm/index-dir' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache/wasm/index-dir'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Code Cache/wasm/index-dir/the-real-index' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Code Cache/wasm/index-dir/the-real-index'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Dictionaries' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Dictionaries'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Dictionaries/en-GB-10-1.bdic' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Dictionaries/en-GB-10-1.bdic'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/blob_storage' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/blob_storage'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/blob_storage/40065cd4-4bbe-4492-a0a7-78a55c8e619d' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/blob_storage/40065cd4-4bbe-4492-a0a7-78a55c8e619d'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/GPUCache' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/GPUCache'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/GPUCache/index' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/GPUCache/index'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/GPUCache/data_0' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/GPUCache/data_0'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/GPUCache/data_1' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/GPUCache/data_1'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/GPUCache/data_2' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/GPUCache/data_2'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/GPUCache/data_3' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/GPUCache/data_3'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/DawnCache' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/DawnCache'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/DawnCache/index' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/DawnCache/index'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/DawnCache/data_0' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/DawnCache/data_0'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/DawnCache/data_1' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/DawnCache/data_1'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/DawnCache/data_2' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/DawnCache/data_2'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/DawnCache/data_3' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/DawnCache/data_3'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Preferences' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Preferences'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Session Storage' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Session Storage'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Session Storage/LOG' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Session Storage/LOG'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Session Storage/LOCK' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Session Storage/LOCK'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Session Storage/MANIFEST-000001' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Session Storage/MANIFEST-000001'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Session Storage/CURRENT' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Session Storage/CURRENT'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Session Storage/000003.log' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Session Storage/000003.log'\n'/home/repair/snap/joplin-desktop/60/.config/Joplin/Network Persistent State' -> '/home/repair/snap/joplin-desktop/62/.config/Joplin/Network Persistent State'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/resources' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/resources'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/resources/93d2a84af76d4fd2976d356a3ec02b84.png' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/resources/93d2a84af76d4fd2976d356a3ec02b84.png'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/resources/eed1859b86dd404b826e6adbefdae918.png' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/resources/eed1859b86dd404b826e6adbefdae918.png'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/resources/e2b4fb25709a4dbea5fd97b56b89994b.png' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/resources/e2b4fb25709a4dbea5fd97b56b89994b.png'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/resources’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/tmp' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/tmp'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/tmp/plugin_io.github.jackgruber.backup.js' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/tmp/plugin_io.github.jackgruber.backup.js'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/tmp/2bea0cd027c3e3e759b53a690f307dfb.css' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/tmp/2bea0cd027c3e3e759b53a690f307dfb.css'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/tmp/22495897ff0bef0e6a2ba2610458a681.css' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/tmp/22495897ff0bef0e6a2ba2610458a681.css'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/tmp/4a4859b4a6cb8b1d27910df2f6cc33ad.css' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/tmp/4a4859b4a6cb8b1d27910df2f6cc33ad.css'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/tmp/53b60a10d563b53a43324fe8e695022e.css' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/tmp/53b60a10d563b53a43324fe8e695022e.css'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/tmp’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/index.js' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup/index.js'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/index.js.LICENSE.txt' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup/index.js.LICENSE.txt'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales/de_DE.json' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales/de_DE.json'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales/en_US.json' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales/en_US.json'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales/zh_CN.json' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales/zh_CN.json'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/manifest.json' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup/manifest.json'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/webview.css' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/io.github.jackgruber.backup/webview.css'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/7zip' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/7zip'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/7zip/7za' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/7zip/7za'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/7zip/license.txt' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/cache/7zip/license.txt'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/7zip’: Operation not supported\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/log.txt' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/log.txt'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/database.sqlite' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/database.sqlite'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/JoplinBackup' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/JoplinBackup'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/settings.json' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/settings.json'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/database.sqlite-journal' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/database.sqlite-journal'\n'/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/window-state-prod.json' -> '/home/repair/snap/joplin-desktop/62/.config/joplin-desktop/window-state-prod.json'\ncp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.local' -> '/home/repair/snap/joplin-desktop/62/.local'\n'/home/repair/snap/joplin-desktop/60/.local/share' -> '/home/repair/snap/joplin-desktop/62/.local/share'\n'/home/repair/snap/joplin-desktop/60/.local/share/themes' -> '/home/repair/snap/joplin-desktop/62/.local/share/themes'\n'/home/repair/snap/joplin-desktop/60/.local/share/glib-2.0' -> '/home/repair/snap/joplin-desktop/62/.local/share/glib-2.0'\n'/home/repair/snap/joplin-desktop/60/.local/share/glib-2.0/schemas' -> '/home/repair/snap/joplin-desktop/62/.local/share/glib-2.0/schemas'\ncp: ‘/home/repair/snap/joplin-desktop/60/.local/share/glib-2.0’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.local/share/icons' -> '/home/repair/snap/joplin-desktop/62/.local/share/icons'\ncp: ‘/home/repair/snap/joplin-desktop/60/.local/share’: Operation not supported\ncp: ‘/home/repair/snap/joplin-desktop/60/.local’: Operation not supported\n'/home/repair/snap/joplin-desktop/60/.themes' -> '/home/repair/snap/joplin-desktop/62/.themes'\n'/home/repair/snap/joplin-desktop/60/.last_revision' -> '/home/repair/snap/joplin-desktop/62/.last_revision'\n'/home/repair/snap/joplin-desktop/60/.pki' -> '/home/repair/snap/joplin-desktop/62/.pki'\n'/home/repair/snap/joplin-desktop/60/.pki/nssdb' -> '/home/repair/snap/joplin-desktop/62/.pki/nssdb'\n'/home/repair/snap/joplin-desktop/60/.pki/nssdb/pkcs11.txt' -> '/home/repair/snap/joplin-desktop/62/.pki/nssdb/pkcs11.txt'\n'/home/repair/snap/joplin-desktop/60/.pki/nssdb/cert9.db' -> '/home/repair/snap/joplin-desktop/62/.pki/nssdb/cert9.db'\n'/home/repair/snap/joplin-desktop/60/.pki/nssdb/key4.db' -> '/home/repair/snap/joplin-desktop/62/.pki/nssdb/key4.db'\ncp: ‘/home/repair/snap/joplin-desktop/60’: Operation not supported" (1))

This only happens after “joplin-desktop” was used by another user “repair”. None of these file has a permission that cannot be accessed by a sudoer’s privilege

Hi ! @tribbloid .

The way the log is displayed makes it difficult to analyze.

Try to display it like a page of book.

that’s the original output from snap.

I’ll just post first few lines:

error: cannot perform the following tasks:

  • Copy snap “joplin-desktop” data (cannot copy “/home/repair/snap/joplin-desktop/60” to “/home/repair/snap/joplin-desktop/62”: failed to copy all:

From ‘/home/repair/snap/joplin-desktop/60’ to ‘/home/repair/snap/joplin-desktop/62’:

  • .config
    • user-dirs.dirs
    • user-dirs.dirs.md5sum
    • user-dirs.locale
    • user-dirs.locale.md5sum
    • fontconfig
      • fonts.conf (cp: ‘/home/repair/snap/joplin-desktop/60/.config/fontconfig’: Operation not supported)
    • dconf
      • user (cp: ‘/home/repair/snap/joplin-desktop/60/.config/dconf’: Operation not supported)
    • gtk-3.0
      • settings.ini
      • gtk.css
      • bookmarks (cp: ‘/home/repair/snap/joplin-desktop/60/.config/gtk-3.0’: Operation not supported)
    • gtk-2.0
      • gtkfilechooser.ini (cp: ‘/home/repair/snap/joplin-desktop/60/.config/gtk-2.0’: Operation not supported)
    • ibus
      • bus (cp: ‘/home/repair/snap/joplin-desktop/60/.config/ibus’: Operation not supported)
    • Joplin
      • Crashpad
        • client_id
      • Local Storage
        • leveldb
          • LOG
          • LOCK
          • MANIFEST-000001
          • CURRENT
          • 000003.log
      • Cache
        • Cache_Data
          • index
          • 73f800c08c84e67b_0
          • index-dir
            • the-real-index
          • 977efbd64d5d4f18_0
      • Code Cache
        • js
          • index
          • index-dir
            • the-real-index
        • wasm
          • index
          • index-dir
            • the-real-index
      • Dictionaries
        • en-GB-10-1.bdic
      • blob_storage
        • 40065cd4-4bbe-4492-a0a7-78a55c8e619d
      • GPUCache
        • index
        • data_0
        • data_1
        • data_2
        • data_3
      • DawnCache
        • index
        • data_0
        • data_1
        • data_2
        • data_3
      • Preferences
      • Session Storage
        • LOG
        • LOCK
        • MANIFEST-000001
        • CURRENT
        • 000003.log
      • Network Persistent State
    • joplin-desktop
      • resources
        • 93d2a84af76d4fd2976d356a3ec02b84.png
        • eed1859b86dd404b826e6adbefdae918.png
        • e2b4fb25709a4dbea5fd97b56b89994b.png (cp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/resources’: Operation not supported)
      • tmp
        • plugin_io.github.jackgruber.backup.js
        • 2bea0cd027c3e3e759b53a690f307dfb.css
        • 22495897ff0bef0e6a2ba2610458a681.css
        • 4a4859b4a6cb8b1d27910df2f6cc33ad.css
        • 53b60a10d563b53a43324fe8e695022e.css (cp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/tmp’: Operation not supported)
      • cache
        • io.github.jackgruber.backup
          • index.js
          • index.js.LICENSE.txt
          • locales
            • de_DE.json
            • en_US.json
            • zh_CN.json (cp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup/locales’: Operation not supported)
          • manifest.json
          • webview.css (cp: ‘/home/repair/snap/joplin-desktop/60/.config/joplin-desktop/cache/io.github.jackgruber.backup’: Operation not supported)
        • 7zip

That’s more readable.

Do not hesitate to use a triple back tick if the content is substantial ``` some contents ``` .

Is that the user repair has the right to execute the sudo command ?

Interesting that only some of the directories triggered Operation not supported error. Can you manually inspect those files? run:

stat /home/repair/snap/joplin-desktop/60/.config/joplin-desktop/resources
stat -f /home/repair/snap/joplin-desktop/60/.config/joplin-desktop/resources

and paste the output

yes, but I’m executing as another user with sudoer’s privilege (“repair” is the other user also using joplin). So I guess it shouldn’t fail one way or the other

this doesn’t seem to be about privileges, but rather the content owned by a given user containing directories which cannot be handled by cp.

@tribbloid ! Follow the @mborzecki1 scenarios.

For what it’s worth, it’d be worth using the Backup plugin (default in Joplin itself) to create a .JEX export of all your notes and a substantial amount of app settings. You could then store this outside the snap folder and a valid workaround might be to simply purge the snap and reinstall it, then reimporting the .JEX backup.

I’ve seen similar things happen with Joplins snap (on an incredibly small incidence rate, like, once a year on ~20,000 users doing ~10 upgrades a year; which makes it harder to diagnose) elsewhere but never managed to recreate it or understand what’s gone on. The individual revision is completely valid but exactly as above, snapd just can’t manage to upgrade it to the next revision due to ‘reasons’. There’s no hooks or anything in Joplin (beyond the Gnome extension stuff) that would be interfering with any upgrade process so from a snap point of view, Joplin is basically entirely vanilla and there’s a chance this is a problem that could occur in other snaps too, should we know what it actually is.

It’d be worth having a look at some of the files cp is complaining about and working out if they’re in bad states like e.g being a dangling symlink that has nothing to copy from. Especially e.g the one in the tmp folder since, by nature of being tmp, we’d likely not care if that one were to suddenly disappear.

(But take backups first just incase. The .JEX backup is lossless on actual notebook content and would work whether you come back to the snap or take your data to the AppImage/Flatpak/etc).