Installing and upgrading help

Migrated Moodle to New Server But Can't Login

 
Picture of Rosalyn Metz
Migrated Moodle to New Server But Can't Login
 
I just migrated my production Moodle to my new development server. i followed the instructions found here:
http://docs.moodle.org/en/Moodle_migration#Migrating_a_complete_Moodle_site_-_method_2
with the exeception of putting it into maintenance mode (not really sure if that has anything to do with the problem).

Everything seems to go smoothly. All my news posts are on the front page; and when I check in the database all the users and their information are there (including passwords).

The problem is that I can't seem to log in. I type my username and password and the page just refreshes. Interestingly enough when I type the incorrect username and password, I get brought to the log in page with the error: "Invalid login, please try again". Its like it knows when I'm using the right username and password but it still can't let me in.

I attempted to change the password using the passchange.php script provided by Shane Elliot in this post:
http://moodle.org/mod/forum/discuss.php?d=18103
but that doesn't seem to help either. I think it may have something to do with the files, but I'm stumped.

Any help anyone can provide will be greatly appreciated.

Rosalyn

Moodle 1.9
New Server Mac Server 10.5
Old Server Mac Server 10.4


 
Average of ratings: -
Picture of Rosalyn Metz
Re: Migrated Moodle to New Server But Can't Login
 
Ha! A fresh pair of eyes helped. Its the annoying error:
Incorrect sesskey submitted, form not accepted!

I found my answer in the tracker:
http://tracker.moodle.org/browse/MDL-9683

Essentially I needed to change the permissions of the moodledata folder to 777 (actually it should be all the folders in the moodledata folder, but a chmod -R will get them all too...if I weren't on a test server I might not do it this way)

Thanks to Geraldo Xexeo for the answer for the fix.

Martin made a posting here:
http://docs.moodle.org/en/error/moodle/invalidsesskey

Essentially at the time I did the migration I was logged in. If I had put the thing in maintenance mode (like the instructions told me too) I wouldn't have run into the problem.

*banging head on the wall*
 
Average of ratings: Useful (1)
little dog
Re: Migrated Moodle to New Server But Can't Login
 

Actually when u reinstall or upgrade moodle, you need change the CHMOD, but after u finish these, can visit your site normally, can post then u should change the CHMOD back, or it is unsafe, all external visitors can download or link from your datas.
 
Average of ratings: -
Picture of Rick Bruderick
Re: Migrated Moodle to New Server But Can't Login
 
I've just migrated my Moodle site. It seems that the migration was successful, but I can't log in. Nobody can log in. I've done the CHMOD to 777 for all the Moodle files, directories and subdirectories. But I still can't log in. Imagine my frustration. There must be some solution to this. Anybody?
 
Average of ratings: -
Picture of Olumuyiwa Taiwo
Re: Migrated Moodle to New Server But Can't Login
 
Do you have any space left on the drive / partition holding your Moodle data files?
 
Average of ratings: -
Picture of Rick Bruderick
Re: Migrated Moodle to New Server But Can't Login
 
Thanks for the help, but I just gave up and started over. What I did before I can do again.
 
Average of ratings: -
Picture of Hal MacLean
Re: Migrated Moodle to New Server But Can't Login
 

Funnily enough I was in that same situation earlier today - it turned out that I had created a database which had used the 'default' encoding. On checking it was claiming to be UTF-8, and so I thought nothing of it. However, I couldn't log in - error was saying 'Your session has expired, please log in again'.

An incorrect log in was still behaving normally - i.e. 'Invalid Login'

What I did was to create a new database and this time set the encoding to UTF-8 from the outset (and not rely on the default setting). As soon as I did, I could then log in.

Now, all of this is on a test server that is actually a normal mac, and I was using MAMP as the environment. Sequel Pro  created the databases for me and I manually placed the moodle data folder and moodle code into the MAMP folder and htdocs folder respectively.

The moral for me was to not take shortcuts when creating the database - check it is what it should be!

 
Average of ratings: -
Picture of Richa Sabharwal
Re: Migrated Moodle to New Server But Can't Login
 
Thanks! You saved me from banging my head on the wall.
 
Average of ratings: -