Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Baget Symbol server v0.4.0-preview2 #726

Open
luigipiccione opened this issue Feb 24, 2022 · 4 comments
Open

Problem with Baget Symbol server v0.4.0-preview2 #726

luigipiccione opened this issue Feb 24, 2022 · 4 comments

Comments

@luigipiccione
Copy link

I downloaded v0.4.0-preview2 both compile and source code.

To install I followed the guide here: https://loic-sharma.github.io/BaGet/installation/local/

It starts correctly but when I try to push the symbols it gives me this error:

dotnet nuget push -s http://127.0.0.1:5000/v3/index.json -k "12345678" .. \ nuget-pack \ SH.Core.Support.2.2.12.snupkg
Push of SH.Core.Support.2.2.12.snupkg to 'http: //127.0.0.1:5555 / api / v2 / symbol' ...
PUT http://127.0.0.1:50005/api/v2/symbol/
NotFound http://127.0.0.1:5000/api/v2/symbol/ 502 ms

I have tried both OS Windows 10 and Ubuntu 20.04, both to start directly with the command dotnet BaGet.dll and with docker but the problem is the same.

I add that when I try to call the page http://127.0.0.1:5000/api/download/symbols it answers me 404

Where did I go wrong?

@mHalo
Copy link

mHalo commented Mar 2, 2022

you can tried add enviroment params at start the application.

for example:
I using supervisord to run my application.

[program:local.nuget.keeplive]
command=dotnet BaGet.dll
directory=/srv/website/dotnet/nuget
environment=ASPNETCORE__ENVIRONMENT=Production,DOTNET_CLI_HOME=/temp
user=root
stopsignal=INT
autostart=false
autorestart=true

I hope it is helpful for you.

@LeeWhite187
Copy link

I have the same problem. I get a 404 when accessing the symbol endpoint: api/download/symbols
I'm not sure if this is this expected behavior, as I've seen related issue postings that show a web page available at that endpoint.
Is there a way to enable the symbol server URL?

@Pupka-Lipinski
Copy link

Same issue here.

@Pupka-Lipinski
Copy link

Found my issue.
We uploaded a snupkg from a different build but with the same version. It works, after removing all files and uploading all files from the same dotnet pack command result.

please check the following:

  • use the correct url server-url/api/download/symbols
  • Check the saved symbol GUID with the one in VS

on baget go to folder:
/var/baget/symbols/lib.pdb/da0f51d6f99c452da8d3ab81c1518fecffffffff

on VS open modules and symbols load information
Now check if vs use the correct GUID and URL
Should look like this:
/api/download/symbols/lib.pdb/da0f51d6f99c452da8d3ab81c1518fecffffffff/lib.pdb

in my case the GUID is da0f51d6f99c452da8d3ab81c1518fecffffffff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants