Debugging strapi build - stuck without visible errors

System Information
  • Strapi Version: 4.1.7
  • Operating System: MacOs 11.4
  • Database: mysql
  • Node Version: v14.19.0
  • Yarn Version: 1.22.17

Hi guys,

I’m running into a problem with yarn build that never completes.
It’s stuck after Admin UI built successfully and I can’t find how to debug.

Thanks in advance

1 Like

Hi @eveyrat, were you able to solve this? I am running in to the same issue currently

Hey, for me, this happened because I was using a custom cache plugin that connected to Redis. I’ve added an env variable to skip connecting to Redis for the build process. So in your case this maybe different, but check if there is any plugin or other code that keeps an open connection to some database or so. Hope that helps!

Examples from my code (may not apply to yours):

  • Build command IGNORE_CACHE=true yarn build
  • In config/plugins.js: const cache = process.env.IGNORE_CACHE !== 'true' ? new KeyvAdapter(new Keyv(process.env.REDIS_URL)) : null (cache is used in graphql.config.apolloServer.cache)

Hi @p.ziegler how do you debug to find that issue?

i have the same issue here, i also have a cache plugin, but i disabled it and it did not fix the issue. How do you find the way to find the error?