fwiw, as part of the scanning cabinet CL (https://camlistore-review.googlesource.com/5416) I have also reworked a lot of the app handler business, so maybe the changes in there would also fix things for you?
I should probably pull these changes out of that CL so we don't have to wait for the scanning cabinet to land them. I think I'll do it soon. On 10 May 2016 at 20:03, Tamás Gulácsi <[email protected]> wrote: > >> 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. > > > > Forcing the proxyURL to be http helps: > > diff --git a/pkg/server/app/app.go b/pkg/server/app/app.go > index b025247..020e2a6 100644 > --- a/pkg/server/app/app.go > +++ b/pkg/server/app/app.go > @@ -166,6 +166,9 @@ func NewHandler(conf jsonconfig.Obj, apiHost, > appHandlerPrefix string) (*Handler > if err != nil { > return nil, fmt.Errorf("could not parse backendURL %q: %v", > backendURL, err) > } > + if proxyURL.Scheme == "https" { > + proxyURL.Scheme = "http" > + } > return &Handler{ > name: name, > envVars: envVars, > > But I don't know how to make this a more acceptable, less barbaric change... > > -- > 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.
