You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Maria Beckham <ma...@yahoo.com> on 2014/06/23 23:05:09 UTC

Error during stratos setup apache-stratos-4.0.0

Hi All,

I am getting the below error when running 

sudo ./setup.sh -p "default" -s


Configuring the Cloud Controller
In repository/conf/cloud-controller.xml
/opt/stratos/apache-stratos-default /opt/stratos-installer
sed: -e expression #1, char 32: unknown option to `s'

Please provide resolution or work around ASAP as I am stuck now.

thanks,

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
I have put it as localhost. But, still same issue.

Has anybody tried installing strator-4.0.0 on one node?


________________________________
 From: Isuru Perera <is...@wso2.com>
To: Maria Beckham <ma...@yahoo.com> 
Cc: dev <de...@stratos.apache.org> 
Sent: Monday, June 23, 2014 4:00 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


wait. It's "access denied" error. So, I guess it shouldn't be a problem with connection. 






On Mon, Jun 23, 2014 at 3:58 PM, Isuru Perera <is...@wso2.com> wrote:

That's fine. Did you check which IP address is MySQL is bound to? AFAIR, it's binding to localhost. When you use IP, I think it's unable to connect. Is it possible for you to use localhost and see?
>
>
>
>
>On Mon, Jun 23, 2014 at 3:51 PM, Maria Beckham <ma...@yahoo.com> wrote:
>
>I mean installing entire stratos product including mysql except for cartridge agent which will be on another machine
>>
>>
>>
>>________________________________
>> 
>>From: Maria Beckham <ma...@yahoo.com>
>>To: Isuru Perera <is...@wso2.com>; dev <de...@stratos.apache.org> 
>>Sent: Monday, June 23, 2014 3:49 PM
>>
>>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>>
>>
>>I am installing everything on one machine and its ip is 10.9.20.116 as mentioned below in db_hostname
>>
>>
>>
>>
>>
>>
>>________________________________
>> From: Isuru Perera <is...@wso2.com>
>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
>>Sent: Monday, June 23, 2014 3:44 PM
>>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> 
>>
>>
>>Do you have the database in a different node? You might also want to check whether root user can access remotely.
>>
>>
>>
>>
>>
>>
>>
>>On Mon, Jun 23, 2014 at 3:39 PM, Maria Beckham <ma...@yahoo.com> wrote:
>>
>>I think so. I have provided the info as follows in the setup.conf as per installation guide.
>>>
>>>
>>>xport userstore_db_hostname="10.9.20.116"
>>>export userstore_db_schema="userstore"
>>>export userstore_db_port="3306"
>>>export userstore_db_user="root"
>>>export userstore_db_pass="root"
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>________________________________
>>> From: Isuru Perera <is...@wso2.com>
>>>
>>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
>>>Sent: Monday, June 23, 2014 3:34 PM
>>>
>>>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>>
>>>
>>>The setup is failing when trying to create required databases.
>>>
>>>Have you configured MySQL credentials correctly?
>>>
>>>
>>>
>>>
>>>On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com> wrote:
>>>
>>>Also, another error now.
>>>>
>>>>
>>>>Creating userstore database
>>>>/opt/stratos-installer/resources /opt/stratos-installer
>>>>/opt/stratos-installer
>>>>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
>>>>
>>>>
>>>>
>>>>Workaround or resolution pls?
>>>>
>>>>
>>>>
>>>>________________________________
>>>> From: chris snow <ch...@gmail.com>
>>>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
>>>>Sent: Monday, June 23, 2014 2:17 PM
>>>>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>> 
>>>>
>>>>Hi Maria,
>>>>
>>>>It looks like it is falling over just after this line: [1]
>>>>
>>>>If you change the script for your Iaas from:
>>>>
>>>>./ec2.sh $stratos_extract_path
>>>>to
>>>>bash -x ./ec2.sh $stratos_extract_path
>>>>
>>>>Then run the script again, this will give you some debug output which
>>>>will hopefully identify the sed statement that is struggling, for
>>>>example [2]
>>>>
>>>>Please let me know which sed script is failing.
>>>>
>>>>Be careful not to post the output of running 'bash -x ...' to the
>>>>mailing list because it may contain your IaaS credentials.
>>>>
>>>>Many thanks,
>>>>
>>>>Chris
>>>>
>>>>---
>>>>[1] https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>>>>[2] https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>>>
>>>>
>>>>On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>>>><ma...@yahoo.com> wrote:
>>>>> Hi All,
>>>>>
>>>>> I am getting the below error when running
>>>>>
>>>>> sudo ./setup.sh -p "default" -s
>>>>>
>>>>>
>>>>> Configuring the Cloud Controller
>>>>> In repository/conf/cloud-controller.xml
>>>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>>>> sed: -e expression #1, char 32: unknown option to `s'
>>>>>
>>>>> Please provide resolution or work around ASAP as I am stuck now.
>>>>>
>>>>> thanks,
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>-- 
>>>
>>>Isuru Perera
>>>Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>>Lean . Enterprise . Middleware
>>>
>>>about.me/chrishantha
>>>
>>>
>>
>>
>>-- 
>>
>>Isuru Perera
>>Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>Lean . Enterprise . Middleware
>>
>>about.me/chrishantha
>>
>>
>>
>>
>
>
>-- 
>
>Isuru Perera
>Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>Lean . Enterprise . Middleware
>
>about.me/chrishantha


-- 

Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Isuru Perera <is...@wso2.com>.
wait. It's "access denied" error. So, I guess it shouldn't be a problem
with connection.


On Mon, Jun 23, 2014 at 3:58 PM, Isuru Perera <is...@wso2.com> wrote:

> That's fine. Did you check which IP address is MySQL is bound to? AFAIR,
> it's binding to localhost. When you use IP, I think it's unable to connect.
> Is it possible for you to use localhost and see?
>
>
> On Mon, Jun 23, 2014 at 3:51 PM, Maria Beckham <ma...@yahoo.com>
> wrote:
>
>> I mean installing entire stratos product including mysql except for
>> cartridge agent which will be on another machine
>>
>>   ------------------------------
>>  *From:* Maria Beckham <ma...@yahoo.com>
>> *To:* Isuru Perera <is...@wso2.com>; dev <de...@stratos.apache.org>
>> *Sent:* Monday, June 23, 2014 3:49 PM
>>
>> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>>
>> I am installing everything on one machine and its ip is 10.9.20.116 as
>> mentioned below in db_hostname
>>
>>
>>
>>  ------------------------------
>>  *From:* Isuru Perera <is...@wso2.com>
>> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@yahoo.com>
>> *Sent:* Monday, June 23, 2014 3:44 PM
>> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Do you have the database in a different node? You might also want to
>> check whether root user can access remotely.
>>
>>
>>
>>
>> On Mon, Jun 23, 2014 at 3:39 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> I think so. I have provided the info as follows in the setup.conf as per
>> installation guide.
>>
>> xport userstore_db_hostname="10.9.20.116"
>> export userstore_db_schema="userstore"
>>  export userstore_db_port="3306"
>> export userstore_db_user="root"
>> export userstore_db_pass="root"
>>
>>
>>
>>
>>   ------------------------------
>>  *From:* Isuru Perera <is...@wso2.com>
>>
>> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@yahoo.com>
>> *Sent:* Monday, June 23, 2014 3:34 PM
>>
>> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>>
>> The setup is failing when trying to create required databases.
>>
>> Have you configured MySQL credentials correctly?
>>
>>
>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> Also, another error now.
>>
>> Creating userstore database
>> /opt/stratos-installer/resources /opt/stratos-installer
>> /opt/stratos-installer
>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> password: YES)
>>
>> Workaround or resolution pls?
>>
>>   ------------------------------
>>  *From:* chris snow <ch...@gmail.com>
>> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@yahoo.com>
>> *Sent:* Monday, June 23, 2014 2:17 PM
>> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> It looks like it is falling over just after this line: [1]
>>
>> If you change the script for your Iaas from:
>>
>> ./ec2.sh $stratos_extract_path
>> to
>> bash -x ./ec2.sh $stratos_extract_path
>>
>> Then run the script again, this will give you some debug output which
>> will hopefully identify the sed statement that is struggling, for
>> example [2]
>>
>> Please let me know which sed script is failing.
>>
>> Be careful not to post the output of running 'bash -x ...' to the
>> mailing list because it may contain your IaaS credentials.
>>
>> Many thanks,
>>
>> Chris
>>
>> ---
>> [1]
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> [2]
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>> > Hi All,
>> >
>> > I am getting the below error when running
>> >
>> > sudo ./setup.sh -p "default" -s
>> >
>> >
>> > Configuring the Cloud Controller
>> > In repository/conf/cloud-controller.xml
>> > /opt/stratos/apache-stratos-default /opt/stratos-installer
>> > sed: -e expression #1, char 32: unknown option to `s'
>> >
>> > Please provide resolution or work around ASAP as I am stuck now.
>> >
>> > thanks,
>> >
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>>
>>
>>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Isuru Perera <is...@wso2.com>.
That's fine. Did you check which IP address is MySQL is bound to? AFAIR,
it's binding to localhost. When you use IP, I think it's unable to connect.
Is it possible for you to use localhost and see?


On Mon, Jun 23, 2014 at 3:51 PM, Maria Beckham <ma...@yahoo.com>
wrote:

> I mean installing entire stratos product including mysql except for
> cartridge agent which will be on another machine
>
>   ------------------------------
>  *From:* Maria Beckham <ma...@yahoo.com>
> *To:* Isuru Perera <is...@wso2.com>; dev <de...@stratos.apache.org>
> *Sent:* Monday, June 23, 2014 3:49 PM
>
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> I am installing everything on one machine and its ip is 10.9.20.116 as
> mentioned below in db_hostname
>
>
>
>  ------------------------------
>  *From:* Isuru Perera <is...@wso2.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> *Sent:* Monday, June 23, 2014 3:44 PM
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> Do you have the database in a different node? You might also want to check
> whether root user can access remotely.
>
>
>
>
> On Mon, Jun 23, 2014 at 3:39 PM, Maria Beckham <ma...@yahoo.com>
> wrote:
>
> I think so. I have provided the info as follows in the setup.conf as per
> installation guide.
>
> xport userstore_db_hostname="10.9.20.116"
> export userstore_db_schema="userstore"
>  export userstore_db_port="3306"
> export userstore_db_user="root"
> export userstore_db_pass="root"
>
>
>
>
>   ------------------------------
>  *From:* Isuru Perera <is...@wso2.com>
>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> *Sent:* Monday, June 23, 2014 3:34 PM
>
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> The setup is failing when trying to create required databases.
>
> Have you configured MySQL credentials correctly?
>
>
> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
> wrote:
>
> Also, another error now.
>
> Creating userstore database
> /opt/stratos-installer/resources /opt/stratos-installer
> /opt/stratos-installer
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> password: YES)
>
> Workaround or resolution pls?
>
>   ------------------------------
>  *From:* chris snow <ch...@gmail.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> *Sent:* Monday, June 23, 2014 2:17 PM
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> Hi Maria,
>
> It looks like it is falling over just after this line: [1]
>
> If you change the script for your Iaas from:
>
> ./ec2.sh $stratos_extract_path
> to
> bash -x ./ec2.sh $stratos_extract_path
>
> Then run the script again, this will give you some debug output which
> will hopefully identify the sed statement that is struggling, for
> example [2]
>
> Please let me know which sed script is failing.
>
> Be careful not to post the output of running 'bash -x ...' to the
> mailing list because it may contain your IaaS credentials.
>
> Many thanks,
>
> Chris
>
> ---
> [1]
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
> [2]
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>
> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
> > Hi All,
> >
> > I am getting the below error when running
> >
> > sudo ./setup.sh -p "default" -s
> >
> >
> > Configuring the Cloud Controller
> > In repository/conf/cloud-controller.xml
> > /opt/stratos/apache-stratos-default /opt/stratos-installer
> > sed: -e expression #1, char 32: unknown option to `s'
> >
> > Please provide resolution or work around ASAP as I am stuck now.
> >
> > thanks,
> >
>
>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>
>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>
>
>
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
I mean installing entire stratos product including mysql except for cartridge agent which will be on another machine


________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: Isuru Perera <is...@wso2.com>; dev <de...@stratos.apache.org> 
Sent: Monday, June 23, 2014 3:49 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


I am installing everything on one machine and its ip is 10.9.20.116 as mentioned below in db_hostname




________________________________
 From: Isuru Perera <is...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Sent: Monday, June 23, 2014 3:44 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


Do you have the database in a different node? You might also want to check whether root user can access remotely.






On Mon, Jun 23, 2014 at 3:39 PM, Maria Beckham <ma...@yahoo.com> wrote:

I think so. I have provided the info as follows in the setup.conf as per installation guide.
>
>
>xport userstore_db_hostname="10.9.20.116"
>export userstore_db_schema="userstore"
>export userstore_db_port="3306"
>export userstore_db_user="root"
>export userstore_db_pass="root"
>
>
>
>
>
>
>
>
>
>________________________________
> From: Isuru Perera <is...@wso2.com>
>
>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
>Sent: Monday, June 23, 2014 3:34 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>
>The setup is failing when trying to create required databases.
>
>Have you configured MySQL credentials correctly?
>
>
>
>
>On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com> wrote:
>
>Also, another error now.
>>
>>
>>Creating userstore database
>>/opt/stratos-installer/resources /opt/stratos-installer
>>/opt/stratos-installer
>>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
>>
>>
>>
>>Workaround or resolution pls?
>>
>>
>>
>>________________________________
>> From: chris snow <ch...@gmail.com>
>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
>>Sent: Monday, June 23, 2014 2:17 PM
>>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> 
>>
>>Hi Maria,
>>
>>It looks like it is falling over just after this line: [1]
>>
>>If you change the script for your Iaas from:
>>
>>./ec2.sh $stratos_extract_path
>>to
>>bash -x ./ec2.sh $stratos_extract_path
>>
>>Then run the script again, this will give you some debug output which
>>will hopefully identify the sed statement that is struggling, for
>>example [2]
>>
>>Please let me know which sed script is failing.
>>
>>Be careful not to post the output of running 'bash -x ...' to the
>>mailing list because it may contain your IaaS credentials.
>>
>>Many thanks,
>>
>>Chris
>>
>>---
>>[1] https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>>[2] https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>>
>>On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>><ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1, char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>
>
>-- 
>
>Isuru Perera
>Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>Lean . Enterprise . Middleware
>
>about.me/chrishantha
>
>


