fastconnect / virtualbox-cloudify-driver

VirtualBox Cloudify Driver, for testing purpose
3 stars 0 forks source link

Host interface not found #20

Closed carlosfrias closed 11 years ago

carlosfrias commented 11 years ago

I'm working to get an instance of the virtualbox cloudify driver for my project. The allure of configuring virtualbox for my server development work is too strong to resist.

However, I'm encountering an error where the virtualboxUrl is not being set. I suspect I'm doing something wrong but I am fairly certain that the SERVER_URL is getting picked up because I know that setConfig is being called and I'm not getting the IllegalArgumentException saying it must be set.

Can you help me resolve this?

cmourouvin commented 11 years ago

Hi,

I'm working on the problem and you could have an answer later on today, at least some points to check to solve your problem.

Regards.

carlosfrias commented 11 years ago

Thank you for the update.

I would like to share with you my progress thus far. Mathias helped me to ensured that the vbox service was in indeed properly started up. However I found that i was still encountering the Host interface not found error.

I have tracked it to the version of cloudify in use by the VirtualboxCloudifyDriver at line 106. It uses a 5 parameter version of setConfig but I am running cloudify 2.6.0. I don't know when the interface changed but it is no longer a 5 parameter call to setConfig.

The error message is created by interpolating virtualboxUrl. The message says null where the value of virtualboxUrl should be. virtualboxUrl is populated from the property file when setConfig is called. The presence of a null means that setConfig is not getting called from the cloudify shell.

I think that an update to a more recent version of cloudify in the pom file to at least 2.6.0 or better and of course updating the call in line 106 should do the trick.

cmourouvin commented 11 years ago

Hi,

As you can see mathias just updated the driver to work with Cloudify 2.6. I've just tested tested it and i can bootstrap-cloud vbox with :

What i can advice you to do :

To finish take the (https://github.com/fastconnect/virtualbox-cloudify-driver/blob/master/src/main/resources/vbox/vbox-cloud.groovy) updated by mathias.

Check you email i'm sending my cloud configuration directory to you.

Regards,

carlosfrias commented 11 years ago

Cool! I'll start updating my environment with your recommendations and monitor my email for you cloud config. I'll report back my findings here.

carlosfrias commented 11 years ago

Hi Cedric,

This is a friendly reminder for the copy of your vbox configuration folder you said you would send me.

Thank you in advanced for your anticipated courtesy and attention.

Regards,

Carlos

On Thu, Aug 22, 2013 at 10:41 AM, Cédric Mourouvin <notifications@github.com

wrote:

Hi,

As you can see mathias just updated the driver to work with Cloudify 2.6. I've just tested tested it and i can bootstrap-cloud vbox with :

  • cloudify 2.6.0 GA
  • virtualbox-cloudify-driver 1.13
  • virtualbox 4.2.16
  • vagrant 1.1.5
  • Ubuntu 13.04

What i can advice you to do :

  • take a clean cloudify install
  • check out you boxes vangrant directory (the driver is getting .box file just under boxes/BOX-NAME/xxxx.box and the directory structure is changing with vagrant version. You could have to copy file just at BOX-NAME/ if you have a subdirectory so as BOX-NAME/virtualbox/xxx.box with vagrant 1.1.5)
  • you have to copy 2 jar files :
    • the new driver 1.13 : virtualbox-cloudify-driver-1.13.jar
    • vboxjws-4.2.0.jar
    • paste both in cloudify/lib/platform/esm (check chat you don't have the last virtualbox-driver jar)
    • also paste this 2 files in clouds/vbox/upload/cloudify-overrides/lib/platform/esm (in order to have the driver on new created vm as well)

To finish take the ( https://github.com/fastconnect/virtualbox-cloudify-driver/blob/master/src/main/resources/vbox/vbox-cloud.groovy) updated by mathias.

Check you email i'm sending my cloud configuration directory to you.

Regards,

— Reply to this email directly or view it on GitHubhttps://github.com/fastconnect/virtualbox-cloudify-driver/issues/20#issuecomment-23105657 .

Carlos 904-553-4178

cmourouvin commented 11 years ago

Hi,

I've sent an email juste after my details post here, it is really strange you don't have it. Mathias had the mail with the tar file, he was on cc and you were the first receiver (your accenture adddress. Can you check your spam or something ?

Regards,

carlosfrias commented 11 years ago

Hi Cedric,

I checked my spam folders and did not find your configuration. My company must be doing some additional stripping of email that I cannot account for. My apologies for this.

I would like to express gratitude for your help. I was able to bootstrap a local vbox cloud with app-management-1 machine on it.

I have now found that the cloudify shell prompt is not returned to me after a vbox bootstrap-cloud. I can ssh into the VM but I am unable to install and test any of the services without the shell prompt. I will continue to follow this by reviewing the bootstrap-management.sh file I am using but thought I should let you know should you have any additional advice for me to follow from here.

Regards,

Carlos

cmourouvin commented 11 years ago

Once you've the bootstrap OK, you should be able to acces the GUI interface and the REST API list (urls given at the bootstrap's end).

Then with a default cloudify install directory you should be able to do : install-service tomcat

With the default tomcat recipe. I can't understand you sentence "I am unable to install and test any of the services without the shell prompt" because at this stage you can install a service through the cloudify shell or use the REST API. So i understand that you want to use the REST API ?

New mail sent to you with my driver configuration.

Regards

carlosfrias commented 11 years ago

I see the app-managment appear on the virtualbox GUI. Unfortunately the bootstrap-cloud vbox fails to complete in the shell. After the failure in the shell I find that the virtual machine is running and I can ssh into it. That is why I suspect an problem with the bootstrap-management.sh script.

I have pasted the output I get in my shell:

cloudify@default> bootstrap-cloud vbox Setting security profile to "nonsecure". Bootstrapping cloud vbox. This may take a few minutes. Validating Cloudify URL "http://repository.cloudifysource.org/org/cloudifysource/2.6.0-5000-RELEASE/gigaspaces-cloudify-2.6.0-ga-b5000.tar.gz" [OK] Validating Cloudify URL "http://repository.cloudifysource.org/org/cloudifysource/2.6.0-5000-RELEASE/gigaspaces-cloudify-2.6.0-ga-b5000.zip" [OK] [VBOX] Storage Controller Name = SATA Controller Trying to connect to http://127.0.0.1:18083 using login: Start VBox machine (timeout = 3600000 ms) Trying to connect to http://127.0.0.1:18083 using login: Trying to create VM 'app-management-1' cpus:1 memory:1024 from template: /Users/carlos.frias/.vagrant.d/boxes/centos-01/virtualbox/box.ovf Trying to start and setup VM 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/ls Trying to execute command on machine 'app-management-1': /bin/ls Trying to execute command on machine 'app-management-1': /bin/ls Trying to execute command on machine 'app-management-1': /bin/ls Trying to create file '/tmp/updatehostname.sh' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/updatehostname.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'IyEvYmluL2Jhc2gKc3VkbyBzZWQgLWkgJ3MvXChIT1NUTkFNRT1cKS4qL1wx' >> /tmp/updatehostname.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'YXBwLW1hbmFnZW1lbnQtMS8nIC9ldGMvc3lzY29uZmlnL25ldHdvcmsKc3Vk' >> /tmp/updatehostname.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'byBob3N0bmFtZSBhcHAtbWFuYWdlbWVudC0xCg==' >> /tmp/updatehostname.sh.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/updatehostname.sh.base64 -out /tmp/updatehostname.sh Trying to execute file '/tmp/updatehostname.sh' on VM 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/chmod a+x /tmp/updatehostname.sh Trying to execute command on machine 'app-management-1': /tmp/updatehostname.sh Trying to update hosts on VM 'app-management-1' Trying to create file '/tmp/hosts' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'DQoxMjcuMC4wLjEJbG9jYWxob3N0DQoyNy4wLjAuMglhcHAtbWFuYWdlbWVu' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'dC0xDQoyNy4wLjAuMwlhcHAtbWFuYWdlbWVudC0yDQoyNy4wLjAuNAlhcHAt' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'bWFuYWdlbWVudC0zDQoyNy4wLjAuNQlhcHAtbWFuYWdlbWVudC00DQoyNy4w' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'LjAuNglhcHAtbWFuYWdlbWVudC01DQoyNy4wLjAuNwlhcHAtbWFuYWdlbWVu' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'dC02DQoyNy4wLjAuOAlhcHAtbWFuYWdlbWVudC03DQoyNy4wLjAuOQlhcHAt' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'bWFuYWdlbWVudC04DQoyNy4wLjAuMTAJYXBwLWFnZW50LTENCjI3LjAuMC4x' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'MQlhcHAtYWdlbnQtMg0KMjcuMC4wLjEyCWFwcC1hZ2VudC0zDQoyNy4wLjAu' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'MTMJYXBwLWFnZW50LTQNCjI3LjAuMC4xNAlhcHAtYWdlbnQtNQ0KMjcuMC4w' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'LjE1CWFwcC1hZ2VudC02DQoyNy4wLjAuMTYJYXBwLWFnZW50LTcNCjI3LjAu' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'MC4xNwlhcHAtYWdlbnQtOA0KMjcuMC4wLjE4CWFwcC1hZ2VudC05DQoyNy4w' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'LjAuMTkJYXBwLWFnZW50LTEwDQoyNy4wLjAuMjAJYXBwLWFnZW50LTExDQoy' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'Ny4wLjAuMjEJYXBwLWFnZW50LTEyDQoyNy4wLjAuMjIJYXBwLWFnZW50LTEz' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'DQoyNy4wLjAuMjMJYXBwLWFnZW50LTE0DQoyNy4wLjAuMjQJYXBwLWFnZW50' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'LTE1DQoyNy4wLjAuMjUJYXBwLWFnZW50LTE2DQoyNy4wLjAuMjYJYXBwLWFn' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'ZW50LTE3DQoyNy4wLjAuMjcJYXBwLWFnZW50LTE4DQoyNy4wLjAuMjgJYXBw' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'LWFnZW50LTE5DQoyNy4wLjAuMjkJYXBwLWFnZW50LTIwDQoK' >> /tmp/hosts.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/hosts.base64 -out /tmp/hosts Trying to create file '/tmp/updatehosts.sh' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/updatehosts.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'IyEvYmluL2Jhc2gKY2F0IC90bXAvaG9zdHMgfCBzdWRvIHRlZSAvZXRjL2hv' >> /tmp/updatehosts.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'c3RzCgo=' >> /tmp/updatehosts.sh.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/updatehosts.sh.base64 -out /tmp/updatehosts.sh Trying to execute file '/tmp/updatehosts.sh' on VM 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/chmod a+x /tmp/updatehosts.sh Trying to execute command on machine 'app-management-1': /tmp/updatehosts.sh Trying to update network interfaces on VM 'app-management-1' Trying to create file '/tmp/ifcfg-eth0' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/ifcfg-eth0.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'REVWSUNFPWV0aDAKSFdBRERSPTA4OjAwOjI3OjNBOkE4OkNFCk9OQk9PVD15' >> /tmp/ifcfg-eth0.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'ZXMKQk9PVFBST1RPPWRoY3AKVVNFUkNUTD1ubwo=' >> /tmp/ifcfg-eth0.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/ifcfg-eth0.base64 -out /tmp/ifcfg-eth0 Trying to create file '/tmp/ifcfg-eth1' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/ifcfg-eth1.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'REVWSUNFPWV0aDEKSFdBRERSPTA4OjAwOjI3OkRCOjA1OjQxCklQQUREUj0y' >> /tmp/ifcfg-eth1.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'Ny4wLjAuMgpORVRNQVNLPTI1NS4yNTUuMjU1LjAKT05CT09UPXllcwpCT09U' >> /tmp/ifcfg-eth1.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'UFJPVE89bm9uZQpVU0VSQ1RMPW5vCg==' >> /tmp/ifcfg-eth1.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/ifcfg-eth1.base64 -out /tmp/ifcfg-eth1 Trying to create file '/tmp/updateinterfaces.sh' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/updateinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'IyEvYmluL2Jhc2gKY2F0IC90bXAvaWZjZmctZXRoMCB8IHN1ZG8gdGVlIC9l' >> /tmp/updateinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'dGMvc3lzY29uZmlnL25ldHdvcmstc2NyaXB0cy9pZmNmZy1ldGgwCnN1ZG8g' >> /tmp/updateinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'Y3AgL2V0Yy9zeXNjb25maWcvbmV0d29yay1zY3JpcHRzL2lmY2ZnLWV0aDAg' >> /tmp/updateinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'L2V0Yy9zeXNjb25maWcvbmV0d29yay1zY3JpcHRzL2lmY2ZnLWV0aDEKc3Vk' >> /tmp/updateinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'byBjaG1vZCBhK3IgL2V0Yy9zeXNjb25maWcvbmV0d29yay1zY3JpcHRzL2lm' >> /tmp/updateinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'Y2ZnLWV0aDEKY2F0IC90bXAvaWZjZmctZXRoMSB8IHN1ZG8gdGVlIC9ldGMv' >> /tmp/updateinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'c3lzY29uZmlnL25ldHdvcmstc2NyaXB0cy9pZmNmZy1ldGgxCgo=' >> /tmp/updateinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/updateinterfaces.sh.base64 -out /tmp/updateinterfaces.sh Trying to execute file '/tmp/updateinterfaces.sh' on VM 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/chmod a+x /tmp/updateinterfaces.sh Trying to execute command on machine 'app-management-1': /tmp/updateinterfaces.sh Trying to create file '/tmp/refreshinterfaces.sh' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/refreshinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'IyEvYmluL2Jhc2gKc3VkbyBybSAvZXRjL3VkZXYvcnVsZXMuZC83MC1wZXJz' >> /tmp/refreshinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'aXN0ZW50LW5ldC5ydWxlcwpzdWRvIHVkZXZhZG0gdHJpZ2dlcgoK' >> /tmp/refreshinterfaces.sh.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/refreshinterfaces.sh.base64 -out /tmp/refreshinterfaces.sh Trying to execute file '/tmp/refreshinterfaces.sh' on VM 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/chmod a+x /tmp/refreshinterfaces.sh Trying to execute command on machine 'app-management-1': /tmp/refreshinterfaces.sh Trying to create file '/tmp/test.sh' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/test.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'IyEvYmluL2Jhc2gKc3VkbyBpZmRvd24gZXRoMApzdWRvIGlmZG93biBldGgx' >> /tmp/test.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'CnNsZWVwIDUKc3VkbyBpZnVwIGV0aDAKc3VkbyBpZnVwIGV0aDEgMjcuMC4w' >> /tmp/test.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'LjIKCg==' >> /tmp/test.sh.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/test.sh.base64 -out /tmp/test.sh Trying to execute file '/tmp/test.sh' on VM 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/chmod a+x /tmp/test.sh Trying to execute command on machine 'app-management-1': /tmp/test.sh Trying to create file '/tmp/stopfirewall.sh' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/stopfirewall.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'IyEvYmluL2Jhc2gKc3VkbyAvZXRjL2luaXQuZC9pcHRhYmxlcyBzdG9wCnN1' >> /tmp/stopfirewall.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'ZG8gY2hrY29uZmlnIGlwdGFibGVzIG9mZgoK' >> /tmp/stopfirewall.sh.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/stopfirewall.sh.base64 -out /tmp/stopfirewall.sh Trying to execute file '/tmp/stopfirewall.sh' on VM 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/chmod a+x /tmp/stopfirewall.sh Trying to execute command on machine 'app-management-1': /tmp/stopfirewall.sh Trying to create file '/tmp/adduser.sh' on machine 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/touch /tmp/adduser.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'IyEvYmluL2Jhc2gKc3VkbyB1c2VybW9kIC1hIC1HIHZib3hzZiAkKHdob2Ft' >> /tmp/adduser.sh.base64 Trying to execute command on machine 'app-management-1': /bin/bash -c echo 'aSkK' >> /tmp/adduser.sh.base64 Trying to execute command on machine 'app-management-1': /usr/bin/openssl enc -base64 -d -base64 -in /tmp/adduser.sh.base64 -out /tmp/adduser.sh Trying to execute file '/tmp/adduser.sh' on VM 'app-management-1' Trying to execute command on machine 'app-management-1': /bin/chmod a+x /tmp/adduser.sh Trying to execute command on machine 'app-management-1': /tmp/adduser.sh Attempting to access Management VM 27.0.0.2. Uploading files to 27.0.0.2. Launching agent on 27.0.0.2. Connecting to 27.0.0.2:22 Permanently added '27.0.0.2' (RSA) to the list of known hosts. Failed accessing management VM 27.0.0.2 Reason: SSH execution failed with exit code: 255: Operation failed. org.cloudifysource.esc.installer.InstallerException: SSH execution failed with exit code: 255 at org.cloudifysource.esc.installer.remoteExec.SshExecutor.execute(SshExecutor.java:74) at org.cloudifysource.esc.installer.AgentlessInstaller.remoteExecuteAgentOnServer(AgentlessInstaller.java:371) at org.cloudifysource.esc.installer.AgentlessInstaller.installOnMachineWithIP(AgentlessInstaller.java:236) at org.cloudifysource.esc.shell.installer.CloudGridAgentBootstrapper$1.call(CloudGridAgentBootstrapper.java:739) at org.cloudifysource.esc.shell.installer.CloudGridAgentBootstrapper$1.call(CloudGridAgentBootstrapper.java:734) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: Remote command execution failed with exit status 255 output: Checking script path script path is /home/vagrant/gs-files/upload Machine Architecture -- i686 Previous JAVA_HOME value -- Downloading JDK from http://repository.cloudifysource.org/com/oracle/java/1.6.0_32/jdk-6u32-linux-i586.bin Installing JDK Downloading cloudify installation from http://repository.cloudifysource.org/org/cloudifysource/2.6.0-5000-RELEASE/gigaspaces-cloudify-2.6.0-ga-b5000.tar.gz Updating environment script Setting privileged mode nohup: ignoring input and appending output to `nohup.out' cat nohup.out

Starting Non-Interactive Shell ant/gs-files/vbox-cloud.groovy 0 --verbose -auto-shutdown -cloud-file /home/vagr operation timed out waiting for management service to start : java.util.concurrent.TimeoutException: operation timed out waiting for management service to start at org.cloudifysource.shell.ConditionLatch.waitFor(ConditionLatch.java:146) at org.cloudifysource.shell.installer.ManagementSpaceServiceInstaller.waitForInstallation(ManagementSpaceServiceInstaller.java:225) at org.cloudifysource.shell.installer.LocalhostGridAgentBootstrapper.startManagementOnLocalhostAndWaitInternal(LocalhostGridAgentBootstrapper.java:985) at org.cloudifysource.shell.installer.LocalhostGridAgentBootstrapper.startManagementOnLocalhostAndWait(LocalhostGridAgentBootstrapper.java:405) at org.cloudifysource.shell.commands.StartManagement.doExecute(StartManagement.java:169) at org.cloudifysource.shell.commands.AbstractGSCommand.execute(AbstractGSCommand.java:101) 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:172) 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:126)

Failed starting management services : error code: 255

at org.cloudifysource.esc.util.SSHExec.executeCommand(SSHExec.java:366)
at org.cloudifysource.esc.util.SSHExec.execute(SSHExec.java:244)
at org.cloudifysource.esc.util.Utils.executeSSHCommand(Utils.java:151)
at org.cloudifysource.esc.installer.remoteExec.SshExecutor.execute(SshExecutor.java:55)
... 9 more

Unable to communicate with VirtualBox WebService, maybe disconnected. Trying to connect to http://127.0.0.1:18083 using login: Trying to stop VM '8da18dc5-5893-4c62-ad2e-818f0acc7c90' Could not unlock machine: VirtualBox error: The session is not locked (session state: Unlocked) (0x8000FFFF) Trying to destroy VM '8da18dc5-5893-4c62-ad2e-818f0acc7c90' SSH execution failed with exit code: 255 Operation failed. cloudify@default> Failed accessing management VM 27.0.0.3 Reason: SSH execution failed: Timeout period exceeded, connection dropped.: Operation failed. java.util.concurrent.TimeoutException: SSH execution failed: Timeout period exceeded, connection dropped. at org.cloudifysource.esc.installer.remoteExec.SshExecutor.execute(SshExecutor.java:65) at org.cloudifysource.esc.installer.AgentlessInstaller.remoteExecuteAgentOnServer(AgentlessInstaller.java:371) at org.cloudifysource.esc.installer.AgentlessInstaller.installOnMachineWithIP(AgentlessInstaller.java:236) at org.cloudifysource.esc.shell.installer.CloudGridAgentBootstrapper$1.call(CloudGridAgentBootstrapper.java:739) at org.cloudifysource.esc.shell.installer.CloudGridAgentBootstrapper$1.call(CloudGridAgentBootstrapper.java:734) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: Timeout period exceeded, connection dropped. at org.cloudifysource.esc.util.SSHExec.executeCommand(SSHExec.java:350) at org.cloudifysource.esc.util.SSHExec.execute(SSHExec.java:244) at org.cloudifysource.esc.util.Utils.executeSSHCommand(Utils.java:151) at org.cloudifysource.esc.installer.remoteExec.SshExecutor.execute(SshExecutor.java:55) ... 9 more

grozeille commented 11 years ago

Hi,

I can see that the VBox driver is working here: it was able to create the VM. Your error is in the bootstrap management process. Cloudify upload the "upload" folder, then execute the bootstrap-management.sh script. This script is responsible to download and install Java, download Cloudify, and start Cloudify.

I can see in your logs that it crashes when starting Cloudify.

Can you change the option "vbox.destroyMachines" to not destroy the VM in case of crash? Then, you can retrieve and attach the entire nohup.out and the cloudify logs.

carlosfrias commented 11 years ago

Cedric, this is very strange. I don't know why but I am still not getting any of your emails. I only get a notification when you post a comment here.

carlosfrias commented 11 years ago

grozielle, I followed your advice and retrieved the logs. I found the following in the ESM log:

2013-08-26 16:47:24,623 INFO [com.gigaspaces.start] -

GigaSpaces ServiceGrid starting using command

Log created by on Mon Aug 26 16:47:24 UTC 2013

2013-08-26 16:47:24,880 CONFIG [com.gigaspaces.start] - platformJARs file:/home/vagrant/gigaspaces/lib/required/commons-logging-1.1.1.jar file:/home/vagrant/gigaspaces/lib/required/gs-runtime.jar file:/home/vagrant/gigaspaces/lib/platform/jee/activation-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jee/geronimo-j2ee-connector_1.5_spec-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jee/transactions-jta-3.8.0.jar file:/home/vagrant/gigaspaces/lib/platform/xml/java-cup-11a-runtime.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xalan.jar file:/home/vagrant/gigaspaces/lib/platform/xml/org.eclipse.wst.xml.xpath2.processor_2.1.1.v201204260055.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xercesImpl.jar file:/home/vagrant/gigaspaces/lib/platform/xml/serializer.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xml-apis.jar file:/home/vagrant/gigaspaces/lib/../tools/groovy/embeddable/groovy-all-1.8.6.jar file:/home/vagrant/gigaspaces/lib/platform/jruby file:/home/vagrant/gigaspaces/lib/platform/ext file:/home/vagrant/gigaspaces/lib/platform/ant/jakarta-oro-2.0.8.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-launcher-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-commons-net-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/ant/commons-net-1.4.0.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/geronimo-jpa_2.0_spec-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/geronimo-jta_1.1_spec-1.1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/openjpa-2.0.1.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-dbcp-1.2.1.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-collections-3.2.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-pool-1.4.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-lang-2.3.jar file:/home/vagrant/gigaspaces/lib/platform/scala/lib 2013-08-26 16:47:24,933 INFO [com.gigaspaces.start] - JMXServiceURL=service:jmx:rmi:///jndi/rmi://27.0.0.2:10101/jmxrmi 2013-08-26 16:47:25,011 INFO [com.gigaspaces.start] - JMX Platform MBeanServer exported with RMI Connector, creation time [77] millis 2013-08-26 16:47:25,017 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-jms-3.1.3.RELEASE.jar to ClassPath 2013-08-26 16:47:25,019 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-oxm-3.1.3.RELEASE.jar to ClassPath 2013-08-26 16:47:25,019 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-orm-3.1.3.RELEASE.jar to ClassPath 2013-08-26 16:47:25,019 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-jdbc-3.1.3.RELEASE.jar to ClassPath 2013-08-26 16:47:25,020 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/com.springsource.net.sf.cglib-2.2.0.jar to ClassPath 2013-08-26 16:47:25,020 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-webmvc-3.1.3.RELEASE.jar to ClassPath 2013-08-26 16:47:25,020 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-web-3.1.3.RELEASE.jar to ClassPath 2013-08-26 16:47:25,020 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/security/spring-security-core-3.0.7.RELEASE.jar to ClassPath 2013-08-26 16:47:25,791 ESM INFO [org.openspaces.grid.esm.ESMImplInitializer] - Waiting to discover at least one lookup service. 2013-08-26 16:47:25,802 ESM INFO [org.openspaces.grid.esm.ESMImplInitializer] - Waiting 20 seconds for all grid components to register with lookup service 2013-08-26 16:47:45,819 ESM INFO [org.openspaces.grid.esm] - Waiting to discover one ESM 2013-08-26 16:47:45,995 ESM INFO [org.openspaces.grid.esm] - Starting ESM ... 2013-08-26 16:47:46,092 ESM INFO [org.jini.rio.jsb] - Service-Id: [8fdbbaf3-b61a-4f3c-8d3a-4fc7ed9b9090] 2013-08-26 16:47:46,093 ESM INFO [org.openspaces.grid.esm] - ESM started successfully with groups [gigaspaces-Cloudify-2.6.0-ga] and locators [jini://27.0.0.2:4174/] 2013-08-26 16:47:50,821 ESM INFO [org.openspaces.grid.esm] - ESM is now listening for Processing Unit events 2013-08-26 16:47:56,954 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [cloudifyManagementSpace] properties: {at-most-one-container-per-machine=true} 2013-08-26 16:47:56,975 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [cloudifyManagementSpace] minNumberOfMachines=1 (since max instances from same partition per machine is not defined) 2013-08-26 16:47:56,985 ESM INFO [org.openspaces.grid.esm] - Elastic properties for pu cloudifyManagementSpace are being enforced. 2013-08-26 16:47:56,987 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [cloudifyManagementSpace] recovering state on ESM start. 2013-08-26 16:47:57,001 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [cloudifyManagementSpace] recovered state on ESM start. 2013-08-26 16:47:57,037 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [cloudifyManagementSpace] machines SLA enforcement completed. 2013-08-26 16:47:57,044 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [cloudifyManagementSpace] agents SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 16:47:57,046 ESM WARNING [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [cloudifyManagementSpace] Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{}; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 16:47:57,046 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [cloudifyManagementSpace] scale SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 16:48:13,975 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [webui] properties: {at-most-one-container-per-machine=true} 2013-08-26 16:48:13,976 ESM INFO [org.openspaces.grid.esm] - Elastic properties for pu webui are being enforced. 2013-08-26 16:48:13,976 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [webui] recovering state on ESM start. 2013-08-26 16:48:13,977 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [webui] recovered state on ESM start. 2013-08-26 16:48:13,981 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [webui] machines SLA enforcement completed. 2013-08-26 16:48:13,981 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [webui] agents SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 16:48:13,981 ESM WARNING [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [webui] Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{}; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 16:48:13,981 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [webui] scale SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 16:48:17,011 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [rest] properties: {at-most-one-container-per-machine=true} 2013-08-26 16:48:17,012 ESM INFO [org.openspaces.grid.esm] - Elastic properties for pu rest are being enforced. 2013-08-26 16:48:17,012 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [rest] recovering state on ESM start. 2013-08-26 16:48:17,013 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [rest] recovered state on ESM start. 2013-08-26 16:48:17,017 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [rest] machines SLA enforcement completed. 2013-08-26 16:48:17,018 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [rest] agents SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 16:48:17,018 ESM WARNING [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [rest] Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{}; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 16:48:17,018 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [rest] scale SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{}

grozeille commented 11 years ago

OK, so ESM is waiting for a USM available to deploy the Cloudify Manager, which should be started in the same time as the ESM.

Can you send all logs in a zip file? Including the log folder, and the nohup.out? Also can you send the output of ps faux | grep java ?

carlosfrias commented 11 years ago

app-management-1

Rename it to .tar.gz before extracting the logs.

carlosfrias commented 11 years ago

2013-08-26 18:36:13,889 INFO [com.gigaspaces.start] -

GigaSpaces ServiceGrid starting using command <com.gigaspaces.start.services="GSA",gsa.global.lus,0,gsa.lus,1,gsa.gsc,0,gsa.global.gsm,0,gsa.gsm,1,gsa.global.esm,1>

Log created by on Mon Aug 26 18:36:13 UTC 2013

2013-08-26 18:36:14,080 CONFIG [com.gigaspaces.start] - platformJARs file:/home/vagrant/gigaspaces/lib/required/commons-logging-1.1.1.jar file:/home/vagrant/gigaspaces/lib/required/gs-runtime.jar file:/home/vagrant/gigaspaces/lib/platform/jee/activation-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jee/geronimo-j2ee-connector_1.5_spec-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jee/transactions-jta-3.8.0.jar file:/home/vagrant/gigaspaces/lib/platform/xml/java-cup-11a-runtime.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xalan.jar file:/home/vagrant/gigaspaces/lib/platform/xml/org.eclipse.wst.xml.xpath2.processor_2.1.1.v201204260055.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xercesImpl.jar file:/home/vagrant/gigaspaces/lib/platform/xml/serializer.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xml-apis.jar file:/home/vagrant/gigaspaces/lib/../tools/groovy/embeddable/groovy-all-1.8.6.jar file:/home/vagrant/gigaspaces/lib/platform/jruby file:/home/vagrant/gigaspaces/lib/platform/ext file:/home/vagrant/gigaspaces/lib/platform/ant/jakarta-oro-2.0.8.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-launcher-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-commons-net-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/ant/commons-net-1.4.0.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/geronimo-jpa_2.0_spec-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/geronimo-jta_1.1_spec-1.1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/openjpa-2.0.1.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-dbcp-1.2.1.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-collections-3.2.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-pool-1.4.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-lang-2.3.jar file:/home/vagrant/gigaspaces/lib/platform/scala/lib 2013-08-26 18:36:14,137 INFO [com.gigaspaces.start] - JMXServiceURL=service:jmx:rmi:///jndi/rmi://27.0.0.2:10098/jmxrmi 2013-08-26 18:36:14,225 INFO [com.gigaspaces.start] - JMX Platform MBeanServer exported with RMI Connector, creation time [88] millis 2013-08-26 18:36:14,226 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-jms-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:14,226 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-oxm-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:14,227 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-orm-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:14,227 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-jdbc-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:14,227 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/com.springsource.net.sf.cglib-2.2.0.jar to ClassPath 2013-08-26 18:36:14,227 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-webmvc-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:14,227 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-web-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:14,227 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/security/spring-security-core-3.0.7.RELEASE.jar to ClassPath 2013-08-26 18:36:14,539 GSA INFO [com.gigaspaces.grid.gsa] - Starting GSA ... 2013-08-26 18:36:14,583 GSA INFO [com.gigaspaces.grid.gsa] - GSA will use discovery groups [gigaspaces-Cloudify-2.6.0-ga] and locators [jini://27.0.0.2:4174/] 2013-08-26 18:36:14,641 GSA WARNING [net.jini.discovery.LookupLocatorDiscovery] - Failed to connect to LUS on 27.0.0.2:4174, retry in 5016ms; Caused by: java.net.ConnectException: Connection refused 2013-08-26 18:36:14,879 GSA INFO [com.gigaspaces.grid.gsa] - Starting [1] of [lus] 2013-08-26 18:36:14,883 GSA INFO [com.gigaspaces.grid.gsa] - [lus][1/]: Starting with command [/home/vagrant/gigaspaces//bin/startJiniLUS.sh] 2013-08-26 18:36:14,899 GSA INFO [com.gigaspaces.grid.gsa] - Starting [1] of [gsm] 2013-08-26 18:36:14,900 GSA INFO [com.gigaspaces.grid.gsa] - [gsm][2/]: Starting with command [/home/vagrant/gigaspaces//bin/gsm_nolus.sh] 2013-08-26 18:36:14,904 GSA INFO [com.gigaspaces.grid.gsa] - GSA will globally manage [1] of service [esm] 2013-08-26 18:36:14,904 GSA INFO [com.gigaspaces.grid.gsa] - GSA will use an interval of [1] seconds to monitor processes 2013-08-26 18:36:14,906 GSA INFO [com.gigaspaces.grid.gsa] - GSA will check for global managed instances every [10] seconds, with randomized initial delay of [15] seconds out of [30] seconds 2013-08-26 18:36:15,112 INFO [org.jini.rio.jsb] - Service-Id: [7af0cb8a-ec38-486f-bc45-b8a99bc7d905] 2013-08-26 18:36:15,112 INFO [com.gigaspaces.grid.gsa] - GSA started successfully with groups [gigaspaces-Cloudify-2.6.0-ga] and locators [jini://27.0.0.2:4174/] 2013-08-26 18:36:15,806 GSA INFO [com.gigaspaces.grid.gsa] - [lus][1/2372]: Assigned process id 2013-08-26 18:36:15,814 GSA INFO [com.gigaspaces.grid.gsa] - [gsm][2/2375]: Assigned process id 2013-08-26 18:36:29,924 GSA INFO [com.gigaspaces.grid.gsa] - [esm][3/]: Global instances (0) breached, adding instance... 2013-08-26 18:36:29,925 GSA INFO [com.gigaspaces.grid.gsa] - [esm][3/]: Starting with command [/home/vagrant/gigaspaces//bin/esm.sh] 2013-08-26 18:36:30,775 GSA INFO [com.gigaspaces.grid.gsa] - [esm][3/2572]: Assigned process id

carlosfrias commented 11 years ago

2013-08-26 18:36:15,570 INFO [com.gigaspaces.start] -

GigaSpaces ServiceGrid starting using command

Log created by on Mon Aug 26 18:36:15 UTC 2013

2013-08-26 18:36:15,979 CONFIG [com.gigaspaces.start] - platformJARs file:/home/vagrant/gigaspaces/lib/required/commons-logging-1.1.1.jar file:/home/vagrant/gigaspaces/lib/required/gs-runtime.jar file:/home/vagrant/gigaspaces/lib/platform/jee/activation-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jee/geronimo-j2ee-connector_1.5_spec-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jee/transactions-jta-3.8.0.jar file:/home/vagrant/gigaspaces/lib/platform/xml/java-cup-11a-runtime.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xalan.jar file:/home/vagrant/gigaspaces/lib/platform/xml/org.eclipse.wst.xml.xpath2.processor_2.1.1.v201204260055.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xercesImpl.jar file:/home/vagrant/gigaspaces/lib/platform/xml/serializer.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xml-apis.jar file:/home/vagrant/gigaspaces/lib/../tools/groovy/embeddable/groovy-all-1.8.6.jar file:/home/vagrant/gigaspaces/lib/platform/jruby file:/home/vagrant/gigaspaces/lib/platform/ext file:/home/vagrant/gigaspaces/lib/platform/ant/jakarta-oro-2.0.8.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-launcher-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-commons-net-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/ant/commons-net-1.4.0.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/geronimo-jpa_2.0_spec-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/geronimo-jta_1.1_spec-1.1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/openjpa-2.0.1.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-dbcp-1.2.1.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-collections-3.2.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-pool-1.4.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-lang-2.3.jar file:/home/vagrant/gigaspaces/lib/platform/scala/lib 2013-08-26 18:36:16,017 CONFIG [com.gigaspaces.start] - Webster created on http://27.0.0.2:6666, roots : /home/vagrant/gigaspaces/lib/;/home/vagrant/gigaspaces/lib/required/;/home/vagrant/gigaspaces/deploy 2013-08-26 18:36:16,123 INFO [com.gigaspaces.start] - JMXServiceURL=service:jmx:rmi:///jndi/rmi://27.0.0.2:10100/jmxrmi 2013-08-26 18:36:16,316 INFO [com.gigaspaces.start] - JMX Platform MBeanServer exported with RMI Connector, creation time [188] millis 2013-08-26 18:36:16,317 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-jms-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:16,317 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-oxm-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:16,318 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-orm-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:16,318 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-jdbc-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:16,318 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/com.springsource.net.sf.cglib-2.2.0.jar to ClassPath 2013-08-26 18:36:16,318 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-webmvc-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:16,318 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-web-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:16,318 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/security/spring-security-core-3.0.7.RELEASE.jar to ClassPath 2013-08-26 18:36:18,383 GSM INFO [com.gigaspaces.grid.gsm] -

System Environment: System: OS Name: Linux OS Version: 3.2.0-23-generic Architecture: amd64 Number Of Processors: 1 JVM Details: Java Version: 1.6.0_32, Sun Microsystems Inc. Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_32-b05) Java VM: Java HotSpot(TM) 64-Bit Server VM 20.7-b02, Sun Microsystems Inc. Java Home: /home/vagrant/java/jre JVM Memory: Max Heap Size (KB): 126720 Current Allocated Heap Size (KB): 113088 Network Interfaces Information: Host Name: [app-management-1] Network Interface Name: eth1 / eth1 IP Address: fe80:0:0:0:a00:27ff:fe28:2bb5%3 IP Address: 27.0.0.2 Network Interface Name: eth0 / eth0 IP Address: fe80:0:0:0:a00:27ff:fe15:eb88%2 IP Address: 10.0.2.15 Network Interface Name: lo / lo IP Address: 0:0:0:0:0:0:0:1%1 IP Address: 127.0.0.1 Zones: [management] Process Id: 2375 Managed by GSA with Id: 2 GigaSpaces Cloudify: Edition: Cloudify 2.6.0 GA (compatible with XAP 9.6.0) Build: 5000 Home: /home/vagrant/gigaspaces/

2013-08-26 18:36:18,393 GSM INFO [com.gigaspaces.grid.gsm.peer] - A backup GSM has not yet been discovered. To ensure high availability, make sure that another GSM is running. 2013-08-26 18:36:18,495 INFO [org.jini.rio.jsb] - Service-Id: [44cb87bd-eefd-4129-b4b4-eeb9219f43a9] 2013-08-26 18:36:18,496 INFO [com.gigaspaces.grid.gsm] - GSM started successfully with groups [gigaspaces-Cloudify-2.6.0-ga] and locators [jini://27.0.0.2:4174/] 2013-08-26 18:37:02,787 GSM INFO [com.gigaspaces.grid.gsm] - Deploying cloudifyManagementSpace 2013-08-26 18:37:02,830 GSM WARNING [com.gigaspaces.grid.gsm] - A GSC could not be obtained to provision [cloudifyManagementSpace [1]], count [0] 2013-08-26 18:37:02,831 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [cloudifyManagementSpace [1]] until an available GSC is obtained, and all dependencies are met. 2013-08-26 18:37:49,008 GSM INFO [com.gigaspaces.grid.gsm] - Deploying webui 2013-08-26 18:37:49,027 GSM WARNING [com.gigaspaces.grid.gsm] - A GSC could not be obtained to provision [webui [1]], count [0] 2013-08-26 18:37:49,027 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [webui [1]] until an available GSC is obtained, and all dependencies are met. 2013-08-26 18:37:53,365 GSM INFO [com.gigaspaces.grid.gsm] - Deploying rest 2013-08-26 18:37:53,384 GSM WARNING [com.gigaspaces.grid.gsm] - Could not meet required dependencies of: [rest [1]] reasons: {waitForDeploymentToComplete=false, minimumNumberOfDeployedInstances=0, name=cloudifyManagementSpace, minimumNumberOfDeployedInstancesPerPartition=1} 2013-08-26 18:37:53,384 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [rest [1]] until an available GSC is obtained, and all dependencies are met.

carlosfrias commented 11 years ago

2013-08-26 18:36:30,586 INFO [com.gigaspaces.start] -

GigaSpaces ServiceGrid starting using command

Log created by on Mon Aug 26 18:36:30 UTC 2013

2013-08-26 18:36:30,881 CONFIG [com.gigaspaces.start] - platformJARs file:/home/vagrant/gigaspaces/lib/required/commons-logging-1.1.1.jar file:/home/vagrant/gigaspaces/lib/required/gs-runtime.jar file:/home/vagrant/gigaspaces/lib/platform/jee/activation-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jee/geronimo-j2ee-connector_1.5_spec-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jee/transactions-jta-3.8.0.jar file:/home/vagrant/gigaspaces/lib/platform/xml/java-cup-11a-runtime.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xalan.jar file:/home/vagrant/gigaspaces/lib/platform/xml/org.eclipse.wst.xml.xpath2.processor_2.1.1.v201204260055.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xercesImpl.jar file:/home/vagrant/gigaspaces/lib/platform/xml/serializer.jar file:/home/vagrant/gigaspaces/lib/platform/xml/xml-apis.jar file:/home/vagrant/gigaspaces/lib/../tools/groovy/embeddable/groovy-all-1.8.6.jar file:/home/vagrant/gigaspaces/lib/platform/jruby file:/home/vagrant/gigaspaces/lib/platform/ext file:/home/vagrant/gigaspaces/lib/platform/ant/jakarta-oro-2.0.8.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-launcher-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-commons-net-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/ant/commons-net-1.4.0.jar file:/home/vagrant/gigaspaces/lib/platform/ant/ant-1.8.3.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/geronimo-jpa_2.0_spec-1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/geronimo-jta_1.1_spec-1.1.1.jar file:/home/vagrant/gigaspaces/lib/platform/jpa/openjpa-2.0.1.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-dbcp-1.2.1.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-collections-3.2.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-pool-1.4.jar file:/home/vagrant/gigaspaces/lib/platform/commons/commons-lang-2.3.jar file:/home/vagrant/gigaspaces/lib/platform/scala/lib 2013-08-26 18:36:30,943 INFO [com.gigaspaces.start] - JMXServiceURL=service:jmx:rmi:///jndi/rmi://27.0.0.2:10101/jmxrmi 2013-08-26 18:36:31,040 INFO [com.gigaspaces.start] - JMX Platform MBeanServer exported with RMI Connector, creation time [96] millis 2013-08-26 18:36:31,047 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-jms-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:31,047 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-oxm-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:31,047 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-orm-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:31,047 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-jdbc-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:31,048 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/com.springsource.net.sf.cglib-2.2.0.jar to ClassPath 2013-08-26 18:36:31,048 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-webmvc-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:31,049 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/spring/spring-web-3.1.3.RELEASE.jar to ClassPath 2013-08-26 18:36:31,049 INFO [com.gigaspaces.start] - Adding /home/vagrant/gigaspaces/lib/optional/security/spring-security-core-3.0.7.RELEASE.jar to ClassPath 2013-08-26 18:36:31,882 ESM INFO [org.openspaces.grid.esm.ESMImplInitializer] - Waiting to discover at least one lookup service. 2013-08-26 18:36:31,883 ESM INFO [org.openspaces.grid.esm.ESMImplInitializer] - Waiting 20 seconds for all grid components to register with lookup service 2013-08-26 18:36:51,897 ESM INFO [org.openspaces.grid.esm] - Waiting to discover one ESM 2013-08-26 18:36:52,052 ESM INFO [org.openspaces.grid.esm] - Starting ESM ... 2013-08-26 18:36:52,163 ESM INFO [org.jini.rio.jsb] - Service-Id: [6c766bf1-63a0-45cd-a82b-5f7f28e946d1] 2013-08-26 18:36:52,164 ESM INFO [org.openspaces.grid.esm] - ESM started successfully with groups [gigaspaces-Cloudify-2.6.0-ga] and locators [jini://27.0.0.2:4174/] 2013-08-26 18:36:56,901 ESM INFO [org.openspaces.grid.esm] - ESM is now listening for Processing Unit events 2013-08-26 18:37:03,056 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [cloudifyManagementSpace] properties: {at-most-one-container-per-machine=true} 2013-08-26 18:37:03,062 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [cloudifyManagementSpace] minNumberOfMachines=1 (since max instances from same partition per machine is not defined) 2013-08-26 18:37:03,071 ESM INFO [org.openspaces.grid.esm] - Elastic properties for pu cloudifyManagementSpace are being enforced. 2013-08-26 18:37:03,072 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [cloudifyManagementSpace] recovering state on ESM start. 2013-08-26 18:37:03,081 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [cloudifyManagementSpace] recovered state on ESM start. 2013-08-26 18:37:03,092 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [cloudifyManagementSpace] machines SLA enforcement completed. 2013-08-26 18:37:03,093 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [cloudifyManagementSpace] agents SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 18:37:03,095 ESM WARNING [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [cloudifyManagementSpace] Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{}; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 18:37:03,095 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [cloudifyManagementSpace] scale SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 18:37:49,200 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [webui] properties: {at-most-one-container-per-machine=true} 2013-08-26 18:37:49,209 ESM INFO [org.openspaces.grid.esm] - Elastic properties for pu webui are being enforced. 2013-08-26 18:37:49,209 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [webui] recovering state on ESM start. 2013-08-26 18:37:49,210 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [webui] recovered state on ESM start. 2013-08-26 18:37:49,217 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [webui] machines SLA enforcement completed. 2013-08-26 18:37:49,218 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [webui] agents SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 18:37:49,219 ESM WARNING [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [webui] Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{}; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 18:37:49,221 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [webui] scale SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 18:37:54,224 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [rest] properties: {at-most-one-container-per-machine=true} 2013-08-26 18:37:54,225 ESM INFO [org.openspaces.grid.esm] - Elastic properties for pu rest are being enforced. 2013-08-26 18:37:54,225 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [rest] recovering state on ESM start. 2013-08-26 18:37:54,226 ESM INFO [org.openspaces.grid.gsm.strategy.EagerScaleStrategyBean] - [rest] recovered state on ESM start. 2013-08-26 18:37:54,229 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [rest] machines SLA enforcement completed. 2013-08-26 18:37:54,229 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [rest] agents SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 18:37:54,229 ESM WARNING [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [rest] Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{}; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{} 2013-08-26 18:37:54,229 ESM INFO [org.openspaces.grid.gsm.strategy.ScaleStrategyProgressEventState] - [rest] scale SLA enforcement is in progress.; Caused by: org.openspaces.grid.gsm.machines.exceptions.NeedToStartMoreGridServiceAgentsException: Cannot enforce Machines SLA since there are not enough machines available. Need more capacity: 1 machines. Capacity Report of all relevant machines:. restricted machines:{}

carlosfrias commented 11 years ago

java.out:

vagrant 1716 10.1 0.2 33180 2156 pts/1 S+ 18:32 0:02 | _ wget -q -O /home/vagrant/gs-files/upload/java.bin http://repository.cloudifysource.org/com/oracle/java/1.6.0_32/jdk-6u32-linux-x64.bin vagrant 1864 0.0 0.0 11676 932 pts/2 S+ 18:32 0:00 _ grep --color=auto java

carlosfrias commented 11 years ago

Hi grozelle,

I posted each file in the comments since I wasn't sure the way I posted the tarball would work for you. Let me know if I should do something else.