docker-strapi icon indicating copy to clipboard operation
docker-strapi copied to clipboard

[BUG] Error: Cannot find module 'mysql'

Open mariushosting opened this issue 2 years ago • 13 comments
trafficstars

@naskio The latest STRAPI 4.15.0 container give back the following error message when install it:

Error: Cannot find module 'mysql'

[2023-11-01 11:29:40.969] debug: ⛔️ Server wasn't able to start properly. [2023-11-01 11:29:40.971] error: Knex: run $ npm install mysql --save Cannot find module 'mysql'

mariushosting avatar Nov 01 '23 11:11 mariushosting

same error i am getting

Greatz08 avatar Nov 08 '23 04:11 Greatz08

version 4.15.2 is out but the issue persist with every Database client env variable, mysql, postgres even sqlite is not working. I hope @naskio can look into this issue since this image is not working anymore.

mariushosting avatar Nov 10 '23 20:11 mariushosting

+1

lazyest avatar Nov 11 '23 07:11 lazyest

Hi guys, Maybe we can use an older version until we find a fix😬.

naskio avatar Nov 11 '23 08:11 naskio

which version is good?

doasare avatar Nov 12 '23 17:11 doasare

which version is good?

Release 4.12.1

mariushosting avatar Nov 19 '23 11:11 mariushosting

Hello there, I got the same problem with (Cannot find module 'pg') the Docker image and without (I cannot authenticate to the database due to a problem with environment variables) since 4.15 too. I returned to 4.14.4 with the Docker image, and everything works well.

I just saw that Strapi has shared some news about the latest problems here: Notice: Stability and changes to our release process (v4.15.x through 2023)

AmandineTournay avatar Nov 21 '23 15:11 AmandineTournay

hey, I'm getting something similar:

Cannot find module 'pg'

I was hoping v4.16.2 would fix this, but it looks like that's not the case. Does anyone have more info about this?

ancashoria avatar Dec 23 '23 19:12 ancashoria

我也遇到相对应的问题,找不到解决方案

iNorthSea avatar Jan 02 '24 09:01 iNorthSea

Hey I have a working version here using latest strapi. You would need to copy entire repo but you are more than welcome creating your own image and publishing it somewhere remove -

https://github.com/doasare/docker-strapi/blob/main/README.md

doasare avatar Jan 03 '24 01:01 doasare

+1 for this issue

Reverting back to 1.14 works fine for now

DylanBorchert avatar Jan 17 '24 01:01 DylanBorchert

Another +1

Version 1.14.5 seems to be the last (most) stable version

DeDelner avatar Jan 28 '24 14:01 DeDelner

Hi guys, Maybe we can use an older version until we find a fix😬.

Any fix until today? 👍

mariushosting avatar May 15 '24 20:05 mariushosting