PDA

View Full Version : mfs_ftp "Connection reset by peer" error



kaplansa
06-22-2006, 02:39 AM
Trying to reinsert a show back into my HR10-250 via mfs_ftp. Extracting no problem. Inserting poses a problem, however. Here's an example snippet:


C:\>ftp
ftp> open
To 192.168.1.98 3105
Connected to 192.168.1.98.
220 Mfs_Ftp ver 1.2.9p - {sock26} from "192.168.1.100:4413"
User (192.168.1.98:(none)):
331 User name okay, need password.
Password:
230 Running in TiVo Mode.
ftp> cd tmf
250 Directory change successful.
ftp> bin
200 Type set to I
ftp> hash
Hash mark printing On ftp: (2048 bytes/hash mark) .
ftp> put {filename}.tmf
200 PORT command successful.
150 Opening BINARY mode data connection for "{{filename}.tmf}"
###############################################################
> Netout :Connection reset by peer
Connection closed by remote host.

I'm running mfs_ftp 1.2.9p with the s2bins (mfs-utils/bin.mips). Searched for a couple of days and I don't see any posts with the same connection reset issue when inserting a program. CuteFTP, SmartFTP, FileZilla all have similar issue inserting shows. Doesn't matter whether I insert tmf or ty either. Same problem. Ideas?

Jamie
06-22-2006, 10:35 AM
Attach a level 5 debug log from the mfs_ftp server. It's probably an installation problem. Did you make the link from mfs_import to mfs_stdinsert as described in the mfs_* utility instructions?

kaplansa
06-26-2006, 12:41 PM
I shutdown mfs_ftp and started up again in level 5 debugging mode and captured the log from there. The excitement seems to be happening around row 209 with a "bgerror invoked with error" followed by "error writing "file29": broken pipe". Whether I try to insert the .tmf from DOS FTP, CuteFTP, SmartFTP, you name it, same problem. Aside, I can download .ty and .tmf files ~from~ Tivo no problem. Problem is only on inserting shows. Thanks for taking a look. I appreciate any feedback.


04:25:05:PM - sourcing settings
04:25:05:PM - sourcing p2
04:25:05:PM - versioncheck:
04:25:06:PM - init: 1.2.9p - TiVo_OS 3.1.5f-01-2-357
04:25:06:PM - tivo version "3.x" mfspath set to /Recording/NowShowingByClassic
04:25:06:PM - get_tzoffset:
04:25:06:PM - sourcing tzoffset.txt
12:25:06:PM - abortcheck: "ping_pong"
12:25:06:PM - update_rec_fsids: forced 1
12:25:24:PM - updating cached recording info
.12:25:24:PM - no 1054367 state - force update
12:25:24:PM - rec_info_from_db: recobj{1054367}
12:25:24:PM - The Ellen DeGeneres Show 822083584 k
12:25:25:PM - cache_xml_2_disk: recobj{1054367} force cache = "0"
12:25:25:PM - allready cached 1054367.xml
{more of the same for another 1576 lines}

12:28:37:PM - build_rec_filenames:
.................................................................................................... .................................................................................................... .............................................................

12:28:37:PM - pruning obsolete entries from ./cache/
12:28:50:PM - prune_cache complete
12:28:50:PM - reset_control_socket:
catch close lastsock val "can't read "info(lastsock)": no such element in array"
12:28:50:PM - setup_control_socket:
12:28:50:PM - "127,0,0,1:3105" ready for connections
12:29:33:PM - newcsocket: {sock26} "192.168.1.1:1697"
12:29:33:PM - abortcheck: "newcsocket"
12:29:33:PM - 220 Mfs_Ftp ver 1.2.9p - {sock26} from "192.168.1.1:1697"
12:29:33:PM - serverip "192.168.1.98"
12:29:34:PM - readlinefromsocket: "sock26"
12:29:34:PM - echo to verify: "USER "
12:29:34:PM - parseline:
"USER "
12:29:34:PM - USER: ""
12:29:34:PM - 331 User name okay, need password.
12:29:34:PM - readlinefromsocket: "sock26"
12:29:34:PM - echo to verify: "PASS "
12:29:34:PM - parseline:
"PASS "
12:29:34:PM - PASS: ""
12:29:34:PM - 230 Running in TiVo Mode.
12:29:37:PM - readlinefromsocket: "sock26"
12:29:37:PM - echo to verify: "CWD tmf"
12:29:37:PM - parseline:
"CWD tmf"
12:29:37:PM - 250 Directory change successful.
12:29:40:PM - readlinefromsocket: "sock26"
12:29:40:PM - echo to verify: "TYPE I"
12:29:40:PM - parseline:
"TYPE I"
12:29:40:PM - 200 Type set to I
12:30:25:PM - readlinefromsocket: "sock26"
12:30:25:PM - echo to verify: "PORT 192,168,1,100,6,163"
12:30:25:PM - parseline:
"PORT 192,168,1,100,6,163"
12:30:25:PM - PORT 192,168,1,100,6,163
12:30:26:PM - data channel "sock27" to 192.168.1.100:1699
12:30:26:PM - 200 PORT command successful.
12:30:26:PM - readlinefromsocket: "sock26"
12:30:26:PM - echo to verify: "STOR {Rollergirls}{2006-03-06}{Big Time2}{12.00 PM Sun Apr 02, 2006}{A&E}.tmf"
12:30:26:PM - parseline:
"STOR {Rollergirls}{2006-03-06}{Big Time2}{12.00 PM Sun Apr 02, 2006}{A&E}.tmf"
12:30:26:PM - STOR:
"STOR {Rollergirls}{2006-03-06}{Big Time2}{12.00 PM Sun Apr 02, 2006}{A&E}.tmf"
12:30:26:PM - make_blank_rec: "{Rollergirls}{2006-03-06}{Big Time2}{12.00 PM Sun Apr 02, 2006}{A&E}.tmf"
12:30:26:PM - created blank recording {1100169}
12:30:26:PM - rec_info_from_db: recobj{1100169}
12:30:27:PM - Rollergirls}{2006-03-06}{Big Time2}{12.00 PM Sun Apr 02, 2006}{A&E}.tmf k
12:30:27:PM - cache_xml_2_disk: recobj{1100169} force cache = "0"
12:30:27:PM - recording in progress, don't cache 1100169.xml yet
12:30:27:PM - calc_tertiary_info: recobj{1100169}
12:30:27:PM - 150 Opening BINARY mode data connection for "{{Rollergirls}{2006-03-06}{Big Time2}{12.00 PM Sun Apr 02, 2006}{A&E}.tmf}"
12:30:27:PM - parse_tmf:
12:30:27:PM - xml_from_tmf:
12:30:27:PM - tarpart is "showing.xml"
12:30:27:PM - open/create "./cache/1100169.xml" & writing
<?xml version="1.1" tivoversion="3.1.5f-01-2-357"?>
<Object type="Recording" id="_top">
<ApgStreamType>2</ApgStreamType>
<BitRate>0</BitRate>
<SubObject type="Bookmark" id="Bookmark">
<TimeMs>1808004</TimeMs>
</SubObject>
<SubObject type="RecordingPart" id="Part">
<Begin>0</Begin>
<CommercialSkipOffset>34</CommercialSkipOffset>
<CommercialSkipOffset>-1172099960</CommercialSkipOffset>
<CommercialSkipOffset>732816570</CommercialSkipOffset>
<CommercialSkipOffset>-2128431231</CommercialSkipOffset>
<CommercialSkipOffset>1640574600</CommercialSkipOffset>
<CommercialSkipOffset>113999737</CommercialSkipOffset>
<CommercialSkipOffset>-119450912</CommercialSkipOffset>
<CommercialSkipOffset>-427349095</CommercialSkipOffset>
<CommercialSkipOffset>-982166088</CommercialSkipOffset>
<CommercialSkipOffset>35036</CommercialSkipOffset>
<End>1774705</End>
<File>802914</File>
</SubObject>
<SubObject type="RecordingPart" id="Part">
<Begin>1776189</Begin>
<CommercialSkipOffset>34</CommercialSkipOffset>
<CommercialSkipOffset>1534820289</CommercialSkipOffset>
<CommercialSkipOffset>-1980898541</CommercialSkipOffset>
<CommercialSkipOffset>-990569188</CommercialSkipOffset>
<CommercialSkipOffset>1800913221</CommercialSkipOffset>
<CommercialSkipOffset>-917168872</CommercialSkipOffset>
<CommercialSkipOffset>1924024047</CommercialSkipOffset>
<CommercialSkipOffset>-507016956</CommercialSkipOffset>
<CommercialSkipOffset>-1775389679</CommercialSkipOffset>
<CommercialSkipOffset>49557</CommercialSkipOffset>
<End>3227758</End>
<File>802917</File>
</SubObject>
<SubObject type="RecordingPart" id="Part">
<Begin>3229927</Begin>
<CommercialSkipOffset>34</CommercialSkipOffset>
<CommercialSkipOffset>1181131893</CommercialSkipOffset>
<CommercialSkipOffset>1535982403</CommercialSkipOffset>
<CommercialSkipOffset>1128240229</CommercialSkipOffset>
<CommercialSkipOffset>403374333</CommercialSkipOffset>
<CommercialSkipOffset>-888386381</CommercialSkipOffset>
<CommercialSkipOffset>1013655073</CommercialSkipOffset>
<CommercialSkipOffset>967269245</CommercialSkipOffset>
<CommercialSkipOffset>1295034689</CommercialSkipOffset>
<CommercialSkipOffset>29985</CommercialSkipOffset>
<End>3598492</End>
<File>802926</File>
</SubObject>
<SelectionType>3</SelectionType>
<SubObject type="Showing" id="Showing">
<Date>13240</Date>
<Duration>3600</Duration>
<Object type="Program" id="Program">
<SubObject type="ApgProgram" id="ApgProgram">
<Category>11272297</Category>
</SubObject>
<Bits>262144</Bits>
<DescLanguage>English</DescLanguage>
<Description>The TXRD stages an all-female, interstate bout.</Description>
<EpisodeTitle>Big Time</EpisodeTitle>
<Genre>105</Genre>
<IsEpisode>1</IsEpisode>
<OriginalAirDate>13213</OriginalAirDate>
<RootServerId>A002e6894</RootServerId>
<Object type="Series" id="Series">
<Genre>105</Genre>
<ServerId>ATSH798357</ServerId>
<ServerVersion>0</ServerVersion>
<ThumbData>268566912</ThumbData>
<Title>Rollergirls</Title>
<TmsId>SH798357</TmsId>
</Object>
<ServerId>A002f0751</ServerId>
<ServerVersion>1</ServerVersion>
<Title>Rollergirls</Title>
<TmsId>EP7983570010</TmsId>
<TvRating>5</TvRating>
</Object>
<Object type="Station" id="Station">
<CallSign>A&E</CallSign>
<Name>A&E</Name>
<ServerId>AStation10035</ServerId>
<ServerVersion>80</ServerVersion>
<TmsId>10035</TmsId>
</Object>
<Time>57600</Time>
</SubObject>
<StartDate>13240</StartDate>
<StartTime>57598</StartTime>
<StopDate>13240</StopDate>
<StopTime>61202</StopTime>
<StreamFileSize>1171456</StreamFileSize>
<SubPriority>45</SubPriority>
<TunedSignalType>6</TunedSignalType>
<UsedBy>1</UsedBy>
</Object>


12:30:27:PM - parse_xml:
12:30:30:PM - Title is "Rollergirls"
12:30:30:PM - Description is "The TXRD stages an all-female, interstate bout."
12:30:30:PM - EpisodeTitle is "Big Time"
12:30:30:PM - StartDate is "13240"
12:30:30:PM - StopDate is "13240"
12:30:30:PM - StartTime is "57598"
12:30:30:PM - StopTime is "61202"
12:30:30:PM - Duration is "3600"
12:30:30:PM - Date is "13240"
12:30:30:PM - OriginalAirDate is "13213"
12:30:30:PM - CallSign is "A&E"
12:30:30:PM - Name is "A&E"
12:30:30:PM - Time is "57600"
12:30:30:PM - "0 34 -1172099960 732816570 -2128431231 1640574600 113999737 -119450912 -427349095 -982166088 35036 1774705"
12:30:30:PM - "1776189 34 1534820289 -1980898541 -990569188 1800913221 -917168872 1924024047 -507016956 -1775389679 49557 3227758"
12:30:30:PM - "3229927 34 1181131893 1535982403 1128240229 403374333 -888386381 1013655073 967269245 1295034689 29985 3598492"
12:30:30:PM - setrecinfo: recobj{1100169}
12:30:31:PM - {Rollergirls}{Big Time}
The TXRD stages an all-female, interstate bout.
12:30:31:PM - tmf2fsid: recobj{1100169}
12:30:31:PM - starting segment "part00.ty"
12:30:31:PM - AddPart: "1100169" - "536870912" bytes
12:30:31:PM - AddPart stream allocate errval
"1100179"
12:30:32:PM - AddPart: retryev
""
12:30:32:PM - added part "1100179" of "512" meg
12:30:32:PM - set priorities: mfs_ftp 1 % I/O chan 10 %
bgerror invoked with error

" error writing "file29": broken pipe "

re-initializing mfs_ftp

close the current ftp connection and simply open another

"core dump" :p

info(version): 1.2.9p
info(tswv): 3.1.5f-01-2-357
info(dbl): 5
info(ithrottle): 2
info(insert_priority): 10
info(multithreaded): 0
info(saveuntil): suggestion
info(name_detail): 5
info(bjuggle): 0
info(active): 0
info(ac_interval): 1800
info(gatewayip): 127.0.0.1
info(gatewayport): 3105


12:30:34:PM - abortcheck: "bgerror"
12:30:34:PM - reset_control_socket:
catch close lastsock val ""
12:30:34:PM - setup_control_socket:
12:30:34:PM - "192,168,1,98:3105" ready for connections

Jamie
06-26-2006, 12:53 PM
It looks like it is failing when it runs mfs_stdinsert.

To repeat a question: "...Did you make the link from mfs_import to mfs_stdinsert as described in the mfs_* utility instructions?".

Post an "ls -l " of your mfs_ftp directory. That will tell us if you installed everything properly.

kaplansa
06-26-2006, 02:29 PM
Yeah, I created the symlink using


ln -sf mfs_import mfs_stdinsert

But your comment made me research further... somehow in creating a deleting symbolic links, I nuked the actual mfs_insert. DOH! I wouldn't have looked for that without your note. Copied the S2 binary back over and voila. Inserting at a whopping 2.18mbps over wireless. Thanks man :D

Rapitharian
07-11-2006, 11:17 PM
is mfs_insert a sym link?
if so where should it go?
if not what should I do to restore it?
I am having the exact same problem. I can download but not insert.

Rap

drez
07-11-2006, 11:23 PM
mfs_import not insert

Rapitharian
07-11-2006, 11:32 PM
Drez,
Thanks.

Ok, I created that the same way kaplansa did.
Still had the problem.
Guess I now need to ask How do I start the program with L5 debug? Read the readme and don't see it.
Jamie wanted that next so I guess that would be next.

Rap

kaplansa
07-11-2006, 11:34 PM
is mfs_insert a sym link?
if so where should it go?
if not what should I do to restore it?
I am having the exact same problem. I can download but not insert.

Rap

1. you need to make sure mfs_insert is present in your mfs_ftp directory
2. you need to telnet to your tivo and in your mfs_ftp directory, execute the following command to create the mfs_stdinsert symlink:


ln -sf mfs_import mfs_stdinsert

3. read the forums more closely next time :rolleyes:

drez
07-11-2006, 11:37 PM
rap:

try reading through this:
http://www.thewallens.net/Zipperwiki/index.php?title=Extraction_Tutorial#chubb.27s_step-by-step_guide_for_running_MFS_FTP_on_your_S2_DTIVO.2FHDTIVO

im going to rewrite that to make it clearer for you

kaplansa
07-11-2006, 11:57 PM
How do I start the program with L5 debug?

I'll give you that, it's not entirely clear how to kick off a level 5 debug in mfs_ftp. So in short, stop mfs_ftp if already running, and open up your settings.tcl file in your mfs_ftp directory. Edit the line:


set info(dbl) 0

to read:


set info(dbl) 5

Now re-start mfs_ftp and you'll have your level 5 debug log. Bare in mind, it could be long a log file as during start-up, mfs_ftp caches each program in your "now playing" list, and the log is now required to capture each step of the process. So be patient while the log generates.

Rapitharian
07-12-2006, 12:01 AM
But your comment made me research further... somehow in creating a deleting symbolic links, I nuked the actual mfs_insert. DOH!

I did read it right. You post says "..I nuked the actual mfs_insert." I thought there was another file being discussed.

Rap

Drez,
Looking into the last item on that guide. Thanks.

Rapitharian
07-12-2006, 02:25 AM
Thanks drez!!!!

Ok running S2 tivo with 6.2.
Here is what I did.

1. Download the S1 binaries (mfs_ftp.tar.zip) from http://www.dealdatabase.com/forum/showthread.php?t=21915
2. Download the (mfs-utils_bin.mips-20050604.tar.bz2) from http://www.dealdatabase.com/forum/showthread.php?t=39487
3. Unziped both files. This left me with mfs_ftp.tar and a directory called mfs-utils_bin.mips-20050604
4. Uploaded via FTP the mfs_ftp.tar file to my DTIVO and put it in /var/hack.
5. At Bash Prompt ran "CD /var/hack
6. At Bash Prompt ran "cpio -i -H tar -d -F mfs_ftp.tar"
7. FTP'd mfs_export, mfs_import, mfs_stream, mfs_tarstream, mfs_uberexport} to /var/mfs_ftp per jamie's comment in http://www.dealdatabase.com/forum/showthread.php?t=39487
8. At Bash Prompt ran "ln -sf mfs_import mfs_stdinsert" per this post and jamie's comment in the last post.
9. At Bash Prompt ran "Chmod 755 mfs_export", "Chmod 755 mfs_import", "Chmod 755 mfs_stream", "Chmod 755 mfs_tarstream", "Chmod 755 mfs_uberexport" to make them executable.
10. Made a backup copy of mfs_ftp.tcl as mfs_ftp.tcl.org
11. Got the Joe editor from http://tivoutils.sourceforge.net/
12. Unzipped joe-2.9.8-pre1-s2.tgz to get the .tar file.
13. mount the tivo dive Read/Write with "mount -o remount,rw /"
13 FTP'd the joe-2.9.8-pre1-s2.tar to /
14. At Bash Prompt ran "cpio -idu -H tar < joe.tar" this extracts the files to /var/hack/bin and /var/hack/etc. The paths for the files are in the tar ball.
15. cd /var/hack/bin
16. "Chmod 755 joe"
17. Edit /var/mfs_ftp/mfs_ftp.tcl and remark out (put a # at the begining of the line) all lines begining "event send $TmkEvent". The line numbers are: 786, 985, 1303, 1309, 1325, 1329, and 1354.
18. Edit /etc/rc.d/rc.sysinit.author and add the following lines to the top of the file just below "#!/bin/bash":
---------------------Begin Edit Information----------------
#Configure MFS_FTP
PATH=/var/mfs_ftp:/sbin:/bin:/tivobin:/tvbin:.
TIVO_ROOT=
MFS_DEVICE=/dev/hda10
IGNOREEOF=1000
export PATH TIVO_ROOT MFS_DEVICE IGNOREEOF
#MFS_FTP
#/etc/hacks/mfs_ftp/mfs_ftp.tcl
---------------------End Edit Information----------------
19. remount the drive READ ONLY. "mount -o remount,ro /"
20. Start mfs_ftp with "/var/mfs_ftp/mfs_ftp.tcl
21. Connect to the TIVO and restore the shows.

Also during this I also installed devbin-s2.tgz. This set of utils has some nice Linux commands such as: ls, ws, tail, uptime, and rmdir among many others.

Enjoy,
Rap

drez
07-12-2006, 08:54 AM
those s2 bins are really outdated (2003), use AlphaWolf's All-In-One S2 collection (last updated 08/04/2005):

http://dealdatabase.com/forum/showthread.php?t=37602 tivotools.tar.rar