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.

Document how to update the package index in mirror mode

See original GitHub issue

I’ve set up an instance of the BaGet server using the provided Docker image and configured mirroring:

- ApiKey=<key>
- Storage__Type=FileSystem
- Storage__Path=/var/baget/packages
- Database__Type=Sqlite
- Database__ConnectionString=Data Source=/var/baget/baget.db
- Search__Type=Database
- Mirror__Enabled=True
- Mirror__PackageSource=https://api.nuget.org/v3/index.json

But the packages page is still empty. To my understanding I need to somehow trigger an index update, but I cannot find any information about this in the docs. Could you clarify this please?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tzographoscommented, Oct 23, 2019

The problem I’m having is that I don’t see results when I press Browse from the Nuget package manager and search for a package; it shows an empty list. It does not act as a read-through cache to Nuget.org. (I have set the MIRROR__ENABLED=true env variable) Any help would be appreciated.

P.S. The goal when using read-through caching would be to completely “hide” nuget.org.

2reactions
loic-sharmacommented, Oct 23, 2019

Hi, you can add packages from the mirrored package source two ways:

  1. Use BaGet as your only package source and kick off a dotnet restore. BaGet will index packages as you restore them.
  2. Or, navigate to https://your-baget-url/v3/registration/newtonsoft.json/12.0.1.json. This will index Newtonsoft.Json v12.0.1.

I’ll improve the documentation to clarify this. Please let me know if you have any additional questions!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repository mirroring | GitLab
When the mirror repository is updated, all new branches, tags, and commits are visible in the project's activity feed. A repository mirror at...
Read more >
apt-mirror-updater
The apt-mirror-updater program automates robust apt-get mirror selection for Debian and Ubuntu by enabling discovery of available mirrors, ranking of available ...
Read more >
Mirroring images for a disconnected installation using the oc ...
Mirror an image set to disk, transfer the image set to the target environment, then upload the image set to the target mirror...
Read more >
Mirrors - ArchWiki
This page is a guide to selecting and configuring your mirrors, and a listing of current available mirrors.
Read more >
Configuring a Local Mirror of the ThousandEyes Package ...
This document outlines the requirements and processes to create a local repository mirror containing packages required by the ThousandEyes Enterprise Agents, ...
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