You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Joshua McKenzie (JIRA)" <ji...@apache.org> on 2014/12/05 20:54:12 UTC

[jira] [Updated] (CASSANDRA-8423) Error during start up on windows

     [ https://issues.apache.org/jira/browse/CASSANDRA-8423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua McKenzie updated CASSANDRA-8423:
---------------------------------------
    Attachment: 8423_powershell.txt
                8423_ccm.txt

Regex in ccm to grab JMX_PORT was too greedy and was steamrolling the $env:JMX_PORT= assignment as well as the initial assignment in conf/cassandra-env.ps1

Attached a patch for ccm to fix this as well as add a print out of stdout/stderr from a node on the -v flag to cluster start() method so you can debug startup problems from ccm and get visibility to errors there.

Also attached a patch to make the powershell port checking a little more .NET idiomatic, print out the exception on failure to start, and also check that the JMX_PORT entry in the environment is actually set.

> Error during start up on windows
> --------------------------------
>
>                 Key: CASSANDRA-8423
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8423
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Philip Thompson
>            Assignee: Joshua McKenzie
>              Labels: windows
>             Fix For: 2.1.3
>
>         Attachments: 8423_ccm.txt, 8423_powershell.txt
>
>
> While using ccm with the current C* 2.1-HEAD code on Windows, I frequently see this exception.
> {code}[node1 ERROR] Exception calling "BeginConnect" with "4" argument(s): "The requested address 
> is not valid in its context"
> At 
> D:\jenkins\workspace\cassandra-2.1_dtest_win32\cassandra\bin\cassandra.ps1:358 
> char:9
> +         $connect = $tcpobject.BeginConnect($listenAddress, $port, $null, 
> $null)
> +         
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
>     + FullyQualifiedErrorId : SocketException
>  
> You cannot call a method on a null-valued expression.
> At 
> D:\jenkins\workspace\cassandra-2.1_dtest_win32\cassandra\bin\cassandra.ps1:359 
> char:9
> +         $wait = $connect.AsyncWaitHandle.WaitOne(25, $false)
> +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
>     + FullyQualifiedErrorId : InvokeMethodOnNull{code}
> I have not yet seen this exception when psutil is not installed, but that may not be relevant, as I dont know how that could possibly matter.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)