Gnome-calculator failed to create symbolic link


corrado@corrado-p7-cc-0527:~$ snap list
Name              Version    Rev   Tracking  Developer  Notes
core              16-2.32.8  4650  stable    canonical  core
gnome-3-26-1604   3.26.0     64    stable/…  canonical  -
gnome-calculator  3.28.1     167   stable/…  canonical  -
corrado@corrado-p7-cc-0527:~$ gnome-calculator
You need to connect this snap to the gnome platform snap.

You can do this with those commands:
snap install gnome-3-26-1604
snap connect gnome-calculator:gnome-3-26-1604 gnome-3-26-1604

(the '3-26-1604' number defines the platform version and might change)
corrado@corrado-p7-cc-0527:~$ snap connect gnome-calculator:gnome-3-26-1604 gnome-3-26-1604
corrado@corrado-p7-cc-0527:~$ gnome-calculator
ln: failed to create symbolic link '/home/corrado/snap/gnome-calculator/167/snap/gnome-calculator/167/Documents': No such file or directory
ln: failed to create symbolic link '/home/corrado/snap/gnome-calculator/167/snap/gnome-calculator/167/Desktop': No such file or directory
ln: failed to create symbolic link '/home/corrado/snap/gnome-calculator/167/snap/gnome-calculator/167/Downloads': No such file or directory
ln: failed to create symbolic link '/home/corrado/snap/gnome-calculator/167/snap/gnome-calculator/167/Music': No such file or directory
ln: failed to create symbolic link '/home/corrado/snap/gnome-calculator/167/snap/gnome-calculator/167/Pictures': No such file or directory
ln: failed to create symbolic link '/home/corrado/snap/gnome-calculator/167/snap/gnome-calculator/167/Videos': No such file or directory
ln: failed to create symbolic link '/home/corrado/snap/gnome-calculator/167/snap/gnome-calculator/167/Templates': No such file or directory
Unable to init server: Could not connect: Connection refused

(gnome-calculator:2185): Gtk-WARNING **: cannot open display: :0
corrado@corrado-p7-cc-0527:~$ 

corrado@corrado-p7-cc-0527:~$ ls /home/corrado/snap/gnome-calculator/167/ -al 
total 52
drwxr-xr-x 12 corrado corrado 4096 giu  3 20:49 .
drwxr-xr-x  4 corrado corrado 4096 giu  3 20:46 ..
drwxr-xr-x  7 corrado corrado 4096 giu  3 20:49 .config
drwxr-xr-x  2 corrado corrado 4096 giu  3 20:49 Desktop
drwxr-xr-x  2 corrado corrado 4096 giu  3 20:49 Documents
drwxr-xr-x  2 corrado corrado 4096 giu  3 20:49 Downloads
-rw-r--r--  1 corrado corrado   31 giu  3 20:49 .last_revision
drwxr-xr-x  3 corrado corrado 4096 giu  3 20:49 .local
drwxr-xr-x  2 corrado corrado 4096 giu  3 20:49 Music
drwxr-xr-x  2 corrado corrado 4096 giu  3 20:49 Pictures
drwxr-xr-x  2 corrado corrado 4096 giu  3 20:49 Public
drwxr-xr-x  2 corrado corrado 4096 giu  3 20:49 Templates
lrwxrwxrwx  1 corrado corrado   58 giu  3 20:49 .themes -> /snap/gnome-calculator/167/gnome-platform/usr/share/themes
drwxr-xr-x  2 corrado corrado 4096 giu  3 20:49 Videos
corrado@corrado-p7-cc-0527:~$

corrado@corrado-p7-cc-0527:~$ snap refresh gnome-calculator
error: cannot refresh "gnome-calculator": snap "gnome-calculator" has "seed" change in progress
corrado@corrado-p7-cc-0527:~$```

Could you please provide the output of the following command?

snap interfaces gnome-calculator

Hi

Can you please edit your post to use triple backticks (```) around code / paste sections, for better readability.

Slot                               Plug
gnome-3-26-1604:gnome-3-26-1604    gnome-calculator
gnome-calculator:gnome-calculator  -
-                                  gnome-calculator:desktop
-                                  gnome-calculator:desktop-legacy
-                                  gnome-calculator:gsettings
-                                  gnome-calculator:gtk3-themes
-                                  gnome-calculator:icon-themes
-                                  gnome-calculator:network
-                                  gnome-calculator:sound-themes
-                                  gnome-calculator:unity7
-                                  gnome-calculator:wayland
corrado@corrado-p7-cc-0527:~$ snap interfaces gnome-calculator```

@zyga-snapd Any idea why that would not have auto-connected all those interfaces?

I don’t know. Can we please see snap changes?

ID   Status  Spawn                 Ready                 Summary
3    Doing   2018-06-03T10:01:15Z  -                     Initialize system state
4    Done    2018-06-03T18:49:43Z  2018-06-03T18:49:44Z  Connect gnome-calculator:gnome-3-26-1604 to gnome-3-26-1604:gnome-3-26-1604
5    Done    2018-06-04T05:29:38Z  2018-06-04T05:29:39Z  Connect gnome-calculator:gnome-3-26-1604 to gnome-3-26-1604:gnome-3-26-1604

corrado@corrado-p7-cc-0527:~$```

