The problem was in populate-user-data.sh file [1], APPLICATION_PATH has
been removed from it. I just fixed it, pushed the new PHP docker image to
docker hub and did another flow test and found the below error:

[2015-02-13 03:44:28,603] 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 91, in checkout
    git_repo.tenant_id, git_repo.repo_url)
AttributeError: 'NoneType' object has no attribute 'tenant_id'

[1]
https://github.com/apache/stratos/blob/master/tools/docker-images/cartridge-docker-images/base-image/files/populate-user-data.sh

On Fri, Feb 13, 2015 at 7:43 AM, Imesh Gunaratne <[email protected]> wrote:

> 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
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to