Snapcraft cleanbuild waiting for input?

Hi,

I have been noticing a strange behavior when building the MicroK8s snap. snapcraft cleanbuild is waiting for my input (hit enter) when preparing the lxc machine:

snapcraft cleanbuild 
Creating snapcraft-credently-proctodeal-jesenia
Starting snapcraft-credently-proctodeal-jesenia
Waiting for a network connection...
Network connection established
------------------>>>> I need to press enter here <<<<<---------

Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [4808 B]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe Sources [7728 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]     
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main Sources [142 kB]          
Get:11 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2116 B]      
Get:12 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [101 kB] 
Get:14 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [3420 B]       
Get:15 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [614 kB]           
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [425 kB]         
Get:17 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]        
Get:19 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [171 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [330 kB]         
Get:21 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [5600 B]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2528 B]
Get:23 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2676 B]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [246 kB]       
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [8764 B]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [912 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [728 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [301 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.6 kB]                                                                                                                                                                   
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8440 B]                                                                                                                                                                    
Get:31 http://archive.ubuntu.com/ubuntu xenial-backports/main Sources [4848 B]                                                                                                                                                                               
Get:32 http://archive.ubuntu.com/ubuntu xenial-backports/universe Sources [6740 B]                                                                                                                                                                           
Get:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7280 B]                                                                                                                                                                        
Get:34 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4456 B]                                                                                                                                                                        
Get:35 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7804 B]                                                                                                                                                                    
Get:36 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4184 B]                                                                                                                                                                    
Fetched 25.3 MB in 7s (3523 kB/s)                                                                                                                                                                                                                            
Reading package lists... Done
error: no changes of type "auto-refresh" found
------------------>>>> I need to press enter here <<<<<---------

This has also been reported by a separate user https://github.com/ubuntu/microk8s/pull/323#issuecomment-465347945 so I suspect it is not related to my setup. It might be related with the snap or with snapcraft.

How can I increase the logging during the lxc machine provisioning to figure out what is failing?

Thanks

2 Likes

I get the same issue using snapcraft cleanbuild with v3.1 on Ubuntu 18.04 (a new in-progress snap project using git+cmake parts). As you said, it continues fine after hitting enter. It seems to be a wider issue than just MicroK8s.

My snapcraft.yaml: http://paste.ubuntu.com/p/KvbJvvyX4w/

1 Like

This seems to be fixed in the recent snapcraft release. I do not see it anymore.

1 Like