Hmm, not sure but it might be related to seeding not being complete yet.

gnome-calculator works fine on a different partition of same PC under Ubuntu Cosmic (like the one giving problem) installed from an older ISO.

Slot                               Plug
:desktop                           gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:desktop-legacy                    gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:gsettings                         gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:network                           gnome-calculator,gnome-logs
:unity7                            gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:wayland                           gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gnome-3-26-1604:gnome-3-26-1604    gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gnome-calculator:gnome-calculator  -
gtk-common-themes:gtk3-themes      gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gtk-common-themes:icon-themes      gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gtk-common-themes:sound-themes     gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
corrado@corrado-p6-cc-0509:~$ snap changes
ID   Status  Spawn                 Ready                 Summary
7    Done    2018-06-04T16:27:30Z  2018-06-04T16:28:08Z  Auto-refresh 4 snaps

corrado@corrado-p6-cc-0509:~$

I want to notice another thing:
on Ubuntu Cosmic installed from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180509)
i have more snap automatically installed with the system:

corrado@corrado-p6-cc-0509:~$ snap changes
ID   Status  Spawn                 Ready                 Summary
7    Done    2018-06-04T16:27:30Z  2018-06-04T16:28:08Z  Auto-refresh 4 snaps

corrado@corrado-p6-cc-0509:~$ snap list
Name                  Version    Rev   Tracking  Developer  Notes
core                  16-2.32.8  4650  stable    canonical  core
gnome-3-26-1604       3.26.0     64    stable/…  canonical  -
gnome-calculator      3.28.1     170   stable/…  canonical  -
gnome-characters      3.28.2     96    stable/…  canonical  -
gnome-logs            3.28.2     34    stable/…  canonical  -
gnome-system-monitor  3.26.0     41    stable    canonical  -
gtk-common-themes     0.1        3     stable    canonical  -
corrado@corrado-p6-cc-0509:~$ 

while in the one installed from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180527)
(same PC,different partition) i have:

corrado@corrado-p7-cc-0527:~$ snap changes
ID   Status  Spawn                 Ready                 Summary
3    Doing   2018-06-03T10:01:15Z  -                     Initialize system state
5    Done    2018-06-04T05:29:38Z  2018-06-04T05:29:39Z  Connect gnome-calculator:gnome-3-26-1604 to gnome-3-26-1604:gnome-3-26-1604

corrado@corrado-p7-cc-0527:~$ snap list
Name              Version    Rev   Tracking  Developer  Notes
core              16-2.32.8  4650  stable    canonical  core
gnome-3-26-1604   3.26.0     64    stable/…  canonical  -
gnome-calculator  3.28.1     167   stable/…  canonical  -
corrado@corrado-p7-cc-0527:~$

still same problem on a new install from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180611)

still same problem on a new install from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180620) … might be related to seeding not being complete yet … still not completed?

Can you please remove the gnome-calculator snap and reinstall it again? So we can rule out any issues related to snap seeding after first boot.

corrado@corrado-p13-cc-0620:~$ snap remove gnome-calculator
error: cannot remove “gnome-calculator”: snap “gnome-calculator” has “seed” change in progress
corrado@corrado-p13-cc-0620:~$

Can you please run snap changes and then snap tasks N for the N that corresponds to the change that seeds the system and paste the result here.

corrado@corrado-p13-cc-0620:~$ snap changes
ID Status Spawn Ready Summary
1 Doing yesterday at 17:37 CEST - Initialize system state
2 Done yesterday at 17:37 CEST yesterday at 17:37 CEST Initialize device
3 Done yesterday at 19:36 CEST yesterday at 19:36 CEST Connect gnome-calculator:gnome-3-26-1604 to gnome-3-26-1604:gnome-3-26-1604

corrado@corrado-p13-cc-0620:~$

what is the value of N I should use?

corrado@corrado-p13-cc-0620:~$ snap tasks 1
Status Spawn Ready Summary
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Ensure prerequisites for “core” are available
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Prepare snap “/var/lib/snapd/seed/snaps/core_4830.snap” (4830)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Mount snap “core” (4830)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Copy snap “core” data
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “core” (4830) security profiles
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Make snap “core” (4830) available to the system
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “core” (4830) security profiles (phase 2)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Automatically connect eligible plugs and slots of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Set automatic aliases for snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “core” aliases
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run install hook of “core” snap if present
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Start snap “core” (4830) services
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run configure hook of “core” snap if present
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Ensure prerequisites for “gnome-3-26-1604” are available
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Prepare snap “/var/lib/snapd/seed/snaps/gnome-3-26-1604_64.snap” (64)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Mount snap “gnome-3-26-1604” (64)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Copy snap “gnome-3-26-1604” data
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-3-26-1604” (64) security profiles
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Make snap “gnome-3-26-1604” (64) available to the system
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-3-26-1604” (64) security profiles (phase 2)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Automatically connect eligible plugs and slots of snap “gnome-3-26-1604”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Set automatic aliases for snap “gnome-3-26-1604”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-3-26-1604” aliases
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run install hook of “gnome-3-26-1604” snap if present
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Start snap “gnome-3-26-1604” (64) services
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run configure hook of “gnome-3-26-1604” snap if present
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Ensure prerequisites for “gnome-calculator” are available
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Prepare snap “/var/lib/snapd/seed/snaps/gnome-calculator_178.snap” (178)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Mount snap “gnome-calculator” (178)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Copy snap “gnome-calculator” data
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-calculator” (178) security profiles
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Make snap “gnome-calculator” (178) available to the system
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-calculator” (178) security profiles (phase 2)
Doing yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gnome-calculator”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gnome-calculator”
Do yesterday at 17:37 CEST - Setup snap “gnome-calculator” aliases
Do yesterday at 17:37 CEST - Run install hook of “gnome-calculator” snap if present
Do yesterday at 17:37 CEST - Start snap “gnome-calculator” (178) services
Do yesterday at 17:37 CEST - Run configure hook of “gnome-calculator” snap if present
Do yesterday at 17:37 CEST - Ensure prerequisites for “gnome-characters” are available
Do yesterday at 17:37 CEST - Prepare snap “/var/lib/snapd/seed/snaps/gnome-characters_101.snap” (101)
Do yesterday at 17:37 CEST - Mount snap “gnome-characters” (101)
Do yesterday at 17:37 CEST - Copy snap “gnome-characters” data
Do yesterday at 17:37 CEST - Setup snap “gnome-characters” (101) security profiles
Do yesterday at 17:37 CEST - Make snap “gnome-characters” (101) available to the system
Do yesterday at 17:37 CEST - Setup snap “gnome-characters” (101) security profiles (phase 2)
Do yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gnome-characters”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gnome-characters”
Do yesterday at 17:37 CEST - Setup snap “gnome-characters” aliases
Do yesterday at 17:37 CEST - Run install hook of “gnome-characters” snap if present
Do yesterday at 17:37 CEST - Start snap “gnome-characters” (101) services
Do yesterday at 17:37 CEST - Run configure hook of “gnome-characters” snap if present
Do yesterday at 17:37 CEST - Ensure prerequisites for “gnome-logs” are available
Do yesterday at 17:37 CEST - Prepare snap “/var/lib/snapd/seed/snaps/gnome-logs_37.snap” (37)
Do yesterday at 17:37 CEST - Mount snap “gnome-logs” (37)
Do yesterday at 17:37 CEST - Copy snap “gnome-logs” data
Do yesterday at 17:37 CEST - Setup snap “gnome-logs” (37) security profiles
Do yesterday at 17:37 CEST - Make snap “gnome-logs” (37) available to the system
Do yesterday at 17:37 CEST - Setup snap “gnome-logs” (37) security profiles (phase 2)
Do yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gnome-logs”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gnome-logs”
Do yesterday at 17:37 CEST - Setup snap “gnome-logs” aliases
Do yesterday at 17:37 CEST - Run install hook of “gnome-logs” snap if present
Do yesterday at 17:37 CEST - Start snap “gnome-logs” (37) services
Do yesterday at 17:37 CEST - Run configure hook of “gnome-logs” snap if present
Do yesterday at 17:37 CEST - Ensure prerequisites for “gnome-system-monitor” are available
Do yesterday at 17:37 CEST - Prepare snap “/var/lib/snapd/seed/snaps/gnome-system-monitor_45.snap” (45)
Do yesterday at 17:37 CEST - Mount snap “gnome-system-monitor” (45)
Do yesterday at 17:37 CEST - Copy snap “gnome-system-monitor” data
Do yesterday at 17:37 CEST - Setup snap “gnome-system-monitor” (45) security profiles
Do yesterday at 17:37 CEST - Make snap “gnome-system-monitor” (45) available to the system
Do yesterday at 17:37 CEST - Setup snap “gnome-system-monitor” (45) security profiles (phase 2)
Do yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gnome-system-monitor”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gnome-system-monitor”
Do yesterday at 17:37 CEST - Setup snap “gnome-system-monitor” aliases
Do yesterday at 17:37 CEST - Run install hook of “gnome-system-monitor” snap if present
Do yesterday at 17:37 CEST - Start snap “gnome-system-monitor” (45) services
Do yesterday at 17:37 CEST - Run configure hook of “gnome-system-monitor” snap if present
Do yesterday at 17:37 CEST - Ensure prerequisites for “gtk-common-themes” are available
Do yesterday at 17:37 CEST - Prepare snap “/var/lib/snapd/seed/snaps/gtk-common-themes_319.snap” (319)
Do yesterday at 17:37 CEST - Mount snap “gtk-common-themes” (319)
Do yesterday at 17:37 CEST - Copy snap “gtk-common-themes” data
Do yesterday at 17:37 CEST - Setup snap “gtk-common-themes” (319) security profiles
Do yesterday at 17:37 CEST - Make snap “gtk-common-themes” (319) available to the system
Do yesterday at 17:37 CEST - Setup snap “gtk-common-themes” (319) security profiles (phase 2)
Do yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gtk-common-themes”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gtk-common-themes”
Do yesterday at 17:37 CEST - Setup snap “gtk-common-themes” aliases
Do yesterday at 17:37 CEST - Run install hook of “gtk-common-themes” snap if present
Do yesterday at 17:37 CEST - Start snap “gtk-common-themes” (319) services
Do yesterday at 17:37 CEST - Run configure hook of “gtk-common-themes” snap if present
Do yesterday at 17:37 CEST - Mark system seeded
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook prepare-plug-core-support-plug of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook prepare-slot-core-support of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Connect core:core-support-plug to core:core-support
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook connect-slot-core-support of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook connect-plug-core-support-plug of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook prepare-plug-core-support-plug of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook prepare-slot-core-support of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Connect core:core-support-plug to core:core-support
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook connect-slot-core-support of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook connect-plug-core-support-plug of snap “core”


Make snap “core” (4830) available to the system

2018-06-20T17:37:38+02:00 INFO Requested daemon restart.


Setup snap “core” (4830) security profiles (phase 2)

2018-06-20T17:37:38+02:00 INFO Waiting for restart…

corrado@corrado-p13-cc-0620:~$ snap tasks 2
Status Spawn Ready Summary
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Generate device key
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Request device serial

corrado@corrado-p13-cc-0620:~$ snap tasks 3
Status Spawn Ready Summary
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Run hook prepare-plug-gnome-3-26-1604 of snap “gnome-calculator”
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Run hook prepare-slot-gnome-3-26-1604 of snap “gnome-3-26-1604”
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Connect gnome-calculator:gnome-3-26-1604 to gnome-3-26-1604:gnome-3-26-1604
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Run hook connect-slot-gnome-3-26-1604 of snap “gnome-3-26-1604”
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Run hook connect-plug-gnome-3-26-1604 of snap “gnome-calculator”

corrado@corrado-p13-cc-0620:~$

output from snap tasks 1 speaks about gnome-characters, gnome-logs and gnome-system-monitor but i don’t see them
corrado@corrado-p13-cc-0620:~$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.33 4830 stable canonical core
gnome-3-26-1604 3.26.0 64 stable/… canonical -
gnome-calculator 3.28.1 178 stable/… canonical -
corrado@corrado-p13-cc-0620:~$

This seems to be stuck

Can you please put triple backticks (```) around the terminal output, it will render much better here.

CC @pstolowski is this the same auto-connect bug we reverted a while ago?

On a different partition same PC installed from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180509)
gnome-calculator was running smoothly until last update few minutes ago but now i see the same problem!!!

corrado@corrado-p6-cc-0509:~$ snap changes
error: no changes found
corrado@corrado-p6-cc-0509:~$ snap run gnome-calculator
You need to connect this snap to the gnome platform snap.

You can do this with those commands:
snap install gnome-3-26-1604
snap connect gnome-calculator:gnome-3-26-1604 gnome-3-26-1604

(the '3-26-1604' number defines the platform version and might change)
corrado@corrado-p6-cc-0509:~$ snap changes
ID   Status  Spawn                Ready                Summary
10   Done    today at 17:49 CEST  today at 17:50 CEST  Auto-refresh snap "core"

corrado@corrado-p6-cc-0509:~$ 

corrado@corrado-p6-cc-0509:~$ snap list
Name                  Version       Rev   Tracking  Developer  Notes
chromium              67.0.3396.62  353   stable    canonical  -
core                  16-2.33       4830  stable    canonical  core
gnome-3-26-1604       3.26.0        64    stable/…  canonical  -
gnome-calculator      3.28.1        178   stable/…  canonical  -
gnome-characters      3.28.2        101   stable/…  canonical  -
gnome-logs            3.28.2        37    stable/…  canonical  -
gnome-system-monitor  3.26.0        45    stable    canonical  -
gtk-common-themes     0.1           319   stable    canonical  -
corrado@corrado-p6-cc-0509:~$