[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-net-publish-fails-during-package-restore":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":17,"titleAccent":18,"lead":19,"facts":21,"why":36,"log":44,"fix":89,"engine":102,"related":107,"pitch":114},"dotnet","net-publish-fails-during-package-restore",".NET publish fails during package restore","ASP.NET",{"description":9},"A build step failed (exit code 1). The full output is in the deploy log.",[11,14,16],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":7,"href":15},"\u002Fapps\u002Fstacks\u002Fdotnet",{"label":6},".NET publish fails during ","package restore",[20],{"text":9},[22,27,30,32],{"label":23,"value":24,"tone":25,"tooltip":26},"Type","Error","err","An error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.",{"label":28,"value":29},"Seen","1 times",{"label":31,"value":7},"Where",{"label":33,"value":34,"tooltip":35},"Status","In Analysis","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":37,"body":38},"Why it happens",[39,42],{"text":40,"code":41},"dotnet publish",true,{"text":43}," failed while restoring packages. For projects that set TreatWarningsAsErrors, NuGet's vulnerability warnings for packages in the lock file stop the restore. The NU19xx or NU1301 lines in the deploy log name the cause.",{"heading":45,"block":46},"What the log looks like",{"header":47,"lines":48},"Deploy log",[49,53,57,61,65,69,73,77,81,85],{"segments":50},[51],{"text":52},"#11 ERROR: process \"\u002Fbin\u002Fsh -c dotnet publish 'Flink\u002FFlink.csproj' -p:SolutionDir=\\\"$PWD\u002F\\\" -c Release -o out --nologo\" did not complete successfully: exit code: 1",{"segments":54},[55],{"text":56},"WARNING: current commit information was not captured by the build: failed to read current commit information with git rev-parse --is-inside-work-tree",{"segments":58},[59],{"text":60},"panelalpha.Dockerfile:10",{"segments":62},[63],{"text":64},"--------------------",{"segments":66},[67],{"text":68},"8 |     ENV DOTNET_NOLOGO=1",{"segments":70},[71],{"text":72},"9 |     ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1",{"segments":74},[75],{"text":76},"10 | >>> RUN dotnet publish 'Flink\u002FFlink.csproj' -p:SolutionDir=\"$PWD\u002F\" -c Release -o out --nologo",{"segments":78},[79],{"text":80},"11 |",{"segments":82},[83],{"text":84},"12 |     FROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:10.0",{"segments":86},[87],{"text":88},"---------…",{"heading":90,"steps":91,"block":99},"How to fix it",[92],[93,95,97],{"text":94},"If the log shows NU1901-NU1904, update the named packages or add ",{"text":96,"code":41},"\u003CWarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904\u003C\u002FWarningsNotAsErrors>",{"text":98}," to the project; a future engine version will stop audit warnings from failing the build. If it shows NU1301, the server could not reach the NuGet registry: redeploy once its network allows it.",{"header":100,"lines":101},"Fix by hand",[],{"heading":103,"body":104,"block":105},"",[],{"header":103,"lines":106},[],{"heading":108,"items":109},"Apps affected",[110],{"title":111,"badge":112,"tone":25,"href":113},"Flink","1 occurrence","\u002Fapps\u002Fgitlab.com\u002Frtraceio\u002Fweb\u002Fflink",{"heading":115,"body":116,"footNote":117,"docsLabel":118,"docsHref":119},"Try PanelAlpha Engine yourself.","The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.","Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]