pim-community-dev
pim-community-dev copied to clipboard
Fresh Install ver 4.0: 500 Internal server error
Referring to the following documentation: https://docs.akeneo.com/4.0/install_pim/manual/index.html always tend to get the following error: using Ubuntu installation:
There are no errors when I run NO_DOCKER=true make prod
.
Checked error logs on apache as well as /var/logs/
nothing showing
Some help with this will be highly appreciated.
I have exactly the same problem. Any solution found yet?
Unfortunately non thus far..
Check the DB - I had the same problem and there was missing "pim_session" table in MySQL DB. After I have recreated it from another running DB it turned out that the DB creation and import of data was broken and the other tables which were successfully created were actually empty.
Hi.
¿Have you checked permissions on folders public/, and var/ of the pim folder? I'm used to get this error every time I clear akeneo cache because the owner of these folder changes to root user.
Best regards.
Yes I did check the permissions on the directories mentioned above. What is really difficult is that I see no errors after I go through the installation as when I run all the commands as per the documentation I can see all assets created as required and the frontend getting built as expected as well. But yet get the internal server error as above, Nothing in the logs as well !)
How much memory do you have on the server?
I solved it as @dalarcia commented with -> chown -R www-data:www-data akeneo/
Hi Guys,
On PIM 7 with the new installation, I'm getting the above error. Could someone provide any solution to this?
In var/logs/prod.log file below error i got: Base table or view not found: 1146 Table 'akeneo_pim.pim_session' doesn't exist
To resolve this:
First check is ElasticSearch is enabled,
sudo service elasticsearch status
if its enabled and working then execute below cammands:
NO_DOCKER=true make prod
Now check the database Table should be created Set the 777 permission to application: issue should be resolved.
I managed to get rid of 500 error. Initially I changed owner of whole project to _www:_www
and chmod to 777
. It didn't helped, so I changed owner back to my default:
sudo chown -R username:staff ~/projects/pim7
And chmod: 644
for files, 755
for folders. And it helped. I didn't checked permissions immediately after installation, but most probably some file/folder has incorrect permissions.
I'm on mac, so to check permissions you can use stat -f '%A %a %N' *