appcenter build error. Keystore problem I could assume

Viewed 21

So I'm playing around with automated builds for android apps and IOS apps in the near future. This is my 1st time doing and I'm following a course on Pluralsight but the whole course is about 2 years behind the current UI and everything is a bit different. I have followed each step and everything up until this error has worked fine. I have my 1st preview app up and running on internal testing and I'm able to download it and play around.

This error is been my nightmare for 2 hours now and after research many people say that my Keystore credentials could potentially be wrong, but I have completely made a new one and copy pasted my passwords and aliases into the fields and still getting the same errors

##[error]/bin/bash failed with return code: 1
##[error]/bin/bash failed with error: /bin/bash failed with return code: 1

I have completely run out of ideas about what could be going wrong. Thanks in advance :)

Update: Adding the entire build log for more information.

##[section]Starting: Build
##[section]Starting: Initialize job
Agent name: 'Hosted Agent'
Agent machine name: 'Mac-1663842481922'
Current agent version: '2.210.1'
##[group]Operating System
macOS
12.6
21G115
##[endgroup]
##[group]Runner Image
Image: macos-12
Version: 20220917.1
Included Software: https://github.com/actions/runner-images/blob/macOS-12/20220917.1/images/macos/macos-12-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20220917.1
##[endgroup]
##[group]Runner Image Provisioner
1.0.0.0-main-20220916-1
##[endgroup]
Current image version: '20220917.1'
Agent running as: 'runner'
Prepare build directory.
Set build variables.
Download all required tasks.
Downloading task: PowerShell (2.200.0)
Downloading task: ShellScript (2.206.0)
Downloading task: CmdLine (1.1.3)
Downloading task: UseDotNet (2.207.2)
Downloading task: Bash (3.201.1)
Downloading task: XamarinAndroid (1.208.0)
Downloading task: AndroidSigning (1.122.0)
Downloading task: AndroidSigning (3.201.0)
Downloading task: PublishBuildArtifacts (1.200.0)
Downloading task: NuGetInstaller (0.208.1)
Downloading task: MSBuild (1.208.0)
Downloading task: AppCenterTest (1.208.1)
Checking job knob settings.
   Knob: AgentToolsDirectory = /Users/runner/hostedtoolcache Source: ${AGENT_TOOLSDIRECTORY} 
Finished checking job knob settings.
Start tracking orphan processes.
##[section]Finishing: Initialize job
##[section]Starting: Sign APK
==============================================================================
Task         : Android signing
Description  : Sign and align Android APK files
Version      : 3.201.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/android-signing
==============================================================================
##[section]Finishing: Sign APK
##[section]Starting: Checkout HelloWorldXamarinAPP@master to s
==============================================================================
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
Syncing repository: HelloWorldXamarinAPP (ExternalGit)
##[command]git version
git version 2.37.3
##[command]git lfs version
git-lfs/3.2.0 (GitHub; darwin amd64; go 1.18.2)
##[command]git init "/Users/runner/work/1/s"
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint:   git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint:   git branch -m <name>
Initialized empty Git repository in /Users/runner/work/1/s/.git/
##[command]git remote add origin https://github.com/DaLegacy/HelloWorldXamarinAPP.git
##[command]git config gc.auto 0
##[command]git config --get-all http.https://github.com/DaLegacy/HelloWorldXamarinAPP.git.extraheader
##[command]git config --get-all http.extraheader
##[command]git config --get-regexp .*extraheader
##[command]git config --get-all http.proxy
##[command]git config http.version HTTP/1.1
##[command]git remote set-url origin https://***:***@github.com/DaLegacy/HelloWorldXamarinAPP.git
##[command]git remote set-url --push origin https://***:***@github.com/DaLegacy/HelloWorldXamarinAPP.git
##[command]git lfs install --local
Updated Git hooks.
Git LFS initialized.
##[command]git config remote.origin.lfsurl https://***:***@github.com/DaLegacy/HelloWorldXamarinAPP.git/info/lfs
##[command]git config remote.origin.lfspushurl https://***:***@github.com/DaLegacy/HelloWorldXamarinAPP.git/info/lfs
##[command]git fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin
remote: Enumerating objects: 4763, done.        
Receiving objects:  97% (4621/4763), 88.29 MiB | 29.40 MiB/s
remote: Total 4763 (delta 0), reused 0 (delta 0), pack-reused 4763        
Receiving objects: 100% (4763/4763), 100.57 MiB | 29.70 MiB/s, done.
Resolving deltas: 100% (2064/2064), done.
From https://github.com/DaLegacy/HelloWorldXamarinAPP
 * [new branch]      master     -> origin/master
##[command]git checkout 584bb983d3ed2cc7a5f383d2785a1bcc699063d4 -- .lfsconfig
error: pathspec '.lfsconfig' did not match any file(s) known to git
##[command]git lfs fetch origin 584bb983d3ed2cc7a5f383d2785a1bcc699063d4
fetch: Fetching reference 584bb983d3ed2cc7a5f383d2785a1bcc699063d4
##[command]git checkout --progress --force 584bb983d3ed2cc7a5f383d2785a1bcc699063d4
Updating files:  55% (1227/2201)
Updating files:  56% (1233/2201)
Updating files:  57% (1255/2201)
Updating files:  58% (1277/2201)
Updating files:  59% (1299/2201)
Updating files:  60% (1321/2201)
Updating files:  61% (1343/2201)
Updating files:  62% (1365/2201)
Updating files:  63% (1387/2201)
Updating files:  64% (1409/2201)
Updating files:  65% (1431/2201)
Updating files:  66% (1453/2201)
Updating files:  67% (1475/2201)
Updating files:  68% (1497/2201)
Updating files:  69% (1519/2201)
Updating files:  70% (1541/2201)
Updating files:  71% (1563/2201)
Updating files:  72% (1585/2201)
Updating files:  73% (1607/2201)
Updating files:  74% (1629/2201)
Updating files:  75% (1651/2201)
Updating files:  76% (1673/2201)
Updating files:  77% (1695/2201)
Updating files:  78% (1717/2201)
Updating files:  79% (1739/2201)
Updating files:  80% (1761/2201)
Updating files:  81% (1783/2201)
Updating files:  82% (1805/2201)
Updating files:  83% (1827/2201)
Updating files:  84% (1849/2201)
Updating files:  85% (1871/2201)
Updating files:  86% (1893/2201)
Updating files:  87% (1915/2201)
Updating files:  88% (1937/2201)
Updating files:  89% (1959/2201)
Updating files:  90% (1981/2201)
Updating files:  91% (2003/2201)
Updating files:  92% (2025/2201)
Updating files:  93% (2047/2201)
Updating files:  94% (2069/2201)
Updating files:  95% (2091/2201)
Updating files:  96% (2113/2201)
Updating files:  97% (2135/2201)
Updating files:  98% (2157/2201)
Updating files:  99% (2179/2201)
Updating files: 100% (2201/2201)
Updating files: 100% (2201/2201), done.
HEAD is now at 584bb98 Newest Version of the app with all the settings configured
##[command]git submodule sync --recursive
##[command]git submodule update --init --force --recursive
##[command]git remote set-url origin https://github.com/DaLegacy/HelloWorldXamarinAPP.git
##[command]git remote set-url --push origin https://github.com/DaLegacy/HelloWorldXamarinAPP.git
##[command]git config --unset-all remote.origin.lfsurl
##[command]git config --unset-all remote.origin.lfspushurl
##[section]Finishing: Checkout HelloWorldXamarinAPP@master to s
##[section]Starting: Install build scripts
==============================================================================
Task         : PowerShell
Description  : Run a PowerShell script on Linux, macOS, or Windows
Version      : 2.200.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
==============================================================================
Generating script.
========================== Starting Command Output ===========================
[command]/usr/local/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command . '/Users/runner/work/_temp/4a2498ab-d35e-43ef-b159-965b2e4efb0a.ps1'
Reinstalling Gradle init script plugins from /Users/runner/runners/2.210.1/scripts/gradle-init-script-plugins...
##[section]Finishing: Install build scripts
##[section]Starting: Tag build
==============================================================================
Task         : Shell script
Description  : Run a shell script using Bash
Version      : 2.206.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/shell-script
==============================================================================
[command]/bin/bash /Users/runner/runners/2.210.1/scripts/emit-tags.sh xamarin,signed,android-app-bundle,android,testcloud,manual
##[section]Async Command Start: Add Build Tag
Build '4' has following tags now: normal, xamarin, android, testcloud
##[section]Async Command End: Add Build Tag
##[section]Async Command Start: Add Build Tag
Build '4' has following tags now: normal, xamarin, android-app-bundle, android, testcloud, manual, signed
##[section]Async Command End: Add Build Tag
##[section]Async Command Start: Add Build Tag
Build '4' has following tags now: normal, xamarin, android-app-bundle, android, testcloud, manual
##[section]Async Command End: Add Build Tag
##[section]Async Command Start: Add Build Tag
Build '4' has following tags now: normal, android
##[section]Async Command End: Add Build Tag
##[section]Async Command Start: Add Build Tag
Build '4' has following tags now: normal, android, testcloud
##[section]Async Command End: Add Build Tag
##[section]Async Command Start: Add Build Tag
Build '4' has following tags now: normal, xamarin, android, testcloud, manual
##[section]Async Command End: Add Build Tag
##[section]Finishing: Tag build
##[section]Starting: Set Mono version
==============================================================================
Task         : Command Line
Description  : Run a command line with arguments
Version      : 1.1.3
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
==============================================================================
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2549) Warning: Use Cipheriv for counter mode of aes-256-ctr
##[section]Finishing: Set Mono version
##[section]Starting: Set Xamarin SDK Bundle
==============================================================================
Task         : Shell script
Description  : Run a shell script using Bash
Version      : 2.206.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/shell-script
==============================================================================
[command]/bin/bash /Users/runner/runners/2.210.1/scripts/select-xamarin-sdk.sh 6_12_19
Set Xamarin SDK to 6_12_19
Set Current folder for /Library/Frameworks/Mono.framework/Versions
Set Current folder for /Library/Frameworks/Xamarin.iOS.framework/Versions
Set Current folder for /Library/Frameworks/Xamarin.Android.framework/Versions
Set Current folder for /Library/Frameworks/Xamarin.Mac.framework/Versions
##[section]Finishing: Set Xamarin SDK Bundle
##[section]Starting: Switch .NET Core version
==============================================================================
Task         : Use .NET Core
Description  : Acquires a specific version of the .NET Core SDK from the internet or the local cache and adds it to the PATH. Use this task to change the version of .NET Core used in subsequent tasks. Additionally provides proxy support.
Version      : 2.207.2
Author       : Microsoft Corporation
Help         : https://aka.ms/AA4xgy0
==============================================================================
Tool to install: .NET Core sdk version 3.1.401.
Found version 3.1.401 in channel 3.1 for *** specified version spec: 3.1.401
Version 3.1.401 was not found in cache.
Getting URL to download .NET Core sdk version: 3.1.401.
Detecting OS platform to find correct download package for the OS.
[command]/Users/runner/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.207.2/externals/get-os-distro.sh
Primary:osx-x64
Legacy:osx-x64
Detected platform (Primary): osx-x64
Detected platform (Legacy): osx-x64
Downloading: https://download.visualstudio.microsoft.com/download/pr/e1f6e8dc-833f-46aa-866b-40b9bc68ed0f/6540a60960a6489061a08a9ccd3935cd/dotnet-sdk-3.1.401-osx-x64.tar.gz
Extracting downloaded package /Users/runner/work/_temp/c96dff79-9fac-4b47-b06d-75b9707ecf16.
Extracting archive
[command]/usr/bin/tar xC /Users/runner/work/_temp/069bbaed-41a6-4db6-96e6-368c84948975 -f /Users/runner/work/_temp/c96dff79-9fac-4b47-b06d-75b9707ecf16
Successfully installed .NET Core sdk version 3.1.401.
Creating global tool path and pre-pending to PATH.
##[section]Finishing: Switch .NET Core version
##[section]Starting: Install Android keystore
==============================================================================
Task         : Shell script
Description  : Run a shell script using Bash
Version      : 2.206.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/shell-script
==============================================================================
[command]/bin/bash /Users/runner/runners/2.210.1/scripts/install-keystore.sh ***
##[section]Finishing: Install Android keystore
##[section]Starting: Remove Default NuGet Config
==============================================================================
Task         : Bash
Description  : Run a Bash script on macOS, Linux, or Windows
Version      : 3.201.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
Script contents:
rm -f /Users/runner/.config/NuGet/NuGet.Config
========================== Starting Command Output ===========================
[command]/bin/bash /Users/runner/work/_temp/957a3efd-7968-4262-a97c-022c15afce06.sh
##[section]Finishing: Remove Default NuGet Config
##[section]Starting: Restore Nuget
==============================================================================
Task         : Command Line
Description  : Run a command line with arguments
Version      : 1.1.3
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
==============================================================================
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2752) Warning: Use Cipheriv for counter mode of aes-256-ctr
[command]/bin/bash -c /usr/bin/find . -name '*.sln' -type f -print0 | /usr/bin/xargs -0 grep -l 'HelloWorldXamarin.Android.csproj' | /usr/bin/xargs -I '{}' nuget restore '{}' -DisableParallelProcessing
MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin'.
/Users/runner/work/1/s/HelloWorldXamarin.UWP/HelloWorldXamarin.UWP.csproj : error MSB4057: The target "_IsProjectRestoreSupported" does not exist in the project.
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/NuGetScratch/6h6acrkq.wqa.nugetrestore.targets(302,5): warning MSB4181: The "MSBuild" task returned false but did not log an error. [/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/NuGetScratch/qdg34r0n.8cj.nugetinputs.targets]
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/NuGetScratch/6h6acrkq.wqa.nugetrestore.targets(314,5): warning : Skipping restore for project '/Users/runner/work/1/s/HelloWorldXamarin.UWP/HelloWorldXamarin.UWP.csproj'. The project file may be invalid or missing targets required for restore. [/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/NuGetScratch/qdg34r0n.8cj.nugetinputs.targets]

##[error]/bin/bash failed with return code: 1
##[error]/bin/bash failed with error: /bin/bash failed with return code: 1
##[section]Finishing: Restore Nuget
##[section]Starting: Sign APK
==============================================================================
Task         : Android signing
Description  : Sign and align Android APK files
Version      : 3.201.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/android-signing
==============================================================================
##[section]Finishing: Sign APK
##[section]Starting: Checkout HelloWorldXamarinAPP@master to s
==============================================================================
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
Cleaning any cached credential from repository: HelloWorldXamarinAPP (ExternalGit)
##[section]Finishing: Checkout HelloWorldXamarinAPP@master to s
##[section]Starting: Finalize Job
Cleaning up task key
Start cleaning up orphan processes.
##[section]Finishing: Finalize Job
##[section]Finishing: Build

Further Update: Not being able to find the issue, I have completely started a new project and made a minimal APP for Android. Followed everything required step by step and after getting everything sorted I get the same error. So at this point 100% got no idea what is going on.

0 Answers
Related