# Forums | Mahara Community

## Support / Problem with Mahoodle? "Sorry, could not log you in" error

Posts: 37

21 May 2015, 11:52 PM

Hi everyone,

I'm suddenly getting this same error on an existing (previously working) Mahara 1.5 site:

#### Sorry, could not log you in :(

Sorry, we could not log you into xxx at this time. Please try again shortly. If the problem persists, contact your administrator

This occurs when we try to log in from Moodle.  We've tried re-sync server clock, I've checked WWWroot in config file and many other tips here.  Some I can't try because we've disabled direct login access to Mahara - so at the moment, no way of accessing Mahara to check the key or other stuff.

Can anyone help please?  Here's the info in the logs:

[Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] [WAR] 43 (lib/web.php:3325) Curl error: 6: Couldn't resolve host 'moodle.uel.ac.uk', referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] Call stack (most recent first):, referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] * log_message("Curl error: 6: Couldn't resolve host 'moodle.uel.a...", 8, true, true) at /var/www/mahara-1.5.1/htdocs/lib/errors.php:109, referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] * log_warn("Curl error: 6: Couldn't resolve host 'moodle.uel.a...") at /var/www/mahara-1.5.1/htdocs/lib/web.php:3325, referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] * mahara_http_request(array(size 9)) at /var/www/mahara-1.5.1/htdocs/api/xmlrpc/client.php:71, referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] * Client->send("https://moodle.uel.ac.uk") at /var/www/mahara-1.5.1/htdocs/auth/xmlrpc/lib.php:118, referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] * AuthXmlrpc->request_user_authorise("4ba238e9f434ab2ef0c3ef43aa3f61e9fdd4710d", "https://moodle.uel.ac.uk") at /var/www/mahara-1.5.1/htdocs/auth/xmlrpc/land.php:94, referer:https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] , referer:https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] [WAR] 43 (api/xmlrpc/client.php:93) Curl error: 6: Couldn't resolve host 'moodle.uel.ac.uk', referer:https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] Call stack (most recent first):, referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] * Client->send("https://moodle.uel.ac.uk") at /var/www/mahara-1.5.1/htdocs/auth/xmlrpc/lib.php:118, referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] * AuthXmlrpc->request_user_authorise("4ba238e9f434ab2ef0c3ef43aa3f61e9fdd4710d", "https://moodle.uel.ac.uk") at /var/www/mahara-1.5.1/htdocs/auth/xmlrpc/land.php:94, referer: https://moodle.uel.ac.uk/course/view.php?id=963 [Tue May 19 11:25:47 2015] [error] [client 10.6.16.17] , referer: https://moodle.uel.ac.uk/course/view.php?id=963

Thanks and best regards,

Remy

Posts: 3400
##### Re: Problem with Mahoodle? "Sorry, could not log you in" error

22 May 2015, 9:06 AM

Hello Remy,

Not knowing whether the information is correct in Mahara makes it harder to troubleshoot. The error message says that it can't resolve the host "moodle.uel.ac.uk". Is that server visible to the Mahara server? Did you only just start using a SSL certificate on Moodle and Mahara still has the wwwroot without it?

You could turn an account into a local account temporarily in order to log in. The "No institution" internal auth method usually has the auth ID 1. Richard posted a little script a while ago that might still work. I haven't tried it in a while: https://mahara.org/interaction/forum/topic.php?id=4594#post20347 Thus, if you haven't deleted the internal auth instance entirely, you should be able to get it back.

Cheers

Kristina

Posts: 37
##### Re: Problem with Mahoodle? "Sorry, could not log you in" error

26 May 2015, 9:02 PM

Hi Kristina,

it looks like my colleague who installed Mahara 1.5 for us may have "modified" core files at some point so login fields are never displayed to users on this particular Mahara site.  Therefore, I'm unable to even test the suggested hack because I don't get the option to log in (just a link which redirects login via SSO).  (Perhaps you could visit the site - https://mahara.uel.ac.uk - to better understand the problem.)

Unfortunately, my colleague no longer works for us so I'm unable to ask him about it.  Do you have any idea how we can reverse engineer the situation please?  Is it for instance a setting in the database or could a template file be changed so internal users can login?

Also, is possible to create a new user via the database (by just inserting a row in the 'usr' table for instance)?

Regards,

Remy

Posts: 3400
##### Re: Problem with Mahoodle? "Sorry, could not log you in" error

27 May 2015, 10:22 AM

Hello Remy,

That unfortunately complicates things. If you are hosted with ULCC, please ask them to look into this for you as a change will need to be made somewhere in the code and / or database. Not knowing what changed specifically makes it hard to trouble shoot without any access.

The last thing I could think of that you could check is the following. There is a config value that allows you to redirect the login page to another one, e.g. Moodle. you find that information in /lib/config-defaults.php:

* @global string $cfg->externallogin Use this config option when you want users to be redirected to another * login page, for example a moodle instance that has mnet to this mahara If you have that config value, you could disable it and see if it brings back the login form. Cheers Kristina Posts: 37 ##### Re: Problem with Mahoodle? "Sorry, could not log you in" error 27 May 2015, 10:18 PM Hi Kristina, We are hosted in-house unfortunately and$cfg->externallogin is not set in config file.

But I've managed to get the login form showing again in the sidebar by setting "disablelogin" to true in config table and replacing the modified login.tpl file in <site>\theme\raw\templates\sideblocks\ with one from core for the same version of Mahara.

Thanks again.

Regards,

Remy

Posts: 3400
##### Re: Problem with Mahoodle? "Sorry, could not log you in" error

28 May 2015, 11:02 AM

Hi Remy,

Great that you can see your login form again. I hope you can log back in and check things out on the Mahara side.

Cheers

Kristina

6 results