Random XML-RPC Error (404): Unknown error on newly installed

  • Martin Willemse
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #1 by Martin Willemse
Good day,

I think my situation is unique as I don't get any similar posts - hence creating a new thread... :)

We have a current Joomla 2.5 and Moodle 1.4 site with Jomsocial 2 that integrates and works perfectly without any errors (120+ simultaneous users).

We decided to upgrade so we created a new stand alone Joomla 3 website with Moodle 1.7 and Jomsocial 3 and everything is setup exactly the same as the old website. Everything works fine but we will get a random XML-RPC Error (404): Unknown error when you browse through the site and especially when you click on one of the groups to open the group window. When you refresh the page the page does load correctly.

We have noticed that this happens in particular when you perform a couple of successive tasks (like opening a couple of instances in a new page)

We suspect that there might be a small timeout delay that occurs randomly where Joomdle might loose the connection or does not authenticate fast enough which results in the error.

Is there anything we can do to resolve this problem?

Regards

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

More
11 years 6 months ago #2 by Antonio Durán
You can enable debugging in Moodle to get more info about the error.

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

  • Martin Willemse
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #3 by Martin Willemse
Antonio,

Thank you for the reply.

I get the following error when the page does not want to load:

XML-RPC Error (13914869): Can not create file "314/user/icon/0/f3.png" | DEBUG INFO: Duplicate entry '7ae2182b4ebf1aaedf4d477678be68adbbf70fb4' for key 'mdl_file_pat_uix' INSERT INTO mdl_files (contextid,component,filearea,itemid,filepath,filename,timecreated,timemodified,userid,source,author,license,status,sortorder,filesize,contenthash,mimetype,pathnamehash) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) [array ( 0 => 314, 1 => 'user', 2 => 'icon', 3 => 0, 4 => '/', 5 => 'f3.png', 6 => 1418251276, 7 => 1418251276, 8 => NULL, 9 => NULL, 10 => NULL, 11 => NULL, 12 => 0, 13 => 0, 14 => 149878, 15 => '0e7c7bf5558815f9645940c6c5b60e0c343b515d', 16 => 'image/png', 17 => '7ae2182b4ebf1aaedf4d477678be68adbbf70fb4', )] | ERRORCODE: storedfilenotcreated


When I refresh the page it eventually loads but with another error:



get_context_instance() is deprecated, please use context_xxxx::instance() instead.

line 3670 of /lib/deprecatedlib.php: call to debugging()
line 21 of /auth/joomdle/land.php: call to get_context_instance()

Warning: is_readable(): open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/usr/wwws/users/onlinmqszw:/usr/www/users/onlinmqszw:/usr/home/onlinmqszw:/usr/local/rmagic:/usr/www/users/he/_system_:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/share/misc) in /usr/www/users/onlinmqszw/lib/moodlelib.php on line 8990

Please advise.

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

More
11 years 6 months ago #4 by Antonio Durán
Never saw something similar.

Problem is in this table: mdl_file_pat_uix
But I don't have that table in my moodle 2.x installation.
Googling for iy only returns a few results, pointing to moodle 1.9 -> 2 upgrade.
Is this an upgraded site? Do you know what this table is?

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

  • Martin Willemse
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago - 11 years 6 months ago #5 by Martin Willemse
I installed a new Joomla 3 site, then installed the latest Jomsocial and Joomdle available as well as Moodle 1.7 so I am really not sure how that can be.

This is a brand new site and my database does not contain such a file.
Last edit: 11 years 6 months ago by Martin Willemse.

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

More
11 years 6 months ago #6 by Antonio Durán
I guess you mean Moodle 2.7.

I have just checked a Moodle 2.8 installation, and that table is not present either, so I don't know why you have it and what is causing the problem, sorry.

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

  • Martin Willemse
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #7 by Martin Willemse
Not sure either,

What I did discover is that if I disable User hooks - Joomdle the Joomla site's pages are loading lightning fast and I don't get that random XML-RPC Error.

The User Hooks plugin is obviously needed to authenticate the Moodle users to the Joomla site but once the plugin is enabled the Joomla site appears very slow and I get these random errors almost as if the site can not read or write the data fast enough etc.

When I use the Moodle site as a stand alone (with the plugin enabled) there seems to be no problem and the site is very fast.

Is there perhaps a way one can optimize the site(s) so it can respond faster or do you have any suggestions?

I already made the following settings to the PHP settings based on a suggested blog post to optimize the server for moodle:

php_value max_execution_time 19200
php_value max_input_time 1500
php_value max_input_vars 8000
php_value memory_limit 1024M
php_value post_max_size 1200M
php_value upload_max_filesize 1000M
php_value max_file_uploads 30


FcgidIOTimeout 3600
FcgidBusyTimeout 3600
IPCCommTimeout 3600
IdleTimeout 3600

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

More
11 years 5 months ago #8 by Antonio Durán
You could try to debug joomdlehooks plugin, to know which function is being called when it fails.
I bet it is "user stored".

But, this should only run when something in Joomla tiggers onAfterStoreUser event. If it is happening all the time, without saving user data, then something in your site is triggering the events in a strange way.
You will need to find that out.

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