-- 

Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
I am installing everything on one machine and its ip is 10.9.20.116 as mentioned below in db_hostname


________________________________
 From: Isuru Perera <is...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Sent: Monday, June 23, 2014 3:44 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


Do you have the database in a different node? You might also want to check whether root user can access remotely.






On Mon, Jun 23, 2014 at 3:39 PM, Maria Beckham <ma...@yahoo.com> wrote:

I think so. I have provided the info as follows in the setup.conf as per installation guide.
>
>
>xport userstore_db_hostname="10.9.20.116"
>export userstore_db_schema="userstore"
>export userstore_db_port="3306"
>export userstore_db_user="root"
>export userstore_db_pass="root"
>
>
>
>
>
>
>
>
>
>________________________________
> From: Isuru Perera <is...@wso2.com>
>
>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
>Sent: Monday, June 23, 2014 3:34 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>
>The setup is failing when trying to create required databases.
>
>Have you configured MySQL credentials correctly?
>
>
>
>
>On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com> wrote:
>
>Also, another error now.
>>
>>
>>Creating userstore database
>>/opt/stratos-installer/resources /opt/stratos-installer
>>/opt/stratos-installer
>>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
>>
>>
>>
>>Workaround or resolution pls?
>>
>>
>>
>>________________________________
>> From: chris snow <ch...@gmail.com>
>>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
>>Sent: Monday, June 23, 2014 2:17 PM
>>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> 
>>
>>Hi Maria,
>>
>>It looks like it is falling over just after this line: [1]
>>
>>If you change the script for your Iaas from:
>>
>>./ec2.sh $stratos_extract_path
>>to
>>bash -x ./ec2.sh $stratos_extract_path
>>
>>Then run the script again, this will give you some debug output which
>>will hopefully identify the sed statement that is struggling, for
>>example [2]
>>
>>Please let me know which sed script is failing.
>>
>>Be careful not to post the output of running 'bash -x ...' to the
>>mailing list because it may contain your IaaS credentials.
>>
>>Many thanks,
>>
>>Chris
>>
>>---
>>[1] https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>>[2] https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>>
>>On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>><ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1, char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>
>
>-- 
>
>Isuru Perera
>Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>Lean . Enterprise . Middleware
>
>about.me/chrishantha
>
>


-- 

Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Isuru Perera <is...@wso2.com>.
Do you have the database in a different node? You might also want to check
whether root user can access remotely.


On Mon, Jun 23, 2014 at 3:39 PM, Maria Beckham <ma...@yahoo.com>
wrote:

> I think so. I have provided the info as follows in the setup.conf as per
> installation guide.
>
> xport userstore_db_hostname="10.9.20.116"
> export userstore_db_schema="userstore"
> export userstore_db_port="3306"
> export userstore_db_user="root"
> export userstore_db_pass="root"
>
>
>
>
>   ------------------------------
>  *From:* Isuru Perera <is...@wso2.com>
>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> *Sent:* Monday, June 23, 2014 3:34 PM
>
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> The setup is failing when trying to create required databases.
>
> Have you configured MySQL credentials correctly?
>
>
> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
> wrote:
>
> Also, another error now.
>
> Creating userstore database
> /opt/stratos-installer/resources /opt/stratos-installer
> /opt/stratos-installer
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> password: YES)
>
> Workaround or resolution pls?
>
>   ------------------------------
>  *From:* chris snow <ch...@gmail.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> *Sent:* Monday, June 23, 2014 2:17 PM
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> Hi Maria,
>
> It looks like it is falling over just after this line: [1]
>
> If you change the script for your Iaas from:
>
> ./ec2.sh $stratos_extract_path
> to
> bash -x ./ec2.sh $stratos_extract_path
>
> Then run the script again, this will give you some debug output which
> will hopefully identify the sed statement that is struggling, for
> example [2]
>
> Please let me know which sed script is failing.
>
> Be careful not to post the output of running 'bash -x ...' to the
> mailing list because it may contain your IaaS credentials.
>
> Many thanks,
>
> Chris
>
> ---
> [1]
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
> [2]
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>
> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
> > Hi All,
> >
> > I am getting the below error when running
> >
> > sudo ./setup.sh -p "default" -s
> >
> >
> > Configuring the Cloud Controller
> > In repository/conf/cloud-controller.xml
> > /opt/stratos/apache-stratos-default /opt/stratos-installer
> > sed: -e expression #1, char 32: unknown option to `s'
> >
> > Please provide resolution or work around ASAP as I am stuck now.
> >
> > thanks,
> >
>
>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
Can someone please provide resolution as I cant afford starting fresh again.


________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: chris snow <ch...@gmail.com>; dev <de...@stratos.apache.org> 
Sent: Tuesday, June 24, 2014 3:06 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


here is the snippet of setup.conf

export setup_path="/opt/stratos-installer" #Folder path containing stratos_setup
export stratos_packs="/opt/stratos-packs" #Folder path containing stratos package and other third party packs and jars
export stratos_path="/opt/stratos" #Folder which stratos will be installed

export JAVA_HOME="/usr/lib/jvm/java-6-oracle" #Java home path





________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: chris snow <ch...@gmail.com>; dev <de...@stratos.apache.org> 
Sent: Tuesday, June 24, 2014 3:04 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


As per your advice, I ran(using sudo) the the stop cmd using the below script but getting the below error in-spite of JAVA_HOME being configured in setup.conf file under <setup-path>

Output:
Error: JAVA_HOME is not defined correctly.
 CARBON cannot execute java



________________________________
 From: chris snow <ch...@gmail.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Sent: Tuesday, June 24, 2014 2:47 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 

Hi Maria,

For the permission error, check that the user account that you are
starting the stratos service with has appropriate file system
permissions to access the PID file.

The following commands give you basic start and stop functionality
although I have found them to be a little unreliable (I think that
proper init.d scripts should be created - see [1]):

$STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default --start
$STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop

I think you should be able to restart wit this command, but I haven't
managed to get it working:

$STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart

Cheers,

Chris

---
[1] https://issues.apache.org/jira/browse/STRATOS-683


On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
<ma...@yahoo.com> wrote:
> Also, whats the service name for stratos to check its status, start and stop
> etc.
>
> ________________________________
> From: Maria Beckham <ma...@yahoo.com>
> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> Sent: Tuesday, June 24, 2014 2:24 PM
>
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> I am using Ubunutu 12.0.14 as OS.
>
>
>
> ________________________________
> From: Maria Beckham <ma...@yahoo.com>
> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> Sent: Tuesday, June 24, 2014 2:23 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> I was able to fix all the below issues by starting fresh again.
>
> but, faced the below error now and i cannot connect to below management url.
>
> solution or workaround pls?
>
> Output:
>
> Starting up servers. This may take time. Look at
> /var/log/apache-stratos/stratos-setup.log file for
 server startup details
> -su: line 2:
> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
> Permission denied
> You can access Stratos after the server is started.
> **************************************************************
> Management Console : https://10.9.205.116:9443/console
>
>
>
>
> ________________________________
> From: Dinesh Bandara <di...@wso2.com>
> To: dev <de...@stratos.apache.org>
> Cc: Maria Beckham <ma...@yahoo.com>
> Sent: Monday, June 23, 2014 8:10 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> Yes I have setup startos 4.0.0 on single node. It worked fine with out an
> issue.
> This error occurred when you are trying to
 access databases with incorrect
> password. Please check whether that you can access the database using the
> password 'root'. As Chris mentioned try to connect to MySQL from command
> line.
>
> mysql -h 10.9.20.116 -uroot -proot  userstore
>
>
>
> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:
>
> Have you tried connecting to mysql from the command line, e.g.
>
> mysql -h 10.9.20.116 -u root userstore
>
> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
>> I think so. I have provided the info as follows in the setup.conf as per
>> installation guide.
>>
>> xport userstore_db_hostname="10.9.20.116"
>> export userstore_db_schema="userstore"
>> export userstore_db_port="3306"
>>
 export userstore_db_user="root"
>> export userstore_db_pass="root"
>>
>>
>>
>>
>> ________________________________
>> From: Isuru Perera <is...@wso2.com>
>>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 3:34
 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> The setup is failing when trying to create required databases.
>>
>> Have you configured MySQL credentials correctly?
>>
>>
>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> Also, another error now.
>>
>> Creating userstore database
>> /opt/stratos-installer/resources /opt/stratos-installer
>> /opt/stratos-installer
>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> password: YES)
>>
>> Workaround or resolution pls?
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 2:17 PM
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> It looks like it is falling over just after this line: [1]
>>
>> If you change the script for your Iaas from:
>>
>> ./ec2.sh $stratos_extract_path
>>
 to
>> bash -x ./ec2.sh $stratos_extract_path
>>
>> Then run the script again, this will give you some debug output which
>> will hopefully identify the sed statement that is struggling, for
>> example [2]
>>
>> Please let me know which sed script is failing.
>>
>> Be careful not to post the output of running 'bash -x ...' to the
>> mailing list because it may contain your IaaS credentials.
>>
>> Many thanks,
>>
>> Chris
>>
>> ---
>> [1]
>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> [2]
>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>> On Mon, Jun 23,
 2014 at 10:05 PM, Maria
 Beckham
>> <ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1,
 char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>
>
>
>
> --
> Dinesh Bandara
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
>
>
>
>
>

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
here is the snippet of setup.conf

export setup_path="/opt/stratos-installer" #Folder path containing stratos_setup
export stratos_packs="/opt/stratos-packs" #Folder path containing stratos package and other third party packs and jars
export stratos_path="/opt/stratos" #Folder which stratos will be installed

export JAVA_HOME="/usr/lib/jvm/java-6-oracle" #Java home path



________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: chris snow <ch...@gmail.com>; dev <de...@stratos.apache.org> 
Sent: Tuesday, June 24, 2014 3:04 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


As per your advice, I ran(using sudo) the the stop cmd using the below script but getting the below error in-spite of JAVA_HOME being configured in setup.conf file under <setup-path>

Output:
Error: JAVA_HOME is not defined correctly.
 CARBON cannot execute java



________________________________
 From: chris snow <ch...@gmail.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Sent: Tuesday, June 24, 2014 2:47 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 

Hi Maria,

For the permission error, check that the user account that you are
starting the stratos service with has appropriate file system
permissions to access the PID file.

The following commands give you basic start and stop functionality
although I have found them to be a little unreliable (I think that
proper init.d scripts should be created - see [1]):

$STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default --start
$STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop

I think you should be able to restart wit this command, but I haven't
managed to get it working:

$STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart

Cheers,

Chris

---
[1] https://issues.apache.org/jira/browse/STRATOS-683


On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
<ma...@yahoo.com> wrote:
> Also, whats the service name for stratos to check its status, start and stop
> etc.
>
> ________________________________
> From: Maria Beckham <ma...@yahoo.com>
> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> Sent: Tuesday, June 24, 2014 2:24 PM
>
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> I am using Ubunutu 12.0.14 as OS.
>
>
>
> ________________________________
> From: Maria Beckham <ma...@yahoo.com>
> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> Sent: Tuesday, June 24, 2014 2:23 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> I was able to fix all the below issues by starting fresh again.
>
> but, faced the below error now and i cannot connect to below management url.
>
> solution or workaround pls?
>
> Output:
>
> Starting up servers. This may take time. Look at
> /var/log/apache-stratos/stratos-setup.log file for
 server startup details
> -su: line 2:
> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
> Permission denied
> You can access Stratos after the server is started.
> **************************************************************
> Management Console : https://10.9.205.116:9443/console
>
>
>
>
> ________________________________
> From: Dinesh Bandara <di...@wso2.com>
> To: dev <de...@stratos.apache.org>
> Cc: Maria Beckham <ma...@yahoo.com>
> Sent: Monday, June 23, 2014 8:10 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> Yes I have setup startos 4.0.0 on single node. It worked fine with out an
> issue.
> This error occurred when you are trying to
 access databases with incorrect
> password. Please check whether that you can access the database using the
> password 'root'. As Chris mentioned try to connect to MySQL from command
> line.
>
> mysql -h 10.9.20.116 -uroot -proot  userstore
>
>
>
> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:
>
> Have you tried connecting to mysql from the command line, e.g.
>
> mysql -h 10.9.20.116 -u root userstore
>
> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
>> I think so. I have provided the info as follows in the setup.conf as per
>> installation guide.
>>
>> xport userstore_db_hostname="10.9.20.116"
>> export userstore_db_schema="userstore"
>> export userstore_db_port="3306"
>> export userstore_db_user="root"
>> export userstore_db_pass="root"
>>
>>
>>
>>
>> ________________________________
>> From: Isuru Perera <is...@wso2.com>
>>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 3:34
 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> The setup is failing when trying to create required databases.
>>
>> Have you configured MySQL credentials correctly?
>>
>>
>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> Also, another error now.
>>
>> Creating userstore database
>> /opt/stratos-installer/resources /opt/stratos-installer
>> /opt/stratos-installer
>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> password: YES)
>>
>> Workaround or resolution pls?
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 2:17 PM
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> It looks like it is falling over just after this line: [1]
>>
>> If you change the script for your Iaas from:
>>
>> ./ec2.sh $stratos_extract_path
>>
 to
>> bash -x ./ec2.sh $stratos_extract_path
>>
>> Then run the script again, this will give you some debug output which
>> will hopefully identify the sed statement that is struggling, for
>> example [2]
>>
>> Please let me know which sed script is failing.
>>
>> Be careful not to post the output of running 'bash -x ...' to the
>> mailing list because it may contain your IaaS credentials.
>>
>> Many thanks,
>>
>> Chris
>>
>> ---
>> [1]
>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> [2]
>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>> On Mon, Jun 23, 2014 at 10:05 PM, Maria
 Beckham
>> <ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1,
 char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>
>
>
>
> --
> Dinesh Bandara
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
>
>
>
>
>

Installed successfully apache-stratos-4.0.0 but console not working

Posted by Maria Beckham <ma...@yahoo.com>.
Hi All,

I have finally been able to re-install  stratos with no errors(on output console) by re-installing activemq 5.9.1. 

But, when I try to access the below management url after successful installation, i am getting page cannot be displayed error

 https://10.9.205.116:9443/console, where ipaddress is the ipaddress of the node in which i have installed entire stratos except for cartridge agent.

when i run stratos.sh, the output says process already running.

please provide resolution or workaround ASAP



________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org> 
Cc: chris snow <ch...@gmail.com> 
Sent: Tuesday, June 24, 2014 7:16 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


All,

Also, our case is standard use case that we see in industry where environments are high controlled by sys admin. So, whoever wants to install any software on a node, then user gets added to sudoers list.

Now, what should be done to make installation go through successively in such case. 

Please kindly provide resolution or work around to have this last step(starting of servers) go through


________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org> 
Cc: chris snow <ch...@gmail.com> 
Sent: Tuesday, June 24, 2014 6:41 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


None of the below options works for me. Looks setup.sh script needs to be corrected to suit sudo execution.

Anyhow, I have set JAVA_HOME inside the script and used my user name and added user_group in setup.conf.

now, i am getting the below

/opt/stratos/apache-activemq-5.9.1/bin/activemq: 397: /opt/stratos/apache-activemq-5.9.1/bin/activemq: /usr/lib/jvm/default-java/bin/java -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/opt/stratos/apache-activemq-5.9.1/conf/login.config  -Dcom.sun.management.jmxremote  -Djava.awt.headless=true -Djava.io.tmpdir="/opt/stratos/apache-activemq-5.9.1/tmp"                -Dactivemq.classpath="/opt/stratos/apache-activemq-5.9.1/conf;"               -Dactivemq.home="/opt/stratos/apache-activemq-5.9.1"               -Dactivemq.base="/opt/stratos/apache-activemq-5.9.1"               -Dactivemq.conf="/opt/stratos/apache-activemq-5.9.1/conf"               -Dactivemq.data="/opt/stratos/apache-activemq-5.9.1/data"                              -jar "/opt/stratos/apache-activemq-5.9.1/bin/activemq.jar" start >/dev/null 2>&1 &
              RET="$?"; APID="$!";
              echo $APID > /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid;
              echo "INFO: pidfile created : '/opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid' (pid '$APID')";exit $RET: not found





________________________________
 From: Isuru Perera <is...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Cc: chris snow <ch...@gmail.com> 
Sent: Tuesday, June 24, 2014 5:51 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


You are getting error as your root user doesn't have the JAVA_HOME environment variable.

You may try following options.
1. Switch to root and run (sudo su). However this is not recommended.
2. Try "sudo -E"

3. Try setting JAVA_HOME with sudo. i.e. sudo JAVA_HOME=/usr/lib/jvm/java-6-oracle ./stratos.sh
4. Install Stratos in a directory having full access to your user.




On Tue, Jun 24, 2014 at 4:59 PM, Maria Beckham <ma...@yahoo.com> wrote:

Can somebody please respond to below issues of mine ASAP as it looks like Chris is not available
>
>
>
>________________________________
> From: Maria Beckham <ma...@yahoo.com>
>To: chris snow <ch...@gmail.com> 
>Sent: Tuesday, June 24, 2014 3:32 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>
>Also, I dont have root user password. I have been given only sudo privileges.
>
>
>The reason I have configured host_user as root as opposed to mine is bcoz the setup failed bcoz its taking filepermission group as my username and there is no group by that name
>
>
>
>
>
>
>________________________________
> From: Maria Beckham <ma...@yahoo.com>
>To: chris snow <ch...@gmail.com> 
>Sent: Tuesday, June 24, 2014 3:29 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>
>but, in setup.conf file, i have given host_user as root before running the setup.sh.
>
>
>inspite of above, do i need to follow the below instructions by you
>
>
>
>
>
>
>________________________________
> From: chris snow <ch...@gmail.com>
>To: Maria Beckham <ma...@yahoo.com> 
>Sent: Tuesday, June 24, 2014 3:25 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>Maria, when you run sudo, you are running a command as root.
>
>The error you are getting now is because root does not have the
>JAVA_HOME environment variable set.
>
>I think it is best to try fixing the permission of the pid file and
>run the stratos startup script using a normal user account and not
>with sudo.
>
>
>
>
>
>
>On Tue, Jun 24, 2014 at 11:04
 PM, Maria Beckham
>
><ma...@yahoo.com> wrote:
>> As per your advice, I ran(using sudo) the the stop cmd using the below
>> script but getting the below error in-spite of JAVA_HOME being configured in
>> setup.conf file under <setup-path>
>>
>> Output:
>> Error: JAVA_HOME is not defined correctly.
>>  CARBON cannot execute java
>>
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Tuesday, June 24, 2014 2:47 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> For the permission error, check that the user account that you are
>> starting the stratos service with has appropriate file system
>> permissions to access the PID file.
>>
>> The following commands give you basic start and stop functionality
>> although I have found them to be a little unreliable (I think that
>> proper init.d scripts should be created - see [1]):
>>
>>
 $STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default
>> --start
>> $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop
>>
>> I think you should be able to restart wit this command, but I haven't
>> managed to get it working:
>>
>> $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart
>>
>> Cheers,
>>
>> Chris
>>
>> ---
>> [1] https://issues.apache.org/jira/browse/STRATOS-683
>>
>> On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> Also, whats the service name for stratos to check its status, start and
>>> stop
>>> etc.
>>>
>>> ________________________________
>>> From: Maria Beckham <ma...@yahoo.com>
>>> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>>> Sent: Tuesday, June 24, 2014 2:24 PM
>>>
>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> I am using Ubunutu 12.0.14 as OS.
>>>
>>>
>>>
>>> ________________________________
>>> From: Maria Beckham <ma...@yahoo.com>
>>> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>>> Sent: Tuesday, June 24, 2014 2:23 PM
>>>
 Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> I was able to fix all the below issues by starting fresh again.
>>>
>>> but, faced the below error now and i cannot connect to below management
>>> url.
>>>
>>> solution or workaround pls?
>>>
>>> Output:
>>>
>>> Starting up servers. This may take time. Look at
>>> /var/log/apache-stratos/stratos-setup.log file for server startup details
>>> -su: line 2:
>>>
>>> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
>>> Permission denied
>>> You can access Stratos after the server is started.
>>> **************************************************************
>>> Management Console : https://10.9.205.116:9443/console
>>>
>>>
>>>
>>>
>>> ________________________________
>>> From: Dinesh Bandara <di...@wso2.com>
>>> To: dev <de...@stratos.apache.org>
>>> Cc: Maria Beckham <ma...@yahoo.com>
>>> Sent: Monday, June 23, 2014 8:10 PM
>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> Yes I have setup startos 4.0.0 on single node. It worked fine with out an
>>> issue.
>>> This error occurred when you are trying to access databases with incorrect
>>> password. Please check whether that you can access the database using the
>>> password 'root'. As Chris mentioned try to connect to MySQL from command
>>> line.
>>>
>>> mysql -h 10.9.20.116 -uroot -proot  userstore
>>>
>>>
>>>
>>> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:
>>>
>>> Have you tried connecting to mysql from the command line, e.g.
>>>
>>> mysql -h 10.9.20.116 -u root userstore
>>>
>>> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
>>> <ma...@yahoo.com> wrote:
>>>> I think so. I have provided the info as follows in the setup.conf as per
>>>> installation guide.
>>>>
>>>> xport userstore_db_hostname="10.9.20.116"
>>>> export
 userstore_db_schema="userstore"
>>>> export userstore_db_port="3306"
>>>> export userstore_db_user="root"
>>>> export userstore_db_pass="root"
>>>>
>>>>
>>>>
>>>>
>>>> ________________________________
>>>> From: Isuru Perera
 <is...@wso2.com>
>>>>
>>>> To: dev <de...@stratos.apache.org>; Maria Beckham
>>>> <ma...@yahoo.com>
>>>> Sent: Monday, June 23, 2014 3:34 PM
>>>>
>>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>>
>>>> The setup is failing when trying to create required databases.
>>>>
>>>> Have you configured MySQL
 credentials correctly?
>>>>
>>>>
>>>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>>>> wrote:
>>>>
>>>> Also, another error now.
>>>>
>>>> Creating userstore database
>>>> /opt/stratos-installer/resources /opt/stratos-installer
>>>> /opt/stratos-installer
>>>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>>>> password: YES)
>>>>
>>>> Workaround or resolution pls?
>>>>
>>>>
 ________________________________
>>>> From: chris snow <ch...@gmail.com>
>>>> To: dev <de...@stratos.apache.org>; Maria Beckham
>>>> <ma...@yahoo.com>
>>>> Sent: Monday, June 23, 2014 2:17 PM
>>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>>
>>>> Hi Maria,
>>>>
>>>> It looks like it is falling over just after this
 line: [1]
>>>>
>>>> If you change the script for your Iaas from:
>>>>
>>>> ./ec2.sh
 $stratos_extract_path
>>>> to
>>>> bash -x ./ec2.sh $stratos_extract_path
>>>>
>>>> Then run the script again, this will give you some debug output which
>>>> will hopefully identify the sed statement that is struggling, for
>>>> example [2]
>>>>
>>>> Please let me know which sed script is failing.
>>>>
>>>> Be careful not to post the output of running 'bash -x ...' to the
>>>> mailing list because it may contain your IaaS credentials.
>>>>
>>>> Many thanks,
>>>>
>>>> Chris
>>>>
>>>> ---
>>>> [1]
>>>>
>>>>
>>>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>>>> [2]
>>>>
>>>>
>>>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>>>
>>>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>>>> <ma...@yahoo.com> wrote:
>>>>> Hi
 All,
>>>>>
>>>>> I am getting the below error when running
>>>>>
>>>>> sudo ./setup.sh -p "default" -s
>>>>>
>>>>>
>>>>> Configuring the Cloud Controller
>>>>> In repository/conf/cloud-controller.xml
>>>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>>>> sed: -e expression #1, char 32: unknown option to `s'
>>>>>
>>>>> Please provide resolution or work around ASAP as I am stuck now.
>>>>>
>>>>> thanks,
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
 --
>>>> Isuru Perera
>>>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>>> Lean . Enterprise . Middleware
>>>>
>>>> about.me/chrishantha
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Dinesh Bandara
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>
>
>
>
>


-- 

Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
All,

Also, our case is standard use case that we see in industry where environments are high controlled by sys admin. So, whoever wants to install any software on a node, then user gets added to sudoers list.

Now, what should be done to make installation go through successively in such case. 

Please kindly provide resolution or work around to have this last step(starting of servers) go through


________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org> 
Cc: chris snow <ch...@gmail.com> 
Sent: Tuesday, June 24, 2014 6:41 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


None of the below options works for me. Looks setup.sh script needs to be corrected to suit sudo execution.

Anyhow, I have set JAVA_HOME inside the script and used my user name and added user_group in setup.conf.

now, i am getting the below

/opt/stratos/apache-activemq-5.9.1/bin/activemq: 397: /opt/stratos/apache-activemq-5.9.1/bin/activemq: /usr/lib/jvm/default-java/bin/java -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/opt/stratos/apache-activemq-5.9.1/conf/login.config  -Dcom.sun.management.jmxremote  -Djava.awt.headless=true -Djava.io.tmpdir="/opt/stratos/apache-activemq-5.9.1/tmp"                -Dactivemq.classpath="/opt/stratos/apache-activemq-5.9.1/conf;"               -Dactivemq.home="/opt/stratos/apache-activemq-5.9.1"               -Dactivemq.base="/opt/stratos/apache-activemq-5.9.1"               -Dactivemq.conf="/opt/stratos/apache-activemq-5.9.1/conf"               -Dactivemq.data="/opt/stratos/apache-activemq-5.9.1/data"                              -jar "/opt/stratos/apache-activemq-5.9.1/bin/activemq.jar" start >/dev/null 2>&1 &
              RET="$?"; APID="$!";
              echo $APID > /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid;
              echo "INFO: pidfile created : '/opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid' (pid '$APID')";exit $RET: not found





________________________________
 From: Isuru Perera <is...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Cc: chris snow <ch...@gmail.com> 
Sent: Tuesday, June 24, 2014 5:51 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


You are getting error as your root user doesn't have the JAVA_HOME environment variable.

You may try following options.
1. Switch to root and run (sudo su). However this is not recommended.
2. Try "sudo -E"

3. Try setting JAVA_HOME with sudo. i.e. sudo JAVA_HOME=/usr/lib/jvm/java-6-oracle ./stratos.sh
4. Install Stratos in a directory having full access to your user.




On Tue, Jun 24, 2014 at 4:59 PM, Maria Beckham <ma...@yahoo.com> wrote:

Can somebody please respond to below issues of mine ASAP as it looks like Chris is not available
>
>
>
>________________________________
> From: Maria Beckham <ma...@yahoo.com>
>To: chris snow <ch...@gmail.com> 
>Sent: Tuesday, June 24, 2014 3:32 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>
>Also, I dont have root user password. I have been given only sudo privileges.
>
>
>The reason I have configured host_user as root as opposed to mine is bcoz the setup failed bcoz its taking filepermission group as my username and there is no group by that name
>
>
>
>
>
>
>________________________________
> From: Maria Beckham <ma...@yahoo.com>
>To: chris snow <ch...@gmail.com> 
>Sent: Tuesday, June 24, 2014 3:29 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>
>but, in setup.conf file, i have given host_user as root before running the setup.sh.
>
>
>inspite of above, do i need to follow the below instructions by you
>
>
>
>
>
>
>________________________________
> From: chris snow <ch...@gmail.com>
>To: Maria Beckham <ma...@yahoo.com> 
>Sent: Tuesday, June 24, 2014 3:25 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>Maria, when you run sudo, you are running a command as root.
>
>The error you are getting now is because root does not have the
>JAVA_HOME environment variable set.
>
>I think it is best to try fixing the permission of the pid file and
>run the stratos startup script using a normal user account and not
>with sudo.
>
>
>
>
>
>
>On Tue, Jun 24, 2014 at 11:04
 PM, Maria Beckham
