pim-community-dev icon indicating copy to clipboard operation
pim-community-dev copied to clipboard

Fresh Install ver 4.0: 500 Internal server error

Open radhikavm opened this issue 4 years ago • 10 comments

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:

Screen Shot 2020-07-30 at 10 50 16 pm

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.

radhikavm avatar Jul 30 '20 14:07 radhikavm

I have exactly the same problem. Any solution found yet?

codeagencybe avatar Jul 30 '20 22:07 codeagencybe

Unfortunately non thus far..

radhikavm avatar Jul 30 '20 23:07 radhikavm

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.

astrashilov avatar Aug 07 '20 11:08 astrashilov

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.

dalarcia avatar Aug 07 '20 13:08 dalarcia

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 !)

radhikavm avatar Aug 09 '20 23:08 radhikavm

How much memory do you have on the server?

donaldbales avatar Aug 22 '20 22:08 donaldbales

I solved it as @dalarcia commented with -> chown -R www-data:www-data akeneo/

ildemartinez avatar Dec 06 '20 23:12 ildemartinez

Hi Guys,

On PIM 7 with the new installation, I'm getting the above error. Could someone provide any solution to this?

sureshtakeda avatar Jul 17 '23 07:07 sureshtakeda

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.

pim_session

devendra-nulogic avatar Mar 21 '24 14:03 devendra-nulogic

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' *

konosevics avatar Apr 25 '24 20:04 konosevics