{"action":"created","issue":{"url":"https://api.github.com/repos/marklogic/entity-services/issues/198","repository_url":"https://api.github.com/repos/marklogic/entity-services","labels_url":"https://api.github.com/repos/marklogic/entity-services/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/entity-services/issues/198/comments","events_url":"https://api.github.com/repos/marklogic/entity-services/issues/198/events","html_url":"https://github.com/marklogic/entity-services/issues/198","id":185773584,"number":198,"title":"deploy of example failing with an auth error","user":{"login":"kcoleman-marklogic","id":1951367,"avatar_url":"https://avatars.githubusercontent.com/u/1951367?v=3","gravatar_id":"","url":"https://api.github.com/users/kcoleman-marklogic","html_url":"https://github.com/kcoleman-marklogic","followers_url":"https://api.github.com/users/kcoleman-marklogic/followers","following_url":"https://api.github.com/users/kcoleman-marklogic/following{/other_user}","gists_url":"https://api.github.com/users/kcoleman-marklogic/gists{/gist_id}","starred_url":"https://api.github.com/users/kcoleman-marklogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcoleman-marklogic/subscriptions","organizations_url":"https://api.github.com/users/kcoleman-marklogic/orgs","repos_url":"https://api.github.com/users/kcoleman-marklogic/repos","events_url":"https://api.github.com/users/kcoleman-marklogic/events{/privacy}","received_events_url":"https://api.github.com/users/kcoleman-marklogic/received_events","type":"User","site_admin":false},"labels":[{"id":312019485,"url":"https://api.github.com/repos/marklogic/entity-services/labels/Bug","name":"Bug","color":"fc2929","default":false},{"id":381831530,"url":"https://api.github.com/repos/marklogic/entity-services/labels/fix","name":"fix","color":"006b75","default":false},{"id":381830957,"url":"https://api.github.com/repos/marklogic/entity-services/labels/minor","name":"minor","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"grechaw","id":382672,"avatar_url":"https://avatars.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false},"assignees":[{"login":"grechaw","id":382672,"avatar_url":"https://avatars.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/marklogic/entity-services/milestones/4","html_url":"https://github.com/marklogic/entity-services/milestones/9.0-ea4","labels_url":"https://api.github.com/repos/marklogic/entity-services/milestones/4/labels","id":1890817,"number":4,"title":"9.0-ea4","description":"The release of entity services code corresponding with MarkLogic Server 9.0-EA4","creator":{"login":"grechaw","id":382672,"avatar_url":"https://avatars.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":9,"state":"open","created_at":"2016-07-18T22:42:37Z","updated_at":"2016-10-31T18:25:59Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2016-10-27T20:36:21Z","updated_at":"2016-11-03T19:55:27Z","closed_at":null,"body":"This will probably turn out to be user error. I have a clean installation of the server and a clone of the project. I just want to run the examples, so I went directly to the examples dir to try to do so. I did not run gradle at all in parent dir.\n\nI modified the gradle.properties in examples dir to change mlHost (mine is remote), mlAdminPassword, mlRestAdminPassword, and mlManagePassword.\n\nI then ran `./gradlew --info -PexampleDir=example-person mlDeploy`\n\nAnd it dies with an auth failure:\n\n```\nExecuting command [com.marklogic.appdeployer.command.databases.DeploySchemasDatabaseCommand] with sort order [100]\nSending XML GET request as user 'adam' to path: /manage/v2/databases\nGET request for \"http://kim-2.marklogic.com:8002/manage/v2/databases\" resulted in 401 (Unauthorized); invoking error handler\nLogging HTTP response body to assist with debugging: {\"errorResponse\":   {\"statusCode\":401,\n   \"status\":\"Unauthorized\",\n   \"message\":\"401 Unauthorized\"\n  }\n}\n```\n\nI tried the HTTP request manually, and it does indeed fail. What's peculiar to me is that it appeared as if several other mgmt REST API commands had already successfully run as the \"adam\" user. For example, I see this in the log:\n\n```\nSending XML GET request as user with admin role 'adam' to path: /manage/v2/users\nFound user with name of whitney, so updating at path /manage/v2/users/whitney/properties\n```\n\nHowever, you can't run GET /manage/v2/users now. At least not with the password I specified in gradle.properties.\n\nI'm assuming the problem is the password, rather than the privs. Was I not supposed to set the password? I assumed I was since it was \"********\" in the properties file.\n\nWhen I look at the user conf, it has the `race-admin` role, which in turn has `manage-admin`, `race-writer`, and `rest-admin`. Seems reasonable (though IDK what it should be), which reinforces my assumption the password might be the problem.\n\nI will keep digging at this, but wanted to go ahead and file it in case you have insights to contribute.\n"},"comment":{"url":"https://api.github.com/repos/marklogic/entity-services/issues/comments/258255614","html_url":"https://github.com/marklogic/entity-services/issues/198#issuecomment-258255614","issue_url":"https://api.github.com/repos/marklogic/entity-services/issues/198","id":258255614,"user":{"login":"grechaw","id":382672,"avatar_url":"https://avatars.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T19:55:27Z","updated_at":"2016-11-03T19:55:27Z","body":"Yes, that's a good point.  we are indeed covered there, with a runtime user who does the work in the java layer (harmonize, load, etc)"}}
{"actor":{"display_login":"grechaw"}}