Hi Steve, Thanks. Very useful.
The URL is a parameter for the data loader -- it's an environment variable, in fact. The code logs it, but the log does not show the username/password or any other secrets. It's logged as (quoting from a test run): 2018-09-17 18:46:18 - CouchDB: http://<SENSITIVE>@couchdb-lb.gpii.svc.cluster.local:5984/gpii Which means, I don't know what is being passed as <SENSITIVE> nor even if there is a username/password there. I'm going to change the code to log it in plain text just for debugging purposes, and see what the full URL is. I'll also check the HTTP headers. Or, before doing that, see if I can find out some other way. On 2018-09-18 1:16 PM, Steven Githens wrote: > Hi Joseph, > > What URL is your dataloader hitting to the AWS cloud, does it have a > username/password in it? By default your CouchDB instance in AWS is going to > get a username/password that you have to use for each request, and I beleive > you need to specify it using Basic Auth... which I don't have an example of > at the moment... it either goes in the URL or in the HTTP headers. > > The autogenerated username/password should be in the file: > aws/modules/deploy/secrets/dev-sgithens.gpii.net-secrets.yml. But with your > account name. > > Cindy or an Ops person might want to chime in, but it sounds like this is > your problem. > > Cheers, > Steve > >> On Sep 18, 2018, at 9:28 AM, Joseph Scheuhammer <[email protected]> wrote: >> >> All, >> >> I've encountered an error condition when running the dataloader with >> AWS. When attempting to update the "_design/view" document, the >> response is: >> '{"id":"_design/views","error":"unauthorized","reason":"You are not a db >> or server admin."}'. >> >> Note that this only occurs when running the dataloader with AWS. This >> does not happen when testing locally on a VM, nor when CI runs in Jenkins. >> >> I've searched online to get more information, but I'm not finding a >> lot. This stackoverflow article suggests using POST instead of PUT, but >> I am already using POST (see: >> https://stackoverflow.com/questions/22805201/unable-to-add-documents-into-db-with-user-you-are-not-a-server-admin). >> >> I'm searching the CouchDB documentation >> (http://docs.couchdb.org/en/stable/), but am drawing a blank. >> >> Does anyone know what this means? >> >> -- >> ;;;;joseph. >> >> 'Call me hobophobic, but I don't think two vagrants should be allowed to >> marry.' >> - J. Tiedrich - >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://lists.gpii.net/mailman/listinfo/architecture -- ;;;;joseph. 'Call me hobophobic, but I don't think two vagrants should be allowed to marry.' - J. Tiedrich - _______________________________________________ Architecture mailing list [email protected] https://lists.gpii.net/mailman/listinfo/architecture
