glassfish
  1. glassfish
  2. GLASSFISH-18447

install-node-ssh NullPointerException because of empty zip file created

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2_b23
    • Fix Version/s: 4.0_b34
    • Component/s: distributed management
    • Labels:
      None
    • Environment:

      Description

      Trying to create a new node with install-node-ssh fails. Both from cli and web admin console. Ssh setup was successful. I get NullPointerException without a stacktrace. I assume that this is because the zip file cannot be created. Permissions are ok, it was a fresh install with user1.

      $ /home/user1/glassfish3/glassfish/bin/asadmin install-node-ssh --installdir /home/user2/glassfish3 --sshkeyfile /home/user1/.ssh/id_dsa --sshuser user2 --sshport 22 node1
      Successfully connected to user2@node1 using keyfile /home/user1/.ssh/id_dsa
      java.lang.NullPointerException
      Command install-node-ssh failed.
      $ ls -la glas*.zip
      rw-rr- 1 user1 user1 0 2012-03-03 16:36 glassfish2006240698242408681.zip

      The big problem is, that there is no stacktrace.

        Activity

        Hide
        hiro2k added a comment -

        I'm also running into this issue and cannot create any ssh nodes. This is preventing me from upgrading to 3.1.2 from 3.1.1.

        Show
        hiro2k added a comment - I'm also running into this issue and cannot create any ssh nodes. This is preventing me from upgrading to 3.1.2 from 3.1.1.
        Hide
        bybates added a comment -

        I am also experiencing the same issue.

        I have a scripted cluster deployment working with GF 3.1.1, so I'm positive my SSH keys and environment are configured correctly.

        When using the same scripts with Glassfish 3.1.2, the install-node subcommand is failing. I get a similar zero byte zip archive mentioned above. I also experience the same problem when executing the create-node-ssh subcommand.

        Show
        bybates added a comment - I am also experiencing the same issue. I have a scripted cluster deployment working with GF 3.1.1, so I'm positive my SSH keys and environment are configured correctly. When using the same scripts with Glassfish 3.1.2, the install-node subcommand is failing. I get a similar zero byte zip archive mentioned above. I also experience the same problem when executing the create-node-ssh subcommand.
        Hide
        Joe Di Pol added a comment -

        An alternative is to perform the GlassFish installation yourself on the remote systems, and then use create-node-ssh to point to that installation (without using the --install option).

        Show
        Joe Di Pol added a comment - An alternative is to perform the GlassFish installation yourself on the remote systems, and then use create-node-ssh to point to that installation (without using the --install option).
        Hide
        Yamini K B added a comment -

        Can you send across output of 'ls -F' of install root? I need to confirm if this is same as JIRA-18645

        Show
        Yamini K B added a comment - Can you send across output of 'ls -F' of install root? I need to confirm if this is same as JIRA-18645
        Hide
        Hrotkó Gábor added a comment -

        $ ls -F
        bin/ glassfish/ install/ javadb/ mq/ pkg/ uninstall.exe uninstall.sh updatetool/ var/

        Show
        Hrotkó Gábor added a comment - $ ls -F bin/ glassfish/ install/ javadb/ mq/ pkg/ uninstall.exe uninstall.sh updatetool/ var/
        Hide
        Yamini K B added a comment -

        Fix checked in r53630

        Show
        Yamini K B added a comment - Fix checked in r53630

          People

          • Assignee:
            Yamini K B
            Reporter:
            Hrotkó Gábor
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4 minutes
              4m
              Remaining:
              Remaining Estimate - 4 minutes
              4m
              Logged:
              Time Spent - Not Specified
              Not Specified