>
><ma...@yahoo.com> wrote:
>> As per your advice, I ran(using sudo) the the stop cmd using the below
>> script but getting the below error in-spite of JAVA_HOME being configured in
>> setup.conf file under <setup-path>
>>
>> Output:
>> Error: JAVA_HOME is not defined correctly.
>>  CARBON cannot execute java
>>
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Tuesday, June 24, 2014 2:47 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> For the permission error, check that the user account that you are
>> starting the stratos service with has appropriate file system
>> permissions to access the PID file.
>>
>> The following commands give you basic start and stop functionality
>> although I have found them to be a little unreliable (I think that
>> proper init.d scripts should be created - see [1]):
>>
>>
 $STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default
>> --start
>> $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop
>>
>> I think you should be able to restart wit this command, but I haven't
>> managed to get it working:
>>
>> $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart
>>
>> Cheers,
>>
>> Chris
>>
>> ---
>> [1] https://issues.apache.org/jira/browse/STRATOS-683
>>
>> On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> Also, whats the service name for stratos to check its status, start and
>>> stop
>>> etc.
>>>
>>> ________________________________
>>> From: Maria Beckham <ma...@yahoo.com>
>>> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>>> Sent: Tuesday, June 24, 2014 2:24 PM
>>>
>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> I am using Ubunutu 12.0.14 as OS.
>>>
>>>
>>>
>>> ________________________________
>>> From: Maria Beckham <ma...@yahoo.com>
>>> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>>> Sent: Tuesday, June 24, 2014 2:23 PM
>>>
 Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> I was able to fix all the below issues by starting fresh again.
>>>
>>> but, faced the below error now and i cannot connect to below management
>>> url.
>>>
>>> solution or workaround pls?
>>>
>>> Output:
>>>
>>> Starting up servers. This may take time. Look at
>>> /var/log/apache-stratos/stratos-setup.log file for server startup details
>>> -su: line 2:
>>>
>>> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
>>> Permission denied
>>> You can access Stratos after the server is started.
>>> **************************************************************
>>> Management Console : https://10.9.205.116:9443/console
>>>
>>>
>>>
>>>
>>> ________________________________
>>> From: Dinesh Bandara <di...@wso2.com>
>>> To: dev <de...@stratos.apache.org>
>>> Cc: Maria Beckham <ma...@yahoo.com>
>>> Sent: Monday, June 23, 2014 8:10 PM
>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> Yes I have setup startos 4.0.0 on single node. It worked fine with out an
>>> issue.
>>> This error occurred when you are trying to access databases with incorrect
>>> password. Please check whether that you can access the database using the
>>> password 'root'. As Chris mentioned try to connect to MySQL from command
>>> line.
>>>
>>> mysql -h 10.9.20.116 -uroot -proot  userstore
>>>
>>>
>>>
>>> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:
>>>
>>> Have you tried connecting to mysql from the command line, e.g.
>>>
>>> mysql -h 10.9.20.116 -u root userstore
>>>
>>> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
>>> <ma...@yahoo.com> wrote:
>>>> I think so. I have provided the info as follows in the setup.conf as per
>>>> installation guide.
>>>>
>>>> xport userstore_db_hostname="10.9.20.116"
>>>> export
 userstore_db_schema="userstore"
>>>> export userstore_db_port="3306"
>>>> export userstore_db_user="root"
>>>> export userstore_db_pass="root"
>>>>
>>>>
>>>>
>>>>
>>>> ________________________________
>>>> From: Isuru Perera
 <is...@wso2.com>
>>>>
>>>> To: dev <de...@stratos.apache.org>; Maria Beckham
>>>> <ma...@yahoo.com>
>>>> Sent: Monday, June 23, 2014 3:34 PM
>>>>
>>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>>
>>>> The setup is failing when trying to create required databases.
>>>>
>>>> Have you configured MySQL
 credentials correctly?
>>>>
>>>>
>>>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>>>> wrote:
>>>>
>>>> Also, another error now.
>>>>
>>>> Creating userstore database
>>>> /opt/stratos-installer/resources /opt/stratos-installer
>>>> /opt/stratos-installer
>>>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>>>> password: YES)
>>>>
>>>> Workaround or resolution pls?
>>>>
>>>>
 ________________________________
>>>> From: chris snow <ch...@gmail.com>
>>>> To: dev <de...@stratos.apache.org>; Maria Beckham
>>>> <ma...@yahoo.com>
>>>> Sent: Monday, June 23, 2014 2:17 PM
>>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>>
>>>> Hi Maria,
>>>>
>>>> It looks like it is falling over just after this
 line: [1]
>>>>
>>>> If you change the script for your Iaas from:
>>>>
>>>> ./ec2.sh
 $stratos_extract_path
>>>> to
>>>> bash -x ./ec2.sh $stratos_extract_path
>>>>
>>>> Then run the script again, this will give you some debug output which
>>>> will hopefully identify the sed statement that is struggling, for
>>>> example [2]
>>>>
>>>> Please let me know which sed script is failing.
>>>>
>>>> Be careful not to post the output of running 'bash -x ...' to the
>>>> mailing list because it may contain your IaaS credentials.
>>>>
>>>> Many thanks,
>>>>
>>>> Chris
>>>>
>>>> ---
>>>> [1]
>>>>
>>>>
>>>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>>>> [2]
>>>>
>>>>
>>>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>>>
>>>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>>>> <ma...@yahoo.com> wrote:
>>>>> Hi
 All,
>>>>>
>>>>> I am getting the below error when running
>>>>>
>>>>> sudo ./setup.sh -p "default" -s
>>>>>
>>>>>
>>>>> Configuring the Cloud Controller
>>>>> In repository/conf/cloud-controller.xml
>>>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>>>> sed: -e expression #1, char 32: unknown option to `s'
>>>>>
>>>>> Please provide resolution or work around ASAP as I am stuck now.
>>>>>
>>>>> thanks,
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
 --
>>>> Isuru Perera
>>>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>>> Lean . Enterprise . Middleware
>>>>
>>>> about.me/chrishantha
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Dinesh Bandara
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>
>
>
>
>


-- 

Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
None of the below options works for me. Looks setup.sh script needs to be corrected to suit sudo execution.

Anyhow, I have set JAVA_HOME inside the script and used my user name and added user_group in setup.conf.

now, i am getting the below

/opt/stratos/apache-activemq-5.9.1/bin/activemq: 397: /opt/stratos/apache-activemq-5.9.1/bin/activemq: /usr/lib/jvm/default-java/bin/java -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/opt/stratos/apache-activemq-5.9.1/conf/login.config  -Dcom.sun.management.jmxremote  -Djava.awt.headless=true -Djava.io.tmpdir="/opt/stratos/apache-activemq-5.9.1/tmp"                -Dactivemq.classpath="/opt/stratos/apache-activemq-5.9.1/conf;"               -Dactivemq.home="/opt/stratos/apache-activemq-5.9.1"               -Dactivemq.base="/opt/stratos/apache-activemq-5.9.1"               -Dactivemq.conf="/opt/stratos/apache-activemq-5.9.1/conf"               -Dactivemq.data="/opt/stratos/apache-activemq-5.9.1/data"                              -jar "/opt/stratos/apache-activemq-5.9.1/bin/activemq.jar" start >/dev/null 2>&1 &
              RET="$?"; APID="$!";
              echo $APID > /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid;
              echo "INFO: pidfile created : '/opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid' (pid '$APID')";exit $RET: not found



________________________________
 From: Isuru Perera <is...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Cc: chris snow <ch...@gmail.com> 
Sent: Tuesday, June 24, 2014 5:51 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


You are getting error as your root user doesn't have the JAVA_HOME environment variable.

You may try following options.
1. Switch to root and run (sudo su). However this is not recommended.
2. Try "sudo -E"

3. Try setting JAVA_HOME with sudo. i.e. sudo JAVA_HOME=/usr/lib/jvm/java-6-oracle ./stratos.sh
4. Install Stratos in a directory having full access to your user.




On Tue, Jun 24, 2014 at 4:59 PM, Maria Beckham <ma...@yahoo.com> wrote:

Can somebody please respond to below issues of mine ASAP as it looks like Chris is not available
>
>
>
>________________________________
> From: Maria Beckham <ma...@yahoo.com>
>To: chris snow <ch...@gmail.com> 
>Sent: Tuesday, June 24, 2014 3:32 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>
>Also, I dont have root user password. I have been given only sudo privileges.
>
>
>The reason I have configured host_user as root as opposed to mine is bcoz the setup failed bcoz its taking filepermission group as my username and there is no group by that name
>
>
>
>
>
>
>________________________________
> From: Maria Beckham <ma...@yahoo.com>
>To: chris snow <ch...@gmail.com> 
>Sent: Tuesday, June 24, 2014 3:29 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>
>but, in setup.conf file, i have given host_user as root before running the setup.sh.
>
>
>inspite of above, do i need to follow the below instructions by you
>
>
>
>
>
>
>________________________________
> From: chris snow <ch...@gmail.com>
>To: Maria Beckham <ma...@yahoo.com> 
>Sent: Tuesday, June 24, 2014 3:25 PM
>
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
>
>Maria, when you run sudo, you are running a command as root.
>
>The error you are getting now is because root does not have the
>JAVA_HOME environment variable set.
>
>I think it is best to try fixing the permission of the pid file and
>run the stratos startup script using a normal user account and not
>with sudo.
>
>
>
>
>
>
>On Tue, Jun 24, 2014 at 11:04
 PM, Maria Beckham
>
><ma...@yahoo.com> wrote:
>> As per your advice, I ran(using sudo) the the stop cmd using the below
>> script but getting the below error in-spite of JAVA_HOME being configured in
>> setup.conf file under <setup-path>
>>
>> Output:
>> Error: JAVA_HOME is not defined correctly.
>>  CARBON cannot execute java
>>
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Tuesday, June 24, 2014 2:47 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> For the permission error, check that the user account that you are
>> starting the stratos service with has appropriate file system
>> permissions to access the PID file.
>>
>> The following commands give you basic start and stop functionality
>> although I have found them to be a little unreliable (I think that
>> proper init.d scripts should be created - see [1]):
>>
>>
 $STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default
>> --start
>> $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop
>>
>> I think you should be able to restart wit this command, but I haven't
>> managed to get it working:
>>
>> $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart
>>
>> Cheers,
>>
>> Chris
>>
>> ---
>> [1] https://issues.apache.org/jira/browse/STRATOS-683
>>
>> On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> Also, whats the service name for stratos to check its status, start and
>>> stop
>>> etc.
>>>
>>> ________________________________
>>> From: Maria Beckham <ma...@yahoo.com>
>>> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>>> Sent: Tuesday, June 24, 2014 2:24 PM
>>>
>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> I am using Ubunutu 12.0.14 as OS.
>>>
>>>
>>>
>>> ________________________________
>>> From: Maria Beckham <ma...@yahoo.com>
>>> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>>> Sent: Tuesday, June 24, 2014 2:23 PM
>>>
 Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> I was able to fix all the below issues by starting fresh again.
>>>
>>> but, faced the below error now and i cannot connect to below management
>>> url.
>>>
>>> solution or workaround pls?
>>>
>>> Output:
>>>
>>> Starting up servers. This may take time. Look at
>>> /var/log/apache-stratos/stratos-setup.log file for server startup details
>>> -su: line 2:
>>>
>>> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
>>> Permission denied
>>> You can access Stratos after the server is started.
>>> **************************************************************
>>> Management Console : https://10.9.205.116:9443/console
>>>
>>>
>>>
>>>
>>> ________________________________
>>> From: Dinesh Bandara <di...@wso2.com>
>>> To: dev <de...@stratos.apache.org>
>>> Cc: Maria Beckham <ma...@yahoo.com>
>>> Sent: Monday, June 23, 2014 8:10 PM
>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> Yes I have setup startos 4.0.0 on single node. It worked fine with out an
>>> issue.
>>> This error occurred when you are trying to access databases with incorrect
>>> password. Please check whether that you can access the database using the
>>> password 'root'. As Chris mentioned try to connect to MySQL from command
>>> line.
>>>
>>> mysql -h 10.9.20.116 -uroot -proot  userstore
>>>
>>>
>>>
>>> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:
>>>
>>> Have you tried connecting to mysql from the command line, e.g.
>>>
>>> mysql -h 10.9.20.116 -u root userstore
>>>
>>> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
>>> <ma...@yahoo.com> wrote:
>>>> I think so. I have provided the info as follows in the setup.conf as per
>>>> installation guide.
>>>>
>>>> xport userstore_db_hostname="10.9.20.116"
>>>> export
 userstore_db_schema="userstore"
>>>> export userstore_db_port="3306"
>>>> export userstore_db_user="root"
>>>> export userstore_db_pass="root"
>>>>
>>>>
>>>>
>>>>
>>>> ________________________________
>>>> From: Isuru Perera
 <is...@wso2.com>
>>>>
>>>> To: dev <de...@stratos.apache.org>; Maria Beckham
>>>> <ma...@yahoo.com>
>>>> Sent: Monday, June 23, 2014 3:34 PM
>>>>
>>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>>
>>>> The setup is failing when trying to create required databases.
>>>>
>>>> Have you configured MySQL
 credentials correctly?
>>>>
>>>>
>>>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>>>> wrote:
>>>>
>>>> Also, another error now.
>>>>
>>>> Creating userstore database
>>>> /opt/stratos-installer/resources /opt/stratos-installer
>>>> /opt/stratos-installer
>>>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>>>> password: YES)
>>>>
>>>> Workaround or resolution pls?
>>>>
>>>>
 ________________________________
>>>> From: chris snow <ch...@gmail.com>
>>>> To: dev <de...@stratos.apache.org>; Maria Beckham
>>>> <ma...@yahoo.com>
>>>> Sent: Monday, June 23, 2014 2:17 PM
>>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>>
>>>> Hi Maria,
>>>>
>>>> It looks like it is falling over just after this
 line: [1]
>>>>
>>>> If you change the script for your Iaas from:
>>>>
>>>> ./ec2.sh
 $stratos_extract_path
>>>> to
>>>> bash -x ./ec2.sh $stratos_extract_path
>>>>
>>>> Then run the script again, this will give you some debug output which
>>>> will hopefully identify the sed statement that is struggling, for
>>>> example [2]
>>>>
>>>> Please let me know which sed script is failing.
>>>>
>>>> Be careful not to post the output of running 'bash -x ...' to the
>>>> mailing list because it may contain your IaaS credentials.
>>>>
>>>> Many thanks,
>>>>
>>>> Chris
>>>>
>>>> ---
>>>> [1]
>>>>
>>>>
>>>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>>>> [2]
>>>>
>>>>
>>>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>>>
>>>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>>>> <ma...@yahoo.com> wrote:
>>>>> Hi
 All,
>>>>>
>>>>> I am getting the below error when running
>>>>>
>>>>> sudo ./setup.sh -p "default" -s
>>>>>
>>>>>
>>>>> Configuring the Cloud Controller
>>>>> In repository/conf/cloud-controller.xml
>>>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>>>> sed: -e expression #1, char 32: unknown option to `s'
>>>>>
>>>>> Please provide resolution or work around ASAP as I am stuck now.
>>>>>
>>>>> thanks,
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
 --
>>>> Isuru Perera
>>>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>>> Lean . Enterprise . Middleware
>>>>
>>>> about.me/chrishantha
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Dinesh Bandara
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>
>
>
>
>


-- 

Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Udara Liyanage <ud...@wso2.com>.
Hi,

The reason for this is you have set JAVA_HOME in ~/.bashrc. But it is not
visible to the root user. You can try "sudo -E " as  Isuru mentioned or try
seting the JAVA_HOME in /etc/bash.bashrc file which is visible to any user.


On Wed, Jun 25, 2014 at 6:21 AM, Isuru Perera <is...@wso2.com> wrote:

> You are getting error as your root user doesn't have the JAVA_HOME
> environment variable.
>
> You may try following options.
> 1. Switch to root and run (sudo su). However this is not recommended.
> 2. Try "sudo -E"
> 3. Try setting JAVA_HOME with sudo. i.e. sudo JAVA_HOME=/usr/lib/jvm/java-6-oracle
> ./stratos.sh
> 4. Install Stratos in a directory having full access to your user.
>
>
> On Tue, Jun 24, 2014 at 4:59 PM, Maria Beckham <ma...@yahoo.com>
> wrote:
>
>> Can somebody please respond to below issues of mine ASAP as it looks like
>> Chris is not available
>>
>>   ------------------------------
>>  *From:* Maria Beckham <ma...@yahoo.com>
>> *To:* chris snow <ch...@gmail.com>
>> *Sent:* Tuesday, June 24, 2014 3:32 PM
>>
>> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Also, I dont have root user password. I have been given only sudo
>> privileges.
>>
>> The reason I have configured host_user as root as opposed to mine is bcoz
>> the setup failed bcoz its taking filepermission group as my username and
>> there is no group by that name
>>
>>
>>
>>  ------------------------------
>>  *From:* Maria Beckham <ma...@yahoo.com>
>> *To:* chris snow <ch...@gmail.com>
>> *Sent:* Tuesday, June 24, 2014 3:29 PM
>>
>> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>>
>> but, in setup.conf file, i have given host_user as root before running
>> the setup.sh.
>>
>> inspite of above, do i need to follow the below instructions by you
>>
>>
>>
>>  ------------------------------
>>  *From:* chris snow <ch...@gmail.com>
>> *To:* Maria Beckham <ma...@yahoo.com>
>> *Sent:* Tuesday, June 24, 2014 3:25 PM
>>
>> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Maria, when you run sudo, you are running a command as root.
>>
>> The error you are getting now is because root does not have the
>> JAVA_HOME environment variable set.
>>
>> I think it is best to try fixing the permission of the pid file and
>> run the stratos startup script using a normal user account and not
>> with sudo.
>>
>>
>>
>>
>> On Tue, Jun 24, 2014 at 11:04 PM, Maria Beckham
>>
>> <ma...@yahoo.com> wrote:
>> > As per your advice, I ran(using sudo) the the stop cmd using the below
>> > script but getting the below error in-spite of JAVA_HOME being
>> configured in
>> > setup.conf file under <setup-path>
>> >
>> > Output:
>> > Error: JAVA_HOME is not defined correctly.
>> >  CARBON cannot execute java
>> >
>> >
>> > ________________________________
>> > From: chris snow <ch...@gmail.com>
>> > To: dev <de...@stratos.apache.org>; Maria Beckham <
>> mariabeckham77@yahoo.com>
>> > Sent: Tuesday, June 24, 2014 2:47 PM
>> >
>> > Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> >
>> > Hi Maria,
>> >
>> > For the permission error, check that the user account that you are
>> > starting the stratos service with has appropriate file system
>> > permissions to access the PID file.
>> >
>> > The following commands give you basic start and stop functionality
>> > although I have found them to be a little unreliable (I think that
>> > proper init.d scripts should be created - see [1]):
>> >
>> > $STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default
>> > --start
>> > $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop
>> >
>> > I think you should be able to restart wit this command, but I haven't
>> > managed to get it working:
>> >
>> > $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart
>> >
>> > Cheers,
>> >
>> > Chris
>> >
>> > ---
>> > [1] https://issues.apache.org/jira/browse/STRATOS-683
>> >
>> > On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
>> > <ma...@yahoo.com> wrote:
>> >> Also, whats the service name for stratos to check its status, start and
>> >> stop
>> >> etc.
>> >>
>> >> ________________________________
>> >> From: Maria Beckham <ma...@yahoo.com>
>> >> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>> >> Sent: Tuesday, June 24, 2014 2:24 PM
>> >>
>> >> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> >>
>> >> I am using Ubunutu 12.0.14 as OS.
>> >>
>> >>
>> >>
>> >> ________________________________
>> >> From: Maria Beckham <ma...@yahoo.com>
>> >> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>> >> Sent: Tuesday, June 24, 2014 2:23 PM
>> >> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> >>
>> >> I was able to fix all the below issues by starting fresh again.
>> >>
>> >> but, faced the below error now and i cannot connect to below management
>> >> url.
>> >>
>> >> solution or workaround pls?
>> >>
>> >> Output:
>> >>
>> >> Starting up servers. This may take time. Look at
>> >> /var/log/apache-stratos/stratos-setup.log file for server startup
>> details
>> >> -su: line 2:
>> >>
>> >>
>> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
>> >> Permission denied
>> >> You can access Stratos after the server is started.
>> >> **************************************************************
>> >> Management Console : https://10.9.205.116:9443/console
>> >>
>> >>
>> >>
>> >>
>> >> ________________________________
>> >> From: Dinesh Bandara <di...@wso2.com>
>> >> To: dev <de...@stratos.apache.org>
>> >> Cc: Maria Beckham <ma...@yahoo.com>
>> >> Sent: Monday, June 23, 2014 8:10 PM
>> >> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> >>
>> >> Yes I have setup startos 4.0.0 on single node. It worked fine with out
>> an
>> >> issue.
>> >> This error occurred when you are trying to access databases with
>> incorrect
>> >> password. Please check whether that you can access the database using
>> the
>> >> password 'root'. As Chris mentioned try to connect to MySQL from
>> command
>> >> line.
>> >>
>> >> mysql -h 10.9.20.116 -uroot -proot  userstore
>> >>
>> >>
>> >>
>> >> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com>
>> wrote:
>> >>
>> >> Have you tried connecting to mysql from the command line, e.g.
>> >>
>> >> mysql -h 10.9.20.116 -u root userstore
>> >>
>> >> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
>> >> <ma...@yahoo.com> wrote:
>> >>> I think so. I have provided the info as follows in the setup.conf as
>> per
>> >>> installation guide.
>> >>>
>> >>> xport userstore_db_hostname="10.9.20.116"
>> >>> export userstore_db_schema="userstore"
>> >>> export userstore_db_port="3306"
>> >>> export userstore_db_user="root"
>> >>> export userstore_db_pass="root"
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> ________________________________
>> >>> From: Isuru Perera <is...@wso2.com>
>> >>>
>> >>> To: dev <de...@stratos.apache.org>; Maria Beckham
>> >>> <ma...@yahoo.com>
>> >>> Sent: Monday, June 23, 2014 3:34 PM
>> >>>
>> >>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> >>>
>> >>> The setup is failing when trying to create required databases.
>> >>>
>> >>> Have you configured MySQL credentials correctly?
>> >>>
>> >>>
>> >>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <
>> mariabeckham77@yahoo.com>
>> >>> wrote:
>> >>>
>> >>> Also, another error now.
>> >>>
>> >>> Creating userstore database
>> >>> /opt/stratos-installer/resources /opt/stratos-installer
>> >>> /opt/stratos-installer
>> >>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> >>> password: YES)
>> >>>
>> >>> Workaround or resolution pls?
>> >>>
>> >>> ________________________________
>> >>> From: chris snow <ch...@gmail.com>
>> >>> To: dev <de...@stratos.apache.org>; Maria Beckham
>> >>> <ma...@yahoo.com>
>> >>> Sent: Monday, June 23, 2014 2:17 PM
>> >>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>> >>>
>> >>> Hi Maria,
>> >>>
>> >>> It looks like it is falling over just after this line: [1]
>> >>>
>> >>> If you change the script for your Iaas from:
>> >>>
>> >>> ./ec2.sh $stratos_extract_path
>> >>> to
>> >>> bash -x ./ec2.sh $stratos_extract_path
>> >>>
>> >>> Then run the script again, this will give you some debug output which
>> >>> will hopefully identify the sed statement that is struggling, for
>> >>> example [2]
>> >>>
>> >>> Please let me know which sed script is failing.
>> >>>
>> >>> Be careful not to post the output of running 'bash -x ...' to the
>> >>> mailing list because it may contain your IaaS credentials.
>> >>>
>> >>> Many thanks,
>> >>>
>> >>> Chris
>> >>>
>> >>> ---
>> >>> [1]
>> >>>
>> >>>
>> >>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> >>> [2]
>> >>>
>> >>>
>> >>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>> >>>
>> >>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>> >>> <ma...@yahoo.com> wrote:
>> >>>> Hi All,
>> >>>>
>> >>>> I am getting the below error when running
>> >>>>
>> >>>> sudo ./setup.sh -p "default" -s
>> >>>>
>> >>>>
>> >>>> Configuring the Cloud Controller
>> >>>> In repository/conf/cloud-controller.xml
>> >>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>> >>>> sed: -e expression #1, char 32: unknown option to `s'
>> >>>>
>> >>>> Please provide resolution or work around ASAP as I am stuck now.
>> >>>>
>> >>>> thanks,
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Isuru Perera
>> >>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> >>> Lean . Enterprise . Middleware
>> >>>
>> >>> about.me/chrishantha
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Dinesh Bandara
>> >> Software Engineer
>> >> WSO2 Inc.; http://wso2.com
>> >> lean.enterprise.middleware
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Isuru Perera <is...@wso2.com>.
You are getting error as your root user doesn't have the JAVA_HOME
environment variable.

You may try following options.
1. Switch to root and run (sudo su). However this is not recommended.
2. Try "sudo -E"
3. Try setting JAVA_HOME with sudo. i.e. sudo
JAVA_HOME=/usr/lib/jvm/java-6-oracle
./stratos.sh
4. Install Stratos in a directory having full access to your user.


On Tue, Jun 24, 2014 at 4:59 PM, Maria Beckham <ma...@yahoo.com>
wrote:

> Can somebody please respond to below issues of mine ASAP as it looks like
> Chris is not available
>
>   ------------------------------
>  *From:* Maria Beckham <ma...@yahoo.com>
> *To:* chris snow <ch...@gmail.com>
> *Sent:* Tuesday, June 24, 2014 3:32 PM
>
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> Also, I dont have root user password. I have been given only sudo
> privileges.
>
> The reason I have configured host_user as root as opposed to mine is bcoz
> the setup failed bcoz its taking filepermission group as my username and
> there is no group by that name
>
>
>
>  ------------------------------
>  *From:* Maria Beckham <ma...@yahoo.com>
> *To:* chris snow <ch...@gmail.com>
> *Sent:* Tuesday, June 24, 2014 3:29 PM
>
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> but, in setup.conf file, i have given host_user as root before running the
> setup.sh.
>
> inspite of above, do i need to follow the below instructions by you
>
>
>
>  ------------------------------
>  *From:* chris snow <ch...@gmail.com>
> *To:* Maria Beckham <ma...@yahoo.com>
> *Sent:* Tuesday, June 24, 2014 3:25 PM
>
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> Maria, when you run sudo, you are running a command as root.
>
> The error you are getting now is because root does not have the
> JAVA_HOME environment variable set.
>
> I think it is best to try fixing the permission of the pid file and
> run the stratos startup script using a normal user account and not
> with sudo.
>
>
>
>
> On Tue, Jun 24, 2014 at 11:04 PM, Maria Beckham
>
> <ma...@yahoo.com> wrote:
> > As per your advice, I ran(using sudo) the the stop cmd using the below
> > script but getting the below error in-spite of JAVA_HOME being
> configured in
> > setup.conf file under <setup-path>
> >
> > Output:
> > Error: JAVA_HOME is not defined correctly.
> >  CARBON cannot execute java
> >
> >
> > ________________________________
> > From: chris snow <ch...@gmail.com>
> > To: dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> > Sent: Tuesday, June 24, 2014 2:47 PM
> >
> > Subject: Re: Error during stratos setup apache-stratos-4.0.0
> >
> > Hi Maria,
> >
> > For the permission error, check that the user account that you are
> > starting the stratos service with has appropriate file system
> > permissions to access the PID file.
> >
> > The following commands give you basic start and stop functionality
> > although I have found them to be a little unreliable (I think that
> > proper init.d scripts should be created - see [1]):
> >
> > $STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default
> > --start
> > $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop
> >
> > I think you should be able to restart wit this command, but I haven't
> > managed to get it working:
> >
> > $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart
> >
> > Cheers,
> >
> > Chris
> >
> > ---
> > [1] https://issues.apache.org/jira/browse/STRATOS-683
> >
> > On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
> > <ma...@yahoo.com> wrote:
> >> Also, whats the service name for stratos to check its status, start and
> >> stop
> >> etc.
> >>
> >> ________________________________
> >> From: Maria Beckham <ma...@yahoo.com>
> >> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> >> Sent: Tuesday, June 24, 2014 2:24 PM
> >>
> >> Subject: Re: Error during stratos setup apache-stratos-4.0.0
> >>
> >> I am using Ubunutu 12.0.14 as OS.
> >>
> >>
> >>
> >> ________________________________
> >> From: Maria Beckham <ma...@yahoo.com>
> >> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> >> Sent: Tuesday, June 24, 2014 2:23 PM
> >> Subject: Re: Error during stratos setup apache-stratos-4.0.0
> >>
> >> I was able to fix all the below issues by starting fresh again.
> >>
> >> but, faced the below error now and i cannot connect to below management
> >> url.
> >>
> >> solution or workaround pls?
> >>
> >> Output:
> >>
> >> Starting up servers. This may take time. Look at
> >> /var/log/apache-stratos/stratos-setup.log file for server startup
> details
> >> -su: line 2:
> >>
> >>
> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
> >> Permission denied
> >> You can access Stratos after the server is started.
> >> **************************************************************
> >> Management Console : https://10.9.205.116:9443/console
> >>
> >>
> >>
> >>
> >> ________________________________
> >> From: Dinesh Bandara <di...@wso2.com>
> >> To: dev <de...@stratos.apache.org>
> >> Cc: Maria Beckham <ma...@yahoo.com>
> >> Sent: Monday, June 23, 2014 8:10 PM
> >> Subject: Re: Error during stratos setup apache-stratos-4.0.0
> >>
> >> Yes I have setup startos 4.0.0 on single node. It worked fine with out
> an
> >> issue.
> >> This error occurred when you are trying to access databases with
> incorrect
> >> password. Please check whether that you can access the database using
> the
> >> password 'root'. As Chris mentioned try to connect to MySQL from command
> >> line.
> >>
> >> mysql -h 10.9.20.116 -uroot -proot  userstore
> >>
> >>
> >>
> >> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com>
> wrote:
> >>
> >> Have you tried connecting to mysql from the command line, e.g.
> >>
> >> mysql -h 10.9.20.116 -u root userstore
> >>
> >> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
> >> <ma...@yahoo.com> wrote:
> >>> I think so. I have provided the info as follows in the setup.conf as
> per
> >>> installation guide.
> >>>
> >>> xport userstore_db_hostname="10.9.20.116"
> >>> export userstore_db_schema="userstore"
> >>> export userstore_db_port="3306"
> >>> export userstore_db_user="root"
> >>> export userstore_db_pass="root"
> >>>
> >>>
> >>>
> >>>
> >>> ________________________________
> >>> From: Isuru Perera <is...@wso2.com>
> >>>
> >>> To: dev <de...@stratos.apache.org>; Maria Beckham
> >>> <ma...@yahoo.com>
> >>> Sent: Monday, June 23, 2014 3:34 PM
> >>>
> >>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
> >>>
> >>> The setup is failing when trying to create required databases.
> >>>
> >>> Have you configured MySQL credentials correctly?
> >>>
> >>>
> >>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <
> mariabeckham77@yahoo.com>
> >>> wrote:
> >>>
> >>> Also, another error now.
> >>>
> >>> Creating userstore database
> >>> /opt/stratos-installer/resources /opt/stratos-installer
> >>> /opt/stratos-installer
> >>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> >>> password: YES)
> >>>
> >>> Workaround or resolution pls?
> >>>
> >>> ________________________________
> >>> From: chris snow <ch...@gmail.com>
> >>> To: dev <de...@stratos.apache.org>; Maria Beckham
> >>> <ma...@yahoo.com>
> >>> Sent: Monday, June 23, 2014 2:17 PM
> >>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
> >>>
> >>> Hi Maria,
> >>>
> >>> It looks like it is falling over just after this line: [1]
> >>>
> >>> If you change the script for your Iaas from:
> >>>
> >>> ./ec2.sh $stratos_extract_path
> >>> to
> >>> bash -x ./ec2.sh $stratos_extract_path
> >>>
> >>> Then run the script again, this will give you some debug output which
> >>> will hopefully identify the sed statement that is struggling, for
> >>> example [2]
> >>>
> >>> Please let me know which sed script is failing.
> >>>
> >>> Be careful not to post the output of running 'bash -x ...' to the
> >>> mailing list because it may contain your IaaS credentials.
> >>>
> >>> Many thanks,
> >>>
> >>> Chris
> >>>
> >>> ---
> >>> [1]
> >>>
> >>>
> >>>
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
> >>> [2]
> >>>
> >>>
> >>>
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
> >>>
> >>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
> >>> <ma...@yahoo.com> wrote:
> >>>> Hi All,
> >>>>
> >>>> I am getting the below error when running
> >>>>
> >>>> sudo ./setup.sh -p "default" -s
> >>>>
> >>>>
> >>>> Configuring the Cloud Controller
> >>>> In repository/conf/cloud-controller.xml
> >>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
> >>>> sed: -e expression #1, char 32: unknown option to `s'
> >>>>
> >>>> Please provide resolution or work around ASAP as I am stuck now.
> >>>>
> >>>> thanks,
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> Isuru Perera
> >>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> >>> Lean . Enterprise . Middleware
> >>>
> >>> about.me/chrishantha
> >>>
> >>>
> >>
> >>
> >>
> >>
> >> --
> >> Dinesh Bandara
> >> Software Engineer
> >> WSO2 Inc.; http://wso2.com
> >> lean.enterprise.middleware
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
>
>
>
>
>
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
Can somebody please respond to below issues of mine ASAP as it looks like Chris is not available


________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: chris snow <ch...@gmail.com> 
Sent: Tuesday, June 24, 2014 3:32 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


Also, I dont have root user password. I have been given only sudo privileges.

The reason I have configured host_user as root as opposed to mine is bcoz the setup failed bcoz its taking filepermission group as my username and there is no group by that name




________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: chris snow <ch...@gmail.com> 
Sent: Tuesday, June 24, 2014 3:29 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


but, in setup.conf file, i have given host_user as root before running the setup.sh.

inspite of above, do i need to follow the below instructions by you




________________________________
 From: chris snow <ch...@gmail.com>
To: Maria Beckham <ma...@yahoo.com> 
Sent: Tuesday, June 24, 2014 3:25 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 

Maria, when you run sudo, you are running a command as root.

The error you are getting now is because root does not have the
JAVA_HOME environment variable set.

I think it is best to try fixing the permission of the pid file and
run the stratos startup script using a normal user account and not
with sudo.





On Tue, Jun 24, 2014 at 11:04
 PM, Maria Beckham
<ma...@yahoo.com> wrote:
> As per your advice, I ran(using sudo) the the stop cmd using the below
> script but getting the below error in-spite of JAVA_HOME being configured in
> setup.conf file under <setup-path>
>
> Output:
> Error: JAVA_HOME is not defined correctly.
>  CARBON cannot execute java
>
>
> ________________________________
> From: chris snow <ch...@gmail.com>
> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
> Sent: Tuesday, June 24, 2014 2:47 PM
>
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> Hi Maria,
>
> For the permission error, check that the user account that you are
> starting the stratos service with has appropriate file system
> permissions to access the PID file.
>
> The following commands give you basic start and stop functionality
> although I have found them to be a little unreliable (I think that
> proper init.d scripts should be created - see [1]):
>
>
 $STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default
> --start
> $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop
>
> I think you should be able to restart wit this command, but I haven't
> managed to get it working:
>
> $STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart
>
> Cheers,
>
> Chris
>
> ---
> [1] https://issues.apache.org/jira/browse/STRATOS-683
>
> On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
>> Also, whats the service name for stratos to check its status, start and
>> stop
>> etc.
>>
>> ________________________________
>> From: Maria Beckham <ma...@yahoo.com>
>> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>> Sent: Tuesday, June 24, 2014 2:24 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> I am using Ubunutu 12.0.14 as OS.
>>
>>
>>
>> ________________________________
>> From: Maria Beckham <ma...@yahoo.com>
>> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
>> Sent: Tuesday, June 24, 2014 2:23 PM
>>
 Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> I was able to fix all the below issues by starting fresh again.
>>
>> but, faced the below error now and i cannot connect to below management
>> url.
>>
>> solution or workaround pls?
>>
>> Output:
>>
>> Starting up servers. This may take time. Look at
>> /var/log/apache-stratos/stratos-setup.log file for server startup details
>> -su: line 2:
>>
>> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
>> Permission denied
>> You can access Stratos after the server is started.
>> **************************************************************
>> Management Console : https://10.9.205.116:9443/console
>>
>>
>>
>>
>> ________________________________
>> From: Dinesh Bandara <di...@wso2.com>
>> To: dev <de...@stratos.apache.org>
>> Cc: Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 8:10 PM
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Yes I have setup startos 4.0.0 on single node. It worked fine with out an
>> issue.
>> This error occurred when you are trying to access databases with incorrect
>> password. Please check whether that you can access the database using the
>> password 'root'. As Chris mentioned try to connect to MySQL from command
>> line.
>>
>> mysql -h 10.9.20.116 -uroot -proot  userstore
>>
>>
>>
>> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:
>>
>> Have you tried connecting to mysql from the command line, e.g.
>>
>> mysql -h 10.9.20.116 -u root userstore
>>
>> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> I think so. I have provided the info as follows in the setup.conf as per
>>> installation guide.
>>>
>>> xport userstore_db_hostname="10.9.20.116"
>>> export
 userstore_db_schema="userstore"
>>> export userstore_db_port="3306"
>>> export userstore_db_user="root"
>>> export userstore_db_pass="root"
>>>
>>>
>>>
>>>
>>> ________________________________
>>> From: Isuru Perera
 <is...@wso2.com>
>>>
>>> To: dev <de...@stratos.apache.org>; Maria Beckham
>>> <ma...@yahoo.com>
>>> Sent: Monday, June 23, 2014 3:34 PM
>>>
>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> The setup is failing when trying to create required databases.
>>>
>>> Have you configured MySQL
 credentials correctly?
>>>
>>>
>>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>>> wrote:
>>>
>>> Also, another error now.
>>>
>>> Creating userstore database
>>> /opt/stratos-installer/resources /opt/stratos-installer
>>> /opt/stratos-installer
>>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>>> password: YES)
>>>
>>> Workaround or resolution pls?
>>>
>>>
 ________________________________
>>> From: chris snow <ch...@gmail.com>
>>> To: dev <de...@stratos.apache.org>; Maria Beckham
>>> <ma...@yahoo.com>
>>> Sent: Monday, June 23, 2014 2:17 PM
>>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>>
>>> Hi Maria,
>>>
>>> It looks like it is falling over just after this
 line: [1]
>>>
>>> If you change the script for your Iaas from:
>>>
>>> ./ec2.sh
 $stratos_extract_path
>>> to
>>> bash -x ./ec2.sh $stratos_extract_path
>>>
>>> Then run the script again, this will give you some debug output which
>>> will hopefully identify the sed statement that is struggling, for
>>> example [2]
>>>
>>> Please let me know which sed script is failing.
>>>
>>> Be careful not to post the output of running 'bash -x ...' to the
>>> mailing list because it may contain your IaaS credentials.
>>>
>>> Many thanks,
>>>
>>> Chris
>>>
>>> ---
>>> [1]
>>>
>>>
>>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>>> [2]
>>>
>>>
>>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>>
>>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>>> <ma...@yahoo.com> wrote:
>>>> Hi
 All,
>>>>
>>>> I am getting the below error when running
>>>>
>>>> sudo ./setup.sh -p "default" -s
>>>>
>>>>
>>>> Configuring the Cloud Controller
>>>> In repository/conf/cloud-controller.xml
>>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>>> sed: -e expression #1, char 32: unknown option to `s'
>>>>
>>>> Please provide resolution or work around ASAP as I am stuck now.
>>>>
>>>> thanks,
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
 --
>>> Isuru Perera
>>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>>
>>>
>>
>>
>>
>>
>> --
>> Dinesh Bandara
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>>
>>
>>
>>
>>
>
>

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
As per your advice, I ran(using sudo) the the stop cmd using the below script but getting the below error in-spite of JAVA_HOME being configured in setup.conf file under <setup-path>

Output:
Error: JAVA_HOME is not defined correctly.
 CARBON cannot execute java



________________________________
 From: chris snow <ch...@gmail.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Sent: Tuesday, June 24, 2014 2:47 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 

Hi Maria,

For the permission error, check that the user account that you are
starting the stratos service with has appropriate file system
permissions to access the PID file.

The following commands give you basic start and stop functionality
although I have found them to be a little unreliable (I think that
proper init.d scripts should be created - see [1]):

$STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default --start
$STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop

I think you should be able to restart wit this command, but I haven't
managed to get it working:

$STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart

Cheers,

Chris

---
[1] https://issues.apache.org/jira/browse/STRATOS-683


