Hi Chamila,

Seems, still there is an issue in processing Artifact Updated Event.

2015-05-18 05:35:39,670:DEBUG:Executing handler for event
'ArtifactUpdatedEvent'
2015-05-18 05:35:39,670:INFO:Processing Artifact update event: [tenant]
-1234 [cluster] single-cartridge-app01.my-php.php.domain [status] None
2015-05-18 05:35:39,670:INFO:Executing git checkout
2015-05-18 05:35:39,671:DEBUG:Repo path returned : None
2015-05-18 05:35:39,671:DEBUG:Cloning artifacts from
https://github.com/imesh/stratos-php-applications.git for the first time to
None
2015-05-18 05:35:39,671:DEBUG:Executing git clone: [tenant-id] -1234
[repo-url] https://github.com/imesh/stratos-php-applications.git, [repo
path] None
2015-05-18 05:35:39,671:ERROR:Error processing 'ArtifactUpdatedEvent' event
Traceback (most recent call last):
  File
"/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscriber/eventsubscriber.py",
line 103, in run
    handler(event_msg)
  File "agent.py", line 193, in on_artifact_updated
    self.__event_handler.on_artifact_updated_event(event_obj)
  File
"/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/event/eventhandler.py",
line 96, in on_artifact_updated_event
    subscribe_run, updated = AgentGitHandler.checkout(repo_info)
  File
"/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py",
line 89, in checkout
    git_repo = AgentGitHandler.clone(git_repo)
  File
"/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py",
line 185, in clone
    if os.path.isdir(git_repo.local_repo_path) and
os.listdir(git_repo.local_repo_path) != []:
  File "/usr/lib/python2.7/genericpath.py", line 41, in isdir
    st = os.stat(s)
TypeError: coercing to Unicode: need string or buffer, NoneType found


Do you have any thoughts? $docroot is set by default in php.pp.

Thanks.

On Mon, May 18, 2015 at 10:08 AM, Rajkumar Rajaratnam <rajkum...@wso2.com>
wrote:

> Hi,
>
> Had an offline chat with David, seems there was an issue in upgrading to
> the latest code base. Puppet modules and Stratos distribution have not been
> updated properly. I guess that might be the reason why PCA is failing to
> process Artifact Updated Event. Here is steps you have to follow inorder to
> use the latest Stratos code base.
>
> 1) git clone master
> 2) mvn clean install
> 3) Extract stratos.zip and do the configurations
> 4) Replace the python-agent.zip in puppet master
> 5) Deploy the application
>
> Thanks.
>
> On Mon, May 18, 2015 at 8:06 AM, Chamila De Alwis <chami...@wso2.com>
> wrote:
>
>> Hi David,
>>
>> From the log files, it seems the payload param for APPLICATION_PATH has
>> not been sent from Stratos Manager and it is also not set in the agent.conf
>> config file in the instance. In Puppet this is set from the variable
>> "docroot" which is written to agent.conf.
>>
>> Could you verify that in the cartridge Puppet manifest you're using, in
>> its node definition, if $docroot is set?
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Mon, May 18, 2015 at 7:43 AM, david hbase <davidhb...@gmail.com>
>> wrote:
>>
>>> The log files have been sent.
>>>
>>> Thanks
>>> -D
>>>
>>> On Sun, May 17, 2015 at 6:37 PM, Chamila De Alwis <chami...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> On Mon, May 18, 2015 at 6:14 AM, david hbase <davidhb...@gmail.com>
>>>> wrote:
>>>>
>>>>> 2015-05-18 00:35:34,667:INFO:Executing git checkout
>>>>> 2015-05-18 00:35:34,667:DEBUG:Repo path returned : None
>>>>> 2015-05-18 00:35:34,667:DEBUG:Cloning artifacts from
>>>>> https://github.com/imesh/stratos-php-applications.git for the first
>>>>> time to None
>>>>
>>>>
>>>>
>>>> It seems from the above log entries the repository path is empty. That
>>>> is why the Git clone operation is failing.
>>>>
>>>> @David,
>>>>
>>>> Would you be able to post the following file contents?
>>>>
>>>>
>>>>    1. /tmp/payload/launch_params
>>>>    2. Complete PCA log at /tmp/agent.screen.log
>>>>
>>>>
>>>>
>>>> Regards,
>>>> Chamila de Alwis
>>>> Software Engineer | WSO2 | +94772207163
>>>> Blog: code.chamiladealwis.com
>>>>
>>>>
>>>>
>>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>



-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Reply via email to