Nuget fails to install ravendb.client version 1.0.971 or 1.0.972

158 views
Skip to first unread message

Johannes Gustafsson

unread,
Aug 19, 2012, 12:04:12 PM8/19/12
to rav...@googlegroups.com
Hi,

If install raven like this:

nuget install ravendb.client

Then I get version 1.0.960.

If install any of these:

nuget install ravendb.client -version 1.0.971
nuget install ravendb.client -version 1.0.972

Then I get:

Unable to find version '1.0.972' of package 'ravendb.client'.


Oren Eini (Ayende Rahien)

unread,
Aug 19, 2012, 2:52:09 PM8/19/12
to rav...@googlegroups.com
Try:

Install-Package RavenDB.Client -Version 1.0.972 

It is most certainly there:

Damian Hickey

unread,
Aug 19, 2012, 3:11:16 PM8/19/12
to rav...@googlegroups.com
Issue reproduced here
  • Using 'Manage NuGet Packages' GUI in VS and searching RavenDB.Client will display and install 972
  • Using Package Manager Console with "install-package RavenDB.Client" installs #960
    • Then opening  'Manage NuGet Packages' GUI on Updates tab shows #972
  • "install-package RavenDB.Client -version 1.0.972" results in "Unable to find version '1.0.972' of package 'RavenDB.Client'."
  • Command line "nuget i RavenDB.Client" installs #960
  • "nuget i RavenDB.Client -version 1.0.972" results in same error as Package Manager Console.
I cleared my nuget cache each time. So... this is strange...

Oren Eini (Ayende Rahien)

unread,
Aug 19, 2012, 3:12:46 PM8/19/12
to rav...@googlegroups.com
I am not sure what this could be.
what happen if you uninstall things before each action?

Damian Hickey

unread,
Aug 19, 2012, 3:16:09 PM8/19/12
to rav...@googlegroups.com
I was testing from a clean slate for each action. I have a weak suspicion it is a nuget CDN issue. Breaking out fiddler, will report back shortly...

Oren Eini (Ayende Rahien)

unread,
Aug 19, 2012, 3:21:03 PM8/19/12
to rav...@googlegroups.com
Thanks!
My Nuget Hero!

Damian Hickey

unread,
Aug 19, 2012, 3:36:33 PM8/19/12
to rav...@googlegroups.com
No problem ;)

It's not the best technically, but it's what we've got.

Damian Hickey

unread,
Aug 19, 2012, 3:50:29 PM8/19/12
to rav...@googlegroups.com
Command line and package manager console issue this request: https://nuget.org/api/v2/FindPackagesById()?id='RavenDB.Client' in which #971 and #972 are not showing up.


Both requests went to same IPAddress. Looks like nuget.org are currently having problems. Probably just cache related and will fix itself. Adding package via GUI is a workaround.
nuget_command_line_RavenDB.Client_response.txt
nuget_manage_package_gui_RavenDB.Client_response.txt

Johannes Gustafsson

unread,
Aug 20, 2012, 2:50:24 AM8/20/12
to rav...@googlegroups.com
The reason I use nuget cli is to restore packages from a fresh checkout to do deployment, so using the GUI is not an option. I got it working anyway by copying the package manually from another checkout. 

The problem still exists though.

2012/8/19 Damian Hickey <dhi...@gmail.com>

Damian Hickey

unread,
Aug 20, 2012, 7:24:21 AM8/20/12
to rav...@googlegroups.com
> The problem still exists though.

Yeah, probably related to http://twitter.com/nuget/status/237427240286162944.

Slightly OT, but in general, I'd recommend you set up a local nuget repo on your LAN for package restore purposes. Isolates you from nuget.org / internet outages and is a lot faster.

Damian Hickey

unread,
Aug 21, 2012, 5:27:18 AM8/21/12
to rav...@googlegroups.com
Got in contact with David Fowler and we've got to the bottom of this issue and they're working on it that'll require a new deployment of nuget's webservices.

The problem, for those that are interested appears to be this line: https://github.com/NuGet/NuGetGallery/blob/master/Website/DataServices/FeedServiceBase.cs#L85 . The results of FinePackagesById(), which is used by command line, Package Manager Console and Package Restore, is limited to 100 - and RavenDB.Client is the first package to have >100 packages.

Oren Eini (Ayende Rahien)

unread,
Aug 21, 2012, 5:36:15 AM8/21/12
to rav...@googlegroups.com
Huh!
Love it when we break the rules like that :-)

Kijana Woodard

unread,
Aug 21, 2012, 8:36:18 AM8/21/12
to rav...@googlegroups.com

Haha. I'm sure they were thinking it would take years for a project to have 100 packages.

" I mean, Microsoft releases once or twice a year, so if they were really aggressive, a project might release, what, every month. Don't worry guys, we won't need to look at this for a decade! "

Oooops.

Damian Hickey

unread,
Aug 21, 2012, 9:00:24 AM8/21/12
to rav...@googlegroups.com
We were still exploring when I post that - it may not be the page size, but the client is not downloading subsequent pages.

I may have jumped the gun there ;)

Brian Vallelunga

unread,
Aug 21, 2012, 4:19:31 PM8/21/12
to rav...@googlegroups.com
Ahh, so this is why my build server isn't working today. Using package restore, it bombs on the 972 package download. Hopefully the nuget team will get this fixed quickly.

Damian Hickey

unread,
Aug 21, 2012, 5:24:15 PM8/21/12
to rav...@googlegroups.com
I posted a workaround that will fix your build server: https://groups.google.com/forum/?fromgroups=#!topic/ravendb/wt0xChBezAI 

Chris Marisic

unread,
Aug 21, 2012, 5:29:42 PM8/21/12
to rav...@googlegroups.com
Simpler work around is to just get the package and put it in your nuget cache folder on server.

Damian Hickey

unread,
Aug 21, 2012, 5:51:35 PM8/21/12
to rav...@googlegroups.com
Will that work if the account the build agent service runs under is non-interactive?

Chris Marisic

unread,
Aug 22, 2012, 8:26:19 AM8/22/12
to rav...@googlegroups.com
It would still have access to it's user folder i'd have to believe for it to have a nuget cache. I'm not even sure if it's possible for package restore to work without nuget cache.
Reply all
Reply to author
Forward
0 new messages