{"action":"created","issue":{"url":"https://api.github.com/repos/tsuru/tsuru/issues/1330","labels_url":"https://api.github.com/repos/tsuru/tsuru/issues/1330/labels{/name}","comments_url":"https://api.github.com/repos/tsuru/tsuru/issues/1330/comments","events_url":"https://api.github.com/repos/tsuru/tsuru/issues/1330/events","html_url":"https://github.com/tsuru/tsuru/issues/1330","id":123113449,"number":1330,"title":"tsuru team-create returns \"You don't have permission to do this action\"","user":{"login":"pritchardjonathan","id":838947,"avatar_url":"https://avatars.githubusercontent.com/u/838947?v=3","gravatar_id":"","url":"https://api.github.com/users/pritchardjonathan","html_url":"https://github.com/pritchardjonathan","followers_url":"https://api.github.com/users/pritchardjonathan/followers","following_url":"https://api.github.com/users/pritchardjonathan/following{/other_user}","gists_url":"https://api.github.com/users/pritchardjonathan/gists{/gist_id}","starred_url":"https://api.github.com/users/pritchardjonathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pritchardjonathan/subscriptions","organizations_url":"https://api.github.com/users/pritchardjonathan/orgs","repos_url":"https://api.github.com/users/pritchardjonathan/repos","events_url":"https://api.github.com/users/pritchardjonathan/events{/privacy}","received_events_url":"https://api.github.com/users/pritchardjonathan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-19T22:02:44Z","updated_at":"2015-12-22T16:13:28Z","closed_at":null,"body":"Hi,\r\n\r\nFollowing the installation instructions and got so far as \r\n\r\nPage: http://docs.tsuru.io/en/latest/installing/api.html\r\nCommand: $ tsuru team-create admin\r\n\r\nbut get \"You don't have permission to do this action\" response.\r\n\r\nThis is using tsuru 0.13.0, tsuru-client 0.18.1, gandalf 0.7.3 on Ubuntu 14.04.3 LTS\r\n\r\ntsuru.conf looks like this:\r\n```\r\nlisten: \"0.0.0.0:8080\"\r\ndebug: true\r\nhost: http://localhost:8080 # This port must be the same as in the \"listen\" conf\r\nadmin-team: admin\r\nauth:\r\n    user-registration: true\r\n    scheme: native\r\ndatabase:\r\n    url: localhost:27017\r\n    name: tsurudb\r\npubsub:\r\n    redis-host: localhost\r\n    redis-port: 6379\r\nqueue:\r\n    mongo-url: localhost:27017\r\n    mongo-database: queuedb\r\nrepo-manager: gandalf\r\ngit:\r\n    api-server: http://localhost:8000\r\nprovisioner: docker\r\ndocker:\r\n    router: hipache\r\n    collection: docker_containers\r\n    repository-namespace: tsuru\r\n    deploy-cmd: /var/lib/tsuru/deploy\r\n    cluster:\r\n        storage: mongodb\r\n        mongo-url: localhost:27017\r\n        mongo-database: cluster\r\n    run-cmd:\r\n        bin: /var/lib/tsuru/start\r\n        port: \"8888\"\r\n    ssh:\r\n        add-key-cmd: /var/lib/tsuru/add-key\r\n        user: ubuntu\r\nrouters:\r\n    hipache:\r\n        type: hipache\r\n        domain: 127.0.0.1.xip.io\r\n        redis-server: localhost:6379\r\n```\r\ntsuru-server-api log looks like this:\r\n\r\nOpening config file: /etc/tsuru/tsuru.conf\r\nDone reading config file: /etc/tsuru/tsuru.conf\r\nUsing mongodb database \"tsurudb\" from the server \"localhost:27017\".\r\nRegistered router \"hipache\": hipache router \"127.0.0.1.xip.io\" with redis at \"localhost:6379\".\r\nDefault router is \"hipache\".\r\nUsing \"gandalf\" repository manager.\r\nUsing \"docker\" provisioner.\r\nDocker provisioner reports the following nodes:\r\nUsing \"native\" auth scheme.\r\nChecking components status:\r\n    WARNING: \"docker\" is not working: fail - error - no nodes available for running containers\r\n    Components checked.\r\ntsuru HTTP server listening at 0.0.0.0:8080...\r\n2015-12-19T21:38:28.57153086Z GET /auth/scheme 200 in 0.505466ms\r\n2015-12-19T21:38:31.994527996Z POST /users/xxx@xxx.com/tokens 401 in 140.771553ms\r\n2015-12-19T21:38:34.50635684Z GET /auth/scheme 200 in 0.274772ms\r\n2015-12-19T21:38:37.862156967Z POST /users/xxx@xxx.com/tokens 200 in 141.977725ms\r\n2015-12-19T21:38:49.823606179Z POST /teams 403 in 1.030705ms\r\n2015-12-19T21:43:47.086191731Z GET /teams 204 in 1.218195ms\r\n2015-12-19T21:44:01.780187208Z GET /users 200 in 1.423269ms\r\n2015-12-19T21:44:14.668976253Z POST /teams 403 in 1.232845ms\r\n2015-12-19T21:44:22.44287107Z GET /auth/scheme 200 in 0.233789ms\r\n2015-12-19T21:44:25.771280697Z POST /users/xxx@xxx.com/tokens 200 in 141.018245ms\r\n2015-12-19T21:44:28.366807507Z POST /teams 403 in 1.044028ms\r\n2015-12-19T21:47:42.056761917Z GET /permissions 403 in 1.105300ms\r\n2015-12-19T21:47:50.478613188Z GET /permissions 403 in 1.074695ms\r\n\r\ngit .bash_profile looks like this:\r\n\r\nexport ARCHIVE_SERVER_READ=http://127.0.0.1:3232 ARCHIVE_SERVER_WRITE=http://127.0.0.1:3131\r\n\r\nThis is my first time installing and it's all on a single machine. Apologies if the answer is really obvious."},"comment":{"url":"https://api.github.com/repos/tsuru/tsuru/issues/comments/166662587","html_url":"https://github.com/tsuru/tsuru/issues/1330#issuecomment-166662587","issue_url":"https://api.github.com/repos/tsuru/tsuru/issues/1330","id":166662587,"user":{"login":"andrewsmedina","id":52241,"avatar_url":"https://avatars.githubusercontent.com/u/52241?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewsmedina","html_url":"https://github.com/andrewsmedina","followers_url":"https://api.github.com/users/andrewsmedina/followers","following_url":"https://api.github.com/users/andrewsmedina/following{/other_user}","gists_url":"https://api.github.com/users/andrewsmedina/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewsmedina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewsmedina/subscriptions","organizations_url":"https://api.github.com/users/andrewsmedina/orgs","repos_url":"https://api.github.com/users/andrewsmedina/repos","events_url":"https://api.github.com/users/andrewsmedina/events{/privacy}","received_events_url":"https://api.github.com/users/andrewsmedina/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T16:13:28Z","updated_at":"2015-12-22T16:13:28Z","body":"@flaviamissi in the documentation there are some mentions about it. You can see them in the user and permissions page [0] and in the release notes [1].\r\n\r\n[0] - https://docs.tsuru.io/0.13/managing/users-and-permissions.html\r\n[1] - https://docs.tsuru.io/0.13/releases/tsurud/0.13.0.html#backward-incompatible-changes-action-needed"}}