{"action":"created","issue":{"url":"https://api.github.com/repos/aerokube/ggr/issues/176","repository_url":"https://api.github.com/repos/aerokube/ggr","labels_url":"https://api.github.com/repos/aerokube/ggr/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/aerokube/ggr/issues/176/comments","events_url":"https://api.github.com/repos/aerokube/ggr/issues/176/events","html_url":"https://github.com/aerokube/ggr/issues/176","id":301533648,"number":176,"title":"401 authorized error when connect ggr to run in distributed systems","user":{"login":"liulirun","id":6243470,"avatar_url":"https://avatars1.githubusercontent.com/u/6243470?v=4","gravatar_id":"","url":"https://api.github.com/users/liulirun","html_url":"https://github.com/liulirun","followers_url":"https://api.github.com/users/liulirun/followers","following_url":"https://api.github.com/users/liulirun/following{/other_user}","gists_url":"https://api.github.com/users/liulirun/gists{/gist_id}","starred_url":"https://api.github.com/users/liulirun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liulirun/subscriptions","organizations_url":"https://api.github.com/users/liulirun/orgs","repos_url":"https://api.github.com/users/liulirun/repos","events_url":"https://api.github.com/users/liulirun/events{/privacy}","received_events_url":"https://api.github.com/users/liulirun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-01T19:41:41Z","updated_at":"2018-03-02T16:10:14Z","closed_at":null,"author_association":"NONE","body":"When I run selenium tests against ggr. I got \r\n\r\n```\r\nAn error occurred while loading ./spec/store/regression/purchase_path/instant_preview_purchase/C1145928_spec.rb.\r\nFailure/Error: Capybara.current_session.driver.browser.manage.window.resize_to(1440, 1000)\r\n\r\nSelenium::WebDriver::Error::WebDriverError:\r\n  unexpected response, code=401, content-type=\"text/plain\"\r\n  401 Unauthorized\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/common.rb:88:in `create_response'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/default.rb:104:in `request'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/common.rb:59:in `call'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/bridge.rb:164:in `execute'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/bridge.rb:97:in `create_session'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/bridge.rb:53:in `handshake'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/driver.rb:37:in `initialize'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver.rb:56:in `new'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/driver.rb:56:in `for'\r\n# /var/lib/gems/2.3.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver.rb:84:in `for'\r\n# /var/lib/gems/2.3.0/gems/capybara-2.17.0/lib/capybara/selenium/driver.rb:23:in `browser'\r\n# ./spec/helpers/store_spec_helper.rb:66:in `<top (required)>'\r\n(required)>'\r\nNo examples found.\r\n```\r\n\r\nTo compare, if I run the case against selenoid server( .232, .235 box)  itself, success. \r\nSo I am pretty convinced the problem goes with the configuration of ggr box in my box. \r\n\r\n===========================================\r\nsome conf: \r\nIP: 172.24.23.231, ggr server. ggr is latest version. Ubuntu 16.3 LTS . This is also act like a Jenkins slave node. But I do not think that would be the matter.\r\n\r\nuser: griduser\r\nin `/etc/grid-router/`， I have `users.htpasswd` , it looks like below, have `griduser` configed\r\n`griduser:$apr1$9qdedDks$I1ADq.aQ.f3a7sEMlfiZn2`\r\n\r\nin `/etc/grid-router/quota`, I have `griduser.xml`, \r\n```\r\n<qa:browsers xmlns:qa=\"urn:config.gridrouter.qatools.ru\">\r\n<browser name=\"chrome\" defaultVersion=\"64.0\">\r\n    <version number=\"64.0\">\r\n        <region name=\"1\">\r\n            <host name=\"172.24.23.232\" port=\"4444\" count=\"8\" username=\"griduser\" password=\"blah\"/>\r\n            <host name=\"172.24.23.235\" port=\"4444\" count=\"6\"/>\r\n        </region>\r\n    </version>\r\n</browser>\r\n</qa:browsers>\r\n```\r\nhitting `http://172.24.23.231:4444/quota` returns \r\n\r\n```[{\"Name\":\"chrome\",\"DefaultVersion\":\"64.0\",\"Versions\":[{\"Number\":\"64.0\",\"Regions\":[{\"Name\":\"1\",\"Hosts\":[{\"Name\":\"172.24.23.232\",\"Port\":4444,\"Count\":8,\"Username\":\"griduser\",\"Password\":\"blah\",\"VNC\":\"\",\"Scheme\":\"\"},{\"Name\":\"172.24.23.235\",\"Port\":4444,\"Count\":6,\"Username\":\"\",\"Password\":\"\",\"VNC\":\"\",\"Scheme\":\"\"}]}]}]}]```\r\n==============================================\r\n\r\n I have a another Linux ( 16.3 LTS ) as selenoid docker server\r\nIP: 172.24.23.232, selenoid container server. latest version. Ubuntu 16.3 LTS.\r\nuser: griduser\r\n\r\nthe browsers.conf looks like: \r\n```\r\n{\r\n    \"chrome\": {\r\n        \"default\": \"64.0\",\r\n        \"versions\": {\r\n            \"64.0\": {\r\n                \"image\": \"selenoid/vnc:chrome_64.0\",\r\n                \"port\": \"4444\",\r\n                \"path\": \"/\",\r\n                \"tmpfs\": {\"/tmp\": \"size=512m\"},\r\n                \"env\" : [\"SCREEN_RESOLUTION=1920x1680x24\"]\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nand it is started, so hitting http://172.24.23.232:4444/status returns \r\n`{\"total\":10,\"used\":0,\"queued\":0,\"pending\":0,\"browsers\":{\"chrome\":{\"64.0\":{}}}}`\r\n\r\nthough hitting http://172.24.23.232:4444 or http://172.24.23.232:4444/wd/hub always get 404 page not found.-- which should be fine\r\n\r\n======================\r\n\r\nanother Linux ( 16.3 LTS ) as selenoid docker server\r\nIP: 172.24.23.235 settings are more or less the same\r\n\r\n======================\r\n\r\nSadly I did not find any similiar error in the old bug, also I am pretty sure must be somewhere in my configuration cause the problem, but need some directions how to dive deeper. \r\nThank you!"},"comment":{"url":"https://api.github.com/repos/aerokube/ggr/issues/comments/369967202","html_url":"https://github.com/aerokube/ggr/issues/176#issuecomment-369967202","issue_url":"https://api.github.com/repos/aerokube/ggr/issues/176","id":369967202,"user":{"login":"vania-pooh","id":829320,"avatar_url":"https://avatars0.githubusercontent.com/u/829320?v=4","gravatar_id":"","url":"https://api.github.com/users/vania-pooh","html_url":"https://github.com/vania-pooh","followers_url":"https://api.github.com/users/vania-pooh/followers","following_url":"https://api.github.com/users/vania-pooh/following{/other_user}","gists_url":"https://api.github.com/users/vania-pooh/gists{/gist_id}","starred_url":"https://api.github.com/users/vania-pooh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vania-pooh/subscriptions","organizations_url":"https://api.github.com/users/vania-pooh/orgs","repos_url":"https://api.github.com/users/vania-pooh/repos","events_url":"https://api.github.com/users/vania-pooh/events{/privacy}","received_events_url":"https://api.github.com/users/vania-pooh/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T16:10:14Z","updated_at":"2018-03-02T16:10:14Z","author_association":"OWNER","body":"@liulirun does it then works for tests with the same password?"}}
{"actor":{"display_login":"vania-pooh"}}