Invalid Login After Migration (Users Missing)

Invalid Login After Migration (Users Missing)

by Jacob Rogers -
Number of replies: 5

I've developed my Moodle site using version 2.3.3. I've just attempted my first migration by importing the moodledata folder to the new location and have restored the database with the backup I created.

When I access the new Moodle site, the appearance matches the original so it appears the migration was successful. However, I cannot login with any of the old usernames/passwords.

Does anyone have any suggestions upon what I've missed here? Thank you.

Average of ratings: -
In reply to Jacob Rogers

Re: Invalid Login After Migration (Users Missing)

by Luis de Vasconcelos -

Check the user table in your Moodle database (SELECT * FROM mdl_user;). Does it contain all the users?

Did you migrate to a new domain?

In reply to Luis de Vasconcelos

Re: Invalid Login After Migration (Users Missing)

by Jacob Rogers -

Thanks, Luis. Yes, the user table does contain all the users.

I migrated to a new hard drive (different computer). I'm running with a BitNami stack at the moment.

Average of ratings: Useful (1)
In reply to Jacob Rogers

Re: Invalid Login After Migration (Users Missing)

by Fernando Rocha -

Hi,

Do you kept the config.php that you were using in the old version?

You must to take attend with Password Salting[1].

[1] http://docs.moodle.org/25/en/Password_salting

Average of ratings: Useful (1)
In reply to Fernando Rocha

Re: Invalid Login After Migration (Users Missing)

by Jacob Rogers -

No, the config.php on the newly migrated-to machine is fresh from a new install. I tried copying across the old config file and received the error:

"Error: Database connection failed."

I'm not sure what you mean by "You must to take attend with Password Salting".

In reply to Fernando Rocha

Re: Invalid Login After Migration (Users Missing)

by Jacob Rogers -

Indeed, the problem was with password salting. I had to copy the password salt from the old setup over to the new one. Thank you.

Average of ratings: Useful (1)