My new localization build setup failed on Localization.targets error MSB4018: The "LocPayloadAddProject" task failed unexpectedly. Can someone tell me what went wrong?
errors:
2017/01/26 11:31:04 AM 6>E:.BtCxCache\Localization.2.0.22.7\Localization.targets(780,5): error MSB4018: The "LocPayloadAddProject" task failed unexpectedly. [E:\bt\775626\repo\src\loc\Ux\Extensions\GalleryPackages\Compute\CreateAvailabilitySet.locbld\locbld.proj]
2017/01/26 11:31:04 AM E:.BtCxCache\Localization.2.0.22.7\Localization.targets(780,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\bt\775626\repo\out\retail-amd64-localization\CreateAvailabilitySet\lbaworking\default\CreateAvailabilitySet\locstudio.source'. [E:\bt\775626\repo\src\loc\Ux\Extensions\GalleryPackages\Compute\CreateAvailabilitySet.locbld\locbld.proj]
Got an answer from colleague and it solved the issue.
The LBA seeding didn't run correctly. There are no lba.config in each project folder under lba. i.e. "D:\Source\Repo\rdnext\AzureUX\IaaSExp\src\loc\Ux\Extensions\GalleryPackages\Compute\CreateAvailabilitySet.locbld\lba\cs\CreateAvailabilitySet\LBA.config"
Just set enable_locseeding=1 to make the file get copied correctly.
Related
I am running SWT app(HelloWorld) but it gives me this error
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at swt3.demo.main(demo.java:9)
I appreciate if you could please help me?
I have a sample Ocelot gateway service built using Dotnet Core Web API V3.1. I have build the solution in Windows machine using "dotnet clean and dotnet build" which works fine. I'm trying to do the same in Ubuntu 18.04 LTS machine through Jenkins which is causing the below issue.
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: The "ResolvePackageAssets" task failed unexpectedly. [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: NuGet.Packaging.Core.PackagingException: Unable to find fallback package folder 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder'. [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at NuGet.Packaging.FallbackPackagePathResolver..ctor(String userPackageFolder, IEnumerable`1 fallbackPackageFolders) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.NuGetPackageResolver.CreateResolver(IEnumerable`1 packageFolders) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.NuGetPackageResolver.CreateResolver(LockFile lockFile) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheWriter..ctor(ResolvePackageAssets task) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader.CreateReaderFromDisk(ResolvePackageAssets task, Byte[] settingsHash) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader..ctor(ResolvePackageAssets task) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups() [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore() [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
1>Done Building Project "/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj" (Clean target(s)) -- FAILED.
Build FAILED.
"/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj" (Clean target) (1) ->
(ResolvePackageAssets target) ->
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: The "ResolvePackageAssets" task failed unexpectedly. [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: NuGet.Packaging.Core.PackagingException: Unable to find fallback package folder 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder'. [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at NuGet.Packaging.FallbackPackagePathResolver..ctor(String userPackageFolder, IEnumerable`1 fallbackPackageFolders) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.NuGetPackageResolver.CreateResolver(IEnumerable`1 packageFolders) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.NuGetPackageResolver.CreateResolver(LockFile lockFile) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheWriter..ctor(ResolvePackageAssets task) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader.CreateReaderFromDisk(ResolvePackageAssets task, Byte[] settingsHash) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader..ctor(ResolvePackageAssets task) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups() [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore() [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
/usr/share/dotnet/sdk/3.1.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/var/lib/jenkins/workspace/GatewaySample_SERVICE/GatewaySample/GatewaySample.csproj]
Kindly let me know what am I missing here?
Note: I have another linux machine where I have the same setup (but Dotnet Core V2.2) where I could able to build the API through Jenkins.
PS: Below is the content from .csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>GatewaySample_SERVICE</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="3.0.1" />
<PackageReference Include="Ocelot" Version="14.0.11" />
</ItemGroup>
</Project>
I had similar issue when moving from Windows environment to WSL environment.
I did not find any reference to the missing directory in project files thus I searched the fallback plugin folder references in the whole project directory hierarchy and found it only in bin/ and obj/ folders.
After deleting all the bin/ and obj/ folders from the projects I was able to build them under WSL.
I have upgraded jenkins from 2.60.1 to 2.150.1. After upgrade I am getting the below error while getting the code from TFS. I have upgraded the TFS plugin also.
FATAL: java.lang.RuntimeException:
com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An Internal Error Occurred. Activity Id: 36d215cc-c371-437a-9d54-2cf1f116d4bb.
com.microsoft.tfs.core.ws.runtime.exceptions.SOAPFault: TF400898: An Internal Error Occurred. Activity Id: 36d215cc-c371-437a-9d54-2cf1f116d4bb.
at com.microsoft.tfs.core.ws.runtime.client.SOAP12Service.examineResponseDOMForFault(SOAP12Service.java:117)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineBodyForFault(SOAPService.java:987)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:665)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:444)
at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.updateLocalVersion(_Repository5Soap12Service.java:1170)
at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3067)
Caused: com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An Internal Error Occurred. Activity Id: 36d215cc-c371-437a-9d54-2cf1f116d4bb.
As I remember, TFS have the issue with path length - it cannot be more than 260 symbols, so try to use custom workspace for your job with a small name (like C:\tfs_checkout) to reduce the number of symbols in your path.
I'm working on adding Docker support to an established asp application that has been working great. I was hoping to leverage VS2017 Docker features and functionality by just hitting "add Docker support" and seeing what that "F5 experience" would be like. As luck would have it I was immediately plagued with errors that are a bit cryptic
1>------ Build started: Project: docker-compose, Configuration: Release Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(80,5): error MSB4018: The "ResolveProjectInputAndOutput" task failed unexpectedly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(80,5): error MSB4018: System.ArgumentNullException: Value cannot be null.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(80,5): error MSB4018: Parameter name: path1
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(80,5): error MSB4018: at System.IO.Path.Combine(String path1, String path2)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(80,5): error MSB4018: at Microsoft.Docker.BuildTasks.ResolveProjectInputAndOutput.ResolveRelativeOutputAssemblyPath(TargetOS targetOS, TargetFramework targetFramework, DockerDevelopmentMode developmentMode)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(80,5): error MSB4018: at Microsoft.Docker.BuildTasks.ResolveProjectInputAndOutput.Execute()
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(80,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(80,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
I popped over to the file in question and it's specifically an issue here:
<Target Name="DockerResolveProjectInputAndOutput">
<ResolveProjectInputAndOutput ProjectDirectory="$(MSBuildProjectDirectory)" DockerComposeProjectPath="$(DockerComposeProjectPath)" OutputPath="$(OutputPath)" References="#(Reference)" TargetFileName="$(TargetFileName)" TargetPath="$(TargetPath)" />
</Target>
So I took a peak in the proj file to see if there are any Docker specific issues that can be found. I only found one reference here:
<DockerComposeProjectPath>..\docker-compose.dcproj</DockerComposeProjectPath>
It seems like some configuration hasn't been properly done and it's causing this issue, but haven't had much luck figuring out what/where it would be.
In my case the issue was this: We had a bunch of configurations (Dev, Test, Beta, Prod, Debug, and Release). But, in the project file of the app I was trying to add container support to we didn't have a <PropertyGroup> section for Debug. That section is where the OutputPath is.
Oddly, I got the error even when running in the Dev config.
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Dev\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
I ran out of disk space and my Neo4J 3.3.3 database doesn't start anymore showing the following error:
2018-04-16 21:10:35.148+0000 ERROR Failed to start Neo4j: Starting
Neo4j failed: Component
'org.neo4j.server.database.LifecycleManagingDatabase#7e5c856f' was
successfully initialized, but failed to start. Please see the attached
cause exception "null. At position LogPosition{logVersion=250,
byteOffset=198709181} and entry version V3_0_10". Starting Neo4j
failed: Component
'org.neo4j.server.database.LifecycleManagingDatabase#7e5c856f' was
successfully initialized, but failed to start. Please see the attached
cause exception "null. At position LogPosition{logVersion=250,
byteOffset=198709181} and entry version V3_0_10".
When I run neo4j-admin check-consistency --database=graph.db I get:
unexpected error: null. At position LogPosition{logVersion=250,
byteOffset=198709181} and entry version V3_0_10
So probably some logs got corrupted.
Does Neo4J have any tools to fix this situation?
I looked at https://github.com/neo4j/neo4j-javascript-driver/issues/300 - but it didn't help me as I don't even get any error message just the one above.
I tried https://github.com/jexp/store-utils but when I run
copy-store.sh community ~/neo4j-community-3.3.3/data/databases/graph.db ~/target.db
it says
[ERROR] COMPILATION ERROR : [INFO]
------------------------------------------------------------- [ERROR] /home/noduslabs/repair/store-utils/src/main/java/org/neo4j/tool/StoreCopy.java:[96,18]
error: cannot find symbol [ERROR] class StoreCopy
/home/noduslabs/repair/store-utils/src/main/java/org/neo4j/tool/StoreCopy.java:[96,59]
error: cannot find symbol [ERROR] class StoreCopy
/home/noduslabs/repair/store-utils/src/main/java/org/neo4j/tool/StoreCopy.java:[97,37]
error: cannot find symbol
Running that same store-utils but branch 32 seem to go further but then the same error occurs:
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.1:java (default-cli) on project
store-util: An exception occured while executing the Java class. null:
InvocationTargetException: Error starting
org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory,
/home/noduslabs/neo4j-community-3.3.3/data/databases/graph.db:
Component 'org.neo4j.kernel.recovery.Recovery#4168eb66' failed to
initialize. Please see the attached cause exception "null. At position
LogPosition{logVersion=250, byteOffset=198709181} and entry version
V3_0_10". -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.codehaus.mojo:exec-maven-plugin:1.1:java
(default-cli) on project store-util: An exception occured while
executing the Java class. null
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
So basically I'm stuck and there's not way to fix the DB, right?