-
Notifications
You must be signed in to change notification settings - Fork 443
strapi-docker is not working on CentOS 8 #169
Comments
When you are running strapi in a docker container you shouldn't install the dependencies on the host machine but from the docker container. It seems the first command you ran should have worked and it was just a connection issue with yarn. Have you tried deleting the project-name folder and retry ? |
Thanks for the quick response. How can I run yarn install from the container when the container does not even start to begin with?
It never worked, any help is appreciated. |
You can run I don't really see why you wouldn't be able to connect to the yarn registry 🤔 Let me know what happens when you run the yarn install command from your container plz |
|
This seems to be coming for issue you migth have with your dns where you are connected to the internet :/ Some old issues reporting sth similar npm/npm#16661 |
Thanks! Will return to this. |
Could this be a Docker issue? On the droplet, I'm able to run |
It might be :/ You should go for a custom image base on the strapi/base image maybe. |
@zzkevinlim Have you tried on another system ? I don't see how I can help you here. If you have found a solution please let us know. WIll be closing this Issue in a few days of there is no more activity ;) |
I'm closing this issue as it doesn't seem to be related to the image itself |
I know this is closed but I have a possible solution for this issue and found this link before any others on my google search, hopefully, this will point other devs in the right direction at the very least. I ran into this on Ubuntu 18.04 x64 using a vultr server. I believe centOS 8 may have the same or a similar issue I was facing. Like @zzkevinlim I was getting this error:
Thanks to the people in this thread I realized that this wasn't a sqlite3 error but an error with yarn itself (though not DNS related). In my case (on Ubuntu 18.04 x64) yarn wasn't being installed at all, cmdtest was. This seems to be an ongoing issue with a few Linux builds as referenced here, here, and here all in the past year. I think this is very likely a common point of failure on the developer/install side (me included) but I managed to work around this despite nobody having a clear answer in any of the threads I looked up. Add the key to apt
Remove cmdtest if you downloaded it by mistake
Add yarn to the apt source list and install yarn
Then rebuild the container and it should hopefully work. There are very good odds I fixed my issue somewhere else along the way but I think this is what fixed it. If you're running into this along with the weird cmdtest note during the install of yarn it may be worth it to give this a shot. |
ATTENTION! For people who use docker on wsl2 and it doesn't work for them. I have put the network that the container uses to be the At least it worked this way for me. |
Fresh installation:
Error:
So I did what it says, went into the project folder and ran
yarn install
.Run again:
Error:
So I did what it says, went into the project folder and ran
yarn add sqlite3 --save
.Run again:
Error:
EDIT: This was done on a freshly created droplet.
The text was updated successfully, but these errors were encountered: