Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-603

Validate Git URL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0 Alpha
    • FUTURE
    • CLI, UI
    • None

    Description

      We should validate the git URL provided.

      Otherwise the users may not noticed any issue until their instance get activated.

      Noticed following in Cartridge Agent Log.

      2014-04-11 14:17:54,546 [-] [Artifact Update Thread - /var/www/] WARN GitBasedArtifactRepository Git pull unsuccessful for tenant 1, No value for key branch.master.merge found in configuration
      2014-04-11 14:17:54,959 [-] [Artifact Update Thread - /var/www/] ERROR GitBasedArtifactRepository Git clone operation for tenant 1 failed
      org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:134)
      at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:179)
      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:653)
      at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.pullArtifacts(GitBasedArtifactRepository.java:551)
      at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository.checkout(GitBasedArtifactRepository.java:459)
      at org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.impl.GitBasedArtifactRepository$ArtifactSyncTask.run(GitBasedArtifactRepository.java:718)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: https://github.com/chrishantha/stratos-drupal: https://github.com/chrishantha/stratos-drupal/info/refs?service=git-upload-pack not found
      at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:468)
      at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:308)
      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

      Attachments

        Activity

          People

            chrishantha Isuru Perera
            chrishantha Isuru Perera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: