Got error "Sanity check: invalid RPC reply"

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
jd2066
Bear Rating Trainee
Bear Rating Trainee
Posts: 22
Joined: 09 Apr 2007, 13:37

Got error "Sanity check: invalid RPC reply"

Postby jd2066 » 01 Feb 2010, 02:55

Hi,
I just did a new install of Tiny Tiny RSS on a new computer and got the error "Sanity check: invalid RPC reply" when loading it.
Based on another topic, I went to backend.php?op=rpc&subop=sanityCheck and got the following:

Code: Select all

<rpc-reply><error error-code="0"/><init-params><param key="theme" value=""/><param key="theme_options" value=""/><param key="daemon_enabled" value=""/><param key="feeds_frame_refresh" value="600"/><param key="daemon_refresh_only" value="true"/><param key="sign_progress" value="images/indicator_white.gif"/><param key="sign_progress_tiny" value="images/indicator_tiny.gif"/><param key="sign_excl" value="images/sign_excl.png"/><param key="sign_info" value="images/sign_info.png"/><param key="on_catchup_show_next_feed" value=""/><param key="hide_read_feeds" value="0"/><param key="enable_feed_cats" value="0"/><param key="feeds_sort_by_unread" value="0"/><param key="confirm_feed_catchup" value="1"/><param key="cdm_auto_catchup" value="0"/><param key="icons_url" value="icons"/><param key="cookie_lifetime" value="0"/><param key="default_view_mode" value="adaptive"/><param key="default_view_limit" value="30"/><param key="default_view_order_by" value="default"/><param key="prefs_active_tab" value=""/><param key="infobox_disable_overlay" value=""/><param key="icons_location" value="icons"/><param key="hide_read_shows_special" value="1"/><param key="hide_feedlist" value="0"/><param key="bw_limit" value="0"/><param key="sync_counters" value="1"/><param key="offline_enabled" value="0"/><param key="num_feeds" value="2"/><param key="collapsed_feedlist" value="0"/></init-params><runtime-info><param key="num_feeds" value="2"/>

Justin

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Got error "Sanity check: invalid RPC reply"

Postby fox » 01 Feb 2010, 09:16

If the XML is valid, then it is your browser. See the stickied headlines_count_obj thread, steps to debug this problem are essentially the same.

jd2066
Bear Rating Trainee
Bear Rating Trainee
Posts: 22
Joined: 09 Apr 2007, 13:37

Re: Got error "Sanity check: invalid RPC reply"

Postby jd2066 » 01 Feb 2010, 23:30

I followed the steps in that page by going to backend.php?op=viewfeed&feed=-3 and I got the following back:

Code: Select all

<reply><headlines id="-3" is_cat=""><![CDATA[<div id="headlinesContainer" ><div class="headlinesSubToolbar"><div id="subtoolbar_ftitle">Fresh articles
            <a target="_blank"
               href="backend.php?op=rss&id=-3&is_cat=">
               <img class="noborder"
                  alt="Generated feed" src="images/feed-icon-12x12.png">
                  </a></div>Select:
            <a href="javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, '', true)">All</a>,
            <a href="javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true)">Unread</a>,
            <a href="javascript:invertHeadlineSelection()">Invert</a>,
            <a href="javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false)">None</a></li>&nbsp;&nbsp;<span
            onmouseover="enable_selection(false)"
            onmouseout="enable_selection(true)"
            onclick="toggleHeadlineActions()" id="headlineActionsDrop">Actions...&nbsp;&nbsp;<img width='11' height'7'
            src="images/down_arrow.png">
            </span><ul id="headlineActionsBody" style="display : none"><li class="insensitive">Selection toggle:</li>
            <li onclick="javascript:selectionToggleUnread()">&nbsp;&nbsp;Unread</li>
            <li onclick="javascript:selectionToggleMarked()">&nbsp;&nbsp;Starred</li>
            <li onclick="javascript:selectionTogglePublished()">&nbsp;&nbsp;Published</li>
            <li class="insensitive">Selection:</li>
            <li onclick="javascript:catchupSelection()">&nbsp;&nbsp;Mark as read</li><li onclick="javascript:archiveSelection()">&nbsp;&nbsp;Archive</li><li class="insensitive">Assign label:</li><li onclick="javascript:addLabel()">
         &nbsp;&nbsp;Create label...</li></ul></div><div id="headlinesInnerContainer" onscroll="headlines_scroll_handler()"><div class='whiteBox'>No articles found to display.</div></div></div>]]></headlines><headlines-count value="0"/><vgroup-last-feed value=""/><headlines-unread value="0"/><disable-cache value="0"/><articles></articles><counters><counter type="global" id='global-unread'
         counter=''/><counter type="global" id='subscribed-feeds'
         counter='2'/><counter type="label" id="0" counter="0" /><counter type="label" id="-1" counter="0" /><counter type="label" id="-2" counter="0" /><counter type="label" id="-3" counter="0" /><counter type="label" id="-4" counter="0" /></counters><runtime-info><param key="num_feeds" value="2"/>


Also, this is what Firefox displays for that:

Code: Select all

XML Parsing Error: no element found
Location: http://10.0.0.2/tinytinyrss/backend.php?op=viewfeed&feed=-3
Line Number 23, Column 295:         counter='2'/><counter type="label" id="0" counter="0" /><counter type="label" id="-1" counter="0" /><counter type="label" id="-2" counter="0" /><counter type="label" id="-3" counter="0" /><counter type="label" id="-4" counter="0" /></counters><runtime-info><param key="num_feeds" value="2"/>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Got error "Sanity check: invalid RPC reply"

Postby fox » 02 Feb 2010, 00:32

So it just points to the end of the file? Maybe you broke config.php (or some other .php file you edited) by adding some unnecessary whitespace after or before the php tags?

jd2066
Bear Rating Trainee
Bear Rating Trainee
Posts: 22
Joined: 09 Apr 2007, 13:37

Re: Got error "Sanity check: invalid RPC reply"

Postby jd2066 » 04 Feb 2010, 04:01

The only file I've edited is config.php and there doesn't appear to be any extra spaces that could break things in the file.
I just tested this by making a new config.php file after coping it from config.php-dist file and entering the database details but the problem remains.

bubbel
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 13 Sep 2010, 13:41

Re: Got error "Sanity check: invalid RPC reply"

Postby bubbel » 13 Sep 2010, 13:51

Well some time later, but I got the same error.
It is in the new Simplepie settings in v 1.4.3. When I set 'DEFAULT_UPDATE_METHOD' to 1, i.e. Simplepie.
When I reverted to Magpie, ttrss ran correctly.

Hope it helps,

Bubbel

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Got error "Sanity check: invalid RPC reply"

Postby fox » 13 Sep 2010, 14:44

Just loaded tt-rss with DEFAULT_UPDATE_METHOD=1 and didn't see anything different, e.g. it works the same for me. :(

xtaz
Bear Rating Master
Bear Rating Master
Posts: 174
Joined: 24 Dec 2009, 16:48

Re: Got error "Sanity check: invalid RPC reply"

Postby xtaz » 13 Sep 2010, 15:07

I get exactly the same thing. Firefox 3.6.8. It works fine with DEFAULT_UPDATE_METHOD set to 0 but set it to 1 and I get the same RPC error mentioned originally. I've even copied the config.php-dist file to config.php and gone through it all again to make sure I don't have any strange config or whitespace and it made no difference.

User avatar
gregr
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 13 Sep 2010, 15:17
Contact:

Re: Got error "Sanity check: invalid RPC reply"

Postby gregr » 13 Sep 2010, 15:22

Got the same error here from 1.4.2 to 1.4.3
A precision anyway : with 1.4.3, no problem with 'DEFAULT_UPDATE_METHOD' set to 1 if SINGLE_USER_MODE is set to true. If multi-user is enabled -> "Sanity check: invalid RPC reply"

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Got error "Sanity check: invalid RPC reply"

Postby fox » 13 Sep 2010, 15:43

(nvm)

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Got error "Sanity check: invalid RPC reply"

Postby fox » 13 Sep 2010, 15:55

Okay, yeah, it was a bit of me being a bit too hasty with vim keyword completion.

http://github.com/gothfox/Tiny-Tiny-RSS ... 17f499ef88

Fixed in trunk. Thanks to everyone for reporting it!

User avatar
gregr
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 13 Sep 2010, 15:17
Contact:

Re: Got error "Sanity check: invalid RPC reply"

Postby gregr » 13 Sep 2010, 17:15

fox wrote:Fixed in trunk


Works for me :)

bubbel
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 13 Sep 2010, 13:41

Re: Got error "Sanity check: invalid RPC reply"

Postby bubbel » 14 Sep 2010, 20:14

:D The fix does the trick. Thanks for the quick fix.
Me Happy :)

Greetings, Bubbel


Return to “Support”

Who is online

Users browsing this forum: No registered users and 23 guests