> 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.

Reply via email to