Hi,

I'm getting the following error in the agent log when creating a tomcat
cartridge based on the single-cartridge sample. It looks like the folder to
clone the artifacts is not being created. I'm looking in to this now.

2015-01-19 18:13:01,919:DEBUG:Executing handler for event
'ArtifactUpdatedEvent'
2015-01-19 18:13:01,919:INFO:Artifact update event received: [tenant]
u'-1234' [cluster] u'mytomcat.tomcat.domain' [status] None
2015-01-19 18:13:01,919:INFO:Executing git checkout
2015-01-19 18:13:01,920:DEBUG:Executing git clone: [tenant-id] -1234
[repo-url] https://github.com/chamilad/tc-hw-artifact-repo.git
2015-01-19 18:13:01,920:DEBUG:Repo path returned : ''
2015-01-19 18:13:01,937:ERROR:Permission denied for repository path for
tenant u'-1234'
Traceback (most recent call last):
  File
"/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py",
line 230, in clone
    repo = Repo.clone_from(repo_context.repo_url,
repo_context.local_repo_path)
  File "/usr/local/lib/python2.7/dist-packages/git/repo/base.py", line 727,
in clone_from
    return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB,
**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/repo/base.py", line 682,
in _clone
    git.clone(url, path, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 219, in
<lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 430, in
_call_process
    return self.execute(call, **_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 309, in
execute
    **subprocess_kwargs
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com

Reply via email to