Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hub not sending commands to Sauce VM (WARNING: Invalid cookie header) #6

Open
pyroblue opened this issue Dec 1, 2012 · 3 comments
Open
Assignees

Comments

@pyroblue
Copy link

pyroblue commented Dec 1, 2012

Hey there -- we recently setup the Sauce + Grid plugin so that we could use sauce to handle all of our browser testing needs. Everything was working quite well until yesterday...(coincidentally, around the time that the cookie error states in the logs)

Basically, what happens is that a test will run...it will spin up the VM...and then the VM will just sit there...like it will not accept any commands.

So, the test times out, and we get an error.


Here's what our server logs look like (notice the warning about the cookie...this seems to be about the same time that stuff started breaking)
http://bit.ly/11gmqhc

(ive since changed the access key, for security reasons)


Here's what i see on my machine when i kick off the tests against our grid: (notice the 302 error)

http://pastie.org/private/sqlqle8pkfnpf9bctripmw


Some URLs to a few random timing out tests...

https://saucelabs.com/tests/aed82e50260f4e669cecbf581df7be49
https://saucelabs.com/tests/0c043fc226c74530b8e9b44daa286ffa
https://saucelabs.com/tests/2d109f1457e14eedb5346d8ceaa9cefe
https://saucelabs.com/tests/f7849dcccdc84a94acb8ee37078b81bd


As far as a server setup goes, basically, we are pretty much following the directions stated in the blog post / your github account. We've got the jars in the same directory, and ar running this command

/home/mainbun/java/jdk/bin/java -cp selenium-server-standalone-2.26.0.jar:sauce-grid-plugin-1.0.4.jar org.openqa.grid.selenium.GridLauncher -role hub -servlets com.saucelabs.grid.SauceOnDemandAdminServlet,com.saucelabs.grid.SauceOnDemandConsoleServlet

From there, im connecting to our hub as such from our tests:

            desired_capabilities = webdriver.DesiredCapabilities.CHROME
            #leaving this blank for chrome
            desired_capabilities['version'] = ''
            desired_capabilities['platform'] = 'Windows 2008'

            #set the test name to the name of this class, so we know which it is.
            desired_capabilities['name'] = self.__class__.__name__
            desired_capabilities['idle-timeout'] = 30

            self.driver = webdriver.Remote(
                command_executor= "http://selenium00.dev.ourdomain.net:4444/wd/hub",
                desired_capabilities=desired_capabilities
            )

Thanks for any help!

-kasey
[email protected]

@pyroblue
Copy link
Author

pyroblue commented Dec 1, 2012

i should also add that ive tried this from our servers, as well as from my local machine with the same result each time.

@pyroblue
Copy link
Author

pyroblue commented Dec 2, 2012

When i change driver object from:

        self.driver = webdriver.Remote(
            command_executor=http://selenium.dev.our-domain.net:4444/wd/hub,
            desired_capabilities=desired_capabilities
        )

to

        self.driver = webdriver.Remote(
            command_executor="http://USERNAME:[email protected]:80/wd/hub",
            desired_capabilities=desired_capabilities
        )

the tests run fine against Sauce (ruling out the possibility that it's my tests that are the issue). seems to definitely be an issue with hub / the plugin.

just trying to give you as much data as possible...thanks again for looking into this!

@ghost ghost assigned rossrowe Dec 17, 2012
@rossrowe
Copy link
Owner

Hi, I'm really sorry for not replying to this issue earlier - I only just spotted it now...is this still an issue for you? I vaguely recall that it got resolved a while ago, but please let me know if it's still a problem when using the latest version of the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants