Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning into builds pipelines: Use Cipheriv for counter mode of aes-256-ctr #9783

Closed
denis-panov opened this issue Mar 11, 2019 · 27 comments
Closed

Comments

@denis-panov
Copy link

Issue Description

Tasks: Install an Apple provisioning profile, Xcode, PowerShell, Command Line, Shell Script ...

We faced next warning into builds pipelines:

Warning: Use Cipheriv for counter mode of aes-256-ctr

Looks like here is fix for this: nodejs/node#16746 (comment)

Also it’s discussed on the forum: https://developercommunity.visualstudio.com/content/problem/475022/getting-warning-use-cipheriv-on-various-stages-of.html

Is this known issue? Do you plan to fix it?

image

Environment

Server - Azure Pipelines
Agent - Hosted on MacOS

Task logs

##[section]Starting: Xcode build (signed)
==============================================================================
Task         : Xcode
Description  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
Version      : 4.130.0
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613730)
==============================================================================
[command]/usr/bin/xcodebuild -version
(node:858) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:858) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:858) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:858) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:858) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:858) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:858) Warning: Use Cipheriv for counter mode of aes-256-ctr
@bryanmacfarlane
Copy link
Contributor

consume new task lib

@ohdihe
Copy link

ohdihe commented Mar 15, 2019

Got the same error using yesterday march 14th and it was related to Azure Resource Group Deployment task.

I was using Windows Hosted Agent VS2017

@meigaoms
Copy link

Got same error when running ShellScript@2 task here. Any update?

@tarifrr
Copy link

tarifrr commented Feb 12, 2020

Got the same error here too when using Ubuntu 2018 for running a Azure DevOps CI Pipe:

image

Any updates?

@lemessur
Copy link

I'm not sure if it's the same issue, but I am seeing this same warning message printing repeatedly during every single build step of my AppCenter Android and iOS Xamarin projects:

(node:1330) Warning: Use Cipheriv for counter mode of aes-256-ctr

The reported line number varies quite a bit.

I found this thread by googling this warning.

Whenever this warning shows up in the build log the build later fails with the error message:

##[error]"{"code":"dependent_service_error","message":"Error: Error: ESOCKETTIMEDOUT"}"

For now the solution is to wait a little while (~30 minutes) and then retry the build. Everything usually works after that. This issue pops up once a week or so, but never seems to coincide with any issues reported on the AppCenter status page.

@airman00
Copy link

airman00 commented Feb 14, 2020

@lemessur When the build does work, does (node:1330) Warning: Use Cipheriv for counter mode of aes-256-ctr still appear?

Currently facing the same issue

@lemessur
Copy link

lemessur commented Feb 14, 2020

@lemessur When the build does work, does (node:1330) Warning: Use Cipheriv for counter mode of aes-256-ctr still appear?

Currently facing the same issue

Now that you mention it, I see the warning appearing with the same frequency in logs from recent successful builds. The error I'm seeing might not have anything to do with this warning.

The AppCenter Status page (https://status.appcenter.ms/) is now acknowledging some sort of issue with distribution so it's probably being caused by whatever that is. The message was posted there a little over an hour ago, but I started seeing that error (##[error]"{"code":"dependent_service_error","message":"Error: Error: ESOCKETTIMEDOUT"}") around 4 hours ago.

At this point I'm thinking that "Warning: Use Cipheriv for counter mode of aes-256-ctr" is some non-fatal issue that Microsoft does not care about (This thread is nearly a year old and there has been no official response) and it has nothing to do with our current build/distribution problems.

Edit: The original post links to a page mentioning that the solution is to install a new version of an NPM package, but that isn't relevant at least in my case. The warning is occurring during an AppCenter build on a remote machine where I have no control over the package versions.

@Bnjmn83
Copy link

Bnjmn83 commented Feb 18, 2020

Seeing the same:

2020-02-18T02:35:37.8717258Z ==============================================================================
2020-02-18T02:35:37.8717828Z Task         : Docker
2020-02-18T02:35:37.8718434Z Description  : Build, tag, push, or run Docker images, or run a Docker command
2020-02-18T02:35:37.8718945Z Version      : 1.157.0
2020-02-18T02:35:37.8719404Z Author       : Microsoft Corporation
2020-02-18T02:35:37.8719952Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/docker
2020-02-18T02:35:37.8720533Z
2020-02-18T02:35:38.2533445Z [command]/usr/local/bin/docker run ...
2020-02-18T02:35:38.2628584Z (node:42138) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-18T02:35:38.2644302Z (node:42138) Warning: Use Cipheriv for counter mode of aes-256-ctr
==============================================================================

@dkmiller
Copy link

I can also reproduce this issue. It is arising during the PowerShell task running in ubuntu-latest machines:

Task : PowerShell
Description : Run a PowerShell script on Linux, macOS, or Windows
Version : 2.163.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell

(the script is extremely simple: parse an XML file and set a build variable).

@shogerr
Copy link

shogerr commented Feb 20, 2020

Warning seen while using the CopyFiles task:

Starting: CopyFiles
==============================================================================
Task         : Copy files
Description  : Copy files from a source folder to a target folder using patterns matching file paths (not folder paths)
Version      : 2.158.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/copy-files
==============================================================================
...
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr

@leantk leantk added the Area: ABTT Akvelon Build Tasks Team area of work label May 1, 2020
@leantk
Copy link
Contributor

leantk commented May 1, 2020

The fix here is to move from using vsts-task-lib to azure-pipelines-task-lib library. An example of this is in the PR #12489. A few updates have to be made along with the library change to account for some differences in them

@anton-erofeev anton-erofeev self-assigned this May 4, 2020
@anton-erofeev
Copy link
Contributor

anton-erofeev commented May 5, 2020

Hello, @shogerr !

This issue has already been fixed in #12207, but it should take some time for release to be fully distributed. I'll let you know once it's done, you can check it again then.

@anton-erofeev
Copy link
Contributor

Hello, @shogerr , @denis-panov !

Could you please provide your organization name from Azure DevOps? This will help us make sure that you receive a bug fix update.

@shogerr
Copy link

shogerr commented May 26, 2020

@anton-erofeev: USNR-EWP. Contact could be @jlidbeck

@anton-erofeev
Copy link
Contributor

Hello, @jlidbeck, @shogerr
Your organization uses the latest version of this task, so this warning no longer appears on your pipeline. Please let me know if you get this warning again.

@anton-erofeev
Copy link
Contributor

Closed due to lack of activity, please feel free to reopen.

@s-hintz
Copy link

s-hintz commented Jul 24, 2020

We are still getting these warnings in the logs when building with App Center.

(node:5670) Warning: Use Cipheriv for counter mode of aes-256-ctr

How do I reopen this bug ticket?

@leantk leantk reopened this Jul 26, 2020
@leantk leantk added Area: AppCenter and removed Area: ABTT Akvelon Build Tasks Team area of work labels Jul 26, 2020
@leantk
Copy link
Contributor

leantk commented Jul 26, 2020

@microsoft/app-center to make the task update

@nichojo89
Copy link

We are still getting this issue when deploying an ad-hoc Xamarin app .ipa file to AppCenter using an App Center Deploy task. I've tried re-creating AppCenter token, recreating release task. Gets stuck on (node:7356) Warning: Use Cipheriv for counter mode of aes-256-ctr and fails to deploy to AppCenter. No changes were made to this release task this just suddenly started happening.

@johnybaryah
Copy link

@nichojo89 I can also confirm the same issue using app-center-distribute version 3.*

@King-of-Spades
Copy link

King-of-Spades commented Dec 8, 2020

@nichojo89 @johnybaryah I reproduce the warning message on working builds that don't include any of the observations you cited.

Observations

I don't believe this warning message is sufficient to diagnose a single, consistent issue:

Warning: Use Cipheriv for counter mode of aes-256-ctr

I've observed the warning appearing in both Android and iOS builds that successfully completed building as well as running automated UI tests on most (though not 100%) of devices. Repo: https://github.com/microsoft/appcenter-Xamarin.UITest-Demo/

Maybe it still indicates something is wrong, but at the very least, it doesn't seem to be the most informative symptom to focus on by itself. This is also consistent with some past comments on this thread: #9783 (comment)

Example logs from passing iOS Build & UITest suite

From commit: https://github.com/microsoft/appcenter-Xamarin.UITest-Demo/tree/e775ca618e6d010ed9d320613f15517814990097

==============================================================================
Task         : Install Apple Provisioning Profile
Description  : Install an Apple provisioning profile required to build on a macOS agent
Version      : 0.124.0
Author       : Microsoft Corporation
Help         : 
==============================================================================
##[warning]Deleting provisioning profile: /Users/runner/Library/MobileDevice/Provisioning Profiles/22a9db50-d8aa-4c46-ac64-34bc5d680aa6.mobileprovision
[command]/bin/rm -f /Users/runner/Library/MobileDevice/Provisioning Profiles/22a9db50-d8aa-4c46-ac64-34bc5d680aa6.mobileprovision
(node:2092) Warning: Use Cipheriv for counter mode of aes-256-ctr
... (repeats several times)
##[section]Finishing: Install Apple provisioning profile
##[section]Starting: Install Apple certificate

Example logs from passing Android build & UITest suite

From commit: https://github.com/microsoft/appcenter-Xamarin.UITest-Demo/tree/e775ca618e6d010ed9d320613f15517814990097

##[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)
==============================================================================
[command]/bin/bash -c /usr/bin/find . -name '*.sln' -type f -print0 | /usr/bin/xargs -0 grep -l 'UITestDemo.Droid.csproj' | /usr/bin/xargs -I '{}' nuget restore '{}' -DisableParallelProcessing
(node:1293) Warning: Use Cipheriv for counter mode of aes-256-ctr
... (repeats several times)
MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin'.
Restoring NuGet package Newtonsoft.Json.12.0.3.
... (continues with fairly normal logging)

@anatolybolshakov
Copy link
Contributor

@King-of-Spades looks like you use old versions of InstallProvisioningProfile and CommandLine tasks - are you using on-prem solution? If so - you need to update it to receive last version of in-the-box pipeline tasks containing a fix for this issue.

@Sidoran
Copy link

Sidoran commented Feb 16, 2021

Hello. We have the same issue with the WhiteSource task.
Issue reproduced on 19.* and 20.* task versions.
image

@anatolybolshakov
Copy link
Contributor

Hi @Sidoran WhiteSource task is external for this repo, please contact support of this task to resolve this issue.
They just need to update azure-pipeline-task-lib dependency like it was in PR

@Sidoran
Copy link

Sidoran commented Feb 17, 2021

Hi @Sidoran WhiteSource task is external for this repo, please contact support of this task to resolve this issue.
They just need to update azure-pipeline-task-lib dependency like it was in PR

@anatolybolshakov, thank you. I will notify WhiteSource support.

@github-actions
Copy link

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@s-hintz
Copy link

s-hintz commented Aug 23, 2021

When will this be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests