Re: Camput issues

104 views
Skip to first unread message

Mathieu Lonjaret

unread,
Nov 8, 2012, 9:41:35 AM11/8/12
to camli...@googlegroups.com
I think I told you in a previous mail that the blobServer url that is
generated in the default camput config might be broken.

Do you have

"blobServer": "http://localhost:3179",
?

if yes, append a "bs" so that it looks like:

"blobServer": "http://localhost:3179/bs",

alternatively, if you pull again, you'll get brad's latest changes
which improved discovery and should avoid that issue.


On 11/8/12, Maxime Lavigne <dugu...@gmail.com> wrote:
> Hi,
>
> I recently encountered a problem with the initial configuration of
> Camlistore and I am unsure if it is caused by me forgetting a step or by
> something else.
>
> I did my test on both Windows x64 and Linux Ubuntu i686. I want to test
> default configuration so I deleted all the configuration
> and environment variables related to Camlistore.
>
> First I start ./camlistore and it use the newly created
> "identity-secring.gpg" and than I do a ./camput init --gpgkey={key given by
>
> camli UI} with the newly generated key ID.
>
> Finaly, when I try to do a ./camput file CONTRIBUTORS, I get the same error
>
> on both hosts : "Error putting file: invalid character '<' looking for
> beginning of value". When I debbuged it, it came from trying to do a
> StatBlob on "http://localhost:3179/camli/stat". The code seems to assume
> it's gonna receive a json object but it receives "This is camlistored, a
> Camlistore server. If you're coming from localhost, hit /setup.".It is
> failing at pkg/client/upload.go:93.
>
> Did I miss a step somewhere? I'm running from the tip of the repository but
>
> I remember running it without problem previously.
>
> Thanks
>

Brad Fitzpatrick

unread,
Nov 8, 2012, 1:04:36 PM11/8/12
to camli...@googlegroups.com
As Mathieu pointed out, I think I just both fixed this (it now does auto-discovery of the path) and broke this (I forgot to update the default config file).  But Mathieu just fixed the latter.

Could you try again?

Maxime Lavigne

unread,
Nov 15, 2012, 9:35:49 PM11/15/12
to camli...@googlegroups.com, br...@danga.com
From a clean pull.

  I remove my camlistore configuration folder and restart camlistored.
  Do a camput init with keyid of the newly generated ID.

  From this point, camput file CONTRIBUTORS gives me :
    Error putting file: Got status "401 Unauthorized" from blobserver during configuration discovery
  
  I then change the auth:"none" that was generated for the default config and put the default authentication pattern.
    "auth": "userpass:camlistore:pass3179:+localhost" and then I get the same error.

  I then change the blobServer URI to point to http://localhost:3179/bs and then it works.

Thanks for your inputs.

Brad Fitzpatrick

unread,
Nov 15, 2012, 10:17:50 PM11/15/12
to Maxime Lavigne, camli...@googlegroups.com
Maxime, thanks!  I've filed two issues,

On Thu, Nov 15, 2012 at 6:35 PM, Maxime Lavigne <dugu...@gmail.com> wrote:
From a clean pull.

  I remove my camlistore configuration folder and restart camlistored.
  Do a camput init with keyid of the newly generated ID.

  From this point, camput file CONTRIBUTORS gives me :
    Error putting file: Got status "401 Unauthorized" from blobserver during configuration discovery
  
  I then change the auth:"none" that was generated for the default config and put the default authentication pattern.
    "auth": "userpass:camlistore:pass3179:+localhost" and then I get the same error.

 
  I then change the blobServer URI to point to http://localhost:3179/bs and then it works.


Mathieu will probably be able to fix them before me, since he's going to be waking up soon and I'll be going to sleep soon.

Mathieu Lonjaret

unread,
Nov 16, 2012, 12:20:49 PM11/16/12
to camli...@googlegroups.com, Maxime Lavigne
On Fri, Nov 16, 2012 at 4:17 AM, Brad Fitzpatrick <br...@danga.com> wrote:
> Maxime, thanks! I've filed two issues,
>
> On Thu, Nov 15, 2012 at 6:35 PM, Maxime Lavigne <dugu...@gmail.com> wrote:
>>
>> From a clean pull.
>>
>> I remove my camlistore configuration folder and restart camlistored.
>> Do a camput init with keyid of the newly generated ID.
>>
>> From this point, camput file CONTRIBUTORS gives me :
>> Error putting file: Got status "401 Unauthorized" from blobserver
>> during configuration discovery
>>
>> I then change the auth:"none" that was generated for the default config
>> and put the default authentication pattern.
>> "auth": "userpass:camlistore:pass3179:+localhost" and then I get the
>> same error.
>
>
> First issue: http://code.google.com/p/camlistore/issues/detail?id=70

I think I've just fixed that (plus a related bug).

>> I then change the blobServer URI to point to http://localhost:3179/bs
>> and then it works.
>
>
> Second issue: http://code.google.com/p/camlistore/issues/detail?id=71

I suspect this one was already fixed, but that maybe Maxime did not
rebuild his camput (that's needed to take advantage of the new disco
changes afaiu)?

Maxime, can you pull, rebuild your camput (go install
camlistore/cmd/camput) and camlistored, and then retry please?

Brad Fitzpatrick

unread,
Nov 16, 2012, 12:31:45 PM11/16/12
to camli...@googlegroups.com, Maxime Lavigne
Or maybe Maxime was using the repo fro Github, which I don't always keep updated.  I sometimes forget to push there for a couple weeks.
 

Maxime Lavigne

unread,
Nov 16, 2012, 1:21:31 PM11/16/12
to camli...@googlegroups.com, Maxime Lavigne, br...@danga.com
Thanks to you both,

I am pulling from camlistore.org but has soon as I did a go clean
and then tried building again, I saw the modification you made.

It seems to work fine now, with one caveat, the localhost auth is
using the localhostAuthorized fonction that doesn't work on windows
but that gets fixed in my last commit that's currently in review.

Again, I'll try from now on to go clean first and ask question later, haha.

Cheers
Reply all
Reply to author
Forward
0 new messages