【已完成】bt9.2forlinux中net程序的试用,重新启动后,就无法
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.2系统版本:Debian12.7
问题描述:首次创建正常运行,启动后,就再也启动不起来了
相关截图(日志、错误):
正在生成...
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: “WarnForInvalidProjectsTask”任务意外失败。
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: System.InvalidOperationException: 未设置必需的环境变量“HOME”。请尝试设置“DOTNET_CLI_HOME”或“HOME”并再次运行该操作
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetValueOrThrowMissingEnvVarsDotnet(Func`1 getValue, String home, String dotnetHome)
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetHome()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.<>c.<.cctor>b__20_0()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.CreateValue()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetFolderPath(SpecialFolder folder)
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.NuGetEnvironment.GetFolderPath(NuGetFolderPath folder)
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.PathUtility.CheckIfFileSystemIsCaseInsensitive()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at System.Lazy`1.CreateValue()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.PathUtility.get_IsFileSystemCaseInsensitive()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Common.PathUtility.GetStringComparerBasedOnOS()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at NuGet.Build.Tasks.WarnForInvalidProjectsTask.Execute()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
/www/server/dotnet/8.0.100/sdk/8.0.100/NuGet.targets(424,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
生成失败。请修复生成错误并重新运行。
我昨天晚上开始在本地测试,不管,有重装系统,又做了一遍,第一遍正常,只要重启系统,net项目的网站就再也启动不起来了。程序C#自己写的,暂时没有尝试过其他程序是否也是这样。我在创建的时候,选择了随机启动。
您好,根据报错提示,可以尝试设置 “DOTNET_CLI_HOME” 或 “HOME” 环境变量
如果确定随机启动设置可能与项目启动失败有关,需要进一步查看具体是关于什么的随机启动设置以及其具体的配置方式 堡塔运维南一 发表于 2024-11-12 17:04
您好,根据报错提示,可以尝试设置 “DOTNET_CLI_HOME” 或 “HOME” 环境变量
如果确定随机启动设置可能与 ...
测试了好几遍,每次都是重装debian12,然后重装宝塔。每次第一次新建net项目网站,都运行正常,但是不能重新启动,如果重新启动就报错,无法正常运行。如果是环境问题,那第一遍怎么就正常运行了,不应该第一次新建net项目网站的时候,就应该无法正常运行才对。
经过上面反复折腾,结论,这个问题不是个例,可以复现的bug。只要新装的宝塔都可以,新建net项目都正常,但不能重新启动服务器,一启动,就再也无法运行了。(程序可以在网上随便下载一个C#程序,我也使用过开源的blog.net测试过,同样会复现) 您好,这个问题如果没有解决的话,请重新发帖哈,这篇帖子就关闭了
页:
[1]