You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Pattabi Ayyasami <pa...@Brocade.com> on 2013/01/18 07:12:15 UTC

Setting Up CloudStack Dev Environment on Windows

Hi,

I followed the instructions on setting up the Cloud Stack Dev Environment on Windows.
I was able to install all the needed tools/packages, build the source code successfully.

However, while trying to start the Management Server on the local Jetty Server from cygwin window, I am getting the following error on executing script.

WARN  [utils.script.Script] (main:) Exception: /usr/local/bin/bash -c echo ~scvmm
java.io.IOException: Cannot run program "/usr/local/bin/bash": CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(Unknown Source)
        at com.cloud.utils.script.Script.execute(Script.java:184)

....
....
ERROR [cloud.servlet.CloudStartupServlet] (main:) Exception starting management server
com.cloud.utils.exception.CloudRuntimeException: Cannot get home directory for account: scvmm

Any help on how to fix/workaround this issue is greatly appreciated.

Regards,
Pattabi

RE: Setting Up CloudStack Dev Environment on Windows

Posted by Animesh Chaturvedi <an...@citrix.com>.
I added a troubleshooting section to Windows Dev Environment wiki page and added these notes

> -----Original Message-----
> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> Sent: Tuesday, January 22, 2013 9:36 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: Setting Up CloudStack Dev Environment on Windows
> 
> Pattabi,
> 
> I know this problem and sorry I didn't respond earlier.
> 
> This is due to the problem that Dave Cahill brought up about my fix breaking
> kvm and Marcus helped revert.  The problem is that the windows
> environment just don't go through key generation and cloudstack works fine.
> So my fix for it was if developer=true in the configuration table, then don't
> do key generation but it breaks KVM.   The revert causes this to break for
> windows again.
> 
> To work around it for now, just run this in mysql.  This changes the developer
> mode to false which combined with a non 'cloud' username will skip the key
> generation.  As long as you're not using kvm, cloudstack will run fine.  If
> you're running windows and kvm, then you need to think of a better
> solution.
> 
> Update configuration set value='false' where key='developer';
> 
> --Alex
> 
> 
> 
> > -----Original Message-----
> > From: Chip Childers [mailto:chip.childers@sungard.com]
> > Sent: Tuesday, January 22, 2013 6:25 AM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: Re: Setting Up CloudStack Dev Environment on Windows
> >
> > On Fri, Jan 18, 2013 at 1:12 AM, Pattabi Ayyasami
> > <pa...@brocade.com>
> > wrote:
> > > Hi,
> > >
> > > I followed the instructions on setting up the Cloud Stack Dev
> > > Environment
> > on Windows.
> > > I was able to install all the needed tools/packages, build the
> > > source code
> > successfully.
> > >
> > > However, while trying to start the Management Server on the local
> > > Jetty
> > Server from cygwin window, I am getting the following error on
> > executing script.
> > >
> > > WARN  [utils.script.Script] (main:) Exception: /usr/local/bin/bash
> > > -c echo
> > ~scvmm
> > > java.io.IOException: Cannot run program "/usr/local/bin/bash":
> > CreateProcess error=2, The system cannot find the file specified
> > >         at java.lang.ProcessBuilder.start(Unknown Source)
> > >         at com.cloud.utils.script.Script.execute(Script.java:184)
> > >
> > > ....
> > > ....
> > > ERROR [cloud.servlet.CloudStartupServlet] (main:) Exception starting
> > management server
> > > com.cloud.utils.exception.CloudRuntimeException: Cannot get home
> > directory for account: scvmm
> > >
> > > Any help on how to fix/workaround this issue is greatly appreciated.
> > >
> > > Regards,
> > > Pattabi
> > >
> >
> > Can you check if your bash executable is in the /usr/local/bin/bash
> > location within cygwin?  If it isn't, can you create a sym-link from
> > that location to the correct location?
> >
> > -chip

RE: Setting Up CloudStack Dev Environment on Windows

Posted by Alex Huang <Al...@citrix.com>.
Pattabi,

I know this problem and sorry I didn't respond earlier.

This is due to the problem that Dave Cahill brought up about my fix breaking kvm and Marcus helped revert.  The problem is that the windows environment just don't go through key generation and cloudstack works fine.  So my fix for it was if developer=true in the configuration table, then don't do key generation but it breaks KVM.   The revert causes this to break for windows again.

To work around it for now, just run this in mysql.  This changes the developer mode to false which combined with a non 'cloud' username will skip the key generation.  As long as you're not using kvm, cloudstack will run fine.  If you're running windows and kvm, then you need to think of a better solution.

Update configuration set value='false' where key='developer';

--Alex



> -----Original Message-----
> From: Chip Childers [mailto:chip.childers@sungard.com]
> Sent: Tuesday, January 22, 2013 6:25 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: Setting Up CloudStack Dev Environment on Windows
> 
> On Fri, Jan 18, 2013 at 1:12 AM, Pattabi Ayyasami <pa...@brocade.com>
> wrote:
> > Hi,
> >
> > I followed the instructions on setting up the Cloud Stack Dev Environment
> on Windows.
> > I was able to install all the needed tools/packages, build the source code
> successfully.
> >
> > However, while trying to start the Management Server on the local Jetty
> Server from cygwin window, I am getting the following error on executing
> script.
> >
> > WARN  [utils.script.Script] (main:) Exception: /usr/local/bin/bash -c echo
> ~scvmm
> > java.io.IOException: Cannot run program "/usr/local/bin/bash":
> CreateProcess error=2, The system cannot find the file specified
> >         at java.lang.ProcessBuilder.start(Unknown Source)
> >         at com.cloud.utils.script.Script.execute(Script.java:184)
> >
> > ....
> > ....
> > ERROR [cloud.servlet.CloudStartupServlet] (main:) Exception starting
> management server
> > com.cloud.utils.exception.CloudRuntimeException: Cannot get home
> directory for account: scvmm
> >
> > Any help on how to fix/workaround this issue is greatly appreciated.
> >
> > Regards,
> > Pattabi
> >
> 
> Can you check if your bash executable is in the /usr/local/bin/bash
> location within cygwin?  If it isn't, can you create a sym-link from
> that location to the correct location?
> 
> -chip

Re: Setting Up CloudStack Dev Environment on Windows

Posted by Chip Childers <ch...@sungard.com>.
On Fri, Jan 18, 2013 at 1:12 AM, Pattabi Ayyasami <pa...@brocade.com> wrote:
> Hi,
>
> I followed the instructions on setting up the Cloud Stack Dev Environment on Windows.
> I was able to install all the needed tools/packages, build the source code successfully.
>
> However, while trying to start the Management Server on the local Jetty Server from cygwin window, I am getting the following error on executing script.
>
> WARN  [utils.script.Script] (main:) Exception: /usr/local/bin/bash -c echo ~scvmm
> java.io.IOException: Cannot run program "/usr/local/bin/bash": CreateProcess error=2, The system cannot find the file specified
>         at java.lang.ProcessBuilder.start(Unknown Source)
>         at com.cloud.utils.script.Script.execute(Script.java:184)
>
> ....
> ....
> ERROR [cloud.servlet.CloudStartupServlet] (main:) Exception starting management server
> com.cloud.utils.exception.CloudRuntimeException: Cannot get home directory for account: scvmm
>
> Any help on how to fix/workaround this issue is greatly appreciated.
>
> Regards,
> Pattabi
>

Can you check if your bash executable is in the /usr/local/bin/bash
location within cygwin?  If it isn't, can you create a sym-link from
that location to the correct location?

-chip