stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sajith Kariyawasam (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (STRATOS-362) Subscribing with private git repo fails for multitenant Cartridge
Date Fri, 17 Jan 2014 06:42:20 GMT

     [ https://issues.apache.org/jira/browse/STRATOS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sajith Kariyawasam resolved STRATOS-362.
----------------------------------------

    Resolution: Fixed

Fixed in commit 891355731f9b0262aeadfb983fbd33e08cdf8c6a

> Subscribing with private git repo fails for multitenant Cartridge
> -----------------------------------------------------------------
>
>                 Key: STRATOS-362
>                 URL: https://issues.apache.org/jira/browse/STRATOS-362
>             Project: Stratos
>          Issue Type: Bug
>          Components: Cartridge Agent, Stratos Manager
>    Affects Versions: 4.0.0 M5
>            Reporter: balachandran ajanthan
>            Assignee: Sajith Kariyawasam
>             Fix For: 4.0.0 M6
>
>
> If i subscribe to service with private git repo(with user-name and password) initial
git clone fails in cartridge agent with following stack trace
> [2014-01-16 11:34:19,083]  INFO - [CartridgeAgent] Artifact update event received: [cluster]
appserver.stratos.org.domain [repo-url] http://10.100.1.158:8445/git/Development/as/1.git
[repo-username] admin [tenant] -1234
> javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting
with padded cipher
> 	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:749)
> 	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:675)
> 	at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313)
> 	at javax.crypto.Cipher.doFinal(Cipher.java:2087)
> 	at org.apache.stratos.cartridge.agent.util.CartridgeAgentUtils.decryptPassword(CartridgeAgentUtils.java:66)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.onArtifactUpdateEvent(CartridgeAgent.java:148)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.access$000(CartridgeAgent.java:27)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent$1.onEvent(CartridgeAgent.java:70)
> 	at org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
> 	at java.util.Observable.notifyObservers(Observable.java:159)
> 	at org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
> 	at org.apache.stratos.messaging.message.processor.instance.notifier.ArtifactUpdateMessageProcessor.process(ArtifactUpdateMessageProcessor.java:49)
> 	at org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
> 	at org.apache.stratos.messaging.message.receiver.instance.notifier.InstanceNotifierEventMessageDelegator.run(InstanceNotifierEventMessageDelegator.java:73)
> 	at java.lang.Thread.run(Thread.java:722)
> [2014-01-16 11:34:19,106]  INFO - [CartridgeAgent] Executing git checkout
> [2014-01-16 11:34:19,132]  INFO - [GitBasedArtifactRepository] Initializing git context.
> [2014-01-16 11:34:19,136]  INFO - [GitBasedArtifactRepository] local path /mnt/wso2as-5.2.0/bin//repository/deployment/server/webapps
> [2014-01-16 11:34:19,137]  INFO - [GitBasedArtifactRepository] remote url http://10.100.1.158:8445/git/Development/as/1.git
> [2014-01-16 11:34:19,137]  INFO - [GitBasedArtifactRepository] tenant -1234
> [2014-01-16 11:34:19,297]  INFO - [GitBasedArtifactRepository] caching repo context
> [2014-01-16 11:34:19,297]  INFO - [GitBasedArtifactRepository] Executing checkout
> [2014-01-16 11:34:19,945] ERROR - [GitBasedArtifactRepository] Accessing remote git repository
failed for tenant -1234
> org.eclipse.jgit.api.errors.TransportException: http://10.100.1.158:8445/git/Development/as/1.git:
not authorized
> 	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
> 	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
> 	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.cloneRepository(GitBasedArtifactRepository.java:545)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.checkout(GitBasedArtifactRepository.java:390)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.onArtifactUpdateEvent(CartridgeAgent.java:163)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.access$000(CartridgeAgent.java:27)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent$1.onEvent(CartridgeAgent.java:70)
> 	at org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
> 	at java.util.Observable.notifyObservers(Observable.java:159)
> 	at org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
> 	at org.apache.stratos.messaging.message.processor.instance.notifier.ArtifactUpdateMessageProcessor.process(ArtifactUpdateMessageProcessor.java:49)
> 	at org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
> 	at org.apache.stratos.messaging.message.receiver.instance.notifier.InstanceNotifierEventMessageDelegator.run(InstanceNotifierEventMessageDelegator.java:73)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: org.eclipse.jgit.errors.TransportException: http://10.100.1.158:8445/git/Development/as/1.git:
not authorized
> 	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:476)
> 	at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:305)
> 	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
> 	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
> 	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
> 	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
> 	... 14 more
> org.eclipse.jgit.api.errors.TransportException: http://10.100.1.158:8445/git/Development/as/1.git:
not authorized
> 	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
> 	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
> 	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.cloneRepository(GitBasedArtifactRepository.java:545)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.checkout(GitBasedArtifactRepository.java:390)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.onArtifactUpdateEvent(CartridgeAgent.java:163)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.access$000(CartridgeAgent.java:27)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent$1.onEvent(CartridgeAgent.java:70)
> 	at org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
> 	at java.util.Observable.notifyObservers(Observable.java:159)
> 	at org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
> 	at org.apache.stratos.messaging.message.processor.instance.notifier.ArtifactUpdateMessageProcessor.process(ArtifactUpdateMessageProcessor.java:49)
> 	at org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
> 	at org.apache.stratos.messaging.message.receiver.instance.notifier.InstanceNotifierEventMessageDelegator.run(InstanceNotifierEventMessageDelegator.java:73)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: org.eclipse.jgit.errors.TransportException: http://10.100.1.158:8445/git/Development/as/1.git:
not authorized
> 	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:476)
> 	at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:305)
> 	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
> 	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
> 	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
> 	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
> 	... 14 more
> [2014-01-16 11:34:19,964]  INFO - [GitBasedArtifactRepository] Pulling artifacts
> [2014-01-16 11:34:20,014]  WARN - [GitBasedArtifactRepository] Git pull unsuccessful
for tenant -1234, No value for key branch.master.merge found in configuration
> [2014-01-16 11:34:20,127] ERROR - [GitBasedArtifactRepository] Accessing remote git repository
failed for tenant -1234
> org.eclipse.jgit.api.errors.TransportException: http://10.100.1.158:8445/git/Development/as/1.git:
not authorized
> 	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
> 	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
> 	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.cloneRepository(GitBasedArtifactRepository.java:545)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.pullArtifacts(GitBasedArtifactRepository.java:444)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.checkout(GitBasedArtifactRepository.java:392)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.onArtifactUpdateEvent(CartridgeAgent.java:163)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.access$000(CartridgeAgent.java:27)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent$1.onEvent(CartridgeAgent.java:70)
> 	at org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
> 	at java.util.Observable.notifyObservers(Observable.java:159)
> 	at org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
> 	at org.apache.stratos.messaging.message.processor.instance.notifier.ArtifactUpdateMessageProcessor.process(ArtifactUpdateMessageProcessor.java:49)
> 	at org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
> 	at org.apache.stratos.messaging.message.receiver.instance.notifier.InstanceNotifierEventMessageDelegator.run(InstanceNotifierEventMessageDelegator.java:73)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: org.eclipse.jgit.errors.TransportException: http://10.100.1.158:8445/git/Development/as/1.git:
not authorized
> 	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:476)
> 	at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:305)
> 	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
> 	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
> 	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
> 	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
> 	... 15 more
> org.eclipse.jgit.api.errors.TransportException: http://10.100.1.158:8445/git/Development/as/1.git:
not authorized
> 	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
> 	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
> 	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.cloneRepository(GitBasedArtifactRepository.java:545)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.pullArtifacts(GitBasedArtifactRepository.java:444)
> 	at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.checkout(GitBasedArtifactRepository.java:392)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.onArtifactUpdateEvent(CartridgeAgent.java:163)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent.access$000(CartridgeAgent.java:27)
> 	at org.apache.stratos.cartridge.agent.CartridgeAgent$1.onEvent(CartridgeAgent.java:70)
> 	at org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
> 	at java.util.Observable.notifyObservers(Observable.java:159)
> 	at org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
> 	at org.apache.stratos.messaging.message.processor.instance.notifier.ArtifactUpdateMessageProcessor.process(ArtifactUpdateMessageProcessor.java:49)
> 	at org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
> 	at org.apache.stratos.messaging.message.receiver.instance.notifier.InstanceNotifierEventMessageDelegator.run(InstanceNotifierEventMessageDelegator.java:73)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: org.eclipse.jgit.errors.TransportException: http://10.100.1.158:8445/git/Development/as/1.git:
not authorized
> 	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:476)
> 	at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:305)
> 	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
> 	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
> 	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
> 	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
> 	... 15 more



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message