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 list/see/install packages via Docker container

See original GitHub issue

Do you want to request a feature or report a bug?

Bug

What did you do?

Reproduction steps

  • I clone the repository,
  • Then run docker build . -t baget
  • Then create baget.env file according to the wiki.
  • Then docker run --rm --name nuget-server -p 5555:80 --env-file baget.env -v "$(pwd)/baget-data:/var/baget" baget:latest. The container starts up without any error messages.
  • Then i try to push a nuget package I have with: dotnet nuget push -s http://localhost:5555/v3/index.json -k NUGET-SERVER-API-KEY AccountReconciliation.RestAPI.Client.0.1.2.nupkg which results in:
info : Pushing AccountReconciliation.RestAPI.Client.0.1.2.nupkg to 'http://localhost:5555/v2/package'...
info :   PUT http://localhost:5555/v2/package/
info :   Created http://localhost:5555/v2/package/ 343ms
info : Your package was pushed.

What did you expect to see?

I expect the website to show the pushed package. I expect nuget list -s http://localhost:5555 to show AccountReconciliation.RestApi.Client.0.1.2 and nuget install AccountReconciliation.RestApi.Client to download and install the package into my project.

What did you see instead?

When I enter http://localhost:5555 there are no packages shown. If i try to run nuget list -s http://localhost:5555 I get WARNING: The remote server returned an error: (404) Not Found. No packages found.. If I try to install with: nuget install AccountReconciliation.RestAPI.Client -Source http://localhost:5555 I get WARNING: An error occurred while loading packages from 'http://localhost:5555/': The remote server returned an error: (404) Not Found. WARNING: An error occurred while loading packages from 'http://localhost:5555/': The remote server returned an error: (404) Not Found. Unable to find package 'AccountReconciliation.RestAPI.Client'.

Output of git rev-parse HEAD: (What version of BaGet are you using?)

e9ebce2bd390796f266a747db40619095750249c

What is your environment & configuration (arguments, platform, …)?

Ubuntu 18.04 Docker version 18.06.0-ce, build 0ffa825

If applicable, please paste the log output in DEBUG level

Dont know what to show but docker log [containerid] shows the following:

warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
      No XML encryptor configured. Key {23774c5d-d43b-45a9-a87b-a08b59324403} may be persisted to storage in unencrypted form.
Hosting environment: Development
Content root path: /app
Now listening on: http://[::]:80
Application started. Press Ctrl+C to shut down.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
loic-sharmacommented, Aug 8, 2018

Yup, that would be it - NuGet 2.8 is very old. If you’re on macOS I would recommend that you use the dotnet CLI if possible.

As that was the last bug that needed addressing, I’ll go ahead and close off this issue. Feel free to open another issue if you run into anything else!

1reaction
smazurovcommented, Aug 7, 2018

Just add /v3/index.json at the end

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install packages in docker container using Dockerfile
I'd like to install a package in a docker image, via a Dockerfile. docker-compose.yml: version: "3.5" services: transmission: build: ...
Read more >
Cant install additional software/packages inside container
I have installed my first container like this: docker run -it ubuntu bash Then I tried to install new package ins…
Read more >
docker apt-get unable to locate package
Solution. Execute a simple apt-get update before you execute your installation command, like apt-get install nano (yes I prefer nano) and see ...
Read more >
Why isn't my ASP.NET Core app in Docker working?
In this post I describe a problem where my ASP.NET Core app in Docker wasn't responding to requests. This post debugs and diagnoses...
Read more >
Docker & Ubuntu: How to permanently install software?
You need to create a Dockerfile and script your own container from an existing image. The syntax goes like this. FROM UBUNTU:LATEST RUN...
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