Shared content example - ubuntu-app-platform

Enwei Zhang enwei.zhang at canonical.com
Thu Dec 1 02:30:42 UTC 2016


Hi Stuart,
I never got "write" working, it always tells me "permission denied".
For your mount issue, I guess you need to create a empty folder locally
called "test-share-target".

Br
Enwei

On Wed, Nov 30, 2016 at 9:39 PM, Stuart Bishop <stuart.bishop at canonical.com>
wrote:

> On 29 November 2016 at 08:36, Enwei Zhang <enwei.zhang at canonical.com>
> wrote:
>
>> Thank you Timo.
>> I changed from "./bin" to "/bin", then it works.
>>
>
>
> Did you have any luck getting 'write' to work? I'm getting as far as
> running my app and it failing with:
>
>   cannot mount /snap/prov/x2 at /snap/cons/x1/test-share-target with
> options bind. errmsg: No such file or directory
>
> I'm unsure what paths I should be using. I need to get access to
> $SNAP_DATA, $SNAP_USER_DATA, $SNAP_COMMON etc. to install configuration
> files.
>
> Are there any user docs or design specs around, or is this feature being
> prototyped on the fly? I can't even find anything about the plugs: stanza
> in snapcraft.yaml, but that might just be a lack of Google juice.
>
> keskiviikko 23. marraskuuta 2016 Enwei Zhang <enwei.zhang at canonical.com>
>>> kirjoitti:
>>> > Hello,
>>> > Thanks Timo for the good example.
>>> > While I tried to write two snaps(server to share paths to client) that
>>> use content interface to share files, I found "write" slot doesn't work.
>>> > The code snippet from server side snapcraft.yaml
>>> >
>>> > slots:
>>> > test-share:
>>> > content: test-content-server
>>> > interface: content
>>> > write:
>>> > - .
>>> >
>>> > When accessing from client side snap, it shows "permission denied".
>>>
>>>
>>>
>
> --
> Stuart Bishop <stuart.bishop at canonical.com>
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161201/c38e6db9/attachment.html>


More information about the Snapcraft mailing list