An unexpected error happened when running this build

I got this error during deployment:

An unexpected error happened when running this build. We have been notified of the problem.

I’ve deployed 5 times but the error persisted.

The project is in Next.js 14.2.14, and it’s able to build on local machine.

The only change to the codebase was to add a new redirect rule. But the build still failed after I commented out the code.

Is there something wrong with the deployment currently? Or how should I debug this? Any thought is appreciated!

Hey, can you try deploying without cache and let us know if you can still reproduce this? Troubleshooting Build Errors

Hi, thanks for the reply. I just tried redeploy without cache but the issue still exists. (Actually all the previous redeployments are without cache.)

By the way, I also noticed that the failed deployments builds significantly longer than normal. It used to be 2~3 minutes, but the failed builds take 10~13 minutes.

same problem for me !

1 Like

It’s two days now and still the builds fail with no reason (with or without cache).

Maybe the solution is to simply move this web app out to other platforms if Vercel is unreliable. So for anyone reading this in the future, I’m a paying user and this is my personal account for side projects. Will move everything out as soon as possible.

WORKAROUND:

I ran vercel build --prod on my local machine, and then vercel deploy --prebuilt --prod to deploy the local build and it worked.

There’s definitely something wrong with the building functionality on Vercel, but at least now I can update the site.

1 Like

Hi @yujiahuang, thanks for sharing the workaround here.

I’ll relay this information to our team. Please note that we are on a company offsite so the support responses might be delayed.

Hi @marie3 @yujiahuang, can you share what are the contents of your repository and the size?

Don’t bother, I’m moving everything off Vercel. I paid hundreds of dollars to Vercel, and now my project was unable to build for days, you told me the company was “on a company offsite” like that’s somehow my issue.

After a week, you finally thought, “Oh yeah, maybe I should ask about the content and size.” I know you probably just work there, so this isn’t personal, but come on, there’s clearly a huge cultural issue at this company. I’d seriously suggest anyone to get out while you can, whether you’re a customer or an employee.

Hi @yujiahuang

We received following error in your project while building:

This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

It sounds like you have a large files in Git Repository and the cloning is failing from GitHub end. Instead of vercel build and vercel deploy --prebuilt step, can you try running vercel deploy instead? it should bypass cloning and deployment should work

1 Like

@marie3 Could you create a separate thread including project link so we can take a closer look?

1 Like