question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mirroring not updating

See original GitHub issue

I’ve set up a mirror per the instructions at http://gitblit.com/setup_mirrors.html

The source repository is hosted on GitHub Enterprise, and it was mirrored using HTTPS with a username and password. The Gitblit log shows: (sanitized to not give internal user, repo, or hostnames)

2016-04-15 00:02:50 [ERROR] Error updating mirror problematic-repository.git
org.eclipse.jgit.api.errors.TransportException: https://gituser@internal.github.enterprise/ORG/problematic-repository.git: Authentication is required but no CredentialsProvider has been registered
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
        at com.gitblit.service.MirrorService.run(MirrorService.java:149)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.jgit.errors.TransportException: https://gituser@internal.github.enterprise/ORG/problematic-repository.git: Authentication is required but no CredentialsProvider has been registered
        at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:492)
        at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:296)
        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:1138)
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
        ... 8 more

I notice that the logged URL does not include the password, but it is displayed in the Gitblit Web UI. I’ve been trying to follow exactly where and how the password may be lost (and hoping it’s not a wild goose chase where it’s simply not logged…), but I’m not succeeding so far. I’ll update this ticket with code, if I manage to solve it on my own.

This is a showstopper bug for me, so I’ll be investigating it heavily. However, if you have any suggestions for likely places to look (or know that it’s fixed since 1.7.1), I’m all ears. 👂

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cmichaeliscommented, Apr 20, 2018

Just ran into this problem on 1.8.0 using Gitblit WAR. Did you ever send in a PR for this, and any chance it can get included in a future update to the WAR distribution? Thanks!

0reactions
flaixcommented, Jul 3, 2020

I don’t see a pull request for this ever being created. I also did not find one referencing mirroring, either open or closed. So I guess it hasn’t been fixed, yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Screen Mirroring Not Working? Quick Solutions Here - iMobie
How to Fix: Screen Mirroring Not Working · Fix 1. Verify the TV Input · Fix 2. One Device at a Time ·...
Read more >
If screen mirroring or streaming isn't working on your AirPlay ...
Try these steps first · Make sure that your AirPlay-compatible devices are turned on and near each other. · Check that the devices...
Read more >
Why Is My Screen Mirroring Not Working? How Do I Fix It
How to Fix My iPhone Screen Mirroring Not Working? · Check AirPlay Compatibility With Your TV · Disable Restrictions · Disable Bluetooth ·...
Read more >
Why is Screen Mirroring Not Working on My Samsung TV?
If you're having issues with your devices not connecting screen mirroring, a quick fix is to restart both your TV and phone. Make...
Read more >
Why is My Screen Mirroring Not Working and How to Fix It?
Fixes for “Screen Mirroring Not Working” Issue · Fix 1: Enable the Screen Mirroring Feature · Fix 2: Check the Compatibility of Your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found