Failed to start session after migrating from mysql to postgreSQL

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
leprof776
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jul 29, 2022 2:08 pm

Failed to start session after migrating from mysql to postgreSQL

Post by leprof776 » Fri Jul 29, 2022 2:22 pm

Hi,

I'm moving Joomla 3.9 to a new server and i'm migrating the mysql database v5.7.9 to postgreSQL v13 because it's a requirement of my client.
I used pgLoader to migrate from mysql to postgresql. I think the migration is fine. I can connect with the psql tool to my new postgreSQL database.
I only changed the property $dbtype with the new value 'pgsql' (before it was 'pdomysql') in the configuration.php file. I kept the same database name, login and pwd to facilitate the migration.

But unfortunately, when I access to http://localhost/mysite/administrator/index.php, I get the following error :

Warning: session_start(): Failed to read session data: user (path: ) in /var/www/html/mysite/libraries/joomla/session/handler/native.php on line 260
Error: Failed to start application: Failed to start the session


The apache log file get the same error message.

Is there something I have to check when we do a database migration ?

Anay help would be appreciate.

Kind regards,

gws
Joomla! Champion
Joomla! Champion
Posts: 5950
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Failed to start session after migrating from mysql to postgreSQL

Post by gws » Fri Jul 29, 2022 2:42 pm

Sounds like the session path is not writeable.run the FPA and post the results here.
Read the docs first https://forumpostassistant.github.io/docs/

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Failed to start session after migrating from mysql to postgreSQL

Post by Webdongle » Fri Jul 29, 2022 3:09 pm

If you edited the configuration.php file then you could have a blank line or hidden char. Or perhaps you edited it with non plain text editor?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Installation Joomla! 3.x”