Re: Snap refresh or new install stuck at 'Run configure hook of "core" snap if present'

2017-03-02 Thread Oliver Grawert
hi, Am Donnerstag, den 02.03.2017, 01:15 -0700 schrieb Selene Scriven: >  > I'm not sure if it's the same thing, but one of my devices got  > stuck for a while yesterday.  Every snap command got stuck for  > about 8 minutes, and I found this in the syslog right before that  > started: > > Mar  1 0

Re: Snap refresh or new install stuck at 'Run configure hook of "core" snap if present'

2017-03-02 Thread Selene Scriven
* Joseph Rushton Wakeling wrote: > On 24/02/17 14:08, Martin Winter wrote: > >Curious if anyone has seen the same. All my Ubuntu 16.04 > >Servers have this issue. (Approx 10 Servers which are part of > >my CI system) > > Saw the same on a Debian Sid install that I was using to test > my ldc2

Re: Snap refresh or new install stuck at 'Run configure hook of "core" snap if present'

2017-02-25 Thread Joseph Rushton Wakeling
On 24/02/17 14:08, Martin Winter wrote: Curious if anyone has seen the same. All my Ubuntu 16.04 Servers have this issue. (Approx 10 Servers which are part of my CI system) Saw the same on a Debian Sid install that I was using to test my ldc2 snap package a couple of days ago. However, it di

Re: Snap refresh or new install stuck at 'Run configure hook of "core" snap if present'

2017-02-24 Thread John Lenton
On 24 February 2017 at 13:08, Martin Winter wrote: > So not sure what’s going on. Neither are we! But we've spotted some of these on errors.ubuntu.com. Can you get get on IRC (#snappy on freenode)? We'd love to get our hands on systems with this happening a we haven't been able to reproduce it!

Snap refresh or new install stuck at 'Run configure hook of "core" snap if present'

2017-02-24 Thread Martin Winter
So not sure what’s going on. Since the latest update of my Ubuntu 16.04.2 (Server, x86_64) I can’t do a “snap refresh” anymore or reinstalling it. Basically it seems to try installing or updating (If I have earlier version) and gets stuck forever (or at least > 2hrs) at [/] Run config

Re: configure hook

2016-12-02 Thread Boris Rybalkin
6fe3acd5ad d647ac35a42fbb395d5/overlord/snapstate/snapstate.go#L184 If this is correct (and that is what I see) it completely breaks the idea of generating service configs (many tools want absolute paths in their configs) with configure hook as it has to be done before the start. This explains all my issues wi

Re: configure hook

2016-12-01 Thread Didier Roche
t; > If this is correct (and that is what I see) it completely breaks the > idea of generating service configs (many tools want absolute paths in > their configs) with configure hook as it has to be done before the start. > > This explains all my issues with keeping generated configs in

Re: configure hook

2016-12-01 Thread Boris Rybalkin
of generating service configs (many tools want absolute paths in their configs) with configure hook as it has to be done before the start. This explains all my issues with keeping generated configs in SNAP_COMMON and every time I enable services and they fail I actually see configs from previous

Re: configure hook

2016-11-17 Thread Boris Rybalkin
After reinstalling snapd (2.17.1) and cleaning /var/lib/snapd/ issue seems to go away. Thank you very much! On Wed, Nov 16, 2016 at 7:20 PM, Boris Rybalkin wrote: > After upgrading snapd on desktop 16.04 from xenial-proposed now I have > this wired message on install: > > Run confi

Re: configure hook

2016-11-16 Thread Boris Rybalkin
After upgrading snapd on desktop 16.04 from xenial-proposed now I have this wired message on install: Run configure hook of "syncloud-platform" error: cannot perform the following tasks: - Run configure hook of "syncloud-platform" snap if present (cannot snap-exec: cannot find

Re: configure hook

2016-11-16 Thread Enwei Zhang
Got it, Thank you Didier. Br Enwei On Wed, Nov 16, 2016 at 3:04 PM, Didier Roche wrote: > Le 16/11/2016 à 03:05, Enwei Zhang a écrit : > > Hi Didier and folks, > > I didn't find any bug to track the missing hooks support in snapcraft. > > Do we need a new one? > > Hey Enwei, > > There is one th

Re: configure hook

2016-11-15 Thread Didier Roche
Le 16/11/2016 à 03:05, Enwei Zhang a écrit : > Hi Didier and folks, > I didn't find any bug to track the missing hooks support in snapcraft. > Do we need a new one? Hey Enwei, There is one though: https://bugs.launchpad.net/snapcraft/+bug/1586465 Didier -- Snapcraft mailing list Snapcraft@list

Re: configure hook

2016-11-15 Thread Martin Winter
ier Roche" mailto:didro...@ubuntu.com>> wrote: Le 06/11/2016 à 00:22, Boris Rybalkin a écrit : Hello, Hey Boris, I want to generate my config on snap install using snap location variables. From the docs configure hook is only triggered when 'snap set' is called. Will

Re: configure hook

2016-11-15 Thread Enwei Zhang
Hi Didier and folks, I didn't find any bug to track the missing hooks support in snapcraft. Do we need a new one? Thanks. Br Enwei On Tue, Nov 15, 2016 at 6:43 AM, Sergio Schvezov < sergio.schve...@canonical.com> wrote: > El 14/11/16 a las 18:35, Boris Rybalkin escribió: > >> VM has snapd v2.17,

Re: configure hook

2016-11-14 Thread Sergio Schvezov
El 14/11/16 a las 18:35, Boris Rybalkin escribió: VM has snapd v2.17, is it possible to install this version on desktop 16.04/16.10 so I can have it for integration tests? It is in xenial-proposed https://launchpad.net/ubuntu/+source/snapd If you want the latest and greatest at all times (non p

Re: configure hook

2016-11-14 Thread Boris Rybalkin
Great, on ubuntu core vm hook worked perfectly fine and even was executed on install with all the issues printed to the output until fixed it! VM has snapd v2.17, is it possible to install this version on desktop 16.04/16.10 so I can have it for integration tests? Also is there any documentation o

Re: configure hook

2016-11-14 Thread Didier Roche
Le 14/11/2016 à 10:04, Boris Rybalkin a écrit : > > Will it help if I upgrade to 16.10? > No, it contains the same version: https://launchpad.net/ubuntu/+source/snapd Try the ubuntu core vm is the only easy way for you to progress there. > Also what is really relation between snapd and ubuntu core

Re: configure hook

2016-11-14 Thread Boris Rybalkin
Will it help if I upgrade to 16.10? Also what is really relation between snapd and ubuntu core on amd64? On 14 Nov 2016 8:01 am, "Didier Roche" wrote: > Le 12/11/2016 à 17:45, Boris Rybalkin a écrit : > > Still struggling with hooks, they are not executed on install. > > snap$ snap run --hook=co

Re: configure hook

2016-11-14 Thread Didier Roche
Le 12/11/2016 à 17:45, Boris Rybalkin a écrit : > > Still struggling with hooks, they are not executed on install. > > snap$ snap run --hook=configure syncloud-platform > cannot snap-exec: cannot find hook "configure" in "syncloud-platform" > and even 'snap run --hook=configure mysnap' silently ret

Re: configure hook

2016-11-12 Thread Boris Rybalkin
Still struggling with hooks, they are not executed on install. snap$ snap run --hook=configure syncloud-platform cannot snap-exec: cannot find hook "configure" in "syncloud-platform" and even 'snap run --hook=configure mysnap' silently returns. I am using: Ubuntu 16.04 snapd 2.16ubuntu3 Does it

Re: configure hook

2016-11-09 Thread Didier Roche
Le 09/11/2016 à 10:15, Boris Rybalkin a écrit : > > One more question, should I expect a hook to run inside my snap > package and use relative shebang like this? > > #!python/bin/python > > Assuming I am packaging python with my snap. > hooks are run using the same context than any "commands:" in y

Re: configure hook

2016-11-09 Thread Boris Rybalkin
One more question, should I expect a hook to run inside my snap package and use relative shebang like this? #!python/bin/python Assuming I am packaging python with my snap. Thank you very much for your replies! On 9 Nov 2016 08:58, "Didier Roche" wrote: > Le 09/11/2016 à 09:39, Boris Rybalkin

Re: configure hook

2016-11-09 Thread Didier Roche
Le 09/11/2016 à 09:39, Boris Rybalkin a écrit : > > Sorry, I did not get that. > > I am using snapcraft, are you saying that just creating > hooks/configure is not enaugh? > It should be enough if you ensure it's in your final snap in meta/hooks/configure. (Look at your prime/ directory). Enwei was

Re: configure hook

2016-11-09 Thread Boris Rybalkin
gt;> Didier >> >> >> Thanks. >> >> Br >> Enwei >> >> >> >> On Tue, Nov 8, 2016 at 6:28 PM, Didier Roche wrote: >> >>> Le 08/11/2016 à 04:52, Kyle Fazzari a écrit : >>> > >>> > On Nov 6, 2016 21:51, &

Re: configure hook

2016-11-08 Thread Enwei Zhang
ote: >> >> >> >> Le 06/11/2016 à 00:22, Boris Rybalkin a écrit : >> >> > >> >> > Hello, >> >> > >> >> >> >> Hey Boris, >> >> > >> >> > I want to generate my config on snap install usi

Re: configure hook

2016-11-08 Thread Didier Roche
016 à 00:22, Boris Rybalkin a écrit : > >> > > >> > Hello, > >> > > >> > >> Hey Boris, > >> > > >> > I want to generate my config on snap install using snap location > >> &

Re: configure hook

2016-11-08 Thread Enwei Zhang
>> > Hello, > >> > > >> > >> Hey Boris, > >> > > >> > I want to generate my config on snap install using snap location > >> > variables. > >> > > >> > From the docs configure hook is only triggered when &#

Re: configure hook

2016-11-08 Thread Didier Roche
, >> > >> > I want to generate my config on snap install using snap location >> > variables. >> > >> > From the docs configure hook is only triggered when 'snap set' is >> > called. Will configure also be called on install and upgrade? &g

Re: configure hook

2016-11-07 Thread Kyle Fazzari
On Nov 6, 2016 21:51, "Didier Roche" wrote: > > Le 06/11/2016 à 00:22, Boris Rybalkin a écrit : > > > > Hello, > > > > Hey Boris, > > > > I want to generate my config on snap install using snap location > > variables. > > >

Re: configure hook

2016-11-07 Thread Manik Taneja
+kyle On Sun, Nov 6, 2016 at 11:51 PM, Didier Roche wrote: > Le 06/11/2016 à 00:22, Boris Rybalkin a écrit : > > > > Hello, > > > > Hey Boris, > > > > I want to generate my config on snap install using snap location > > variables. > > >

Re: configure hook

2016-11-06 Thread Didier Roche
Le 06/11/2016 à 00:22, Boris Rybalkin a écrit : > > Hello, > Hey Boris, > > I want to generate my config on snap install using snap location > variables. > > From the docs configure hook is only triggered when 'snap set' is > called. Will configure also

configure hook

2016-11-05 Thread Boris Rybalkin
Hello, I want to generate my config on snap install using snap location variables. >From the docs configure hook is only triggered when 'snap set' is called. Will configure also be called on install and upgrade? If not is there any other hook available for that purpos