On 10 May 2016 at 19:56, Tamás Gulácsi <[email protected]> wrote: > > 2016. május 9., hétfő 22:03:00 UTC+2 időpontban Tamás Gulácsi a következőt > írta: >> >> >> >> 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" >>> >>> >> Thanks! >> >> So this two commands was missing: >> >> camput attr sha1-de682600ddf64620b322971c94e7911bebe4865b camliRoot pics >> camput attr -add sha1-de682600ddf64620b322971c94e7911bebe4865b >> camliPath:20160507-Bori_mazsi sha1-7591a5e16ce83625b6e7a7e65a099142af328d9c >> >> Is this documented, just I was blind? >> >> >> 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? > > > To answer my question: adding camli.gthomas.eu to /etc/hosts as 127.0.0.1 > fixes this problem, publisher starts flawlessly.
Sorry, I forgot about that thread. Shouldn't you rather change listen to: "listen": "camli.gthomas.eu:3179", ? Does that conflict with your caddy proying? > But something is wrong with the proxy: > > PUBLISHER: 2016/05/10 19:52:28 Starting publisher version > 2016-05-10-044c7b3; Go go1.6.2 (linux/amd64) > 2016/05/10 19:52:28 Starting regular periodic import for picasa importer > account, sha1-d9452176e1f13387052dc5951ad80a3776901a93 > 2016/05/10 19:52:28 Starting picasa importer account, > sha1-d9452176e1f13387052dc5951ad80a3776901a93: userid 110475319045955272364 > (Tamás Gulácsi) > 2016/05/10 19:52:28 auth: local connection uid 33 doesn't match server uid > 1000 > 2016/05/10 19:52:28 auth: local connection uid 33 doesn't match server uid > 1000 > PUBLISHER: 2016/05/10 19:52:28 Starting to listen on http://127.0.0.1:40792 > 2016/05/10 19:52:28 Available on https://camli.gthomas.eu/ui/ > 2016/05/10 19:52:33 picasa importer account, > sha1-d9452176e1f13387052dc5951ad80a3776901a93 finished. > 2016/05/10 19:52:33 picasa importer account, > sha1-d9452176e1f13387052dc5951ad80a3776901a93 ran recently enough. Sleeping > for 29m59.999823374s. > 2016/05/10 19:52:51 auth: local connection uid 33 doesn't match server uid > 1000 > 2016/05/10 19:53:02 auth: local connection uid 33 doesn't match server uid > 1000 > 2016/05/10 19:53:16 auth: local connection uid 33 doesn't match server uid > 1000 > 2016/05/10 19:55:00 http: proxy error: tls: oversized record received with > length 20527 > > > As far as I know, caddy ends TLS, so camlistored shouldn't want to proxy > HTTPS. > > -- > 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.
