Skip to content
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

session table missin #7196

Closed
Saadkhalid87 opened this issue Nov 22, 2017 · 11 comments
Closed

session table missin #7196

Saadkhalid87 opened this issue Nov 22, 2017 · 11 comments

Comments

@Saadkhalid87
Copy link

I'm reporting a Bug

Getting this error message on fresh installation of Akeneo 2.0 CE any help would be great

[Wed Nov 22 22:50:27.509162 2017] [proxy_fcgi:error] [pid 23026:tid 140076893841152] [client 178.8.87.159:56214] AH01071: Got error 'PHP message: PHP Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/html/pim.cubitabo.de/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 144\nPHP message: PHP Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/html/pim.cubitabo.de/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 144\nPHP message: PHP Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/html/pim.cubitabo.de/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 144\nPHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'akeneo_pim.pim_session' doesn't exist in /var/www/html/pim.cubitabo.de/pim-community-standard/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:105\nStack trace:\n#0 /var/www/html/pim.cubitabo.de/pim-community-standard/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(105): PDOStatement->execute(NULL)\n#1 /var/www/html/pim.cubitabo.de/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php(509): Doctrine\DBAL\Driver\PDOStatement->execute()\n#2 /var/www/html/pim.cubitabo.de/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php(278): Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler->doRead('2pr5a4dn4n699cf...')\n#3 /var/www/html/pim.cubitabo.de/pim-community-standard/vendor/symfony/symfony/src/Symfony/Com...\n'

@Saadkhalid87
Copy link
Author

Got it issue was related to server memory!

@Navds
Copy link

Navds commented May 25, 2018

I'm having this after docker-compose down and up:

/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 145

Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /srv/pim/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 145

Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /srv/pim/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 145

Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'akeneo_pim.pim_session' doesn't exist in /srv/pim/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:105 Stack trace: #0 /srv/pim/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(105): PDOStatement->execute(NULL) #1 /srv/pim/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php(531): Doctrine\DBAL\Driver\PDOStatement->execute() #2 /srv/pim/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php(92): Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler->doRead('nea8srqf5kq9231...') #3 /srv/pim/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php(278): Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler->read('nea8srqf5kq9231...') #4 /srv/pim/vendor/symfony/symfony/src/Symfony/Component/HttpFoundati in /srv/pim/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 107`

@benjR
Copy link

benjR commented Jun 3, 2018

I have the exact the same issue, what was the solution for you @Navds ?

@Navds
Copy link

Navds commented Jun 11, 2018

Sorry mate, totally forgot about his.
I guess I made sure /var/lib/php/sessions exists and writable

@Aerendir
Copy link

For me creating the sessions folder and making it writable doesn't work.

How did you solved? I continue to get the error about the missing akeneo_pim.pim_session table in the database.

@Aerendir
Copy link

@Saadkhalid87 , how did you solved?

@Aerendir
Copy link

Ok, in the end I solved running bin/docker/pim-front.sh...

@PauliusMacernis
Copy link

PauliusMacernis commented Jun 30, 2018

I had the same error just few minutes ago.
However, the root reason for such error was failing connection to Elasticsearch on my side.
The solution to this one may be found here:
#6783

In short. Updating index_hosts (app/config/parameters.yml file) to index_hosts: 'elastic:changeme@elasticsearch:9200' solved the issue here..

Akeneo v2.3

@samarshahzad
Copy link

I am having the same issue but unable to resolve

request.CRITICAL: Exception thrown when handling an exception (Doctrine\DBAL\Driver\PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'akeneo_pim.pim_session' doesn't exist

@ppenelon
Copy link

ppenelon commented Sep 2, 2019

Using docker-compose (https://github.com/akeneo/pim-community-dev/blob/master/docker-compose.yml).

Setting index_hosts in app/config/parameters.yml to elasticsearch: 9200 and re-starting bin/docker/pim-initialize.sh did the trick.

Thanks @sugalvojau

@tallcoder
Copy link

Using docker-compose (https://github.com/akeneo/pim-community-dev/blob/master/docker-compose.yml).

Setting index_hosts in app/config/parameters.yml to elasticsearch: 9200 and re-starting bin/docker/pim-initialize.sh did the trick.

Thanks @sugalvojau

Thank you ... this was driving me nuts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants