Error bootstrap function in plugin "users-permissions" failed Error: connect ETIMEDOUT at Connection._handleConnectTimeout

System Information
  • Strapi Version: 3.6.8
  • Operating System: Windows10
  • Database: MySQL
  • Node Version: >=10.16.0 <=14.x.x
  • NPM Version: >=6.0.0
  • Yarn Version:

Hi, I’ve been reading every seemingly relevant “bootstrap.js “users-permissions” failed error” posts I could find online, but I still haven’t been able to find a solution.

I just updated strapi to the latest version 3.6.8, but now, when I try to set up a new strapi project, I receive the following error message when I try to run develop:

[2021-08-28T14:47:52.345Z] error bootstrap function in plugin “users-permissions” failed
[2021-08-28T14:47:52.347Z] error Error: connect ETIMEDOUT
at Connection._handleConnectTimeout (C:\Users\aneth\OneDrive\FEU 2021\Exam Osebro Antique Book Store\osebro-antikvariat\node_modules\mysql\lib\Connection.js:409:13)
at Object.onceWrapper (events.js:421:28)
at Socket.emit (events.js:315:20)
at Socket._onTimeout (net.js:483:8)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
at Protocol._enqueue (C:\Users\aneth\OneDrive\FEU 2021\Exam Osebro Antique Book Store\osebro-antikvariat\node_modules\mysql\lib\protocol\Protocol.js:144:48)
at Protocol.handshake (C:\Users\aneth\OneDrive\FEU 2021\Exam Osebro Antique Book Store\osebro-antikvariat\node_modules\mysql\lib\protocol\Protocol.js:51:23)
at Connection.connect (C:\Users\aneth\OneDrive\FEU 2021\Exam Osebro Antique Book Store\osebro-antikvariat\node_modules\mysql\lib\Connection.js:116:18)
at C:\Users\aneth\OneDrive\FEU 2021\Exam Osebro Antique Book Store\osebro-antikvariat\node_modules\knex\lib\dialects\mysql\index.js:68:18
at new Promise ()
at Client_MySQL.acquireRawConnection (C:\Users\aneth\OneDrive\FEU 2021\Exam Osebro Antique Book Store\osebro-antikvariat\node_modules\knex\lib\dialects\mysql\index.js:63:12)
at create (C:\Users\aneth\OneDrive\FEU 2021\Exam Osebro Antique Book Store\osebro-antikvariat\node_modules\knex\lib\client.js:290:39)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
npm ERR! errno 1
npm ERR! osebro-antikvariat@0.1.0 develop: strapi develop
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the osebro-antikvariat@0.1.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aneth\AppData\Roaming\npm-cache_logs\2021-08-28T14_47_52_386Z-debug.log

I will be extremely grateful for any suggestions on how I can try to fix this :dizzy_face:

Short update; I fixed this by reinstalling everything I could, like Node.js and npm and running a new strapi install, and then I tried to do the audit fixes that was recommended after installing - following the guide from npmjs:

So far this has helped - and I, for the moment at least, have a seemingly functioning api using a mysql database.