Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6132A17829 for ; Mon, 1 Jun 2015 09:48:01 +0000 (UTC) Received: (qmail 88490 invoked by uid 500); 1 Jun 2015 09:48:01 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 88441 invoked by uid 500); 1 Jun 2015 09:48:01 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 88425 invoked by uid 99); 1 Jun 2015 09:48:01 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2015 09:48:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 89F11C0B58 for ; Mon, 1 Jun 2015 09:48:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.901 X-Spam-Level: *** X-Spam-Status: No, score=3.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_LIVE=1, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id KRD1jksn5XFJ for ; Mon, 1 Jun 2015 09:47:46 +0000 (UTC) Received: from mail-qc0-f171.google.com (mail-qc0-f171.google.com [209.85.216.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id C789D428E3 for ; Mon, 1 Jun 2015 09:47:45 +0000 (UTC) Received: by qczw4 with SMTP id w4so20871582qcz.2 for ; Mon, 01 Jun 2015 02:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5qa7vYTIG4h4P1N4+yon9swnBt8DTbQfq++G0808ISM=; b=wA1wO6mYWQ9xnLJdv9BQalsjyUjsVndxkUGrxacuJqqLq7xHnef4oZJXlP91xfkoZf D9mzOydrXhs5gacCnnPiYOzsnQc8IOhn7Y+hry7+EwVnKYlEPqPp0XtEUNF0DWRB/i2U JDjkV4R1vlxyyZgicTBiCCl8ZFWZbU4KDY22ZwNEKY7T1Hg9KdgYMRMISvYH65yFvAAP 5YsXY76hwKGmXbvaySb7r2bfXk5bb1MNsmXmlRd/HPEzSpw+nq1Fj7UGNwtoH3qTFU5d Opg2rI/ISEubaSOpqct8gJd5k5AvGDCAZpOa09+seXrA8MJITybUAW83WML6+lvzzQjB hebA== MIME-Version: 1.0 X-Received: by 10.229.98.200 with SMTP id r8mr23604970qcn.15.1433152020262; Mon, 01 Jun 2015 02:47:00 -0700 (PDT) Received: by 10.229.145.77 with HTTP; Mon, 1 Jun 2015 02:47:00 -0700 (PDT) In-Reply-To: References: Date: Mon, 1 Jun 2015 09:47:00 +0000 Message-ID: Subject: Re: [GSOC] GCE Load balancing support for stratos - weekly update From: Asanka Sanjaya Herath To: dev Cc: Lahiru Sandaruwan Content-Type: multipart/alternative; boundary=001a11344bf213b56b051771b521 --001a11344bf213b56b051771b521 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Lahiru, When I run "python agent.py" command I'm getting following error. [2015-06-01 09:44:44,699] DEBUG {config.py:__read_conf_file} - Config file path : '/root/stratos/products/python-cartridge-agent/distribution/target/apache-s= tratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf' [2015-06-01 09:44:44,700] DEBUG {config.py:read_property} - Reading property: param.file.path =3D /root/stratos/products/python-cartridge-agent/distribution/target/apache-st= ratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params [2015-06-01 09:44:44,700] DEBUG {config.py:__read_parameter_file} - Param file path : '/root/stratos/products/python-cartridge-agent/distribution/target/apache-s= tratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' [2015-06-01 09:44:44,701] ERROR {config.py:__read_parameter_file} - Could not read launch parameter file: [Errno 2] No such file or directory: '/root/stratos/products/python-cartridge-agent/distribution/target/apache-s= tratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' Traceback (most recent call last): File "/root/stratos/products/python-cartridge-agent/distribution/target/apache-s= tratos-python-cartridge-agent-4.1.0-SNAPSHOT/config.py", line 298, in __read_parameter_file metadata_file =3D open(param_file) IOError: [Errno 2] No such file or directory: '/root/stratos/products/python-cartridge-agent/distribution/target/apache-s= tratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' Traceback (most recent call last): File "agent.py", line 316, in main() File "agent.py", line 304, in main cartridge_agent =3D CartridgeAgent() File "agent.py", line 45, in __init__ self.__config =3D CartridgeAgentConfiguration() File "/root/stratos/products/python-cartridge-agent/distribution/target/apache-s= tratos-python-cartridge-agent-4.1.0-SNAPSHOT/config.py", line 355, in __init__ CartridgeAgentConfiguration.__instance =3D CartridgeAgentConfiguration.__CartridgeAgentConfiguration() File "/root/stratos/products/python-cartridge-agent/distribution/target/apache-s= tratos-python-cartridge-agent-4.1.0-SNAPSHOT/config.py", line 244, in __init__ raise RuntimeError(ex) RuntimeError: Cannot find the value of required parameter: 'APPLICATION_ID' On Mon, Jun 1, 2015 at 8:11 AM, Lahiru Sandaruwan wrote: > > > On Mon, Jun 1, 2015 at 12:51 PM, Asanka Sanjaya Herath > wrote: > >> >> =E2=80=8BHi all, >> >> Here I have listed the work I have done during last week. >> >> 1. Completed the design diagram of the extension. >> 2. Tested =E2=80=8BGCE LB API using a sample program. >> 3. Configured a php cartridge on GCE. But still the cartridge agent is >> not starting properly. >> > > What is the error you get? > >> >> I'm using this[1] fork for commit my code. >> >> [1]. https://github.com/asankasanjaya/stratos >> >> -- >> Thanks, >> Regards, >> ASH >> > > > > -- > -- > Lahiru Sandaruwan > Committer and PMC member, Apache Stratos, > Senior Software Engineer, > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > phone: +94773325954 > email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > --=20 Thanks, Regards, ASH --001a11344bf213b56b051771b521 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Lahiru,

=
When I run "python agent.py" command I&#= 39;m getting following error.

=C2=A0[2015-06-01 09:44:44,699] DEBUG= {config.py:__read_conf_file} - Config file path : '/root/stratos/produ= cts/python-cartridge-agent/distribution/target/apache-stratos-python-cartri= dge-agent-4.1.0-SNAPSHOT/agent.conf'
= [2015-06-01 09:44:44,700] DEBUG {config.py:read_property} - Reading propert= y: param.file.path =3D /root/stratos/products/python-cartridge-agent/distri= bution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/= launch-params
[2015-06-01 09:44:44,700] D= EBUG {config.py:__read_parameter_file} - Param file path : '/root/strat= os/products/python-cartridge-agent/distribution/target/apache-stratos-pytho= n-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params'
[2015-06-01 09:44:44,701] ERROR {config.py:__read_parame= ter_file} - Could not read launch parameter file: [Errno 2] No such file or= directory: '/root/stratos/products/python-cartridge-agent/distribution= /target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch= -params'
Traceback (most recent call = last):
=C2=A0 File "/root/stratos/pr= oducts/python-cartridge-agent/distribution/target/apache-stratos-python-car= tridge-agent-4.1.0-SNAPSHOT/config.py", line 298, in __read_parameter_= file
=C2=A0 =C2=A0 metadata_file =3D open= (param_file)
IOError: [Errno 2] No such f= ile or directory: '/root/stratos/products/python-cartridge-agent/distri= bution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/= launch-params'
Traceback (most recent= call last):
=C2=A0 File "agent.py&q= uot;, line 316, in <module>
=C2=A0 = =C2=A0 main()
=C2=A0 File "agent.py&= quot;, line 304, in main
=C2=A0 =C2=A0 ca= rtridge_agent =3D CartridgeAgent()
=C2=A0= File "agent.py", line 45, in __init__
=C2=A0 =C2=A0 self.__config =3D CartridgeAgentConfiguration()
=
=C2=A0 File "/root/stratos/products/pytho= n-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent= -4.1.0-SNAPSHOT/config.py", line 355, in __init__
=C2=A0 =C2=A0 CartridgeAgentConfiguration.__instance =3D Cart= ridgeAgentConfiguration.__CartridgeAgentConfiguration()
=C2=A0 File "/root/stratos/products/python-cartridge-ag= ent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHO= T/config.py", line 244, in __init__
= =C2=A0 =C2=A0 raise RuntimeError(ex)
Runt= imeError: Cannot find the value of required parameter: 'APPLICATION_ID&= #39;



On Mon, Jun 1, 2015 at 8:1= 1 AM, Lahiru Sandaruwan <lahirus@wso2.com> wrote:


=
On Mon, Jun 1, 2015 at 12:51 PM= , Asanka Sanjaya Herath <angal.sh@gmail.com> wrote:

=E2=80=8BHi = all,

Here I have listed the work I have done during last week.

1.= Completed the design diagram of the extension.
2. Tested =E2=80=8BGCE LB A= PI using a sample program.
3. Configured a php cartridge on GCE. But still = the cartridge agent is not starting properly.

What is the error you get?=C2=A0

I'm using = this[1] fork for commit my code.


<= span>--
Thanks,
Regards,
ASH


--
--
Lahiru Sandaruwan
Committer and PMC member, Ap= ache Stratos,
Senior=C2=A0Software Engineer,
WSO2 Inc., http://wso2.com



--
Thanks,
Regards,
ASH
--001a11344bf213b56b051771b521--