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

Error whilst running 'lein test' in onyx-dashboard #82

Open
stochasticForest opened this issue Feb 3, 2017 · 3 comments
Open

Error whilst running 'lein test' in onyx-dashboard #82

stochasticForest opened this issue Feb 3, 2017 · 3 comments

Comments

@stochasticForest
Copy link

stochasticForest commented Feb 3, 2017

I received this error when executing 'lein test' in the onyx-dashboard directory.

$:~/onyx/onyx-dashboard$ lein test
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/mvp/.m2/repository/org/slf4j/slf4j-nop/1.7.12/slf4j-nop-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/mvp/.m2/repository/com/fzakaria/slf4j-timbre/0.3.2/slf4j-timbre-0.3.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]

lein test onyx.peer.dashboard-colors-flow-test
=================================
Starting Dashboard components ...
Starting Sente
Starting Channels
Starting ZKClient
Trying connect ZK 5s ...
ZK connection state: CONNECTED
Starting Deployments
Starting HTTP Server
17-02-03 06:51:19 aba20 INFO [onyx.peer.task-lifecycle:580] - Job a4efc972-555a-4165-91ee-5a3b2694c430 {:job-id #uuid "a4efc972-555a-4165-91ee-5a3b2694c430", :job-hash "ec6310b58ede678981b7d54e867ddb51c8362ad4d684b8aefa7a1a69b38767b3"} - Task :green-out - Peer 0c112f54-6afa-452a-8971-19c50d421c6b - Stopping task lifecycle
Http-kit server is running at http://localhost:3000/
17-02-03 06:51:19 aba20 INFO [onyx.messaging.messenger-buffer:19] - Stopping Messenger Buffer
17-02-03 06:51:19 aba20 INFO [onyx.peer.task-lifecycle:580] - Job a4efc972-555a-4165-91ee-5a3b2694c430 {:job-id #uuid "a4efc972-555a-4165-91ee-5a3b2694c430", :job-hash "ec6310b58ede678981b7d54e867ddb51c8362ad4d684b8aefa7a1a69b38767b3"} - Task :process-blue - Peer a26da410-4a0d-4cf7-a959-26781098046f - Stopping task lifecycle
17-02-03 06:51:19 aba20 INFO [onyx.messaging.messenger-buffer:19] - Stopping Messenger Buffer
17-02-03 06:51:19 aba20 INFO [onyx.peer.task-lifecycle:580] - Job a4efc972-555a-4165-91ee-5a3b2694c430 {:job-id #uuid "a4efc972-555a-4165-91ee-5a3b2694c430", :job-hash "ec6310b58ede678981b7d54e867ddb51c8362ad4d684b8aefa7a1a69b38767b3"} - Task :red-out - Peer 1c34caad-6eed-4102-a22a-832413539d93 - Stopping task lifecycle
Starting ChromeDriver 2.25 (undefined) on port 1748
Only local connections are allowed.
17-02-03 06:51:19 aba20 INFO [onyx.messaging.messenger-buffer:19] - Stopping Messenger Buffer
17-02-03 06:51:19 aba20 INFO [onyx.peer.task-lifecycle:580] - Job a4efc972-555a-4165-91ee-5a3b2694c430 {:job-id #uuid "a4efc972-555a-4165-91ee-5a3b2694c430", :job-hash "ec6310b58ede678981b7d54e867ddb51c8362ad4d684b8aefa7a1a69b38767b3"} - Task :process-green - Peer 65f09476-c88f-49ec-bf6a-6e11f0698281 - Stopping task lifecycle
17-02-03 06:51:19 aba20 INFO [onyx.messaging.messenger-buffer:19] - Stopping Messenger Buffer
17-02-03 06:51:19 aba20 INFO [onyx.peer.task-lifecycle:580] - Job a4efc972-555a-4165-91ee-5a3b2694c430 {:job-id #uuid "a4efc972-555a-4165-91ee-5a3b2694c430", :job-hash "ec6310b58ede678981b7d54e867ddb51c8362ad4d684b8aefa7a1a69b38767b3"} - Task :blue-out - Peer cd7e099c-92b5-4e43-a5ba-b841a4e74138 - Stopping task lifecycle
17-02-03 06:51:19 aba20 INFO [onyx.messaging.messenger-buffer:19] - Stopping Messenger Buffer
17-02-03 06:51:19 aba20 INFO [onyx.peer.task-lifecycle:580] - Job a4efc972-555a-4165-91ee-5a3b2694c430 {:job-id #uuid "a4efc972-555a-4165-91ee-5a3b2694c430", :job-hash "ec6310b58ede678981b7d54e867ddb51c8362ad4d684b8aefa7a1a69b38767b3"} - Task :colors-in - Peer b18d4fde-1cec-4937-a591-cbf44db1f5f0 - Stopping task lifecycle
17-02-03 06:51:19 aba20 INFO [onyx.plugin.core-async:31] - core.async input plugin stopping. Retry count: 1
17-02-03 06:51:19 aba20 INFO [onyx.messaging.messenger-buffer:19] - Stopping Messenger Buffer
17-02-03 06:51:19 aba20 INFO [onyx.peer.task-lifecycle:580] - Job a4efc972-555a-4165-91ee-5a3b2694c430 {:job-id #uuid "a4efc972-555a-4165-91ee-5a3b2694c430", :job-hash "ec6310b58ede678981b7d54e867ddb51c8362ad4d684b8aefa7a1a69b38767b3"} - Task :process-red - Peer 4bc9adbf-9496-41b7-8bce-90a4d0edd504 - Stopping task lifecycle
17-02-03 06:51:19 aba20 INFO [onyx.messaging.messenger-buffer:19] - Stopping Messenger Buffer
Stopping HTTP Server
Stopping Deployments
Error : Stopping ZKClient
Removing listener #error {
 :cause #object[onyx_dashboard.http.zk_client$as_connection_listener$reify__31922 0x14f7c28f onyx_dashboard.http.zk_client$as_connection_listener$reify__31922@14f7c28f]
Removing listener #object[onyx_dashboard.http.zk_client$as_connection_listener$reify__31922 0x3d81885c onyx_dashboard.http.zk_client$as_connection_listener$reify__31922@3d81885c]
sleep interrupted
 :via
 [{:type java.lang.InterruptedException
   :message sleep interrupted
   :at [java.lang.Thread sleep Thread.java -2]}]
 :trace
 [[java.lang.Thread sleep Thread.java -2]
  [onyx_dashboard.http.deployments$deployments_watch$fn__32109 invoke deployments.clj 30]
  [onyx_dashboard.http.deployments$deployments_watch invokeStatic deployments.clj 18]
  [onyx_dashboard.http.deployments$deployments_watch invoke deployments.clj 14]
  [onyx_dashboard.http.deployments$start_deployments_watch$fn__32117 invoke deployments.clj 49]
  [clojure.core$binding_conveyor_fn$fn__4676 invoke core.clj 1938]
  [clojure.lang.AFn call AFn.java 18]
  [java.util.concurrent.FutureTask run FutureTask.java 266]
  [java.util.concurrent.ThreadPoolExecutor runWorker ThreadPoolExecutor.java 1142]
  [java.util.concurrent.ThreadPoolExecutor$Worker run ThreadPoolExecutor.java 617]
  [java.lang.Thread run Thread.java 745]]}
Stopping Channels
Stopping Sente

lein test :only onyx.peer.dashboard-colors-flow-test/load-site

ERROR in (load-site) (WebDriverWait.java:80)
Uncaught exception, not in assertion.
expected: nil
  actual: org.openqa.selenium.TimeoutException: Timed out after 5 seconds waiting for clj_webdriver.wait.proxy$java.lang.Object$ExpectedCondition$66be6a90@16f72a8b
Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
System info: host: 'aba20', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.0-4-amd64', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.25 (undefined), userDataDir=/tmp/.org.chromium.Chromium.0IVTdt}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=56.0.2924.76, platform=LINUX, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 1b4d52096a0c405e7dfdb534be33e78e
 at org.openqa.selenium.support.ui.WebDriverWait.timeoutException (WebDriverWait.java:80)
    org.openqa.selenium.support.ui.FluentWait.until (FluentWait.java:229)
    clj_webdriver.wait$eval35779$fn__35782.invoke (wait.clj:29)
    clj_webdriver.wait$eval35729$fn__35730$G__35720__35751.invoke (wait.clj:9)
    clj_webdriver.wait$eval35779$fn__35782.invoke (wait.clj:25)
    clj_webdriver.wait$eval35729$fn__35730$G__35720__35751.invoke (wait.clj:9)
    clj_webdriver.taxi$wait_until.invokeStatic (taxi.clj:679)
    clj_webdriver.taxi$wait_until.invoke (taxi.clj:657)
    onyx.peer.dashboard_colors_flow_test$load_last_deployment.invokeStatic (dashboard_colors_flow_test.clj:11)
    onyx.peer.dashboard_colors_flow_test$load_last_deployment.invoke (dashboard_colors_flow_test.clj:10)
    onyx.peer.dashboard_colors_flow_test$fn__35969$fn__36009.invoke (dashboard_colors_flow_test.clj:306)
    onyx.peer.dashboard_colors_flow_test$fn__35969$run_test_fixture__35970.invoke (dashboard_colors_flow_test.clj:43)
    onyx.peer.dashboard_colors_flow_test$fn__35969.invokeStatic (dashboard_colors_flow_test.clj:303)
    onyx.peer.dashboard_colors_flow_test/fn (dashboard_colors_flow_test.clj:31)
    clojure.test$test_var$fn__7983.invoke (test.clj:716)
    clojure.test$test_var.invokeStatic (test.clj:716)
    clojure.test$test_var.invoke (test.clj:707)
    clojure.test$test_vars$fn__8005$fn__8010.invoke (test.clj:734)
    clojure.test$default_fixture.invokeStatic (test.clj:686)
    clojure.test$default_fixture.invoke (test.clj:682)
    clojure.test$test_vars$fn__8005.invoke (test.clj:734)
    clojure.test$default_fixture.invokeStatic (test.clj:686)
    clojure.test$default_fixture.invoke (test.clj:682)
    clojure.test$test_vars.invokeStatic (test.clj:730)
    clojure.test$test_all_vars.invokeStatic (test.clj:736)
    clojure.test$test_ns.invokeStatic (test.clj:757)
    clojure.test$test_ns.invoke (test.clj:742)
    clojure.core$map$fn__4785.invoke (core.clj:2646)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.Cons.next (Cons.java:39)
    clojure.lang.RT.boundedLength (RT.java:1749)
    clojure.lang.RestFn.applyTo (RestFn.java:130)
    clojure.core$apply.invokeStatic (core.clj:648)
    clojure.test$run_tests.invokeStatic (test.clj:767)
    clojure.test$run_tests.doInvoke (test.clj:767)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invokeStatic (core.clj:646)
    clojure.core$apply.invoke (core.clj:641)
    user$eval32529$fn__32588$fn__32619.invoke (form-init2098982804285961736.clj:1)
    user$eval32529$fn__32588$fn__32589.invoke (form-init2098982804285961736.clj:1)
    user$eval32529$fn__32588.invoke (form-init2098982804285961736.clj:1)
    user$eval32529.invokeStatic (form-init2098982804285961736.clj:1)
    user$eval32529.invoke (form-init2098982804285961736.clj:1)
    clojure.lang.Compiler.eval (Compiler.java:6927)
    clojure.lang.Compiler.eval (Compiler.java:6917)
    clojure.lang.Compiler.load (Compiler.java:7379)
    clojure.lang.Compiler.loadFile (Compiler.java:7317)
    clojure.main$load_script.invokeStatic (main.clj:275)
    clojure.main$init_opt.invokeStatic (main.clj:277)
    clojure.main$init_opt.invoke (main.clj:277)
    clojure.main$initialize.invokeStatic (main.clj:308)
    clojure.main$null_opt.invokeStatic (main.clj:342)
    clojure.main$null_opt.invoke (main.clj:339)
    clojure.main$main.invokeStatic (main.clj:421)
    clojure.main$main.doInvoke (main.clj:384)
    clojure.lang.RestFn.invoke (RestFn.java:421)
    clojure.lang.Var.invoke (Var.java:383)
    clojure.lang.AFn.applyToHelper (AFn.java:156)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.main.main (main.java:37)
Caused by: org.openqa.selenium.NoSuchElementException: 
When an element cannot be found in clj-webdriver, nil is returned. You've just tried to perform an action on an element that returned as nil for the search query you used. Please verify the query used to locate this element; it is not on the current page.
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
System info: host: 'aba20', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.0-4-amd64', java.version: '1.8.0_121'
Driver info: driver.version: unknown
 at clj_webdriver.util$throw_nse.invokeStatic (util.clj:337)
    clj_webdriver.util$throw_nse.invoke (util.clj:334)
    clj_webdriver.util$throw_nse.invokeStatic (util.clj:335)
    clj_webdriver.util$throw_nse.invoke (util.clj:334)
    clj_webdriver.core$eval35415$fn__35452.invoke (core_element.clj:408)
    clj_webdriver.core$eval34358$fn__34438$G__34349__34443.invoke (core.clj:93)
    clj_webdriver.taxi$text.invokeStatic (taxi.clj:1104)
    clj_webdriver.taxi$text.invoke (taxi.clj:1095)
    clj_webdriver.taxi$text.invokeStatic (taxi.clj:1102)
    clj_webdriver.taxi$text.invoke (taxi.clj:1095)
    onyx.peer.dashboard_colors_flow_test$load_last_deployment$fn__35951.invoke (dashboard_colors_flow_test.clj:11)
    clj_webdriver.wait$eval35779$fn__35782$fn__35783.invoke (wait.clj:36)
    clj_webdriver.wait.proxy$java.lang.Object$ExpectedCondition$66be6a90.apply (:-1)
    org.openqa.selenium.support.ui.FluentWait.until (FluentWait.java:209)
    clj_webdriver.wait$eval35779$fn__35782.invoke (wait.clj:29)
    clj_webdriver.wait$eval35729$fn__35730$G__35720__35751.invoke (wait.clj:9)
    clj_webdriver.wait$eval35779$fn__35782.invoke (wait.clj:25)
    clj_webdriver.wait$eval35729$fn__35730$G__35720__35751.invoke (wait.clj:9)
    clj_webdriver.taxi$wait_until.invokeStatic (taxi.clj:679)
    clj_webdriver.taxi$wait_until.invoke (taxi.clj:657)
    onyx.peer.dashboard_colors_flow_test$load_last_deployment.invokeStatic (dashboard_colors_flow_test.clj:11)
    onyx.peer.dashboard_colors_flow_test$load_last_deployment.invoke (dashboard_colors_flow_test.clj:10)
    onyx.peer.dashboard_colors_flow_test$fn__35969$fn__36009.invoke (dashboard_colors_flow_test.clj:306)
    onyx.peer.dashboard_colors_flow_test$fn__35969$run_test_fixture__35970.invoke (dashboard_colors_flow_test.clj:43)
    onyx.peer.dashboard_colors_flow_test$fn__35969.invokeStatic (dashboard_colors_flow_test.clj:303)
    onyx.peer.dashboard_colors_flow_test/fn (dashboard_colors_flow_test.clj:31)
    clojure.test$test_var$fn__7983.invoke (test.clj:716)
    clojure.test$test_var.invokeStatic (test.clj:716)
    clojure.test$test_var.invoke (test.clj:707)
    clojure.test$test_vars$fn__8005$fn__8010.invoke (test.clj:734)
    clojure.test$default_fixture.invokeStatic (test.clj:686)
    clojure.test$default_fixture.invoke (test.clj:682)
    clojure.test$test_vars$fn__8005.invoke (test.clj:734)
    clojure.test$default_fixture.invokeStatic (test.clj:686)
    clojure.test$default_fixture.invoke (test.clj:682)
    clojure.test$test_vars.invokeStatic (test.clj:730)
    clojure.test$test_all_vars.invokeStatic (test.clj:736)
    clojure.test$test_ns.invokeStatic (test.clj:757)
    clojure.test$test_ns.invoke (test.clj:742)
    clojure.core$map$fn__4785.invoke (core.clj:2646)
    clojure.lang.LazySeq.sval (LazySeq.java:40)
    clojure.lang.LazySeq.seq (LazySeq.java:49)
    clojure.lang.Cons.next (Cons.java:39)
    clojure.lang.RT.boundedLength (RT.java:1749)
    clojure.lang.RestFn.applyTo (RestFn.java:130)
    clojure.core$apply.invokeStatic (core.clj:648)
    clojure.test$run_tests.invokeStatic (test.clj:767)
    clojure.test$run_tests.doInvoke (test.clj:767)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invokeStatic (core.clj:646)
    clojure.core$apply.invoke (core.clj:641)
    user$eval32529$fn__32588$fn__32619.invoke (form-init2098982804285961736.clj:1)
    user$eval32529$fn__32588$fn__32589.invoke (form-init2098982804285961736.clj:1)
    user$eval32529$fn__32588.invoke (form-init2098982804285961736.clj:1)
    user$eval32529.invokeStatic (form-init2098982804285961736.clj:1)
    user$eval32529.invoke (form-init2098982804285961736.clj:1)
    clojure.lang.Compiler.eval (Compiler.java:6927)
    clojure.lang.Compiler.eval (Compiler.java:6917)
    clojure.lang.Compiler.load (Compiler.java:7379)
    clojure.lang.Compiler.loadFile (Compiler.java:7317)
    clojure.main$load_script.invokeStatic (main.clj:275)
    clojure.main$init_opt.invokeStatic (main.clj:277)
    clojure.main$init_opt.invoke (main.clj:277)
    clojure.main$initialize.invokeStatic (main.clj:308)
    clojure.main$null_opt.invokeStatic (main.clj:342)
    clojure.main$null_opt.invoke (main.clj:339)
    clojure.main$main.invokeStatic (main.clj:421)
    clojure.main$main.doInvoke (main.clj:384)
    clojure.lang.RestFn.invoke (RestFn.java:421)
    clojure.lang.Var.invoke (Var.java:383)
    clojure.lang.AFn.applyToHelper (AFn.java:156)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.main.main (main.java:37)

Ran 1 tests containing 1 assertions.
0 failures, 1 errors.
Tests failed.
@MichaelDrogalis
Copy link
Contributor

Hi, it looks like you don't have the Selenium package required to run the tests. You can grab it with your OS's respective package manager.

@stochasticForest
Copy link
Author

stochasticForest commented Feb 4, 2017

Not sure what to do about that, I have everything installed related to selenium that my package manager knows about:

`~/tmp$ apt-cache search selenium

chromedriver - web browser - WebDriver support
libtest-www-selenium-perl - Perl test framework using Selenium Remote Control
phpunit-selenium - Selenium RC integration for PHPUnit
ruby-childprocess - Ruby library for controlling external programs running in the background
`

I'm using debian jessie -
`~/tmp$ cat /proc/version

Linux version 3.16.0-4-amd64 ([email protected]) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
`

Is there an unspecified dependency here ?

@MichaelDrogalis
Copy link
Contributor

Everything that's needed to run the dashboard tests is specified within our circle.yml file. We haven't made any additional adjustments to their CI machines. I'm on OS X, and other than a Selenium download, I wasn't able to reproduce the problem that you're seeing. Nothing else beyond that is unspecified.

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