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.

Cant seem to find much information about GVFS cache servers. What exactly are they and how do you set one up?

I have also observed servers behaving differently when it comes to the Cache Server: Default (no --cache-server-url on command line).

VSTS

Everything works just fine (and you get Using cache server: None in the output).

Bitbucket (on-prem)

Cloning this way gives me the following error:

Cannot clone @ <path>: System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at GVFS.Common.Http.CacheServerResolver.TryResolveUrlFromRemote(String cacheServerName, GVFSConfig gvfsConfig, CacheServerInfo& cacheServer, String& error) in C:\Repos\GitHubUpdate\Internal\GVFS\GVFS.Common\Http\CacheServerResolver.cs:line 59
   at GVFS.CommandLine.GVFSVerb.ResolveCacheServerUrlIfNeeded(ITracer tracer, CacheServerInfo cacheServer, CacheServerResolver cacheServerResolver, GVFSConfig gvfsConfig) in C:\Repos\GitHubUpdate\Internal\GVFS\GVFS\CommandLine\GVFSVerb.cs:line 308
   at GVFS.CommandLine.CloneVerb.Execute() in C:\Repos\GitHubUpdate\Internal\GVFS\GVFS\CommandLine\CloneVerb.cs:line 137

Clone works just fine if adding --cache-server-url None to the gvfs clone command.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
sanoursacommented, Jan 29, 2018

Re: the second half of the issue, it appears that Bitbutcket is returning a slightly different response to /gvfs/config than VSTS does, and that’s tripping up the cache resolving code. Regardless, GVFS should be more resilient to these differences, and if the service doesn’t advertise any cache servers, Default and None should resolve to the same thing. We’ll get this fixed in a future release.

1reaction
stefanescommented, Jan 30, 2018

FYI: @sanoursa Issue fixed on the Bitbucket side of things in version 0.1.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Caching and How it Works
Examples include social apps during the Super Bowl or election day, eCommerce websites during Black Friday, etc. Increased load on the database results...
Read more >
Different Types of Caching: Server Cache vs Browser ...
Server cache is also the type of web caching over which the end users don't have any control and is fully administered by...
Read more >
What is Cache Server? | How CDN Content is Cached?
A cache server also referred to as a cache engine, is a type of network service that saves internet content and web pages...
Read more >
Definition of cache server
A dedicated network server or a service within a server that caches Web pages and other files. Cache servers speed up access to...
Read more >
We're running out of internet - Steam Game Caching Server
2:59 What's changed since our last Steam cache? 3:46 The hardware 6:30 We get ... We're running out of internet - Steam Game...
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