[Solved] Error 503 al editar perfil de usuario en Moodle

  • macsgv
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 2 months ago - 13 years 2 months ago #1 by macsgv
Hola utilizo joomdle R09 y joomla 2.58 con Moodle 2.2.7+ funciona muy bien el componente solo que da un error cuando el usuario quiere editar su perfil de usuario más especificamente un error 503 como muestra la figura y hay que esperar mas de 10 minutos para que el servidor este operativo nuevamente.

¿a que se debe este error? si me pudieran orientar a encontrar la solución estaré muy agradecido.
:)

Saludos

Translation


Hello Joomdle use R09 and joomla 2.58 with Moodle 2.2.7 + works great the only component that gives an error when the user wants to edit your user profile more specifically a 503 error as shown and have to wait more than 10 minutes to the server is operational again.

What do we owe this error? if you could guide me to find the solution I will be very grateful.
Last edit: 13 years 2 months ago by Chris.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #2 by Chris
Hi there,

Those are moodle error messages. Perhaps you could translate those as well so we can try to assist. Alternatively, you may wish to search for those specific error messages in Moodle.

Please Log in or Create an account to join the conversation.

  • macsgv
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 2 months ago #3 by macsgv
Hola me dado cuenta que cuando un administrador edita su perfil en moodle guarda los cambios correctamente.
Pero cuando es un usuario normal con privilegios de estudiante al entrar a su perfil y ahcer algun cambio y luego guardar. queda eternamente cargado la pagina hasta que pasado algunos minutos devuelve el error 503 o 500 consulte con el hosting y ellos me dicen que a nivel servidor esta todo correcto.

este error muestra luego

No se puede encontrar registro de datos en la tabla course de la base de datos.

Más información sobre este error

Debug info: SELECT * FROM {course} WHERE id = ?
[array (
0 => 0,
)]
Stack trace:
line 1272 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1249 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 43 of /user/index.php: call to moodle_database->get_record()

Translation


Hello I noticed that when an administrator edits their profile in moodle save changes correctly.
But when a normal user privileges on entering student profile and ahcer any changes and then save. eternally page is loaded until the last few minutes returned error 503 or 500 check with the hosting and they tell me that this server at all correct.

this error shows then

No data can be found in the record chart the course of database.

More information on this error


Debug info: SELECT * FROM {course} WHERE id = ?
[array (
0 => 0,
)]
Stack trace:
line 1272 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1249 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 43 of /user/index.php: call to moodle_database->get_record()

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #4 by Chris
Are the users you are trying to edit, listed in Joomla? Are they syncronised between Joomla and Moodle? Are you using any Joomla based user profile system?

Please Log in or Create an account to join the conversation.

  • macsgv
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 2 months ago #5 by macsgv
Hola los usuarios estan sincronizados tanto en moodle como en joomla adjunto captura
Para la correspondencia de datos y perfil utilizo Community Builder 1.9


Translation

Hello users are synchronized in both moodle and joomla attached capture
For data mapping and use Community Builder Profile 1.9

Please Log in or Create an account to join the conversation.

  • macsgv
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 2 months ago #6 by macsgv
Informe de Analisis del hosting donde alojo mi web

Estimado cliente,

Hemos realizado los pasos indicados y hemos podido reproducir el problema que nos ha indicado.

Revisando el mismo, vemos que cuando se realiza algún cambio y se guarda el mismo se generan procesos en ejecución derivados del fichero:

SCRIPT_FILENAME=/home/xxxxx/public_html/moodle/user/edit.php

Este fichero, genera peticiones SQL que no finalizan, derivando así en que esta petición de error 500 por timeout y genere procesos que no finalizan derivando así en un consumo elevado de recursos que acaba provocando que se devuelva el código de estado indicado para evitar una saturación de su cuenta.

Una vez matamos el proceso indicado, el acceso a sus webs se restablece de forma automática, por lo que deberá revisar las sentencias SQL que se generan y que nos indica que se muestran en el error para tratar de corregir las mismas, para evitar el problema indicado.

El problema está en la ejecución de alguna de las peticiones que realiza este fichero propio de su aplicación, por lo que le recomendamos ponerse en contacto con el sistema de soporte de la misma para que le faciliten información sobre como corregirlo, ya que nosotros no conocemos el código correcto para los ficheros de las aplicaciones de nuestros clientes.






Translation


Analysis Report where stay my web hosting

Dear customer,

We have completed the steps and were able to reproduce the problem you provided.

Reviewing the same, we see that when a change is made and saved the same running processes are generated derivatives added:

SCRIPT_FILENAME = / home / xxxxx / public_html / moodle / user / edit.php

This file generates SQL requests that are not completed, leading so that this request timeout 500 error and generate differentiating processes that do not end well in high consumption of resources that eventually leads to return the status code indicated to prevent saturation your account.

Once we kill the process indicated, access to their websites is reset automatically, so you should review the generated SQL statements and indicates that the error is to try to correct them, to avoid the problem indicated.

The problem is in the execution of any of the requests you make this file your own application, so we recommend you contact the support system for it to supply information on how to correct it because we do not know the correct code for the files of the applications of our customers.

Please Log in or Create an account to join the conversation.

  • macsgv
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 2 months ago - 13 years 2 months ago #7 by macsgv
Hola pobre sin ningún tipo de perfil y sucede lo mismo

Lo extraño que sucede con usuarios registrados como estudiantes pero con los administradores no hay problema guarda de forma correcta el perfil de usuario moodle

/public_html/moodle/admin/error_log


[01-Feb-2013 19:05:58 UTC] Default exception handler: Error reading from database Debug: MySQL server has gone away
SELECT name,value FROM mdl_config_plugins WHERE plugin = ?
[array (
0 => 'auth_mnet',
)]
* line 394 of /lib/dml/moodle_database.php: dml_read_exception thrown
* line 889 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1129 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
* line 1078 of /lib/dml/moodle_database.php: call to moodle_database->get_records_select()
* line 1169 of /lib/dml/moodle_database.php: call to moodle_database->get_records()
* line 1360 of /lib/moodlelib.php: call to moodle_database->get_records_menu()
* line 31 of /auth/mnet/auth.php: call to get_config()
* line 3587 of /lib/moodlelib.php: call to auth_plugin_mnet->auth_plugin_mnet()
* line 197 of /lib/cronlib.php: call to get_auth_plugin()
* line 85 of /admin/cron.php: call to cron_run()


Translation

Hello poor without any profile and the same thing happens

The strange thing is happening with students registered users as administrators but no problem correctly saves the user profile moodle


/public_html/moodle/admin/error_log


[01-Feb-2013 19:05:58 UTC] Default exception handler: Error reading from database Debug: MySQL server has gone away
SELECT name,value FROM mdl_config_plugins WHERE plugin = ?
[array (
0 => 'auth_mnet',
)]
* line 394 of /lib/dml/moodle_database.php: dml_read_exception thrown
* line 889 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1129 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
* line 1078 of /lib/dml/moodle_database.php: call to moodle_database->get_records_select()
* line 1169 of /lib/dml/moodle_database.php: call to moodle_database->get_records()
* line 1360 of /lib/moodlelib.php: call to moodle_database->get_records_menu()
* line 31 of /auth/mnet/auth.php: call to get_config()
* line 3587 of /lib/moodlelib.php: call to auth_plugin_mnet->auth_plugin_mnet()
* line 197 of /lib/cronlib.php: call to get_auth_plugin()
* line 85 of /admin/cron.php: call to cron_run()
Last edit: 13 years 2 months ago by macsgv.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #8 by Chris
As per my original post, those look like moodle error messages. You hosting company has confirmed that the causing script is moodle/use/edit.php.

One thing you can do to validate is edit the profile in CB. Do you get the same behavour?

Please Log in or Create an account to join the conversation.

  • macsgv
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 2 months ago - 13 years 2 months ago #9 by macsgv
Hola si edito el perfil del usuario desde CB funciona correcto, ahora bien como hago para desactivar la opcion de Moodle de Editar perfil de usuario por que algun usuario puede querer editar su perfil desde moodle y se viene el desastre.

Es mas he probado sin CB sin joomla y pasa lo mismo creo que tendrian que rever este comportamiento de moodle a la hora de editar el perfil de usuario desde moodle.

NOTA: Si el usuario edita su perfil desde la web principal en CBuilder funciona correcto pero si edita su perfil desde moodle genera un error 500 o 503 al volver a revisar el perfil de usuario en moodle el cambio de datos se realizan pero bloquea el servidor dejando toda la web caida por 10 minutos.

Gracias por tu tiempo
Saludos

Translations


Hey if I edit the user profile from CB works right, however how do I disable the Edit Moodle user profile that any user may want to edit your profile and comes from moodle disaster.

What's more I tried without CB without joomla and it's the same I think they should reconsider this moodle behavior when editing the user profile from moodle.

If the user edits their profile from the main site in CBuilder works OK but if you edit your profile from moodle generates an error 500 or 503 to recheck moodle user profile data changes are made but the server crashes leaving all drop site for 10 minutes

Thanks for your time
regards
Last edit: 13 years 2 months ago by macsgv.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #10 by Chris
When you edit from CB, it uses Joomla, CB and Joomdle code. Joomdle will update the Moodle tables. This is why it is OK. When you edit from Moodle it uses the Moodle code.

I would suggest you search the Moodle forum for similar error messages for a resolution as others having the same problem would have reported it there. You may also wish to try to update your moodle to ensure all the software code is installed correctly.

Please Log in or Create an account to join the conversation.