Forums/Cloudify Users

Answered

2.2 GA and 2.3 M2 not working on Windows 8

Janaka
asked this on November 26, 2012 04:26

Hi,

Has anybody got 2.2 GA or 2.3 M2 working on Windows 8 Ent x64? I have installed JDK 1.7.x and set JAVA_HOME and PATH as instructed in the install guide.

All errors indicate that the agent cannot start. It would also seem that this IS NOT because there's another agent running. When I try a shutdown-agent or teardown-localcloud it says it cannot find any agents. 

I have switched off the windows firewall. all 3 firewall profiles are off; domain, private, and public.

Verbose output from the bootstrap-localcloud command is below. Any ideas on how to fix, where to look, how to verify the install etc.?

Cheers

 

 

 

 

cloudify@default> bootstrap-localcloud --verbose
NIC Address=127.0.0.1
Lookup Locators=127.0.0.1:4176
Lookup Groups=localcloud
Bootstrapping localcloud, this may take a few minutes
Starting agent and management processes:
cmd.exe /c @call "gs.bat" start startLH startGSM startESM startGSA gsa.global.lus 0 gsa.lus 0 gsa.gsc 0 gsa.global.gsm 0 gsa.gsm_l
us 0 gsa.global.esm 0 gsa.esm 0 >nul 2>&1
STARTING CLOUDIFY MANAGEMENT
Operation failed. org.cloudifysource.shell.commands.CLIException: Error while starting agent. Please make sure that another agent
is not already running. Command executed: cmd.exe /c @call C:\Program Files\CloudifySource\bin\"gs.bat" start startLH startGSM sta
rtESM startGSA gsa.global.lus 0 gsa.lus 0 gsa.gsc 0 gsa.global.gsm 0 gsa.gsm_lus 0 gsa.global.esm 0 gsa.esm 0 >nul 2>&1
at org.cloudifysource.shell.installer.LocalhostGridAgentBootstrapper.runCommand(LocalhostGridAgentBootstrapper.java:1302)
at org.cloudifysource.shell.installer.LocalhostGridAgentBootstrapper.runGsAgentOnLocalHost(LocalhostGridAgentBootstrapper.
java:751)
at org.cloudifysource.shell.installer.LocalhostGridAgentBootstrapper.startManagementOnLocalhostAndWaitInternal(LocalhostGr
idAgentBootstrapper.java:801)
at org.cloudifysource.shell.installer.LocalhostGridAgentBootstrapper.startLocalCloudOnLocalhostAndWait(LocalhostGridAgentB
ootstrapper.java:329)
at org.cloudifysource.shell.commands.BootstrapLocalCloud.doExecute(BootstrapLocalCloud.java:110)
at org.cloudifysource.shell.commands.AbstractGSCommand.execute(AbstractGSCommand.java:79)
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.karaf.shell.console.jline.Console.run(Console.java:221)
at org.apache.karaf.shell.console.Main.run(Main.java:191)
at org.apache.karaf.shell.console.Main.run(Main.java:89)
at org.cloudifysource.shell.GigaShellMain.main(GigaShellMain.java:122)

 

 

 

 

 

Comments

User photo
Tamir
CloudifySource Community
Check Answer

Hi Janaka,

Sorry for the delay.

It seems that this is a permissions/access problem and NOT a Windows problem.
Please try the following:
1. Kill all the java processes
2. Make sure that all Cloudify's files are accessible and executable.
3. Invoke bootstrap again.

HTH,
Tamir.

December 16, 2012 05:48
User photo
Janaka

Hi,

The command prompt is being open as administrator. This should be that all files are accessible and executable. I'm assuming that everything is running in the context of the command prompt hence as the administrator.

Cheers

December 19, 2012 08:03
User photo
Barak Merimovich

We need to see the contents of the logs folder in your cloudify installation folder.

Please delete the files there, bootstrap-localcloud again, then zip up the logs folder and post here.

December 20, 2012 00:19
User photo
Eli Polonsky

Hi Janaka.

I was able to reproduce the problem you are experiencing. though i could only reproduce this when i point my JAVA_HOME to a JRE distribution outside the JDK.

are you sure you are working with the JDK?

try running %JAVA_HOME%\bin\javac, if you cant run this command it means you are running with a JRE or with some strange JDK distribution.

i suggest installing this http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downlo... and trying again.

make sure you JAVA_HOME points to C:\Program Files\Java\jdk1.7.0_10...

 

let me know if you are still seeing this issue.

 

December 23, 2012 08:49
User photo
Paweł Kowalski

I faced the same problem. I am using Cloudify 2.5.1 on Windows 7 64bit. All invoked with Adminstrative permission.

JAVA_HOME points to JDK 1.7.0_13.

During agent start, temporary agent script returns exitCode =1.

Any ideas?

 

July 24, 2013 05:30
User photo
Barak Merimovich

Hi,

We would need to see the logs of a failed run.

July 24, 2013 06:02
User photo
Paweł Kowalski

I have in log only these two entries. 

2013-07-24 15:51:45,935 INFO [org.cloudifysource.shell.commands.AbstractGSCommand] - Setting security profile to "nonsecure".
2013-07-24 15:51:56,924 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - Error while starting agent. Please make sure that another agent is not already running.

btw I am trying to run Cloudify from source in Eclipse and in that case the error appear. Binary executables works.

July 24, 2013 09:56
User photo
Barak Merimovich

Hi,

Can you try and use an older JDK. Specifically, try jdk 6u43. There are some known issues with newer JDKs (more details here: https://cloudifysource.atlassian.net/browse/CLOUDIFY-1787)

This is a longshot, though, since you say that bootstrap works correctly from the distribution. How are you running Cloudify from Eclipse? What debug configuration are you using?

July 24, 2013 10:15
User photo
Paweł Kowalski

I checked with mentioned JDK and unfortunately no luck. So I decided to repeat from scratch whole procedure written at https://github.com/CloudifySource/cloudify

based on JDK 6u43. Then start debuggind following "Debugging the CLI without cloud plugin support" 

type bootstrap-localcloud and got

java.lang.NoClassDefFoundError: Could not initialize class org.cloudifysource.shell.installer.LocalhostGridAgentBootstrapper


cloudify@default> bootstrap-localcloud
Setting security profile to "nonsecure".
null

 

July 25, 2013 04:39
User photo
Barak Merimovich

Did you completely delete and clean any previous generated classes? It looks like you have a jar file collision here.

July 25, 2013 07:15