Thanks Lasindu,

Thushara and I are in the process of modifying the shell scripts suitable
for osx.
We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.

After the discussion, the solution we found was to delete the
USERSTORE_DB_SCHEMA database from mysql manually.

As mentioned earlier, once $ sudo ./setup.sh -p "default" -s command is run
we get the following error.
<outputEventAdaptor name="JMSOutputAdaptor" statistics="disable"
  trace="enable" type="jms" xmlns="
http://wso2.org/carbon/eventadaptormanager";>
  <!--property
name="java.naming.provider.url">CEP_HOME/repository/conf/jndi.properties</property-->
  <property name="java.naming.provider.url">tcp://10.100.5.175:61616
</property>
  <property
name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property>
  <property
name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</property>
  <property name="transport.jms.DestinationType">topic</property>
</outputEventAdaptor>
End configuring the Complex Event Processor
/WSO2/Products/stratos/opt/stratos-installer
Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
chown: suhanr: illegal group name

*After the second attempt we were getting the said error. $subject.*

As a temporary solution we deleted the said database from mysql.
mysql> show databases;
+---------------------+
| Database            |
+---------------------+
| information_schema  |
| *USERSTORE_DB_SCHEMA* |
| mysql               |
| performance_schema  |
| test                |
+---------------------+
5 rows in set (0.00 sec)

mysql> drop database *USERSTORE_DB_SCHEMA*;
Query OK, 39 rows affected (0.05 sec)

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.00 sec)

Then we were able to avoid the mentioned error in $subject.

Thanks,
Suhan

On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith <[email protected]> wrote:

> Hi Thushara and Suhan,
>
> Better if you can discuss the issues related to Apaches Stratos in
> stratos-dev list (http://stratos.apache.org/community/mailing-lists.html)
> But for now, regarding the issues you have when setting up Stratos in osx,
> Nirmal, Reka or Prasanna might be able to help (Added).
>
> Thanks,
>
> On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya <[email protected]>
> wrote:
>
>> We have installed mysql for OSX 10.9 [1]
>>
>> [1] http://www.macminivault.com/mysql-mavericks/
>>
>> On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> Myself and Thushara were following the tutorial [1] installing apache
>>> Stratos and came to the following section.
>>>
>>>    - Run the stratos-setup.sh file as the root.
>>>
>>> $ sudo ./setup.sh -p "default"
>>>
>>> After running the command we got the following error in our mac book
>>> pros.
>>> Detail terminal output is attached in the mail for reference.
>>>
>>> /WSO2/Products/stratos/opt/stratos-installer
>>> Warning: Using a password on the command line interface can be insecure.
>>> *ERROR 1061 (42000) at line 57: Duplicate key name
>>> 'REG_PATH_IND_BY_PATH_VALUE'*
>>>
>>> We also followed the apache stratos wiki [3].
>>> Please provide a direction to proceed from here.
>>>
>>> *Note*: *earlier setup.sh file gave an error saying,*
>>> sed: illegal option --r
>>> *Then the shell script was changed accordingly[2].*
>>> *Please note that we are using Mac OSX 10.9.4*
>>>
>>> *Then again an error appeared stating -i switch is not supported.*
>>>
>>> *Therefore the following shell script files were modified removing -i
>>> switch.*
>>> *ec2.sh*
>>> *openstack.sh*
>>> *setup.sh*
>>> *setup.conf*
>>>
>>> *Scripts are attached for reference. *
>>>
>>> [1]
>>> http://blog.ravihansa3000.com/2014/04/installing-apache-stratos-40-with.html
>>> [2] http://www.flashesofpanic.com/panic/002596.php
>>> [3]
>>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Cloud+Controller+Configuration
>>>
>>> Thanks,
>>> Suhan and Thushara
>>> --
>>> Suhan Dharmasuriya
>>> Software Engineer - Test Automation
>>>
>>> *WSO2, Inc. *
>>>
>>> lean . enterprise . middleware
>>> Tel: +94 112 145345
>>> Mob: +94 779 869138
>>> Blog: http://suhancoold.blogspot.com/
>>>
>>
>>
>>
>> --
>> Suhan Dharmasuriya
>> Software Engineer - Test Automation
>>
>> *WSO2, Inc. *
>>
>> lean . enterprise . middleware
>> Tel: +94 112 145345
>> Mob: +94 779 869138
>> Blog: http://suhancoold.blogspot.com/
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lasindu Charith*
> Software Engineer, WSO2 Inc.
> Mobile: +94714427192
> Web: blog.lasindu.com
>



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhancoold.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to