akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
952 stars 516 forks source link

Unable to install : Makefile 58 : Error 255 #19897

Open mwolfaardt opened 1 year ago

mwolfaardt commented 1 year ago

I'm trying to install PIM Community edition, based on the installation instructions, but when I execute NO_DOCKER=true make prod the setup runs and I get the following error :

[OK] Database schema updated successfully! Reset elasticsearch indexes make[2]: [Makefile:58: database] Error 255 make[2]: Leaving directory '/srv/pim/vendor/akeneo/pim-community-dev' make[1]: [Makefile:95: pim-prod] Error 2 make[1]: Leaving directory '/srv/pim/vendor/akeneo/pim-community-dev' make: *** [Makefile:81: prod] Error 2 root@akeneo:/srv/pim/vendor/akeneo/pim-community-dev#

WhiteIrbis commented 1 year ago

I have the same error. No idea what the problem is.

EEmlan commented 1 year ago

I had the same problem and nearly gone cracy to find the reason Its related to Elastic Search. Edit the elastic configuration e.g. with nano /etc/elasticsearch/elasticsearch.yml Search for the line xpack.security.enabled: true and set this to false. Then go to the line xpack.security.enrollment.enabled: true and comment this line out it with a # at the beginning. Then restart the elastic search service with service elasticsearch restart After that try again. This worked for me.

mwolfaardt commented 1 year ago

Hi, tried that and still getting the below

Reset elasticsearch indexes make[2]: [Makefile:58: database] Error 255 make[2]: Leaving directory '/srv/pim/vendor/akeneo/pim-community-dev' make[1]: [Makefile:95: pim-prod] Error 2 make[1]: Leaving directory '/srv/pim/vendor/akeneo/pim-community-dev' make: *** [Makefile:81: prod] Error 2

EEmlan commented 1 year ago

Have you installed with the right branch? please try following when running composer create project. replace /srv/pim/pim-community-standard with the install path you want to intall it to. Please create the folder first and give the user full access to it. If php is not found on your system possible its not added to the path variable. please then run php with the path where it is located. *php /usr/local/bin/composer create-project --prefer-dist akeneo/pim-community-standard /srv/pim/pim-community-standard "7.0.@stable"**

duncan82 commented 1 year ago

This fixed it for me. Thanks for sharing! Went crazy as well. The documentation should certainly be updated.