-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install following docs #20327
Comments
Hello Kimbaras, Did you know when your .env have been reverted ? In my opinion you just need to change again your .env file and then launch again |
Hey! Thanks for the fast reply. Not really sure on WHEN it gets reverted... After the process exits with the error reported, checking the .env file inside the /srv/pim directory, it's again with the default values. Editing the .env and running again the make prod command results in the same results over and over. I'm not really an expert with composer and / or yarn so I'm not really sure which line should catch my eye about this... I'm currently trying the docker router right now, but also that seems to be having it troubles (that is a different story tho)... |
@StevenVAIDIE I'm getting same issues. |
@Kimbaras bro. I have fixed it by change
|
@rakibulinux thanks for the tip! With the change you suggested the Tried also pointing the Apache config to the public folder (as described in the system preparation page but not on the software installation page... no reference to Apache in https://docs.akeneo.com/master/install_pim/manual/installation_ce.html) but getting a different error... Definetely there is something missing in the docs here... and to be honest I've already invested more time than I'd like in trying to install this. Thanks! |
@Kimbaras Please check, if apache2 has the right permissions in /public rather in the project folder |
I assume the right permission are www-data or whichever user Apache2 uses. |
Ok, I only wrote the tip, because I thought the same. But after several changes in the troubleshooting process, it changed the permissions again on my site. So to reconfigure the permission recursively was my solution that the website no longer show a 500 error |
Uhm, to be fair, after cheking, after I've completed the last make prod command, the permissions inside the folder were a mix of the previously set www-data:www-data and root, so it seems the make command changes something. I'll try to fix the permissions again and retry. Thanks |
Nope, it wasn't that, still getting the 500... Anywhere to look for details logs of what is happening? |
After fiddling with this for hours, the final solution that worked for me: chmod the entire pim folder and its parents all the way to root as 0755 recursive so the apache user www-data can read it. setting user and group in /etc/php/8.1/fpm/pool.d/www.conf to my created user, but leaving listen.owner = www-data and disabling security in elasticsearch - /etc/elasticsearch/elasticsearch.yml - xpack.security.enabled = false and about 30 extra steps missing from the documentation so I could actually follow the documentation. |
i had similar issues and managed to fix this with the same solution as @tylergibson, but i am still getting a 500 on /#/enrich/product/ which is called with collect-data on the product page - meaning when i open the product page it just shows loading forever. Any solutions here? edit; i fixxed the issue, after re-checking the logs i noticed my elasticsearch service went down. |
Ok so, I'm following the instructions provided on
and
My system is a fresh Ubuntu 22.04 install (I've also reinstalled the OS and tried again before opening this).
Followed the instructions by the letter, but when I'm at the step
$ NO_DOCKER=true make prod
The installation fails with the following
Prepare database schema Database does not exist yet 11:53:23 CRITICAL [console] Error thrown while running command "doctrine:database:create --if-not-exists=1 --no-debug=1 --env=dev". Message: "An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known" ["exception" => Doctrine\DBAL\Exception\ConnectionException^ { …},"command" => "doctrine:database:create --if-not-exists=1 --no-debug=1 --env=dev","message" => "An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known"]
By troubleshooting I've found the the setting inside the .env file are reverted to the default ones, so the pointing to the DB, the user and password and so on are lost, no matter what the command is.
Is there something missing in the doc or there is some bug going on?
Thanks
The text was updated successfully, but these errors were encountered: