我正在使用模板ASP.Net Core 2.1(预览)项目 - 除了模板中包含的内容之外,没有任何代码。 JetBrains Rider无法构建/运行应用程序,所以我退到终端并在文件夹中运行dotnet build
;没有骰子。但是,sudo dotnet build
工作正常。
我在最初在2.0.6上解决此问题时切换到2.1预览版(我的项目需要2.1,但两种版本都观察到了这种行为)。
我怀疑与相关因为我使用域帐户登录我的计算机(whoami
报告HOMEDOMAIN\domain_user
,而不是{{1} })。我使用我的域凭据时,其他应用程序的行为很奇怪,因此我使用本地帐户登录并domain_user@homedomain.local
正常工作,就像使用域帐户登录时运行dotnet build
一样。
以下是sudo -u (any local account) dotnet build
的输出:
dotnet build
我使用诊断输出进行了构建,并为路径输出了grepped;一切都在那里并且可访问(文件很大;如果有人认为那里有价值,很高兴把它放在github上)
我的linux框是OpenSUSE Tumbleweed:
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error MSB3883: Unexpected exception: [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : System.AggregateException: One or more errors occurred. (The filename, directory name, or volume label syntax is incorrect) ---> System.IO.IOException: The filename, directory name, or volume label syntax is incorrect [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : at System.Threading.Mutex.CreateMutexCore(Boolean initiallyOwned, String name, Boolean& createdNew) [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : at Microsoft.CodeAnalysis.CommandLine.BuildServerConnection.<RunServerCompilationCore>d__7.MoveNext() [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : --- End of inner exception stack trace --- [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : at System.Threading.Tasks.Task.Wait(CancellationToken cancellationToken) [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : ---> (Inner Exception #0) System.IO.IOException: The filename, directory name, or volume label syntax is incorrect [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : at System.Threading.Mutex.CreateMutexCore(Boolean initiallyOwned, String name, Boolean& createdNew) [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
/usr/share/dotnet/sdk/2.1.300-preview1-008174/Roslyn/Microsoft.CSharp.Core.targets(84,5): error : at Microsoft.CodeAnalysis.CommandLine.BuildServerConnection.<RunServerCompilationCore>d__7.MoveNext()<--- [/home/HOMEDOMAIN/domain_user/RiderProjects/Intonation/Intonation/Intonation.csproj]
我正在使用sssd进行域名登录处理,我的Linux laptop 4.15.10-1-default #1 SMP PREEMPT Thu Mar 15 20:31:17 UTC 2018 (5e4329c) x86_64 x86_64 x86_64 GNU/Linux
是:
/etc/sssd/sssd.conf
对于诊断其他信息有什么帮助,我感到难过而且有点无能为力,所以如果我能提供其他东西的话。很高兴添加任何东西,如果它会有所帮助。
修改
如下所示,添加[sssd]
config_file_version = 2
services = pam,nss
domains = homedomain.local
default_domain_suffix = homedomain.local
debug_level = 3
[pam]
[nss]
[domain/homedomain.local]
id_provider = ad
auth_provider = ad
enumerate = false
cache_credentials = true
case_sensitive = false
ad_server = dc.homedomain.local
ad_hostname = laptop.homedomain.local
debug_level = 3
override_homedir = /home/%F/%u
ldap_user_shell = loginShell
[domain/default]
auth_provider = krb5
chpass_provider = krb5
krb5_realm = HOMEDOMAIN.LOCAL
krb5_server = DC.homedomain.local
krb5_validate = False
krb5_renewable_lifetime = 1d
krb5_lifetime = 1d
会导致构建成功,成为域用户;我按照建议打开了项目的错误。