Page 1 of 1

Could not update headlines (invalid object received - see er

Posted: 10 Jun 2012, 18:02
by xuo
Hi,

Since today, I have the following error message when I try to read some feeds.

Could not update headlines (invalid object received - see error console for details)

As I made a disk full on my server, I was afraid that I have corrupted the mysql database for tt-rss.
I have restored the contents of /var/lib/mysq/ttrss but I still get the same problem.

The console gives the following (nice) error message :

Exception: TypeError, row is null
Function: correctHeadlinesOffset()
Location: :558

Stack trace:

correctHeadlinesOffset(236770)@http://<MON_IP>/Joomla/tt-rss/:558
render_article("<div id=\"PTITLE-236770\" style=\"display : none\">EXTRAIT - Y a p\u2026</div><div class=\"postReply\" id=\"POST-236770\"><div onclick=\"return postClicked(event, 236770)\"\n\t\t\t\tclass=\"postHeader\" id=\"POSTHDR-236770\"><div class=\"postDate\">Sat, Jun 09 2012 - 6:45</div><div clear='both'><a target='_blank'\n\t\t\t\t\ttitle=\"EXTRAIT - Y a plus de suspens !\"\n\t\t\t\t\thref=\"http://www.europe1.fr/\">EXTRAIT - Y a plus de suspens !<span class='author'></span></a></div><div style='float : right'>\n\t\t\t\t<img src='images/tag.png'\n\t\t\t\tclass='tagsPic' alt='Tags' title='Tags'> <span id=\"ATSTR-236770\">aucun tag</span>\n\t\t\t\t\t<a title=\"Modifier les tags pour cet article\"\n\t\t\t\t\thref=\"#\" onclick=\"editArticleTags(236770, 55)\">(+)</a><div dojoType=\"dijit.Tooltip\"\n\t\t\t\t\tid=\"ATSTRTIP-236770\" connectId=\"ATSTR-236770\"\n\t\t\t\t\tposition=\"below\">aucun tag</div><img src=\"images/art-zoom.png\"\n\t\t\t\t\t\tclass='tagsPic' style=\"cursor : pointer\"\n\t\t\t\t\t\tonclick=\"postOpenInNewTab(event, 236770)\"\n\t\t\t\t\t\talt='Zoom' title='Ouvrir les articles dans un nouvel onglet'><img src=\"images/art-pub-note.png\"\n\t\t\t\tstyle=\"cursor : pointer\" style=\"cursor : pointer\"\n\t\t\t\tonclick=\"editArticleNote(236770)\"\n\t\t\t\tclass='tagsPic' title='Modifier l'annotation de l'article'><img src=\"images/art-tweet.png\"\n\t\t\tclass='tagsPic' style=\"cursor : pointer\"\n\t\t\tonclick=\"tweetArticle(236770)\"\n\t\t\ttitle='Partager sur Twitter'><img src=\"images/art-share.png\"\n\t\t\tclass='tagsPic' style=\"cursor : pointer\"\n\t\t\tonclick=\"shareArticle(345958)\"\n\t\t\ttitle='Partager par URL'><img src=\"images/art-email.png\"\n\t\t\t\t\tclass='tagsPic' style=\"cursor : pointer\"\n\t\t\t\t\tonclick=\"emailArticle(236770)\"\n\t\t\t\t\talt='Zoom' title='Transf\xE9rer par email'><img src=\"images/digest_checkbox.png\"\n\t\t\t\t\t\tclass='tagsPic' style=\"cursor : pointer\"\n\t\t\t\t\t\tonclick=\"closeArticlePanel(236770)\"\n\t\t\t\t\t\ttitle='Fermer l'article'></div><div clear='both'> </div></div><div id=\"POSTNOTE-236770\"></div><div class=\"postIcon\"><a target=\"_blank\" title=\"Visiter le site web\"$\n\t\t\t\thref=\"http://www.europe1.fr\"><img src=\"http://media.europe1.fr/images/media/photos/itunes/600x600_podcasts_canteloup/12871687-1-fre-FR/600x600_Podcasts_Canteloup.jpg\"></a></div><div class=\"postContent\"><div class=\"postEnclosures\">Fichier attach\xE9 : <object type=\"application/x-shockwave-flash\"\n\t\t\t\t\tdata=\"lib/button/musicplayer.swf?song_url=http://europe1.proxycast.org/m/media/223023201590.mp3?c=divertissement&p=humour&l3=La-revue-de-presque-de-Nicolas-Canteloup&l4=EXTRAIT-Y-a-plus-de-suspens&media_url=http%3A%2F%2Fhttp5.europe1.yacast.net%2Feurope1video%2Faudio%2FMediaCenter%2FEmissions%2FLa-revue-de-presque-de-Nicolas-Canteloup%2FEXTRAIT-Y-a-plus-de-suspens-123779723.mp3\"\n\t\t\t\t\twidth=\"17\" height=\"17\" style='float : left; margin-right : 5px;'>\n\t\t\t\t\t<param name=\"movie\"\n\t\t\t\t\t\tvalue=\"lib/button/musicplayer.swf?song_url=http://europe1.proxycast.org/m/media/223023201590.mp3?c=divertissement&p=humour&l3=La-revue-de-presque-de-Nicolas-Canteloup&l4=EXTRAIT-Y-a-plus-de-suspens&media_url=http%3A%2F%2Fhttp5.europe1.yacast.net%2Feurope1video%2Faudio%2FMediaCenter%2FEmissions%2FLa-revue-de-presque-de-Nicolas-Canteloup%2FEXTRAIT-Y-a-plus-de-suspens-123779723.mp3\" />\n\t\t\t\t\t</object> <a target=\"_blank\" href=\"http://europe1.proxycast.org/m/media/223023201590.mp3?c=divertissement&p=humour&l3=La-revue-de-presque-de-Nicolas-Canteloup&l4=EXTRAIT-Y-a-plus-de-suspens&media_url=http%3A%2F%2Fhttp5.europe1.yacast.net%2Feurope1video%2Faudio%2FMediaCenter%2FEmissions%2FLa-revue-de-presque-de-Nicolas-Canteloup%2FEXTRAIT-Y-a-plus-de-suspens-123779723.mp3\">223023201590.mp3?c=divertissement&p=humour&l3=La-revue-de-presque-de-Nicolas-Canteloup&l4=EXTRAIT-Y-a-plus-de-suspens&media_url=http%3A%2F%2Fhttp5.europe1.yacast.net%2Feurope1video%2Faudio%2FMediaCenter%2FEmissions%2FLa-revue-de-presque-de-Nicolas-Canteloup%2FEXTRAIT-Y-a-plus-de-suspens-123779723.mp3 (audio/mpeg)</a></div></div></div>")@http://<MON_IP>/Joomla/tt-rss/:424
([object Object],0)@http://<MON_IP>/Joomla/tt-rss/:430
([object Object],0,[object Array])@http://<MON_IP>/Joomla/tt-rss/lib/prototype.js:706
each((function (article) {if (active_post_id == article.id) {render_article(article.content);}cids_requested.remove(article.id);cache_set("article:" + article.id, article.content);}))@http://<MON_IP>/Joomla/tt-rss/lib/prototype.js:705
article_callback2([object Object],236770)@http://<MON_IP>/Joomla/tt-rss/:430
([object Object],null)@http://<MON_IP>/Joomla/tt-rss/:440
(4)@http://<MON_IP>/Joomla/tt-rss/lib/prototype.js:1505
([object Event])@http://<MON_IP>/Joomla/tt-rss/lib/prototype.js:1436
([object Event])@http://<MON_IP>/Joomla/tt-rss/lib/prototype.js:291

Any idea ? Because I don't know what to do next.

Regards.

Xuo.

Re: Could not update headlines (invalid object received - se

Posted: 10 Jun 2012, 18:27
by xuo
Hi,

I just have forgotten to add that it is not easy to find something on this forum.
Iwanted to search for :
Could not update headlines
and I get :
The following words in your search query were ignored because they are too common words: headlines could update not.

I hope the answer was not already in this forum.

Xuo.

Re: Could not update headlines (invalid object received - se

Posted: 10 Jun 2012, 19:38
by fox
Not sure what's broken in your case, but I have disabled this idiotic phpbb feature regarding "common words" at least.

Re: Could not update headlines (invalid object received - se

Posted: 10 Jun 2012, 22:47
by xuo
Hi,

And with this error message, do you have an idea where it comes from ?

Jun 10 20:43:39 ordi4 suhosin[6331]: ALERT - zend_mm_head corrupted at 0xa481270 (attacker '<MY_IP>', file '/var/www/html/Joomla/tt-rss/backend.php')

Thank you.

Xuo.

Re: Could not update headlines (invalid object received - se

Posted: 11 Jun 2012, 14:11
by pipomolo42
Hi, I have the same error here, and it happens in conjuction with this linbe in apache's error.log:

PHP Fatal error: Maximum execution time of 30 seconds exceeded in lib/htmlpurifier/library/HTMLPurifier/Strategy/MakeWellFormed.php on line 493

running on debian stable with tt-rss' git head.

Edit: Ok, I did a bit more of searching, and it seems that disabling HTMLPurifier just does the trick.

Re: Could not update headlines (invalid object received - se

Posted: 11 Jun 2012, 18:02
by fox
That with latest purifier reverted to 4.3 patch included? Well, shit.

Re: Could not update headlines (invalid object received - se

Posted: 11 Jun 2012, 23:40
by xuo
Hi,

There were 2 feeds that were creating the problem (Could not update headlines (invalid object received - see error console for details)). I don't know why, maybe a mysql entry problem ???
Because of them, the http process were using 100% of cpu time on my ttrss server.
I removed them from the list of feeds and http process was fine. But the update of feeds did not work correctly (I don't remember the exact error message I had on the html interface).
Just a few minutes ago, I have restarted the ttrss daemon on the server as root (I have modified the include/sanity_check.php file).
For the moment, it seems to work fine. I'll wait for a few hours to confirm this.
The problem might come from some unix protections that prevents the ttrss process owner other than root to make it work correctly. I don't have any related message in any of the log files I had a look.

I'll tell you if I can find something else.

I don't have any 'purifier' keyword in any of my http log files.

Regards.

Xuo.

Re: Could not update headlines (invalid object received - se

Posted: 12 Jun 2012, 00:01
by fox
1. update process has nothing to do with htmlpurifier, this is done when formatting data for the client
2. don't run the daemon as root
3. were you on latest trunk, which reverted htmlpurifier to 4.3?

Re: Could not update headlines (invalid object received - se

Posted: 12 Jun 2012, 00:27
by xuo
Hi,

I don't know if I answer your question but I use ttrss version 1.5.11

Xuo.

Re: Could not update headlines (invalid object received - se

Posted: 12 Jun 2012, 02:04
by gmargo
TT-RSS v1.5.11 uses HTML Purifier v4.4.0, not the recent reversion to v4.3.0.

Re: Could not update headlines (invalid object received - se

Posted: 12 Jun 2012, 11:16
by fox
There's two people here, one said he was running trunk.

Anyway, xuo & pipomolo42, you both should update to latest trunk and check if this is happening with htmlpurifier 4.3.0.