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

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

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
pcore/snapd/blob/3dc67f49c4b6fe3acd5ad 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

Re: configure hook

2016-12-01 Thread Didier Roche
tate.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 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
e 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 hook "configure" in "syncloud-platform") > &g

Re: configure hook

2016-11-15 Thread Martin Winter
11/2016 à 04:52, Kyle Fazzari a écrit : On Nov 6, 2016 21:51, "Didier Roche" <didro...@ubuntu.com <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

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

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

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

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

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. > >

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

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

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 à

Re: configure hook

2016-11-09 Thread Boris Rybalkin
zzari a écrit : >>> > >>> > On Nov 6, 2016 21:51, "Didier Roche" <didro...@ubuntu.com >>> > <mailto:didro...@ubuntu.com>> wrote: >>> >> >>> >> Le 06/11/2016 à 00:22, Boris Rybalkin a écrit : >

Re: configure hook

2016-11-08 Thread Enwei Zhang
ubuntu.com >> > <mailto:didro...@ubuntu.com>> wrote: >> >> >> >> Le 06/11/2016 à 00:22, Boris Rybalkin a écrit : >> >> > >> >> > Hello, >> >> > >> >> >> >> Hey Boris, >> >> &g

Re: configure hook

2016-11-08 Thread Enwei Zhang
:22, Boris Rybalkin a écrit : > >> > > >> > Hello, > >> > > >> > >> Hey Boris, > >> > > >> > I want to generate my config on snap install using snap location > >> > variables. > >> > > >> > From the d

Re: configure hook

2016-11-07 Thread Kyle Fazzari
On Nov 6, 2016 21:51, "Didier Roche" <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 > > v

Re: configure hook

2016-11-07 Thread Manik Taneja
+kyle On Sun, Nov 6, 2016 at 11:51 PM, Didier Roche <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 > &

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 purpose? Thank