On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
<ma...@yahoo.com> wrote:
> Also, whats the service name for stratos to check its status, start and stop
> etc.
>
> ________________________________
> From: Maria Beckham <ma...@yahoo.com>
> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> Sent: Tuesday, June 24, 2014 2:24 PM
>
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> I am using Ubunutu 12.0.14 as OS.
>
>
>
> ________________________________
> From: Maria Beckham <ma...@yahoo.com>
> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> Sent: Tuesday, June 24, 2014 2:23 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> I was able to fix all the below issues by starting fresh again.
>
> but, faced the below error now and i cannot connect to below management url.
>
> solution or workaround pls?
>
> Output:
>
> Starting up servers. This may take time. Look at
> /var/log/apache-stratos/stratos-setup.log file for server startup details
> -su: line 2:
> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
> Permission denied
> You can access Stratos after the server is started.
> **************************************************************
> Management Console : https://10.9.205.116:9443/console
>
>
>
>
> ________________________________
> From: Dinesh Bandara <di...@wso2.com>
> To: dev <de...@stratos.apache.org>
> Cc: Maria Beckham <ma...@yahoo.com>
> Sent: Monday, June 23, 2014 8:10 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> Yes I have setup startos 4.0.0 on single node. It worked fine with out an
> issue.
> This error occurred when you are trying to access databases with incorrect
> password. Please check whether that you can access the database using the
> password 'root'. As Chris mentioned try to connect to MySQL from command
> line.
>
> mysql -h 10.9.20.116 -uroot -proot  userstore
>
>
>
> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:
>
> Have you tried connecting to mysql from the command line, e.g.
>
> mysql -h 10.9.20.116 -u root userstore
>
> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
>> I think so. I have provided the info as follows in the setup.conf as per
>> installation guide.
>>
>> xport userstore_db_hostname="10.9.20.116"
>> export userstore_db_schema="userstore"
>> export userstore_db_port="3306"
>> export userstore_db_user="root"
>> export userstore_db_pass="root"
>>
>>
>>
>>
>> ________________________________
>> From: Isuru Perera <is...@wso2.com>
>>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 3:34 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> The setup is failing when trying to create required databases.
>>
>> Have you configured MySQL credentials correctly?
>>
>>
>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> Also, another error now.
>>
>> Creating userstore database
>> /opt/stratos-installer/resources /opt/stratos-installer
>> /opt/stratos-installer
>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> password: YES)
>>
>> Workaround or resolution pls?
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 2:17 PM
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> It looks like it is falling over just after this line: [1]
>>
>> If you change the script for your Iaas from:
>>
>> ./ec2.sh $stratos_extract_path
>> to
>> bash -x ./ec2.sh $stratos_extract_path
>>
>> Then run the script again, this will give you some debug output which
>> will hopefully identify the sed statement that is struggling, for
>> example [2]
>>
>> Please let me know which sed script is failing.
>>
>> Be careful not to post the output of running 'bash -x ...' to the
>> mailing list because it may contain your IaaS credentials.
>>
>> Many thanks,
>>
>> Chris
>>
>> ---
>> [1]
>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> [2]
>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1, char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>
>
>
>
> --
> Dinesh Bandara
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
>
>
>
>
>

Re: Error during stratos setup apache-stratos-4.0.0

Posted by chris snow <ch...@gmail.com>.
Hi Maria,

For the permission error, check that the user account that you are
starting the stratos service with has appropriate file system
permissions to access the PID file.

The following commands give you basic start and stop functionality
although I have found them to be a little unreliable (I think that
proper init.d scripts should be created - see [1]):

$STRATOS_PATH/apache-stratos-default/bin/stratos.sh -Dprofile=default --start
$STRATOS_PATH/apache-stratos-default/bin/stratos.sh --stop

I think you should be able to restart wit this command, but I haven't
managed to get it working:

$STRATOS_PATH/apache-stratos-default/bin/stratos.sh --restart

Cheers,

Chris

---
[1] https://issues.apache.org/jira/browse/STRATOS-683

On Tue, Jun 24, 2014 at 10:33 PM, Maria Beckham
<ma...@yahoo.com> wrote:
> Also, whats the service name for stratos to check its status, start and stop
> etc.
>
> ________________________________
> From: Maria Beckham <ma...@yahoo.com>
> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> Sent: Tuesday, June 24, 2014 2:24 PM
>
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> I am using Ubunutu 12.0.14 as OS.
>
>
>
> ________________________________
> From: Maria Beckham <ma...@yahoo.com>
> To: "dev@stratos.apache.org" <de...@stratos.apache.org>
> Sent: Tuesday, June 24, 2014 2:23 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> I was able to fix all the below issues by starting fresh again.
>
> but, faced the below error now and i cannot connect to below management url.
>
> solution or workaround pls?
>
> Output:
>
> Starting up servers. This may take time. Look at
> /var/log/apache-stratos/stratos-setup.log file for server startup details
> -su: line 2:
> /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid:
> Permission denied
> You can access Stratos after the server is started.
> **************************************************************
> Management Console : https://10.9.205.116:9443/console
>
>
>
>
> ________________________________
> From: Dinesh Bandara <di...@wso2.com>
> To: dev <de...@stratos.apache.org>
> Cc: Maria Beckham <ma...@yahoo.com>
> Sent: Monday, June 23, 2014 8:10 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> Yes I have setup startos 4.0.0 on single node. It worked fine with out an
> issue.
> This error occurred when you are trying to access databases with incorrect
> password. Please check whether that you can access the database using the
> password 'root'. As Chris mentioned try to connect to MySQL from command
> line.
>
> mysql -h 10.9.20.116 -uroot -proot  userstore
>
>
>
> On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:
>
> Have you tried connecting to mysql from the command line, e.g.
>
> mysql -h 10.9.20.116 -u root userstore
>
> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
>> I think so. I have provided the info as follows in the setup.conf as per
>> installation guide.
>>
>> xport userstore_db_hostname="10.9.20.116"
>> export userstore_db_schema="userstore"
>> export userstore_db_port="3306"
>> export userstore_db_user="root"
>> export userstore_db_pass="root"
>>
>>
>>
>>
>> ________________________________
>> From: Isuru Perera <is...@wso2.com>
>>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 3:34 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> The setup is failing when trying to create required databases.
>>
>> Have you configured MySQL credentials correctly?
>>
>>
>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> Also, another error now.
>>
>> Creating userstore database
>> /opt/stratos-installer/resources /opt/stratos-installer
>> /opt/stratos-installer
>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> password: YES)
>>
>> Workaround or resolution pls?
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 2:17 PM
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> It looks like it is falling over just after this line: [1]
>>
>> If you change the script for your Iaas from:
>>
>> ./ec2.sh $stratos_extract_path
>> to
>> bash -x ./ec2.sh $stratos_extract_path
>>
>> Then run the script again, this will give you some debug output which
>> will hopefully identify the sed statement that is struggling, for
>> example [2]
>>
>> Please let me know which sed script is failing.
>>
>> Be careful not to post the output of running 'bash -x ...' to the
>> mailing list because it may contain your IaaS credentials.
>>
>> Many thanks,
>>
>> Chris
>>
>> ---
>> [1]
>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> [2]
>>
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1, char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>
>
>
>
> --
> Dinesh Bandara
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
>
>
>
>
>

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
Also, whats the service name for stratos to check its status, start and stop etc.


________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org> 
Sent: Tuesday, June 24, 2014 2:24 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


I am using Ubunutu 12.0.14 as OS.




________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org> 
Sent: Tuesday, June 24, 2014 2:23 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


I was able to fix all the below issues by starting fresh again.

but, faced the below error now and i cannot connect to below management url. 

solution or workaround pls?

Output:

Starting up servers. This may take time. Look at /var/log/apache-stratos/stratos-setup.log file for server startup details
-su: line 2: /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid: Permission denied
You can access Stratos after the server is started.
**************************************************************
Management Console : https://10.9.205.116:9443/console





________________________________
 From: Dinesh Bandara <di...@wso2.com>
To: dev <de...@stratos.apache.org> 
Cc: Maria Beckham <ma...@yahoo.com> 
Sent: Monday, June 23, 2014 8:10 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


Yes I have setup startos 4.0.0 on single node. It worked fine with out an issue. 
This error occurred when you are trying to access databases with incorrect password. Please check whether that you can access the database using the password 'root'. As Chris mentioned try to connect to MySQL from command line. 

mysql -h 10.9.20.116 -uroot -proot  userstore





On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:

Have you tried connecting to mysql from the command line, e.g.
>
>mysql -h 10.9.20.116 -u root userstore
>
>On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
>
><ma...@yahoo.com> wrote:
>> I think so. I have provided the info as follows in the setup.conf as per
>> installation guide.
>>
>> xport userstore_db_hostname="10.9.20.116"
>> export userstore_db_schema="userstore"
>> export userstore_db_port="3306"
>> export userstore_db_user="root"
>> export userstore_db_pass="root"
>>
>>
>>
>>
>> ________________________________
>> From: Isuru Perera <is...@wso2.com>
>>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 3:34 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> The setup is failing when trying to create required databases.
>>
>> Have you configured MySQL credentials correctly?
>>
>>
>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> Also, another error now.
>>
>> Creating userstore database
>> /opt/stratos-installer/resources /opt/stratos-installer
>> /opt/stratos-installer
>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> password: YES)
>>
>> Workaround or resolution pls?
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 2:17 PM
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> It looks like it is falling over just after this line: [1]
>>
>> If you change the script for your Iaas from:
>>
>> ./ec2.sh $stratos_extract_path
>> to
>> bash -x ./ec2.sh $stratos_extract_path
>>
>> Then run the script again, this will give you some debug output which
>> will hopefully identify the sed statement that is struggling, for
>> example [2]
>>
>> Please let me know which sed script is failing.
>>
>> Be careful not to post the output of running 'bash -x ...' to the
>> mailing list because it may contain your IaaS credentials.
>>
>> Many thanks,
>>
>> Chris
>>
>> ---
>> [1]
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> [2]
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1, char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>


-- 

Dinesh Bandara
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
I am using Ubunutu 12.0.14 as OS.


________________________________
 From: Maria Beckham <ma...@yahoo.com>
To: "dev@stratos.apache.org" <de...@stratos.apache.org> 
Sent: Tuesday, June 24, 2014 2:23 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


I was able to fix all the below issues by starting fresh again.

but, faced the below error now and i cannot connect to below management url. 

solution or workaround pls?

Output:

Starting up servers. This may take time. Look at /var/log/apache-stratos/stratos-setup.log file for server startup details
-su: line 2: /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid: Permission denied
You can access Stratos after the server is started.
**************************************************************
Management Console : https://10.9.205.116:9443/console





________________________________
 From: Dinesh Bandara <di...@wso2.com>
To: dev <de...@stratos.apache.org> 
Cc: Maria Beckham <ma...@yahoo.com> 
Sent: Monday, June 23, 2014 8:10 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


Yes I have setup startos 4.0.0 on single node. It worked fine with out an issue. 
This error occurred when you are trying to access databases with incorrect password. Please check whether that you can access the database using the password 'root'. As Chris mentioned try to connect to MySQL from command line. 

mysql -h 10.9.20.116 -uroot -proot  userstore





On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:

Have you tried connecting to mysql from the command line, e.g.
>
>mysql -h 10.9.20.116 -u root userstore
>
>On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
>
><ma...@yahoo.com> wrote:
>> I think so. I have provided the info as follows in the setup.conf as per
>> installation guide.
>>
>> xport userstore_db_hostname="10.9.20.116"
>> export userstore_db_schema="userstore"
>> export userstore_db_port="3306"
>> export userstore_db_user="root"
>> export userstore_db_pass="root"
>>
>>
>>
>>
>> ________________________________
>> From: Isuru Perera <is...@wso2.com>
>>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 3:34 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> The setup is failing when trying to create required databases.
>>
>> Have you configured MySQL credentials correctly?
>>
>>
>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> Also, another error now.
>>
>> Creating userstore database
>> /opt/stratos-installer/resources /opt/stratos-installer
>> /opt/stratos-installer
>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> password: YES)
>>
>> Workaround or resolution pls?
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 2:17 PM
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> It looks like it is falling over just after this line: [1]
>>
>> If you change the script for your Iaas from:
>>
>> ./ec2.sh $stratos_extract_path
>> to
>> bash -x ./ec2.sh $stratos_extract_path
>>
>> Then run the script again, this will give you some debug output which
>> will hopefully identify the sed statement that is struggling, for
>> example [2]
>>
>> Please let me know which sed script is failing.
>>
>> Be careful not to post the output of running 'bash -x ...' to the
>> mailing list because it may contain your IaaS credentials.
>>
>> Many thanks,
>>
>> Chris
>>
>> ---
>> [1]
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> [2]
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1, char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>


-- 

Dinesh Bandara
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
I was able to fix all the below issues by starting fresh again.

but, faced the below error now and i cannot connect to below management url. 

solution or workaround pls?

Output:

Starting up servers. This may take time. Look at /var/log/apache-stratos/stratos-setup.log file for server startup details
-su: line 2: /opt/stratos/apache-activemq-5.9.1/data/activemq-stratos-master-229867.pid: Permission denied
You can access Stratos after the server is started.
**************************************************************
Management Console : https://10.9.205.116:9443/console



________________________________
 From: Dinesh Bandara <di...@wso2.com>
To: dev <de...@stratos.apache.org> 
Cc: Maria Beckham <ma...@yahoo.com> 
Sent: Monday, June 23, 2014 8:10 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


Yes I have setup startos 4.0.0 on single node. It worked fine with out an issue. 
This error occurred when you are trying to access databases with incorrect password. Please check whether that you can access the database using the password 'root'. As Chris mentioned try to connect to MySQL from command line. 

mysql -h 10.9.20.116 -uroot -proot  userstore





On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:

Have you tried connecting to mysql from the command line, e.g.
>
>mysql -h 10.9.20.116 -u root userstore
>
>On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
>
><ma...@yahoo.com> wrote:
>> I think so. I have provided the info as follows in the setup.conf as per
>> installation guide.
>>
>> xport userstore_db_hostname="10.9.20.116"
>> export userstore_db_schema="userstore"
>> export userstore_db_port="3306"
>> export userstore_db_user="root"
>> export userstore_db_pass="root"
>>
>>
>>
>>
>> ________________________________
>> From: Isuru Perera <is...@wso2.com>
>>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 3:34 PM
>>
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> The setup is failing when trying to create required databases.
>>
>> Have you configured MySQL credentials correctly?
>>
>>
>> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
>> wrote:
>>
>> Also, another error now.
>>
>> Creating userstore database
>> /opt/stratos-installer/resources /opt/stratos-installer
>> /opt/stratos-installer
>> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
>> password: YES)
>>
>> Workaround or resolution pls?
>>
>> ________________________________
>> From: chris snow <ch...@gmail.com>
>> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
>> Sent: Monday, June 23, 2014 2:17 PM
>> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>>
>> Hi Maria,
>>
>> It looks like it is falling over just after this line: [1]
>>
>> If you change the script for your Iaas from:
>>
>> ./ec2.sh $stratos_extract_path
>> to
>> bash -x ./ec2.sh $stratos_extract_path
>>
>> Then run the script again, this will give you some debug output which
>> will hopefully identify the sed statement that is struggling, for
>> example [2]
>>
>> Please let me know which sed script is failing.
>>
>> Be careful not to post the output of running 'bash -x ...' to the
>> mailing list because it may contain your IaaS credentials.
>>
>> Many thanks,
>>
>> Chris
>>
>> ---
>> [1]
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>> [2]
>> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>>
>> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
>> <ma...@yahoo.com> wrote:
>>> Hi All,
>>>
>>> I am getting the below error when running
>>>
>>> sudo ./setup.sh -p "default" -s
>>>
>>>
>>> Configuring the Cloud Controller
>>> In repository/conf/cloud-controller.xml
>>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>>> sed: -e expression #1, char 32: unknown option to `s'
>>>
>>> Please provide resolution or work around ASAP as I am stuck now.
>>>
>>> thanks,
>>>
>>
>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>>
>


-- 

Dinesh Bandara
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Dinesh Bandara <di...@wso2.com>.
Yes I have setup startos 4.0.0 on single node. It worked fine with out an
issue.
This error occurred when you are trying to access databases with incorrect
password. Please check whether that you can access the database using the
password *'root'.* As Chris mentioned try to connect to MySQL from command
line.

mysql -h 10.9.20.116 -uroot -proot  userstore



On Tue, Jun 24, 2014 at 8:07 AM, chris snow <ch...@gmail.com> wrote:

> Have you tried connecting to mysql from the command line, e.g.
>
> mysql -h 10.9.20.116 -u root userstore
>
> On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
> > I think so. I have provided the info as follows in the setup.conf as per
> > installation guide.
> >
> > xport userstore_db_hostname="10.9.20.116"
> > export userstore_db_schema="userstore"
> > export userstore_db_port="3306"
> > export userstore_db_user="root"
> > export userstore_db_pass="root"
> >
> >
> >
> >
> > ________________________________
> > From: Isuru Perera <is...@wso2.com>
> >
> > To: dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> > Sent: Monday, June 23, 2014 3:34 PM
> >
> > Subject: Re: Error during stratos setup apache-stratos-4.0.0
> >
> > The setup is failing when trying to create required databases.
> >
> > Have you configured MySQL credentials correctly?
> >
> >
> > On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <mariabeckham77@yahoo.com
> >
> > wrote:
> >
> > Also, another error now.
> >
> > Creating userstore database
> > /opt/stratos-installer/resources /opt/stratos-installer
> > /opt/stratos-installer
> > ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> > password: YES)
> >
> > Workaround or resolution pls?
> >
> > ________________________________
> > From: chris snow <ch...@gmail.com>
> > To: dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> > Sent: Monday, June 23, 2014 2:17 PM
> > Subject: Re: Error during stratos setup apache-stratos-4.0.0
> >
> > Hi Maria,
> >
> > It looks like it is falling over just after this line: [1]
> >
> > If you change the script for your Iaas from:
> >
> > ./ec2.sh $stratos_extract_path
> > to
> > bash -x ./ec2.sh $stratos_extract_path
> >
> > Then run the script again, this will give you some debug output which
> > will hopefully identify the sed statement that is struggling, for
> > example [2]
> >
> > Please let me know which sed script is failing.
> >
> > Be careful not to post the output of running 'bash -x ...' to the
> > mailing list because it may contain your IaaS credentials.
> >
> > Many thanks,
> >
> > Chris
> >
> > ---
> > [1]
> >
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
> > [2]
> >
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
> >
> > On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
> > <ma...@yahoo.com> wrote:
> >> Hi All,
> >>
> >> I am getting the below error when running
> >>
> >> sudo ./setup.sh -p "default" -s
> >>
> >>
> >> Configuring the Cloud Controller
> >> In repository/conf/cloud-controller.xml
> >> /opt/stratos/apache-stratos-default /opt/stratos-installer
> >> sed: -e expression #1, char 32: unknown option to `s'
> >>
> >> Please provide resolution or work around ASAP as I am stuck now.
> >>
> >> thanks,
> >>
> >
> >
> >
> >
> >
> > --
> > Isuru Perera
> > Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> > Lean . Enterprise . Middleware
> >
> > about.me/chrishantha
> >
> >
>



-- 
*Dinesh Bandara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Re: Error during stratos setup apache-stratos-4.0.0

Posted by chris snow <ch...@gmail.com>.
Have you tried connecting to mysql from the command line, e.g.

mysql -h 10.9.20.116 -u root userstore

On Mon, Jun 23, 2014 at 11:39 PM, Maria Beckham
<ma...@yahoo.com> wrote:
> I think so. I have provided the info as follows in the setup.conf as per
> installation guide.
>
> xport userstore_db_hostname="10.9.20.116"
> export userstore_db_schema="userstore"
> export userstore_db_port="3306"
> export userstore_db_user="root"
> export userstore_db_pass="root"
>
>
>
>
> ________________________________
> From: Isuru Perera <is...@wso2.com>
>
> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
> Sent: Monday, June 23, 2014 3:34 PM
>
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> The setup is failing when trying to create required databases.
>
> Have you configured MySQL credentials correctly?
>
>
> On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
> wrote:
>
> Also, another error now.
>
> Creating userstore database
> /opt/stratos-installer/resources /opt/stratos-installer
> /opt/stratos-installer
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> password: YES)
>
> Workaround or resolution pls?
>
> ________________________________
> From: chris snow <ch...@gmail.com>
> To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com>
> Sent: Monday, June 23, 2014 2:17 PM
> Subject: Re: Error during stratos setup apache-stratos-4.0.0
>
> Hi Maria,
>
> It looks like it is falling over just after this line: [1]
>
> If you change the script for your Iaas from:
>
> ./ec2.sh $stratos_extract_path
> to
> bash -x ./ec2.sh $stratos_extract_path
>
> Then run the script again, this will give you some debug output which
> will hopefully identify the sed statement that is struggling, for
> example [2]
>
> Please let me know which sed script is failing.
>
> Be careful not to post the output of running 'bash -x ...' to the
> mailing list because it may contain your IaaS credentials.
>
> Many thanks,
>
> Chris
>
> ---
> [1]
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
> [2]
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>
> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
>> Hi All,
>>
>> I am getting the below error when running
>>
>> sudo ./setup.sh -p "default" -s
>>
>>
>> Configuring the Cloud Controller
>> In repository/conf/cloud-controller.xml
>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>> sed: -e expression #1, char 32: unknown option to `s'
>>
>> Please provide resolution or work around ASAP as I am stuck now.
>>
>> thanks,
>>
>
>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>
>

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
I think so. I have provided the info as follows in the setup.conf as per installation guide.

xport userstore_db_hostname="10.9.20.116"
export userstore_db_schema="userstore"
export userstore_db_port="3306"
export userstore_db_user="root"
export userstore_db_pass="root"





________________________________
 From: Isuru Perera <is...@wso2.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Sent: Monday, June 23, 2014 3:34 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 


The setup is failing when trying to create required databases.

Have you configured MySQL credentials correctly?




On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com> wrote:

Also, another error now.
>
>
>Creating userstore database
>/opt/stratos-installer/resources /opt/stratos-installer
>/opt/stratos-installer
>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
>
>
>
>Workaround or resolution pls?
>
>
>
>________________________________
> From: chris snow <ch...@gmail.com>
>To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
>Sent: Monday, June 23, 2014 2:17 PM
>Subject: Re: Error during stratos setup apache-stratos-4.0.0
> 
>
>Hi Maria,
>
>It looks like it is falling over just after this line: [1]
>
>If you change the script for your Iaas from:
>
>./ec2.sh $stratos_extract_path
>to
>bash -x ./ec2.sh $stratos_extract_path
>
>Then run the script again, this will give you some debug output which
>will hopefully identify the sed statement that is struggling, for
>example [2]
>
>Please let me know which sed script is failing.
>
>Be careful not to post the output of running 'bash -x ...' to the
>mailing list because it may contain your IaaS credentials.
>
>Many thanks,
>
>Chris
>
>---
>[1] https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
>[2] https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>
>
>On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
><ma...@yahoo.com> wrote:
>> Hi All,
>>
>> I am getting the below error when running
>>
>> sudo ./setup.sh -p "default" -s
>>
>>
>> Configuring the Cloud Controller
>> In repository/conf/cloud-controller.xml
>> /opt/stratos/apache-stratos-default /opt/stratos-installer
>> sed: -e expression #1, char 32: unknown option to `s'
>>
>> Please provide resolution or work around ASAP as I am stuck now.
>>
>> thanks,
>>
>
>
>


-- 

Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Isuru Perera <is...@wso2.com>.
The setup is failing when trying to create required databases.

Have you configured MySQL credentials correctly?


On Mon, Jun 23, 2014 at 3:06 PM, Maria Beckham <ma...@yahoo.com>
wrote:

> Also, another error now.
>
> Creating userstore database
> /opt/stratos-installer/resources /opt/stratos-installer
> /opt/stratos-installer
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> password: YES)
>
> Workaround or resolution pls?
>
>   ------------------------------
>  *From:* chris snow <ch...@gmail.com>
> *To:* dev <de...@stratos.apache.org>; Maria Beckham <
> mariabeckham77@yahoo.com>
> *Sent:* Monday, June 23, 2014 2:17 PM
> *Subject:* Re: Error during stratos setup apache-stratos-4.0.0
>
> Hi Maria,
>
> It looks like it is falling over just after this line: [1]
>
> If you change the script for your Iaas from:
>
> ./ec2.sh $stratos_extract_path
> to
> bash -x ./ec2.sh $stratos_extract_path
>
> Then run the script again, this will give you some debug output which
> will hopefully identify the sed statement that is struggling, for
> example [2]
>
> Please let me know which sed script is failing.
>
> Be careful not to post the output of running 'bash -x ...' to the
> mailing list because it may contain your IaaS credentials.
>
> Many thanks,
>
> Chris
>
> ---
> [1]
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
> [2]
> https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44
>
> On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
> <ma...@yahoo.com> wrote:
> > Hi All,
> >
> > I am getting the below error when running
> >
> > sudo ./setup.sh -p "default" -s
> >
> >
> > Configuring the Cloud Controller
> > In repository/conf/cloud-controller.xml
> > /opt/stratos/apache-stratos-default /opt/stratos-installer
> > sed: -e expression #1, char 32: unknown option to `s'
> >
> > Please provide resolution or work around ASAP as I am stuck now.
> >
> > thanks,
> >
>
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Error during stratos setup apache-stratos-4.0.0

Posted by Maria Beckham <ma...@yahoo.com>.
Also, another error now.

Creating userstore database
/opt/stratos-installer/resources /opt/stratos-installer
/opt/stratos-installer
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)


Workaround or resolution pls?


________________________________
 From: chris snow <ch...@gmail.com>
To: dev <de...@stratos.apache.org>; Maria Beckham <ma...@yahoo.com> 
Sent: Monday, June 23, 2014 2:17 PM
Subject: Re: Error during stratos setup apache-stratos-4.0.0
 

Hi Maria,

It looks like it is falling over just after this line: [1]

If you change the script for your Iaas from:

./ec2.sh $stratos_extract_path
to
bash -x ./ec2.sh $stratos_extract_path

Then run the script again, this will give you some debug output which
will hopefully identify the sed statement that is struggling, for
example [2]

Please let me know which sed script is failing.

Be careful not to post the output of running 'bash -x ...' to the
mailing list because it may contain your IaaS credentials.

Many thanks,

Chris

---
[1] https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
[2] https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44


On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
<ma...@yahoo.com> wrote:
> Hi All,
>
> I am getting the below error when running
>
> sudo ./setup.sh -p "default" -s
>
>
> Configuring the Cloud Controller
> In repository/conf/cloud-controller.xml
> /opt/stratos/apache-stratos-default /opt/stratos-installer
> sed: -e expression #1, char 32: unknown option to `s'
>
> Please provide resolution or work around ASAP as I am stuck now.
>
> thanks,
>

Re: Error during stratos setup apache-stratos-4.0.0

Posted by chris snow <ch...@gmail.com>.
Hi Maria,

It looks like it is falling over just after this line: [1]

If you change the script for your Iaas from:

./ec2.sh $stratos_extract_path
to
bash -x ./ec2.sh $stratos_extract_path

Then run the script again, this will give you some debug output which
will hopefully identify the sed statement that is struggling, for
example [2]

Please let me know which sed script is failing.

Be careful not to post the output of running 'bash -x ...' to the
mailing list because it may contain your IaaS credentials.

Many thanks,

Chris

---
[1] https://github.com/apache/stratos/blob/master/tools/stratos-installer/setup.sh#L217
[2] https://github.com/apache/stratos/blob/master/tools/stratos-installer/ec2.sh#L44

On Mon, Jun 23, 2014 at 10:05 PM, Maria Beckham
<ma...@yahoo.com> wrote:
> Hi All,
>
> I am getting the below error when running
>
> sudo ./setup.sh -p "default" -s
>
>
> Configuring the Cloud Controller
> In repository/conf/cloud-controller.xml
> /opt/stratos/apache-stratos-default /opt/stratos-installer
> sed: -e expression #1, char 32: unknown option to `s'
>
> Please provide resolution or work around ASAP as I am stuck now.
>
> thanks,
>