Giter Club home page Giter Club logo

Comments (18)

stefan-lacatus avatar stefan-lacatus commented on July 17, 2024 1

What repository are you pushing to? Is it literally https://github.com/xyz/xyz.git? Do you have access to it?

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

Can anyone reply?

from thingworx-gitbackup-extension.

cbadici avatar cbadici commented on July 17, 2024

Hi,
This looks to me like an authorization issue related to your Git repository. Have you properly configured your Git Backup Thing? Please describe the steps you performed so I can try to reproduce your issue.

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

image
image
Referred the Guide and configured same.

from thingworx-gitbackup-extension.

cbadici avatar cbadici commented on July 17, 2024

Connectivity to a variety of Git repositories has been previously verified and it works as expected. I notice that your error is related to permissions for a GitHub repository.
Did you set up your personal access token in GitHub and used it in the Password field in your Git Backup thing's configuration table?

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

yes, added PAT and tried still getting error.

org.eclipse.jgit.api.errors.TransportException: https://github.com/xyz/xyz.git: error occurred during unpacking on the remote end: index-pack abnormal exit_ at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:147)_ at gb.GitBackupTemplate.Push(GitBackupTemplate.java:244)_ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)_ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)_ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)_ at java.base/java.lang.reflect.Method.invoke(Method.java:566)_ at

from thingworx-gitbackup-extension.

cbadici avatar cbadici commented on July 17, 2024

This error is related to the fact that the git client cannot write to the remote repository because either permissions are missing or the capacity is full. I assume it is related to missing permissions since the remote repository would be empty right now. Did you assign all the permissions when you created the PAT? Just edit the token and check all the boxes for the permissions.

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

i have given all the permissions to PAT and my repo is also empty

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

Please reply

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

access issue resolved but not able to push into another branch other than 'master', if try to push to another branch it is getting added in master branch only.

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

Can someone reply?

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

I am pushing into my personal repo and this is just demo repo link i have given, and yes i have access.
Not able to push into another branch is related to Access issue?

from thingworx-gitbackup-extension.

anitas4 avatar anitas4 commented on July 17, 2024

any suggestions?

from thingworx-gitbackup-extension.

cbadici avatar cbadici commented on July 17, 2024

@anitas4 Have you managed to push your entities on a different branch? I have tested the Git extension on multiple branches and I have no issues. You need to first create your remote branch, pull the repository. Then in the Mashup you select your remote branch (a local branch will be automatically created for you). You can check it out, you add your content/or remove content and then you push it. The commit info will show that you have pushed the content on your respective branch. let me know if this has worked for you. The same can be done just with services, by switching the branch in the Git configuration table.

from thingworx-gitbackup-extension.

ksmbasha1 avatar ksmbasha1 commented on July 17, 2024

when I am trying to push the files in GIT, I a getting this error
org.eclipse.jgit.api.errors.TransportException: https://github.com/ksmbasha11/repo101.git: not authorized__ at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:147)__ at gb.GitBackupTemplate.Push(GitBackupTemplate.java:243)__ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)__ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)__ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)__ at java.lang.reflect.Method.invoke(Method.java:498)__ at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261)__ at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50)__ at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48)__ at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:8248)__ at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:8186)__ at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:3220)__ at com.thingworx.webservices.BaseService.service(BaseService.java:491)__ at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:138)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:541)__ at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:210)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)__ at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)__ at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)__ at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:178)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at com.thingworx.security.filter.ProhibitIfNotLeaderFilter.doFilter(ProhibitIfNotLeaderFilter.java:120)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:173)__ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)__ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)__ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)__ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)__ at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)__ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)__ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)__ at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)__ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)__ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)__ at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)__ at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)__ at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)__ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)__ at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)__ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)__ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)__ at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)__ at java.lang.Thread.run(Thread.java:745)Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/ksmbasha11/repo101.git: not authorized at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:540)__ at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:436)__ at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:127)__ at org.eclipse.jgit.transport.Transport.push(Transport.java:1335)__ at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:137)__ ... 60 more__

from thingworx-gitbackup-extension.

ksmbasha1 avatar ksmbasha1 commented on July 17, 2024

No Entities are showing
image

from thingworx-gitbackup-extension.

ksmbasha1 avatar ksmbasha1 commented on July 17, 2024

access issue resolved but not able to push into another branch other than 'master', if try to push to another branch it is getting added in master branch only.

can you help me on access isssue, i am having still that issue.

from thingworx-gitbackup-extension.

vrosu avatar vrosu commented on July 17, 2024

In case you have new problems, please open a new issue.
One issue in Github must belong to a single issue, not to be reused for multiple ones.

from thingworx-gitbackup-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.