Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Getting started guide fails? #1118

@Lorquas

Description

@Lorquas

I'm running through the getting started guide, found in this repo's README.md and off your vimeo page. I'm going along and everything is peachy until:

❯❯❯ snapctl task create -t mock-file.yaml
Using task manifest to create task
Error creating task:
Plugin not found: type(publisher) name(mock-file) version(-1)

I open up the yaml and check out that its looking for a publisher named "mock-file" and not "file", run snapctl plugin unload publisher:file:1 followed by
snapctl plugin load plugins/snap-plugin-publisher-mock-file . I then run the task create again:

❯❯❯ snapctl task create -t mock-file.yaml
Using task manifest to create task
Task created
ID: cd9697b4-dcc4-4e3b-a8c2-1d4955bae9be
Name: Task-cd9697b4-dcc4-4e3b-a8c2-1d4955bae9be

seems better, but now:

❯❯❯ snapctl task list
ID                   NAME                        STATE       HIT     MISS    FAIL    CREATED         LAST FAILURE
cd9697b4-dcc4-4e3b-a8c2-1d4955bae9be     Task-cd9697b4-dcc4-4e3b-a8c2-1d4955bae9be   Disabled    10      0   10      12:01PM 8-01-2016   Publish call error: EOF

and in the console output of snapd:

DEBU[2016-08-01T12:01:14-04:00] level=debug msg="publishing started"          _module=plugin-exec io=stderr plugin=snap-plugin-publisher-mock-file
DEBU[2016-08-01T12:01:14-04:00] level=error msg="error decoding" content=[13 255 147 2 1 2 255 148 0 1 255 136 0 0 255 155 255 135 3 1 1 10 77 101 116 114 105 99 84 121 112 101 1 255 136 0 1 9 1 10 78 97 109 101 115 112 97 99 101 95 1 255 140 0 1 19 76 97 115 116 65 100 118 101 114 116 105 115 101 100 84 105 109 101 95 1 255 142 0 1 8 86 101 114 115 105 111 110 95 1 4 0 1 7 67 111 110 102 105 103 95 1 255 144 0 1 5 68 97 116 97 95 1 16 0 1 5 84 97 103 115 95 1 255 146 0 1 5 85 110 105 116 95 1 12 0 1 12 68 101 115 99 114 105 112 116 105 111 110 95 1 12 0 1 10 84 105 109 101 115 116 97 109 112 95 1 255 142 0 0 0 38 255 139 2 1 1 23 91 93 99 111 114 101 46 78 97 109 101 115 112 97 99 101 69 108 101 109 101 110 116 1 255 140 0 1 255 138 0 0 65 255 137 3 1 1 16 78 97 109 101 115 112 97 99 101 69 108 101 109 101 110 116 1 255 138 0 1 3 1 5 86 97 108 117 101 1 12 0 1 11 68 101 115 99 114 105 112 116 105 111 110 1 12 0 1 4 78 97 109 101 1 12 0 0 0 16 255 141 5 1 1 4 84 105 109 101 1 255 142 0 0 0 10 255 143 5 1 2 255 150 0 0 0 33 255 145 4 1 1 17 109 97 112 91 115 116 114 105 110 103 93 115 116 114 105 110 103 1 255 146 0 1 12 1 12 0 0] error=EOF   _module=plugin-exec io=stderr plugin=snap-plugin-publisher-mock-file
ERRO[2016-08-01T12:01:14-04:00] error with publisher job                      _module=scheduler-job block=run content-type=snap.gob error=Publish call error: EOF job-type=publisher plugin-config=map[file:{Value:/tmp/snap_published_mock_file.log} debug:{Value:true}] plugin-name=mock-file plugin-version=-1
WARN[2016-08-01T12:01:14-04:00] Publish job failed 

Until the fail limit of 10 consecutive fails is reached and it aborts completely.

I've retried the whole process using the plain "file" plugin (and rewriting the yaml), I've also changed the target file to a file/folder with 777 permissions, selinux and firewalls off. And I get the same thing every time. Being as new to this framework as I am (following the getting started guide), any ideas as to what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions