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

Serverless 3.x installation fails in ADO release pipeline Ubuntu 20.04, Node 20.x all of a sudden #12959

Closed
sai097 opened this issue Dec 16, 2024 · 9 comments

Comments

@sai097
Copy link

sai097 commented Dec 16, 2024

Issue description

I'm using ADO release pipeline to deploy a service to AWS using Serverless. The deployments started failing all of a sudden today without revealing much information about what exactly went wrong.

Versions:
ADO Agent job - Ubuntu 20.04
Node - 20.10.0
Serverless - 3.30.1

Below is the error message I can see in the step when I have two commands running npm install and sudo npm install [email protected] -g

npm error code TAR_BAD_ARCHIVE
2024-12-16T18:03:18.7625035Z npm error TAR_BAD_ARCHIVE: Unrecognized archive format

image

Context

No response

@Rbanda52
Copy link

I am facing the same issue in my pipelines during the installation step of Serverless.
npm error code TAR_BAD_ARCHIVE
npm error TAR_BAD_ARCHIVE: Unrecognized archive format

@SThakur181
Copy link

I am also facing the same issue since today. It was working fine till 13 Feb.
Configuration it worked on 13th:
Node : 18.x
Serverless : 3.0.0

Now even this combination is not working. Tried with latest version too, same issues.

@czubocha
Copy link
Contributor

@sai097 @Rbanda52 @SThakur181 I couldn’t reproduce the issue on my end. Could you confirm if this issue is specific to Serverless, or if you’re encountering the same error when installing other npm packages? I’ve noticed similar TAR_BAD_ARCHIVE issues being reported in multiple repositories on GitHub (1, 2), so it might not be directly related to Serverless.

@sai097
Copy link
Author

sai097 commented Dec 16, 2024

@sai097 @Rbanda52 @SThakur181 I couldn’t reproduce the issue on my end. Could you confirm if this issue is specific to Serverless, or if you’re encountering the same error when installing other npm packages? I’ve noticed similar TAR_BAD_ARCHIVE issues being reported in multiple repositories on GitHub (1, 2), so it might not be directly related to Serverless.

@czubocha Thanks for checking. I only have one command in the ADO pipeline task which is the installation of Serverless through npm and I'm given this error. It certainly looks specific to Serverless in my case
image

@czubocha
Copy link
Contributor

Thanks for the update, @sai097. While the error occurs during the installation of Serverless, it’s still unclear if this is specific to Serverless or a broader issue with npm or global installations. Could you try installing another package globally, such as npm install -g typescript or any other package, and let us know if the issue persists? This will help us determine whether it’s a Serverless-specific problem or related to the npm environment itself.

@czubocha czubocha added v3 and removed v3 labels Dec 16, 2024
@sai097
Copy link
Author

sai097 commented Dec 16, 2024

Thanks for the update, @sai097. While the error occurs during the installation of Serverless, it’s still unclear if this is specific to Serverless or a broader issue with npm or global installations. Could you try installing another package globally, such as npm install -g typescript or any other package, and let us know if the issue persists? This will help us determine whether it’s a Serverless-specific problem or related to the npm environment itself.

I've tried replacing Serverless with different packages like typescript and they seem to be working fine. You're right about it being unclear if it's specific to Serverless but an observation is that the task succeeds when I don't specify the serverless version like "npm install serverless" but fails when the version is specified in the command

@rohantor
Copy link

I am facing the same issue in AWS code pipelines during the installation step of Serverless.
npm error code TAR_BAD_ARCHIVE
Screenshot 2024-12-17 at 11 12 08 AM

npm error TAR_BAD_ARCHIVE: Unrecognized archive format

@sagrawal31
Copy link

This seems to be working for us after 14 hours of outage on AWS production environment

npm/cli#7986 (comment)

@czubocha
Copy link
Contributor

Closing this as it’s caused by the ongoing npm registry outage: npm/cli#7986

@czubocha czubocha closed this as not planned Won't fix, can't repro, duplicate, stale Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants