Can't log into restored backup on spare server?

Hi all. We run two systems here, one development and one production, each with its own database server. We run nightly backups, and recently needed to access something on a backup of the production server. We can't shut dow our production server, so we chose to restore to our dev server.


We have restored the production database backup to our dev database server, and modified the installed dev Matrix system to point to this restored database. However, we are unable to log in - although Matrix appears to be working, no usernames and passwords are accepted. We've tried running the "reset_root_password.php" script, which runs without error but still can't log in.



Are we missing something obvious here? Is there a reason why what we're trying wouldn't work? Any suggestions would be gratefully received!



(edit: if anyone wants to quote us a consultancy rate for helping to resolve this, drop me a mail… we're based in London but are happy to deal with people over the net if they can cope with our working hours)

Have you checked the logs to see if they can give you any clue?

[quote]
Have you checked the logs to see if they can give you any clue?

[/quote]



If you mean the stuff in data/matrix/logs, we've had a look but it's not showing anything useful (the only entries are 404 hits on favicon.ico). IS it possible to increase the log level so it displays more details?

[quote]
If you mean the stuff in data/matrix/logs, we've had a look but it's not showing anything useful (the only entries are 404 hits on favicon.ico). IS it possible to increase the log level so it displays more details?

[/quote]



Is your password being rejected when you try to login? Are you getting javascript errors?

I think we're getting somewhere - it looks as though the sessions aren't being recognised (they're created okay but then ignored). It's looking like it probably isn't a Matrix issue, but is general webserver setup.


Thanks a lot for your help, though, it definitely made us start looking at the problem in a more focused manner!

[quote]
I think we're getting somewhere - it looks as though the sessions aren't being recognised (they're created okay but then ignored). It's looking like it probably isn't a Matrix issue, but is general webserver setup.



Thanks a lot for your help, though, it definitely made us start looking at the problem in a more focused manner!

[/quote]



You haven't set the URL you're using in the system root URL's. You'll need to add it in the list you have in main.inc.



:slight_smile:

[quote]
You haven't set the URL you're using in the system root URL's. You'll need to add it in the list you have in main.inc.



:slight_smile:

[/quote]



Thanks guys - that was exactly the problem! Much appreciated. :slight_smile:



Cheers,



Tim.