question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azurite no longer runs correctly as a background task in GitHub Actions

See original GitHub issue

Which service(blob, file, queue, table) does this issue concern?

Blob

Which version of the Azurite was used?

3.15.0

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

NPM

What’s the Node.js version?

14.18.2

What problem was encountered?

I’ve noticed that, since today, Azurite fails to start correctly in my GitHub Actions pipeline and instead dumps some unknown text/binary content to the GitHub Action log.

Action run before the issue started: https://github.com/CareTogether/CareTogetherCMS/runs/4710008033?check_suite_focus=true#step:6:6

Action runs showing the issue: https://github.com/CareTogether/CareTogetherCMS/runs/4755534824?check_suite_focus=true#step:6:6 (first attempt) https://github.com/CareTogether/CareTogetherCMS/runs/4755601564?check_suite_focus=true#step:6:6 (second attempt) https://github.com/CareTogether/CareTogetherCMS/runs/4755632933?check_suite_focus=true#step:6:6 (third attempt, reverting my .NET SDK upgrade to try to make the Action environment as identical to the previous successful run as possible)

Steps to reproduce the issue?

See above. It seems like the following YAML is problematic now, but wasn’t as of two days ago.

    - name: Set up Node.js
      uses: actions/setup-node@v1
      with:
        node-version: '14'
    - name: Install Azurite storage emulator
      run: npm install -g azurite
    - name: Start Azurite blob endpoint
      shell: bash
      run: azurite-blob &

Have you found a mitigation/solution?

No. I can’t figure out what is going on that might be affecting this. (On a related note, it would be helpful if there was some guidance provided by the Azurite GitHub readme/wiki for how to use Azurite in a GitHub Action “properly”, if the above is improper somehow. I got this to work based on guidance in an issue I found in the Azurite project some time back provided by @ethomson.)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LarsKemmanncommented, Jan 11, 2022

Well, the issue is resolved now in the sense that the problem has gone away (I haven’t had time to figure out what resolved it), but I hope the Azurite team doesn’t treat a supply chain attack - that causes your code to malfunction when run by end users - as someone else’s problem. That would be very concerning. The fix would have been for Azurite to manually specify package versions it’s using/allowing (dependency pinning).

0reactions
bluewwcommented, Jan 18, 2022

Close as the issue is resolved currently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running a background process in Action stopped working ... - GitHub
Azurite no longer runs correctly as a background task in GitHub Actions ... I've noticed that, since today, Azurite (a tool I use...
Read more >
Running azurite for tests in a GitHub action · Issue #451
Running azurite in a GitHub action to allow tests to run ... Azurite no longer runs correctly as a background task in GitHub...
Read more >
Running Azurite as background process on Azure DevOps #382
I want to run Azurite in order to run blob storage unit tests during an Azure DevOps build. There apparently was a command...
Read more >
Azurite in Visual Studio 2022 Official Version #83901 - GitHub
"Azurite is automatically available with Visual Studio 2022 preview, ... Those tasks are no longer required on the part of the developer.
Read more >
azuright · Actions · GitHub Marketplace
Installs azurite (Azure storage emulator) on Windows, macOS or Linux. ... on: [push] jobs: test-everywhere: name: Test Action on all platforms runs-on: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found