No user can log in

No user can log in

by Takanori Konomi -
Number of replies: 4
I am running FC6, MySQL 5.0.27, and Moodle1.8.2+


I upgraded and everything was working fine after the upgrade. Then, I started adding and testing new modules.

I added the "audioconference" module. The install had several problems which I tried to resolve (permissions, access to sudo, etc.)

Then I set debugging to ALL - (How can I set this to none?)

Everything seemed to be working fine. Then I went to lunch . . .



Now I cannot login even as admin or guest. I simply get a "Invalid login. Please try again" error message n the browser

HTTPD Log file indicates "Failed login" nothing more
MYSQLD indicates no error


I tried to fix this by:

Dropping the audioconference tables and moving the audio conference folders and removing audioconference references from all config files and DB tables (e.g. mdl_config)

However, I still cannot access.


Any help would be greatly appreciated.


Average of ratings: -
In reply to Takanori Konomi

Re: No user can log in

by Mauno Korpelainen -

Try first to set dbsessions to 1 in mdl_config with phpmyadmin or command

UPDATE mdl_config SET value=1 WHERE name='dbsessions'

Try these sql commands for different choices of debugging

NONE:
UPDATE mdl_config SET value = '' WHERE name = 'debug';
MINIMAL:
UPDATE mdl_config SET value = '5' WHERE name = 'debug';
NORMAL:
UPDATE mdl_config SET value = '15' WHERE name = 'debug';
ALL:
UPDATE mdl_config SET value = '2047' WHERE name = 'debug';

or edit mdl_config and value of debug with phpmyadmin

In reply to Takanori Konomi

Re: No user can log in

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I've seen this recently ... in my case the culprit was Moodle Networking, the value for mnet_localhost_id in the config table got updated.

I recently checked in a fix to stop this getting updated wrongly.

Can you check on your site, in the mnet_hosts table ... do you have duplicate entries there? If so that's the problem.

You can fix it quickly with:

$CFG->mnet_localhost_id = 1; // in your config.php

Average of ratings:Useful (1)
In reply to Martin Dougiamas

Re: No user can log in

by Takanori Konomi -
Thanks Martin,

Since I am working to get ready for the Fall term, I took a backup of the DB and replaced the existing one.

My culprit is the audioconference module. I haev been working on it for days trying to get it to work. During the installation process several key files are modified, inlcuding modules.php and module.php. Somehow these files were corrupted from applying and removing patches with the result that the system would not allow anyone in.

I have since duplicated the problem (but had a backup ready).

I will try to restore the original files and try again.

Thanks again.


bHg
In reply to Martin Dougiamas

Re: No user can log in

by Jörg S. -
Hi,

could this bug eliminated by this fix for 1.9:
http://tracker.moodle.org/browse/MDL-10828

I get lots of entries in the mnet_host table in Version 1.8 mixed

With
$CFG->mnet_localhost_id = 1; // in your config.php
there is no problem.

But maybe MDL-10828 could even be a win for 1.8? Or am i wrong mixed

*schorsch*