{"action":"created","issue":{"url":"https://api.github.com/repos/SUSE/Portus/issues/238","labels_url":"https://api.github.com/repos/SUSE/Portus/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/SUSE/Portus/issues/238/comments","events_url":"https://api.github.com/repos/SUSE/Portus/issues/238/events","html_url":"https://github.com/SUSE/Portus/issues/238","id":98062248,"number":238,"title":"Cannot auth to registry","user":{"login":"huslage","id":413867,"avatar_url":"https://avatars.githubusercontent.com/u/413867?v=3","gravatar_id":"","url":"https://api.github.com/users/huslage","html_url":"https://github.com/huslage","followers_url":"https://api.github.com/users/huslage/followers","following_url":"https://api.github.com/users/huslage/following{/other_user}","gists_url":"https://api.github.com/users/huslage/gists{/gist_id}","starred_url":"https://api.github.com/users/huslage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huslage/subscriptions","organizations_url":"https://api.github.com/users/huslage/orgs","repos_url":"https://api.github.com/users/huslage/repos","events_url":"https://api.github.com/users/huslage/events{/privacy}","received_events_url":"https://api.github.com/users/huslage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-30T01:13:39Z","updated_at":"2015-07-30T12:15:31Z","closed_at":null,"body":"I made this `docker-compose.yml`\r\n\r\n```yaml\r\ndb:\r\n  image: mariadb\r\n  environment:\r\n    MYSQL_ROOT_PASSWORD: portus\r\nweb:\r\n  build: .\r\n  command: bundle exec rails s -p 3000 -b '0.0.0.0'\r\n  ports:\r\n    - \"3000:3000\"\r\n  links:\r\n    - db\r\n    - reg\r\n\r\nreg:\r\n  image: distribution/registry\r\n  ports:\r\n    - \"5000:5000\"\r\n```\r\n\r\nThe database is created and migrated, the web server is available on port 3000, the registry is available on port 5000. I added an `admin` user and added the registry as `reg`. I added a team and namespace.\r\n\r\n`docker login localhost:5000` returns: \r\n\r\n```\r\nUsername: admin\r\nPassword: \r\nEmail: a@b.com\r\nError response from daemon: no successful auth challenge for http://portus_reg_1:5000/v2/ - errors: []\r\n```\r\n\r\nIt appears that there is zero traffic passing between the registry and portus containers. I can `exec` a shell in `portus_web_1` and ping `reg` just fine, so I don't see where the issue is.\r\n\r\nLogs from `portus_reg_1` container:\r\n\r\n```\r\ntime=\"2015-07-30T00:54:59.912793031Z\" level=info msg=\"endpoint local-8082 disabled, skipping\" environment=development instance.id=a05afaff-52b5-4464-a8c2-39928cdb4469 service=registry version=v2.0.1 \r\ntime=\"2015-07-30T00:54:59.912989277Z\" level=info msg=\"endpoint local-8083 disabled, skipping\" environment=development instance.id=a05afaff-52b5-4464-a8c2-39928cdb4469 service=registry version=v2.0.1 \r\ntime=\"2015-07-30T00:54:59.913092613Z\" level=info msg=\"using inmemory layerinfo cache\" environment=development instance.id=a05afaff-52b5-4464-a8c2-39928cdb4469 service=registry version=v2.0.1 \r\ntime=\"2015-07-30T00:54:59.913131996Z\" level=info msg=\"listening on :5000\" environment=development instance.id=a05afaff-52b5-4464-a8c2-39928cdb4469 service=registry version=v2.0.1 \r\ntime=\"2015-07-30T00:54:59.913289812Z\" level=info msg=\"debug server listening localhost:5001\" \r\ntime=\"2015-07-30T01:03:37.039504866Z\" level=debug msg=\"authorizing request\" environment=development http.request.host=\"localhost:5000\" http.request.id=3e623529-492f-4dd2-8e94-7208e3902527 http.request.method=GET http.request.remoteaddr=\"172.17.42.1:43022\" http.request.uri=\"/v2/\" http.request.useragent=\"docker/1.7.1 go/go1.4.2 git-commit/786b29d kernel/3.19.0-25-generic os/linux arch/amd64\" instance.id=a05afaff-52b5-4464-a8c2-39928cdb4469 service=registry version=v2.0.1 \r\ntime=\"2015-07-30T01:03:37.03969024Z\" level=info msg=\"response completed\" environment=development http.request.host=\"localhost:5000\" http.request.id=3e623529-492f-4dd2-8e94-7208e3902527 http.request.method=GET http.request.remoteaddr=\"172.17.42.1:43022\" http.request.uri=\"/v2/\" http.request.useragent=\"docker/1.7.1 go/go1.4.2 git-commit/786b29d kernel/3.19.0-25-generic os/linux arch/amd64\" http.response.contenttype=\"application/json; charset=utf-8\" http.response.duration=4.704501ms http.response.status=200 http.response.written=2 instance.id=a05afaff-52b5-4464-a8c2-39928cdb4469 service=registry version=v2.0.1 \r\n172.17.42.1 - - [30/Jul/2015:01:03:37 +0000] \"GET /v2/ HTTP/1.1\" 200 2 \"\" \"docker/1.7.1 go/go1.4.2 git-commit/786b29d kernel/3.19.0-25-generic os/linux arch/amd64\"\r\n```\r\n\r\nLogs from `portus_web_1` container:\r\n\r\n```\r\n=> Booting Thin\r\n=> Rails 4.2.2 application starting in development on http://0.0.0.0:3000\r\n=> Run `rails server -h` for more startup options\r\n=> Ctrl-C to shutdown server\r\nThin web server (v1.6.3 codename Protein Powder)\r\nMaximum connections set to 1024\r\nListening on 0.0.0.0:3000, CTRL+C to stop\r\n\r\n\r\nStarted GET \"/namespaces\" for 172.17.42.1 at 2015-07-30 00:57:38 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\n  ActiveRecord::SchemaMigration Load (8.3ms)  SELECT `schema_migrations`.* FROM `schema_migrations`\r\nProcessing by NamespacesController#index as HTML\r\n  User Load (0.7ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n   (0.6ms)  SELECT COUNT(*) FROM `registries`\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM `registries`\r\n  Namespace Load (2.7ms)  SELECT `namespaces`.* FROM `namespaces` WHERE (global = 1 OR namespaces.name = 'admin')\r\n  Registry Load (0.7ms)  SELECT  `registries`.* FROM `registries` WHERE `registries`.`id` = 1 LIMIT 1\r\n   (1.4ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 1\r\n  Rendered namespaces/_namespace.html.slim (81.5ms)\r\n   (0.6ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 2\r\n  Rendered namespaces/_namespace.html.slim (3.2ms)\r\n  Namespace Load (3.2ms)  SELECT  DISTINCT `namespaces`.* FROM `namespaces` INNER JOIN `teams` ON `teams`.`id` = `namespaces`.`team_id` INNER JOIN `team_users` ON `team_users`.`team_id` = `teams`.`id` WHERE ((namespaces.public = 1 OR team_users.user_id = 1) AND namespaces.global = 0 AND namespaces.name != 'admin') LIMIT 25 OFFSET 0\r\n   (1.2ms)  SELECT DISTINCT COUNT(DISTINCT `namespaces`.`id`) FROM `namespaces` INNER JOIN `teams` ON `teams`.`id` = `namespaces`.`team_id` INNER JOIN `team_users` ON `team_users`.`team_id` = `teams`.`id` WHERE ((namespaces.public = 1 OR team_users.user_id = 1) AND namespaces.global = 0 AND namespaces.name != 'admin')\r\n  Rendered namespaces/index.html.slim within layouts/application (260.7ms)\r\n  Rendered shared/_header.html.slim (21.0ms)\r\n  Rendered shared/_aside.html.slim (15.9ms)\r\n  CACHE (0.1ms)  SELECT COUNT(*) FROM `registries`\r\n  Rendered shared/_notification.html.slim (16.4ms)\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notifications.html.slim (40.7ms)\r\nCompleted 200 OK in 9855ms (Views: 9740.4ms | ActiveRecord: 28.8ms)\r\n\r\n\r\nStarted GET \"/namespaces/1\" for 172.17.42.1 at 2015-07-30 01:02:34 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by NamespacesController#show as HTML\r\n  Parameters: {\"id\"=>\"1\"}\r\n  User Load (0.3ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n  Namespace Load (0.6ms)  SELECT  `namespaces`.* FROM `namespaces` WHERE `namespaces`.`id` = 1 LIMIT 1\r\n  Registry Load (0.5ms)  SELECT  `registries`.* FROM `registries` WHERE `registries`.`id` = 1 LIMIT 1\r\n  Repository Load (0.7ms)  SELECT  `repositories`.* FROM `repositories` WHERE `repositories`.`namespace_id` = 1 LIMIT 25 OFFSET 0\r\n   (0.6ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 1\r\n  Rendered namespaces/show.html.slim within layouts/application (22.8ms)\r\n  Rendered shared/_header.html.slim (1.8ms)\r\n  Rendered shared/_aside.html.slim (1.3ms)\r\n   (0.4ms)  SELECT COUNT(*) FROM `registries`\r\n  Rendered shared/_notification.html.slim (0.2ms)\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notifications.html.slim (5.1ms)\r\nCompleted 200 OK in 271ms (Views: 260.1ms | ActiveRecord: 3.0ms)\r\n\r\n\r\nStarted GET \"/namespaces\" for 172.17.42.1 at 2015-07-30 01:02:40 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by NamespacesController#index as HTML\r\n  User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n   (0.4ms)  SELECT COUNT(*) FROM `registries`\r\n  CACHE (0.1ms)  SELECT COUNT(*) FROM `registries`\r\n  Namespace Load (0.4ms)  SELECT `namespaces`.* FROM `namespaces` WHERE (global = 1 OR namespaces.name = 'admin')\r\n  Registry Load (0.4ms)  SELECT  `registries`.* FROM `registries` WHERE `registries`.`id` = 1 LIMIT 1\r\n   (0.4ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 1\r\n  Rendered namespaces/_namespace.html.slim (5.4ms)\r\n   (0.4ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 2\r\n  Rendered namespaces/_namespace.html.slim (3.6ms)\r\n  Namespace Load (0.5ms)  SELECT  DISTINCT `namespaces`.* FROM `namespaces` INNER JOIN `teams` ON `teams`.`id` = `namespaces`.`team_id` INNER JOIN `team_users` ON `team_users`.`team_id` = `teams`.`id` WHERE ((namespaces.public = 1 OR team_users.user_id = 1) AND namespaces.global = 0 AND namespaces.name != 'admin') LIMIT 25 OFFSET 0\r\n   (0.7ms)  SELECT DISTINCT COUNT(DISTINCT `namespaces`.`id`) FROM `namespaces` INNER JOIN `teams` ON `teams`.`id` = `namespaces`.`team_id` INNER JOIN `team_users` ON `team_users`.`team_id` = `teams`.`id` WHERE ((namespaces.public = 1 OR team_users.user_id = 1) AND namespaces.global = 0 AND namespaces.name != 'admin')\r\n  Rendered namespaces/index.html.slim within layouts/application (30.5ms)\r\n  Rendered shared/_header.html.slim (1.3ms)\r\n  Rendered shared/_aside.html.slim (0.9ms)\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM `registries`\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notification.html.slim (1.1ms)\r\n  Rendered shared/_notifications.html.slim (5.5ms)\r\nCompleted 200 OK in 345ms (Views: 333.5ms | ActiveRecord: 3.9ms)\r\n\r\n\r\nStarted POST \"/namespaces\" for 172.17.42.1 at 2015-07-30 01:02:49 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by NamespacesController#create as JS\r\n  Parameters: {\"utf8\"=>\"✓\", \"namespace\"=>{\"namespace\"=>\"demo\", \"team\"=>\"demo\"}, \"commit\"=>\"Create\"}\r\n  User Load (0.4ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n  Team Load (6.9ms)  SELECT  `teams`.* FROM `teams` WHERE `teams`.`name` = 'demo' AND `teams`.`hidden` = 0 LIMIT 1\r\n  Rendered namespaces/create.js.erb (1.9ms)\r\nFilter chain halted as :check_team rendered or redirected\r\nCompleted 404 Not Found in 32ms (Views: 10.5ms | ActiveRecord: 10.4ms)\r\n\r\n\r\nStarted GET \"/teams\" for 172.17.42.1 at 2015-07-30 01:02:50 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by TeamsController#index as HTML\r\n  User Load (0.4ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n  Team Load (7.5ms)  SELECT  `teams`.* FROM `teams` INNER JOIN `team_users` ON `teams`.`id` = `team_users`.`team_id` WHERE `team_users`.`user_id` = 1 AND `teams`.`hidden` = 0 LIMIT 25 OFFSET 0\r\n   (0.9ms)  SELECT COUNT(*) FROM `teams` INNER JOIN `team_users` ON `teams`.`id` = `team_users`.`team_id` WHERE `team_users`.`user_id` = 1 AND `teams`.`hidden` = 0\r\n  Rendered teams/index.html.slim within layouts/application (34.7ms)\r\n  Rendered shared/_header.html.slim (1.5ms)\r\n  Rendered shared/_aside.html.slim (1.1ms)\r\n   (0.3ms)  SELECT COUNT(*) FROM `registries`\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notifications.html.slim (3.9ms)\r\nCompleted 200 OK in 298ms (Views: 261.2ms | ActiveRecord: 10.9ms)\r\n\r\n\r\nStarted POST \"/teams\" for 172.17.42.1 at 2015-07-30 01:02:54 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by TeamsController#create as JS\r\n  Parameters: {\"utf8\"=>\"✓\", \"team\"=>{\"name\"=>\"demo\"}, \"commit\"=>\"Add\"}\r\n  User Load (0.4ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n   (0.3ms)  BEGIN\r\n  Team Exists (0.6ms)  SELECT  1 AS one FROM `teams` WHERE `teams`.`name` = BINARY 'demo' LIMIT 1\r\n  TeamUser Exists (6.7ms)  SELECT  1 AS one FROM `team_users` WHERE (`team_users`.`user_id` = BINARY 1 AND `team_users`.`team_id` IS NULL) LIMIT 1\r\n  User Exists (1.5ms)  SELECT  1 AS one FROM `users` WHERE (`users`.`username` = BINARY 'admin' AND `users`.`id` != 1) LIMIT 1\r\n  SQL (0.6ms)  INSERT INTO `teams` (`name`, `created_at`, `updated_at`) VALUES ('demo', '2015-07-30 01:02:54', '2015-07-30 01:02:54')\r\n  TeamUser Exists (2.1ms)  SELECT  1 AS one FROM `team_users` WHERE (`team_users`.`user_id` = BINARY 1 AND `team_users`.`team_id` = 3) LIMIT 1\r\n  SQL (0.5ms)  INSERT INTO `team_users` (`role`, `user_id`, `team_id`, `created_at`, `updated_at`) VALUES (2, 1, 3, '2015-07-30 01:02:54', '2015-07-30 01:02:54')\r\n  TeamUser Exists (1.8ms)  SELECT  1 AS one FROM `team_users` WHERE (`team_users`.`user_id` = BINARY 1 AND `team_users`.`id` != 3 AND `team_users`.`team_id` = 3) LIMIT 1\r\n   (7.4ms)  COMMIT\r\n   (0.3ms)  BEGIN\r\n  SQL (2.8ms)  INSERT INTO `activities` (`owner_id`, `owner_type`, `key`, `trackable_id`, `trackable_type`, `created_at`, `updated_at`) VALUES (1, 'User', 'team.create', 3, 'Team', '2015-07-30 01:02:54', '2015-07-30 01:02:54')\r\n   (7.3ms)  COMMIT\r\n  TeamUser Load (1.1ms)  SELECT  `team_users`.* FROM `team_users` WHERE `team_users`.`team_id` = 3 AND `team_users`.`user_id` = 1 LIMIT 1\r\n   (1.1ms)  SELECT COUNT(*) FROM `users` INNER JOIN `team_users` ON `users`.`id` = `team_users`.`user_id` WHERE `team_users`.`team_id` = 3\r\n   (1.5ms)  SELECT COUNT(*) FROM `namespaces` WHERE `namespaces`.`team_id` = 3\r\n  Rendered teams/_team.html.slim (29.9ms)\r\n  Rendered teams/create.js.erb (32.8ms)\r\nCompleted 200 OK in 193ms (Views: 36.1ms | ActiveRecord: 40.8ms)\r\n\r\n\r\nStarted GET \"/teams/3\" for 172.17.42.1 at 2015-07-30 01:02:58 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by TeamsController#show as HTML\r\n  Parameters: {\"id\"=>\"3\"}\r\n  User Load (0.4ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n  Team Load (0.7ms)  SELECT  `teams`.* FROM `teams` WHERE `teams`.`id` = 3 LIMIT 1\r\n  TeamUser Load (0.7ms)  SELECT  `team_users`.* FROM `team_users` WHERE `team_users`.`team_id` = 3 LIMIT 10 OFFSET 0\r\n  User Load (0.7ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1\r\n  Rendered team_users/_team_user.html.slim (19.1ms)\r\n   (0.6ms)  SELECT COUNT(*) FROM `team_users` WHERE `team_users`.`team_id` = 3\r\n   (0.4ms)  SELECT COUNT(*) FROM `registries`\r\n  Namespace Load (1.2ms)  SELECT  `namespaces`.* FROM `namespaces` WHERE `namespaces`.`team_id` = 3 LIMIT 15 OFFSET 0\r\n   (0.3ms)  SELECT COUNT(*) FROM `namespaces` WHERE `namespaces`.`team_id` = 3\r\n  Rendered teams/show.html.slim within layouts/application (94.5ms)\r\n  Rendered shared/_header.html.slim (10.0ms)\r\n  Rendered shared/_aside.html.slim (10.2ms)\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM `registries`\r\n  Rendered shared/_notification.html.slim (15.0ms)\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notifications.html.slim (31.7ms)\r\nCompleted 200 OK in 365ms (Views: 349.2ms | ActiveRecord: 5.0ms)\r\n\r\n\r\nStarted POST \"/namespaces\" for 172.17.42.1 at 2015-07-30 01:03:03 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by NamespacesController#create as JS\r\n  Parameters: {\"utf8\"=>\"✓\", \"namespace\"=>{\"team\"=>\"demo\", \"namespace\"=>\"dedmo\"}, \"commit\"=>\"Add\"}\r\n  User Load (0.3ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n  Team Load (0.6ms)  SELECT  `teams`.* FROM `teams` WHERE `teams`.`name` = 'demo' AND `teams`.`hidden` = 0 LIMIT 1\r\n  Registry Load (0.6ms)  SELECT  `registries`.* FROM `registries`  ORDER BY `registries`.`id` ASC LIMIT 1\r\n   (0.3ms)  BEGIN\r\n  Namespace Exists (7.1ms)  SELECT  1 AS one FROM `namespaces` WHERE (`namespaces`.`name` = BINARY 'dedmo' AND `namespaces`.`registry_id` = 1) LIMIT 1\r\n  SQL (2.7ms)  INSERT INTO `namespaces` (`team_id`, `name`, `registry_id`, `created_at`, `updated_at`) VALUES (3, 'dedmo', 1, '2015-07-30 01:03:03', '2015-07-30 01:03:03')\r\n   (7.8ms)  COMMIT\r\n   (0.3ms)  BEGIN\r\n  SQL (0.6ms)  INSERT INTO `activities` (`owner_id`, `owner_type`, `key`, `trackable_id`, `trackable_type`, `created_at`, `updated_at`) VALUES (1, 'User', 'namespace.create', 3, 'Namespace', '2015-07-30 01:03:03', '2015-07-30 01:03:03')\r\n   (7.0ms)  COMMIT\r\n   (0.8ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 3\r\n  Rendered namespaces/_namespace.html.slim (12.2ms)\r\n  Namespace Load (1.5ms)  SELECT DISTINCT `namespaces`.* FROM `namespaces` INNER JOIN `teams` ON `teams`.`id` = `namespaces`.`team_id` INNER JOIN `team_users` ON `team_users`.`team_id` = `teams`.`id` WHERE ((namespaces.public = 1 OR team_users.user_id = 1) AND namespaces.global = 0 AND namespaces.name != 'admin')\r\n  CACHE (0.1ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 3  [[\"namespace_id\", 3]]\r\n  Rendered namespaces/_namespace.html.slim (4.2ms)\r\n  Rendered namespaces/create.js.erb (24.8ms)\r\nCompleted 200 OK in 88ms (Views: 30.2ms | ActiveRecord: 29.7ms)\r\n\r\n\r\nStarted POST \"/namespaces\" for 172.17.42.1 at 2015-07-30 01:03:10 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by NamespacesController#create as JS\r\n  Parameters: {\"utf8\"=>\"✓\", \"namespace\"=>{\"team\"=>\"demo\", \"namespace\"=>\"demo\"}, \"commit\"=>\"Add\"}\r\n  User Load (0.3ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n  Team Load (0.3ms)  SELECT  `teams`.* FROM `teams` WHERE `teams`.`name` = 'demo' AND `teams`.`hidden` = 0 LIMIT 1\r\n  Registry Load (0.3ms)  SELECT  `registries`.* FROM `registries`  ORDER BY `registries`.`id` ASC LIMIT 1\r\n   (0.3ms)  BEGIN\r\n  Namespace Exists (0.6ms)  SELECT  1 AS one FROM `namespaces` WHERE (`namespaces`.`name` = BINARY 'demo' AND `namespaces`.`registry_id` = 1) LIMIT 1\r\n  SQL (0.6ms)  INSERT INTO `namespaces` (`team_id`, `name`, `registry_id`, `created_at`, `updated_at`) VALUES (3, 'demo', 1, '2015-07-30 01:03:10', '2015-07-30 01:03:10')\r\n   (10.8ms)  COMMIT\r\n   (0.3ms)  BEGIN\r\n  SQL (0.5ms)  INSERT INTO `activities` (`owner_id`, `owner_type`, `key`, `trackable_id`, `trackable_type`, `created_at`, `updated_at`) VALUES (1, 'User', 'namespace.create', 4, 'Namespace', '2015-07-30 01:03:10', '2015-07-30 01:03:10')\r\n   (10.0ms)  COMMIT\r\n   (0.7ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 4\r\n  Rendered namespaces/_namespace.html.slim (3.7ms)\r\n  Namespace Load (2.5ms)  SELECT DISTINCT `namespaces`.* FROM `namespaces` INNER JOIN `teams` ON `teams`.`id` = `namespaces`.`team_id` INNER JOIN `team_users` ON `team_users`.`team_id` = `teams`.`id` WHERE ((namespaces.public = 1 OR team_users.user_id = 1) AND namespaces.global = 0 AND namespaces.name != 'admin')\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM `repositories` WHERE `repositories`.`namespace_id` = 4  [[\"namespace_id\", 4]]\r\n  Rendered namespaces/_namespace.html.slim (2.1ms)\r\n  Rendered namespaces/create.js.erb (13.9ms)\r\nCompleted 200 OK in 62ms (Views: 17.6ms | ActiveRecord: 27.2ms)\r\n\r\n\r\nStarted GET \"/admin/dashboard\" for 172.17.42.1 at 2015-07-30 01:04:10 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by Admin::DashboardController#index as HTML\r\n  User Load (0.4ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n   (0.3ms)  SELECT COUNT(*) FROM `registries`\r\n   (0.5ms)  SELECT COUNT(*) FROM `users`\r\n   (0.5ms)  SELECT COUNT(*) FROM `teams` WHERE `teams`.`hidden` = 0\r\n   (0.5ms)  SELECT COUNT(*) FROM `namespaces`\r\n   (0.7ms)  SELECT COUNT(count_column) FROM (SELECT  1 AS count_column FROM `activities` LIMIT 20) subquery_for_count\r\n  PublicActivity::Activity Load (0.7ms)  SELECT  `activities`.* FROM `activities`  ORDER BY created_at DESC LIMIT 20\r\n  User Load (0.3ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1\r\n  Namespace Load (0.6ms)  SELECT  `namespaces`.* FROM `namespaces` WHERE `namespaces`.`id` = 4 LIMIT 1\r\n  Team Load (0.3ms)  SELECT  `teams`.* FROM `teams` WHERE `teams`.`id` = 3 LIMIT 1\r\n  Rendered public_activity/namespace/_create.html.slim (17.0ms)\r\n  CACHE (0.0ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  [[\"id\", 1]]\r\n  Namespace Load (0.7ms)  SELECT  `namespaces`.* FROM `namespaces` WHERE `namespaces`.`id` = 3 LIMIT 1\r\n  CACHE (0.0ms)  SELECT  `teams`.* FROM `teams` WHERE `teams`.`id` = 3 LIMIT 1  [[\"id\", 3]]\r\n  Rendered public_activity/namespace/_create.html.slim (7.4ms)\r\n  CACHE (0.0ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  [[\"id\", 1]]\r\n  CACHE (0.0ms)  SELECT  `teams`.* FROM `teams` WHERE `teams`.`id` = 3 LIMIT 1  [[\"id\", 3]]\r\n  Rendered public_activity/team/_create.html.slim (10.2ms)\r\n  Rendered admin/dashboard/index.html.slim within layouts/application (68.7ms)\r\n  Rendered shared/_header.html.slim (1.5ms)\r\n  Rendered shared/_aside.html.slim (1.5ms)\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM `registries`\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notifications.html.slim (4.1ms)\r\nCompleted 200 OK in 312ms (Views: 302.7ms | ActiveRecord: 5.6ms)\r\n\r\n\r\nStarted GET \"/admin/registries\" for 172.17.42.1 at 2015-07-30 01:04:15 +0000\r\nCannot render console from 172.17.42.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255\r\nProcessing by Admin::RegistriesController#index as HTML\r\n  User Load (0.3ms)  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 1  ORDER BY `users`.`id` ASC LIMIT 1\r\n   (0.3ms)  SELECT COUNT(*) FROM `registries`\r\n  Registry Load (0.5ms)  SELECT `registries`.* FROM `registries`\r\n  Rendered admin/registries/index.html.slim within layouts/application (14.2ms)\r\n  Rendered shared/_header.html.slim (1.9ms)\r\n  Rendered shared/_aside.html.slim (1.1ms)\r\n  CACHE (0.0ms)  SELECT COUNT(*) FROM `registries`\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notification.html.slim (0.1ms)\r\n  Rendered shared/_notifications.html.slim (4.5ms)\r\nCompleted 200 OK in 301ms (Views: 296.3ms | ActiveRecord: 1.1ms)\r\n```"},"comment":{"url":"https://api.github.com/repos/SUSE/Portus/issues/comments/126304063","html_url":"https://github.com/SUSE/Portus/issues/238#issuecomment-126304063","issue_url":"https://api.github.com/repos/SUSE/Portus/issues/238","id":126304063,"user":{"login":"flavio","id":22728,"avatar_url":"https://avatars.githubusercontent.com/u/22728?v=3","gravatar_id":"","url":"https://api.github.com/users/flavio","html_url":"https://github.com/flavio","followers_url":"https://api.github.com/users/flavio/followers","following_url":"https://api.github.com/users/flavio/following{/other_user}","gists_url":"https://api.github.com/users/flavio/gists{/gist_id}","starred_url":"https://api.github.com/users/flavio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flavio/subscriptions","organizations_url":"https://api.github.com/users/flavio/orgs","repos_url":"https://api.github.com/users/flavio/repos","events_url":"https://api.github.com/users/flavio/events{/privacy}","received_events_url":"https://api.github.com/users/flavio/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T12:15:31Z","updated_at":"2015-07-30T12:15:31Z","body":"@lsamayoa yes this is correct. I'm currently working a solution for that"}}