Snapcraft cleanbuild waiting for input?


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 xenial InRelease
Get:2 xenial-updates InRelease [109 kB]
Get:3 xenial-backports InRelease [107 kB]
Get:4 xenial/main Sources [868 kB]
Get:5 xenial/restricted Sources [4808 B]
Get:6 xenial/universe Sources [7728 kB]
Get:7 xenial/multiverse Sources [179 kB]
Get:8 xenial/universe amd64 Packages [7532 kB]
Get:9 xenial-security InRelease [109 kB]     
Get:10 xenial-security/main Sources [142 kB]          
Get:11 xenial-security/restricted Sources [2116 B]      
Get:12 xenial/universe Translation-en [4354 kB]
Get:13 xenial-security/universe Sources [101 kB] 
Get:14 xenial-security/multiverse Sources [3420 B]       
Get:15 xenial-security/main amd64 Packages [614 kB]           
Get:16 xenial-security/universe amd64 Packages [425 kB]         
Get:17 xenial/multiverse amd64 Packages [144 kB]
Get:18 xenial/multiverse Translation-en [106 kB]        
Get:19 xenial-security/universe Translation-en [171 kB]
Get:20 xenial-updates/main Sources [330 kB]         
Get:21 xenial-security/multiverse amd64 Packages [5600 B]
Get:22 xenial-updates/restricted Sources [2528 B]
Get:23 xenial-security/multiverse Translation-en [2676 B]
Get:24 xenial-updates/universe Sources [246 kB]       
Get:25 xenial-updates/multiverse Sources [8764 B]
Get:26 xenial-updates/main amd64 Packages [912 kB]
Get:27 xenial-updates/universe amd64 Packages [728 kB]
Get:28 xenial-updates/universe Translation-en [301 kB]
Get:29 xenial-updates/multiverse amd64 Packages [16.6 kB]                                                                                                                                                                   
Get:30 xenial-updates/multiverse Translation-en [8440 B]                                                                                                                                                                    
Get:31 xenial-backports/main Sources [4848 B]                                                                                                                                                                               
Get:32 xenial-backports/universe Sources [6740 B]                                                                                                                                                                           
Get:33 xenial-backports/main amd64 Packages [7280 B]                                                                                                                                                                        
Get:34 xenial-backports/main Translation-en [4456 B]                                                                                                                                                                        
Get:35 xenial-backports/universe amd64 Packages [7804 B]                                                                                                                                                                    
Get:36 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 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?



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:

1 Like

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

1 Like