Internal Server Error

  • Robert
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago #1 by Robert
Internal Server Error was created by Robert
Hi,
Has anyone been confronted with this error?

When I try to Add many users to Joomla (e.g. 100) it runs for a while and after a few minutes I get following message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

I consulted my host and he tells me he found the following under logs client denied by server configuration: ....administrator/index.php?option=com_joomdle&view=users

He believes that some rule / configuration within the .htaccess file is refusing to view the page in some security plug-in of Joomla.
I suppose that would be Joomdle ... is there such a file in the Joomdle folder and what needs to be changed, any idea ?

Thanks for any hint or help!
Robert

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

More
12 years 7 months ago #2 by Chris
Replied by Chris on topic Internal Server Error
Hi Robert,

You say you are adding many users at one time. Is this correct? Some batch routine to add multiple users? Or do you mean sync from Moodle?

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

  • Robert
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago #3 by Robert
Replied by Robert on topic Internal Server Error
Hi Chris,
Thanks for your feedback!
Yes, when I add multiple users "Add Users to Joomla" button.. see attachment with print screen and error I receive.
The curious thing is it only happens when I try to add many users e.g. 100, when I just do 5 it works fine .. it almost seems like a timing issue, when calling up the page again! What could that be ? changes in the .htaccess file, like suggested by hosting provider ? but what ... hmmm
Robert



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

More
12 years 7 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Internal Server Error
You can check the real error in your server logs.

However, most likely it is a resource problem: either memory or time limitis defined in your php config are being hit, and script is halted.

Solution is to either change those values in your php config, or make the process in smaller batches.

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

  • Robert
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago #5 by Robert
Replied by Robert on topic Internal Server Error
Dear Antonio,
Thank you for this tip!
Do you happen to know what specific line I need to look for within php config to change .. maybe a sample from your php config ?
I am a bit desperate, since I need to Add thousands of Moodle Users into Joomla and it is not accepting me even 100, so going smaller would be hell :(
Thanks,
Robert

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

More
12 years 7 months ago - 12 years 7 months ago #6 by Fernando Acedo
Replied by Fernando Acedo on topic Internal Server Error
As Antonio said it looks a memory problem. To know the memory needed add this lines to your htaccess file:


php_flag display_errors on
php_value error_reporting 6143

Uaiually these settinga shows the memory to be rellocated. Then change the php.ini parameter named memory_limit to the value needed. 128M is the dafault value. In a 1GB server, 256M or 384M could be a good value. If you have a server with less 1GB then you need to upgrade the memory.
Last edit: 12 years 7 months ago by Fernando Acedo.

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

  • Robert
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago #7 by Robert
Replied by Robert on topic Internal Server Error
Dear Fernado,
Thanks a lot for your tip. I had my hosting provider increase the memory to even 512M. Unfortunately, I still only manage to import around 45 Members at a time. 50 is already too much and I get the Internal Server Error.
I start wondering if the external source server, from where I import the Moodle members from into my hosting Joomla, should also have an increase in Memory.. would that even make sense tough ?

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

More
12 years 7 months ago #8 by Chris
Replied by Chris on topic Internal Server Error
It does make some sense that if the external server is responding very slowly either because of RAM, disk cache, whatever reason, then you could get a timeout issue. I do not know how you would tell the difference from the error log - the experts need to advise on that :) That said, you could check the memory, cpu, cache and i/o of both servers during the process to see which is peeking. If the servers are different networks then even bandwidth could cause timeouts.

Will the external server will always be external? Or is this a migration process?

You could try loading a copy your moodle and your joomla locally (or an one server under a different domain) and running the routine to see if you get the same error. It is would be a good practice to an exact copy somewhere for testing anyway if you don't already have thus you don't need to play too much in your live environment.

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

  • Robert
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago #9 by Robert
Replied by Robert on topic Internal Server Error
Thanks Chris!
Yes, for the time being the external will remain external and yes we are working on a copy not live :)
I am now having my server upgraded, but need to double check with the external one ... truly start to have feeling it is that one causing the error message .. I will keep things posted here ...
Thanks for all the help!!
Robert

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

More
12 years 7 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Internal Server Error
Most likely, Moodle server is not the problem.

How this is works is:
- Joomla script executes all the time
- It makes calls to Moodle (each call is for a user, so small time, small memory)

You really just need to look at your Joomla server logs, to see the error reported.
Maybe it is not the memory anymore, but the execution time.

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