Thanks Lakmal, yes as I found basic features we need works with Git python.
Will do that.
Regarding the above error, seems like it has occurred due to the
APPLICATION_PATH not being sent in payload, there was no None check or a
log saying its not found:

def clone(git_repo):
    if os.path.isdir(git_repo.local_repo_path):
        # delete and recreate local repo path if exists
        GitUtils.delete_folder_tree(git_repo.local_repo_path)


On Fri, Feb 13, 2015 at 7:37 AM, Lakmal Warusawithana <[email protected]>
wrote:

>
>
> On Fri, Feb 13, 2015 at 7:34 AM, Imesh Gunaratne <[email protected]> wrote:
>
>> As it looks like this error has been caused by the agent git handler
>> while executing git clone, IMO its better if we can switch to GitPython.
>>
>>
> +1, If GitPython has full functionality what we expect, lets move to it. I
> was under impression that it has some limitation. If so please not waist
> time to fix current one.
>
>
>
>> Thanks
>>
>> On Fri, Feb 13, 2015 at 7:31 AM, Imesh Gunaratne <[email protected]>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> Yesterday we fixed several issues in PCA, now I'm seeing the below error
>>> when trying to receive artifact updated event:
>>>
>>> [2015-02-13 01:56:07,311] ERROR {eventsubscriber.py:run} - 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 185, in on_artifact_updated
>>>     CartridgeAgent.extension_handler.on_artifact_updated_event(event_obj)
>>>   File
>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/extensions/extensionhandler.py",
>>> line 122, in on_artifact_updated_event
>>>     subscribe_run, updated =
>>> agentgithandler.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 190, in clone
>>>     if os.path.isdir(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 foun
>>>
>>> Thanks
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> Lakmal Warusawithana
> Vice President, Apache Stratos
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to