On 9 May 2016 at 22:03, Tamás Gulácsi <[email protected]> wrote:
>
>
> 2016. május 9., hétfő 16:04:30 UTC+2 időpontban mpl a következőt írta:
>>
>> The permanode that you want to use as your root for the publisher just
>> needs to have its "camliRoot" attribute set to the value that you
>> define in your server-config, there's nothing more to it.
>> So based on the server-config you showed, if you want to use
>> sha1-de682600ddf64620b322971c94e7911bebe4865b as the root, just make
>> sure its "camliRoot" attribute is set to "pics".
>>
>> Then every time you want to publish a permanode/set, you add it as a
>> camliPath attribute to the above root permanode, e.g.
>> "camliPath:seaside-vacation-2016" : "sha1-ref_of_set_of_pictures"
>>
>>
>> On 8 May 2016 at 22:12, Tamás Gulácsi <[email protected]> wrote:
>> > This is what I got in camlistored log for
>> >
>> > gthomas@tequila:~$ cat .config/camlistore/server-config.json
>> > {
>> >     "listen": "0.0.0.0:3179",
>> >     "baseURL": "https://camli.gthomas.eu";,
>> >     "shareHandler": true,
>> >     "https": false,
>> >     "httpsCert":
>> > "/home/gthomas/.config/camlistore/camli.gthomas.eu.crt",
>> >     "httpsKey": "/home/gthomas/.config/camlistore/camli.gthomas.eu.key",
>> >     "auth": "userpass:gthomas:majdhafagy:+localhost",
>> >     "identity": "974EA38B",
>> >     "identitySecretRing":
>> > "/home/gthomas/.config/camlistore/identity-secring.gpg",
>> >     "levelDB": "/home/gthomas/var/camlistore/camli-index.leveldb",
>> >     "blobPath": "/home/gthomas/var/camlistore/packs",
>> >     "packBlobs": true,
>> >         "runIndex": true,
>> >         "copyIndexToMemory": true,
>> >     "mysql": "",
>> >     "mongo": "",
>> >     "postgres": "",
>> >     "sqlite": "",
>> >     "s3": "",
>> >     "replicateTo": [],
>> >         "publish": {
>> >           "/pics/": {
>> >              "camliRoot": "pics",
>> >                  "cacheRoot":
>> > "/home/gthomas/var/camlistore/blobs/cache",
>> >                  "goTemplate": "gallery.html"
>> >        }
>> >      }
>> > }
>> >
>> > gthomas@tequila:~$ camget sha1-de682600ddf64620b322971c94e7911bebe4865b
>> > {"camliVersion": 1,
>> >   "camliSigner": "sha1-01c5e458c48552abac802d4f8b52b093efbb2caa",
>> >   "camliType": "permanode",
>> >   "key": "pics"
>> >
>> > ,"camliSig":"wsBcBAABCAAQBQJXE4QgCRAdaMP0l06jiwAAG0gIAIZlrpoWvCFnjptlprCE2QnlTma+R63G/2PLKlY5oZPC7p/yBQp+6ESBN5le3ohhDvp1TMWcuq1bFDushTYqdqparu6ZFGgf0NKKXaO47PYbPdDDUJcuZQ3dsCWguXcbT0Vaik297sQirakGUZ+TRisveqiWdswAx3OYFq1YpxQG542uF70RK6lHPO3si4mf5l30A6KNNc28W0/lHfSHteKNZxn1sFXw2nbRPF6JdXXq8YXXt28mOetcqXj9XhBfZbP0zrMEZ2NPOljIzaUSGCmAb2Xu/oTix5w7j/Zg7C+dBJ9JElXGfmYoTZcMpjw4UqS6CGhdjHVcgB6nX5elKJE==4waQ"}
>> >
>> > I get same error if I change the "camliRoot" to
>> > "sha1-de682600ddf64620b322971c94e7911bebe4865b", so now I don't know
>> > what to
>> > do.
>> >
>> >
>> > What kind of permanode does publish need for its root?
>> > Why is that "mypics" (the key) in the example config?
>> > Why doesn't this work?
>> >
>> > Thanks,
>> > Tamás Gulácsi
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Camlistore" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to [email protected].
>> > For more options, visit https://groups.google.com/d/optout.
>
>
> Thanks!
>
> So this two commands was missing:
>
> camput attr sha1-de682600ddf64620b322971c94e7911bebe4865b camliRoot pics

>From https://camlistore.org/doc/server-config

"One can create any permanode with camput or the UI, and set its
camliRoot attribute to the value set in the config, to use it as the
root permanode for publishing."

> camput attr -add sha1-de682600ddf64620b322971c94e7911bebe4865b
> camliPath:20160507-Bori_mazsi sha1-7591a5e16ce83625b6e7a7e65a099142af328d9c

But indeed, in https://camlistore.org/doc/schema/attributes.md
camliRoot could use some doc.

> Is this documented, just I was blind?

So you're only half-blind ;P

> Now another obstacle:
>  PUBLISHER: 2016/05/09 21:34:47 Listen: Failed to listen on
> camli.gthomas.eu:42902: listen tcp 176.63.179.118:42902: bind: cannot assign
> requested address
>
> That IP is my server's outer ip, but I'm behind a router, so can't bind on
> it. It should bind to 127.0.0.1 only.
> It is derived (in pkg/server/app/app.go) from the base URL of the
> handlerLoader.
>
> If I change it to "http://localhost:3179"; (to the address where my
> camlistored is listening on), then the publisher can start, bat fails with
> PUBLISHER: 2016/05/09 21:59:19 could not get app config at
> http://localhost/pics/config.json: client: got status code 404 from URL
> http://localhost/pics/config.json; body No such host at :80
>
>
> Maybe the culprit is that I have camlistored listen on http://localhost:3179
> and have caddy fiddle with SSL (Let's Encrypt) as a proxy listening on
> https://camli.gthomas.eu:443.
>
> Do you have some idea how to straighten this up?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Camlistore" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Camlistore" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to