Page 85 of 99 FirstFirst ... 3575838485868795 ... LastLast
Results 1,261 to 1,275 of 1477

Thread: Mfs_Ftp: extract, archive, restore & transfer recordings

  1. #1261
    Join Date
    Jan 2005
    Posts
    35
    Here it is. I don't know what most of these means but I appreciate your willingness to look at it.

    Code:
    close the current ftp connection and simply open another
    
    "core dump" :p
    
    info(version): 1.2.9p-patchlevel-20070207
    info(tswv): 6.3c-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
    
    
    11:02:24:PM - abortcheck: "bgerror"
    11:02:24:PM - reset_control_socket:
    catch close lastsock val ""
    11:02:24:PM - setup_control_socket:
    11:02:24:PM - "192,168,1,66:3105" ready for connections
    11:02:25:PM - newcsocket: {sock18} "192.168.1.67:4784"
    11:02:25:PM - abortcheck: "newcsocket"
    11:02:25:PM - 220 Mfs_Ftp ver 1.2.9p-patchlevel-20070207 - {sock18} from "192.168.1.67:4784"
    11:02:25:PM - serverip "192.168.1.66"
    11:02:25:PM - readlinefromsocket: "sock18"
    11:02:25:PM - echo to verify: "USER anonymous"
    11:02:25:PM - parseline:
    "USER anonymous"
    11:02:25:PM - USER: "anonymous"
    11:02:25:PM - 331 User name okay, need password.
    11:02:25:PM - readlinefromsocket: "sock18"
    11:02:25:PM - echo to verify: "PASS anon@"
    11:02:25:PM - parseline:
    "PASS anon@"
    11:02:25:PM - PASS: "anon@"
    11:02:25:PM - 230 Running in TiVo Mode.
    11:02:25:PM - readlinefromsocket: "sock18"
    11:02:25:PM - echo to verify: "SYST"
    11:02:25:PM - parseline:
    "SYST"
    11:02:25:PM - 215 UNIX
    11:02:25:PM - readlinefromsocket: "sock18"
    11:02:25:PM - echo to verify: "FEAT"
    11:02:25:PM - parseline:
    "FEAT"
    11:02:25:PM - 502 Command not implemented "FEAT"
    11:02:25:PM - readlinefromsocket: "sock18"
    11:02:25:PM - echo to verify: "PWD"
    11:02:25:PM - parseline:
    "PWD"
    11:02:25:PM - PWD:
    11:02:25:PM - 257 "/" is current directory.
    11:02:25:PM - readlinefromsocket: "sock18"
    11:02:25:PM - echo to verify: "TYPE A"
    11:02:25:PM - parseline:
    "TYPE A"
    11:02:25:PM - 200 Type set to I
    11:02:25:PM - readlinefromsocket: "sock18"
    11:02:25:PM - echo to verify: "PASV"
    11:02:25:PM - parseline:
    "PASV"
    11:02:25:PM - PASV: closing info(dc) just in case
    11:02:25:PM - catch close info(dc) "can't read "info(dc)": no such element in array"
    11:02:25:PM - closing pdcs just in case
    11:02:25:PM - errval "can't read "pdcs": no such variable"
    11:02:25:PM - attempting to setup callback
    11:02:25:PM - passive data channel "192,168,1,66:3104"
    11:02:25:PM - 227 Entering Passive Mode (192,168,1,66,12,32).
    11:02:25:PM - readlinefromsocket: "sock18"
    11:02:25:PM - echo to verify: "LIST"
    11:02:25:PM - parseline:
    "LIST"
    11:02:25:PM - NLIST: "LIST" ("" == LIST command)
    11:02:25:PM - 150 Opening ASCII mode data connection for file list.
    11:02:25:PM - list_type is "LIST"
    11:02:25:PM - newpdc: open data channel sock20 - connect from "192.168.1.67:4785"
    11:02:25:PM - closing server data socket "sock19" to new connections
    11:02:25:PM - errval ""
    11:02:25:PM - passive data channel info(dc) set to sock20
    bgerror invoked with error 
     
     " can't read "info(dc)": no such element in array " 
    
    re-initializing mfs_ftp
    
    close the current ftp connection and simply open another
    
    "core dump" :p
    
    info(version): 1.2.9p-patchlevel-20070207
    info(tswv): 6.3c-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
    
    
    11:02:25:PM - abortcheck: "bgerror"
    11:02:25:PM - reset_control_socket:
    catch close lastsock val ""
    11:02:25:PM - setup_control_socket:
    11:02:25:PM - "192,168,1,66:3105" ready for connections
    11:02:26:PM - newcsocket: {sock18} "192.168.1.67:4786"
    11:02:26:PM - abortcheck: "newcsocket"
    11:02:26:PM - 220 Mfs_Ftp ver 1.2.9p-patchlevel-20070207 - {sock18} from "192.168.1.67:4786"
    11:02:26:PM - serverip "192.168.1.66"
    11:02:26:PM - readlinefromsocket: "sock18"
    11:02:26:PM - echo to verify: "USER anonymous"
    11:02:26:PM - parseline:
    "USER anonymous"
    11:02:26:PM - USER: "anonymous"
    11:02:26:PM - 331 User name okay, need password.
    11:02:26:PM - readlinefromsocket: "sock18"
    11:02:26:PM - echo to verify: "PASS anon@"
    11:02:26:PM - parseline:
    "PASS anon@"
    11:02:26:PM - PASS: "anon@"
    11:02:26:PM - 230 Running in TiVo Mode.
    11:02:26:PM - readlinefromsocket: "sock18"
    11:02:26:PM - echo to verify: "SYST"
    11:02:26:PM - parseline:
    "SYST"
    11:02:26:PM - 215 UNIX
    11:02:26:PM - readlinefromsocket: "sock18"
    11:02:26:PM - echo to verify: "FEAT"
    11:02:26:PM - parseline:
    "FEAT"
    11:02:26:PM - 502 Command not implemented "FEAT"
    11:02:26:PM - readlinefromsocket: "sock18"
    11:02:26:PM - echo to verify: "PWD"
    11:02:26:PM - parseline:
    "PWD"
    11:02:26:PM - PWD:
    11:02:26:PM - 257 "/" is current directory.
    11:02:26:PM - readlinefromsocket: "sock18"
    11:02:26:PM - echo to verify: "TYPE A"
    11:02:26:PM - parseline:
    "TYPE A"
    11:02:26:PM - 200 Type set to I
    11:02:26:PM - readlinefromsocket: "sock18"
    11:02:26:PM - echo to verify: "PASV"
    11:02:26:PM - parseline:
    "PASV"
    11:02:26:PM - PASV: closing info(dc) just in case
    11:02:26:PM - catch close info(dc) "can't read "info(dc)": no such element in array"
    11:02:26:PM - closing pdcs just in case
    11:02:26:PM - errval "can't read "pdcs": no such variable"
    11:02:26:PM - attempting to setup callback
    11:02:26:PM - passive data channel "192,168,1,66:3104"
    11:02:26:PM - 227 Entering Passive Mode (192,168,1,66,12,32).
    11:02:26:PM - readlinefromsocket: "sock18"
    11:02:26:PM - echo to verify: "LIST"
    11:02:26:PM - parseline:
    "LIST"
    11:02:26:PM - NLIST: "LIST" ("" == LIST command)
    11:02:26:PM - 150 Opening ASCII mode data connection for file list.
    11:02:26:PM - list_type is "LIST"
    11:02:26:PM - newpdc: open data channel sock20 - connect from "192.168.1.67:4787"
    11:02:26:PM - closing server data socket "sock19" to new connections
    11:02:26:PM - errval ""
    11:02:26:PM - passive data channel info(dc) set to sock20
    bgerror invoked with error 
     
     " can't read "info(dc)": no such element in array " 
    
    re-initializing mfs_ftp
    
    close the current ftp connection and simply open another
    
    "core dump" :p
    
    info(version): 1.2.9p-patchlevel-20070207
    info(tswv): 6.3c-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
    
    
    11:02:26:PM - abortcheck: "bgerror"
    11:02:26:PM - reset_control_socket:
    catch close lastsock val ""
    11:02:26:PM - setup_control_socket:
    11:02:26:PM - "192,168,1,66:3105" ready for connections
    11:02:28:PM - newcsocket: {sock18} "192.168.1.67:4788"
    11:02:28:PM - abortcheck: "newcsocket"
    11:02:28:PM - 220 Mfs_Ftp ver 1.2.9p-patchlevel-20070207 - {sock18} from "192.168.1.67:4788"
    11:02:28:PM - serverip "192.168.1.66"
    11:02:28:PM - readlinefromsocket: "sock18"
    11:02:28:PM - echo to verify: "USER anonymous"
    11:02:28:PM - parseline:
    "USER anonymous"
    11:02:28:PM - USER: "anonymous"
    11:02:28:PM - 331 User name okay, need password.
    11:02:28:PM - readlinefromsocket: "sock18"
    11:02:28:PM - echo to verify: "PASS anon@"
    11:02:28:PM - parseline:
    "PASS anon@"
    11:02:28:PM - PASS: "anon@"
    11:02:28:PM - 230 Running in TiVo Mode.
    11:02:28:PM - readlinefromsocket: "sock18"
    11:02:28:PM - echo to verify: "SYST"
    11:02:28:PM - parseline:
    "SYST"
    11:02:28:PM - 215 UNIX
    11:02:28:PM - readlinefromsocket: "sock18"
    11:02:28:PM - echo to verify: "FEAT"
    11:02:28:PM - parseline:
    "FEAT"
    11:02:28:PM - 502 Command not implemented "FEAT"
    11:02:28:PM - readlinefromsocket: "sock18"
    11:02:28:PM - echo to verify: "PWD"
    11:02:28:PM - parseline:
    "PWD"
    11:02:28:PM - PWD:
    11:02:28:PM - 257 "/" is current directory.
    11:02:28:PM - readlinefromsocket: "sock18"
    11:02:28:PM - echo to verify: "TYPE A"
    11:02:28:PM - parseline:
    "TYPE A"
    11:02:28:PM - 200 Type set to I
    11:02:28:PM - readlinefromsocket: "sock18"
    11:02:28:PM - echo to verify: "PASV"
    11:02:28:PM - parseline:
    "PASV"
    11:02:28:PM - PASV: closing info(dc) just in case
    11:02:28:PM - catch close info(dc) "can't read "info(dc)": no such element in array"
    11:02:28:PM - closing pdcs just in case
    11:02:28:PM - errval "can't read "pdcs": no such variable"
    11:02:28:PM - attempting to setup callback
    11:02:28:PM - passive data channel "192,168,1,66:3104"
    11:02:28:PM - 227 Entering Passive Mode (192,168,1,66,12,32).
    11:02:28:PM - readlinefromsocket: "sock18"
    11:02:28:PM - echo to verify: "LIST"
    11:02:28:PM - parseline:
    "LIST"
    11:02:28:PM - NLIST: "LIST" ("" == LIST command)
    11:02:28:PM - 150 Opening ASCII mode data connection for file list.
    11:02:28:PM - list_type is "LIST"
    11:02:28:PM - newpdc: open data channel sock20 - connect from "192.168.1.67:4789"
    11:02:28:PM - closing server data socket "sock19" to new connections
    11:02:28:PM - errval ""
    11:02:28:PM - passive data channel info(dc) set to sock20
    bgerror invoked with error 
     
     " can't read "info(dc)": no such element in array " 
    
    re-initializing mfs_ftp
    
    close the current ftp connection and simply open another
    
    "core dump" :p
    
    info(version): 1.2.9p-patchlevel-20070207
    info(tswv): 6.3c-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
    
    
    11:02:28:PM - abortcheck: "bgerror"
    11:02:28:PM - reset_control_socket:
    catch close lastsock val ""
    11:02:28:PM - setup_control_socket:
    11:02:28:PM - "192,168,1,66:3105" ready for connections
    11:02:29:PM - newcsocket: {sock18} "192.168.1.67:4791"
    11:02:29:PM - abortcheck: "newcsocket"
    11:02:29:PM - 220 Mfs_Ftp ver 1.2.9p-patchlevel-20070207 - {sock18} from "192.168.1.67:4791"
    11:02:29:PM - serverip "192.168.1.66"
    11:02:29:PM - readlinefromsocket: "sock18"
    11:02:29:PM - echo to verify: "USER anonymous"
    11:02:29:PM - parseline:
    "USER anonymous"
    11:02:29:PM - USER: "anonymous"
    11:02:29:PM - 331 User name okay, need password.
    11:02:29:PM - readlinefromsocket: "sock18"
    11:02:29:PM - echo to verify: "PASS anon@"
    11:02:29:PM - parseline:
    "PASS anon@"
    11:02:29:PM - PASS: "anon@"
    11:02:29:PM - 230 Running in TiVo Mode.
    11:02:29:PM - readlinefromsocket: "sock18"
    11:02:29:PM - echo to verify: "SYST"
    11:02:29:PM - parseline:
    "SYST"
    11:02:29:PM - 215 UNIX
    11:02:29:PM - readlinefromsocket: "sock18"
    11:02:29:PM - echo to verify: "FEAT"
    11:02:29:PM - parseline:
    "FEAT"
    11:02:29:PM - 502 Command not implemented "FEAT"
    11:02:29:PM - readlinefromsocket: "sock18"
    11:02:29:PM - echo to verify: "PWD"
    11:02:29:PM - parseline:
    "PWD"
    11:02:29:PM - PWD:
    11:02:29:PM - 257 "/" is current directory.
    11:02:29:PM - readlinefromsocket: "sock18"
    11:02:29:PM - echo to verify: "TYPE A"
    11:02:29:PM - parseline:
    "TYPE A"
    11:02:29:PM - 200 Type set to I
    11:02:29:PM - readlinefromsocket: "sock18"
    11:02:29:PM - echo to verify: "PASV"
    11:02:29:PM - parseline:
    "PASV"
    11:02:29:PM - PASV: closing info(dc) just in case
    11:02:29:PM - catch close info(dc) "can't read "info(dc)": no such element in array"
    11:02:29:PM - closing pdcs just in case
    11:02:29:PM - errval "can't read "pdcs": no such variable"
    11:02:29:PM - attempting to setup callback
    11:02:29:PM - passive data channel "192,168,1,66:3104"
    11:02:29:PM - 227 Entering Passive Mode (192,168,1,66,12,32).
    11:02:29:PM - readlinefromsocket: "sock18"
    11:02:29:PM - echo to verify: "LIST"
    11:02:29:PM - parseline:
    "LIST"
    11:02:29:PM - NLIST: "LIST" ("" == LIST command)
    11:02:29:PM - 150 Opening ASCII mode data connection for file list.
    11:02:29:PM - list_type is "LIST"
    11:02:29:PM - newpdc: open data channel sock20 - connect from "192.168.1.67:4792"
    11:02:29:PM - closing server data socket "sock19" to new connections
    11:02:29:PM - errval ""
    11:02:29:PM - passive data channel info(dc) set to sock20
    bgerror invoked with error 
     
     " can't read "info(dc)": no such element in array " 
    
    re-initializing mfs_ftp
    
    close the current ftp connection and simply open another
    
    "core dump" :p
    
    info(version): 1.2.9p-patchlevel-20070207
    info(tswv): 6.3c-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
    
    
    11:02:29:PM - abortcheck: "bgerror"
    11:02:29:PM - reset_control_socket:
    catch close lastsock val ""
    11:02:29:PM - setup_control_socket:
    11:02:29:PM - "192,168,1,66:3105" ready for connections

  2. #1262
    Join Date
    Aug 2004
    Posts
    4,075
    People have had trouble in the past with SmartFTP's default timeout value: link. Try bumping that up. But that doesn't look like the problem here.

    I'm not positive, but I think there is a race condition where the passive mode connection is being used before the "newpdc" call is completed, causing info(dc) to be used before it is set. Try the attached patch (applied after all the others) to see if it helps.

  3. #1263
    Join Date
    Jan 2005
    Posts
    35
    PHP Code:
    patch mfs_ftp.20070717-ya-pasv-fix.patch 
    I still get the output below. Maybe I should try a reinstall tonight before doing anything else.

    Code:
    11:29:47:AM - abortcheck: "bgerror"
    11:29:47:AM - reset_control_socket:
    catch close lastsock val ""
    11:29:47:AM - setup_control_socket:
    11:29:47:AM - "192,168,1,66:3105" ready for connections
    11:31:00:AM - newcsocket: {sock18} "192.168.1.67:4279"
    11:31:01:AM - abortcheck: "newcsocket"
    11:31:01:AM - 220 Mfs_Ftp ver 1.2.9p-patchlevel-20070717 - {sock18} from "192.16
    8.1.67:4279"
    11:31:01:AM - serverip "192.168.1.66"
    11:31:01:AM - readlinefromsocket: "sock18"
    11:31:01:AM - echo to verify: "USER anonymous"
    11:31:01:AM - parseline:
    "USER anonymous"
    11:31:01:AM - USER: "anonymous"
    11:31:01:AM - 331 User name okay, need password.
    11:31:01:AM - readlinefromsocket: "sock18"
    11:31:01:AM - echo to verify: "PASS anon@"
    11:31:01:AM - parseline:
    "PASS anon@"
    11:31:01:AM - PASS: "anon@"
    11:31:01:AM - 230 Running in TiVo Mode.
    11:31:01:AM - readlinefromsocket: "sock18"
    11:31:01:AM - echo to verify: "SYST"
    11:31:01:AM - parseline:
    "SYST"
    11:31:01:AM - 215 UNIX
    11:31:01:AM - readlinefromsocket: "sock18"
    11:31:01:AM - echo to verify: "FEAT"
    11:31:01:AM - parseline:
    "FEAT"
    11:31:01:AM - 502 Command not implemented "FEAT"
    11:31:01:AM - readlinefromsocket: "sock18"
    11:31:01:AM - echo to verify: "PWD"
    11:31:01:AM - parseline:
    "PWD"
    11:31:01:AM - PWD:
    11:31:01:AM - 257 "/" is current directory.
    11:31:01:AM - readlinefromsocket: "sock18"
    11:31:01:AM - echo to verify: "TYPE A"
    11:31:01:AM - parseline:
    "TYPE A"
    11:31:01:AM - 200 Type set to I
    11:31:01:AM - readlinefromsocket: "sock18"
    11:31:01:AM - echo to verify: "PASV"
    11:31:01:AM - parseline:
    "PASV"
    11:31:01:AM - PASV: closing info(dc) just in case
    11:31:01:AM - catch close info(dc) "can't read "info(dc)": no such element in ar
    ray"
    11:31:01:AM - closing pdcs just in case
    11:31:01:AM - errval "can't read "pdcs": no such variable"
    11:31:01:AM - attempting to setup callback
    11:31:01:AM - passive data channel "192,168,1,66:3104"
    11:31:01:AM - 227 Entering Passive Mode (192,168,1,66,12,32).
    11:31:01:AM - readlinefromsocket: "sock18"
    11:31:01:AM - echo to verify: "LIST"
    11:31:01:AM - parseline:
    "LIST"
    11:31:01:AM - NLIST: "LIST" ("" == LIST command)
    11:31:01:AM - 150 Opening ASCII mode data connection for file list.
    11:31:01:AM - list_type is "LIST"
    11:31:01:AM - newpdc: open data channel sock20 - connect from "192.168.1.67:4280
    "
    11:31:01:AM - closing server data socket "sock19" to new connections
    11:31:01:AM - errval ""
    11:31:01:AM - passive data channel info(dc) set to sock20
    bgerror invoked with error
    
     " can't read "info(dc)": no such element in array "
    
    re-initializing mfs_ftp
    
    close the current ftp connection and simply open another
    
    "core dump" :p
    
    info(version): 1.2.9p-patchlevel-20070717
    info(tswv): 6.3c-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
    
    
    11:31:01:AM - abortcheck: "bgerror"
    11:31:01:AM - reset_control_socket:
    catch close lastsock val ""
    11:31:01:AM - setup_control_socket:
    11:31:01:AM - "192,168,1,66:3105" ready for connections

  4. #1264
    Join Date
    Aug 2004
    Posts
    4,075
    Quote Originally Posted by sethjvm View Post
    PHP Code:
    patch mfs_ftp.20070717-ya-pasv-fix.patch 
    I still get the output below. Maybe I should try a reinstall tonight before doing anything else.

    ...
    I can't reproduce this, which makes it difficult to track down. I'm testing with SmartFTP v2.5.1006 and boxes running 8.x tivo software. I don't have anything running 6.x.

    The thing that looks funny is that I see a call to NLIST *before* the newpdc proc is called in your logs. I put in a vwait to prevent this, but it didn't seem to work. Here's another patch attempt. This needs to be applied to the 20070207 version. Please give this a try and report any change.
    Last edited by Jamie; 07-17-2007 at 01:38 PM.

  5. #1265
    Join Date
    Jan 2005
    Posts
    35
    I am using the Ahoy Matey Patch but no luck.

    Code:
    bash-2.02# patch < mfs_ftp-20070717b-ya-pasv-fix.patch
    patching file mfs_ftp.tcl
    Hunk #1 FAILED at 14.
    Hunk #3 FAILED at 1113.
    Hunk #4 FAILED at 1123.
    Hunk #5 succeeded at 1198 (offset 1 line).
    3 out of 6 hunks FAILED -- saving rejects to file mfs_ftp.tcl.rej
    Last edited by sethjvm; 07-17-2007 at 06:49 PM. Reason: Posted too fast.

  6. #1266
    Join Date
    Aug 2004
    Posts
    4,075
    Quote Originally Posted by sethjvm View Post
    I am using the Ahoy Matey Patch but no luck.

    Code:
    bash-2.02# patch < mfs_ftp-20070717b-ya-pasv-fix.patch
    patching file mfs_ftp.tcl
    Hunk #1 FAILED at 14.
    Hunk #3 FAILED at 1113.
    Hunk #4 FAILED at 1123.
    Hunk #5 succeeded at 1198 (offset 1 line).
    3 out of 6 hunks FAILED -- saving rejects to file mfs_ftp.tcl.rej
    Did you back up to the 20070207 version? That's what the diff is against.

  7. #1267
    Join Date
    Jan 2005
    Posts
    35
    I misunderstood. When I applied the 20070717b-ya-pasv-fix.patch versus the 20070207 version, I am now able to connect in passive mode. I am transferring a file and will report my progress.

    Thanks for doing this. For the purposes of my potential enlightenment, what is it that the newest patch does?

  8. #1268
    Join Date
    Aug 2004
    Posts
    4,075
    Quote Originally Posted by sethjvm View Post
    I misunderstood. When I applied the 20070717b-ya-pasv-fix.patch versus the 20070207 version, I am now able to connect in passive mode. I am transferring a file and will report my progress.

    Thanks for doing this. For the purposes of my potential enlightenment, what is it that the newest patch does?
    The issue, I think, is that the passive mode data connection isn't fully set up when the commands that use it come in. So I put in a "wait_for_dc" call to wait for the data connection to be established before processing each FTP command that uses the data connection. That's the RETR, STOR, LIST, and NLST FTP commands.

    The wait_for_dc function just checks to make sure that info(dc) is set, and if it is not, it does a "vwait info(dc)" to wait for the variable to be set. It's set for a passive mode connection in the "newpdc" function, called when the client connects to the passive mode port on the server.

    It's also worth checking to make sure my change doesn't break active mode connections, but I don't think it should.

  9. #1269
    Join Date
    Jan 2005
    Posts
    35
    Thank you Jamie for the patch. I have been using mfs_ftp with MovieLoader (finally it works) and SmartFTP successfully for passive and active transfers. I never realized how robust mfs_ftp was until it started working right.

  10. #1270
    Join Date
    Dec 2003
    Posts
    13

    Need some help - Totaly confused, I'm a little new, but I could do it

    I was a lot closer than I thought.

    thanks
    Wow, this was confusing.
    Last edited by needmoretoys; 07-22-2007 at 04:31 PM.

  11. #1271
    Join Date
    Dec 2003
    Location
    SF Bay Area
    Posts
    15

    seems close, but still not quite working.

    I read and read and read for days SO many mfs_ftp related posts/threads.

    I'm trying to get it installed on an HDVR2 running 6.2 with PTVnet hacks.

    After all that reading, here's what I finally did, that looked like the right thing:

    1. installed msf_ftp from root thread on tivo /var/mfs_ftp

    2. Installed MIPS binaries from this thread also loaded into /var/mfs_ftp

    3. Installed mfs_ftp.20070121.patch using patch program here

    4. Installed patch mfs_ftp-20070207-pasv-fix.patch

    The patches installed clean. However, when I access the mfs_ftp server from a PC, I don't get a listing of available programs to download. The log shows:

    Code:
    06:20:38:PM - newcsocket: {sock22} "192.168.1.10:1974"
    06:20:38:PM - abortcheck: "newcsocket"
    06:20:38:PM - 220 Mfs_Ftp ver 1.2.9p-patchlevel-20070207 - {sock22} from "192.168.1.10:1974"
    06:20:38:PM - serverip "192.168.1.106"
    06:20:38:PM - readlinefromsocket: "sock22"
    06:20:38:PM - echo to verify: "SYST"
    06:20:38:PM - parseline:
    "SYST"
    06:20:38:PM - 215 UNIX
    06:20:39:PM - readlinefromsocket: "sock22"
    06:20:39:PM - echo to verify: "FEAT"
    06:20:39:PM - parseline:
    "FEAT"
    06:20:39:PM - 502 Command not implemented "FEAT"
    06:20:39:PM - readlinefromsocket: "sock22"
    06:20:39:PM - echo to verify: "TYPE I"
    06:20:39:PM - parseline:
    "TYPE I"
    06:20:39:PM - 200 Type set to I
    06:20:39:PM - readlinefromsocket: "sock22"
    06:20:39:PM - echo to verify: "REST 0"
    06:20:39:PM - parseline:
    "REST 0"
    06:20:39:PM - REST: "0"
    06:20:39:PM - 350 Restart okay, awaiting file request.
    06:20:39:PM - resume(s) == "0"
    06:20:39:PM - readlinefromsocket: "sock22"
    06:20:39:PM - echo to verify: "PWD"
    06:20:39:PM - parseline:
    "PWD"
    06:20:39:PM - PWD:
    06:20:39:PM - 257 "/" is current directory.
    06:20:39:PM - readlinefromsocket: "sock22"
    06:20:39:PM - echo to verify: "TYPE A"
    06:20:39:PM - parseline:
    "TYPE A"
    06:20:39:PM - 200 Type set to I
    06:20:39:PM - readlinefromsocket: "sock22"
    06:20:39:PM - echo to verify: "PASV"
    06:20:39:PM - parseline:
    "PASV"
    06:20:39:PM - PASV: closing info(dc) just in case
    06:20:39:PM - catch close info(dc) "can't read "info(dc)": no such element in array"
    06:20:39:PM - closing pdcs just in case
    06:20:39:PM - errval "can't read "pdcs": no such variable"
    06:20:39:PM - attempting to setup callback
    06:20:39:PM - passive data channel "192,168,1,106:3104"
    06:20:39:PM - 227 Entering Passive Mode (192,168,1,106,12,32).
    06:20:39:PM - readlinefromsocket: "sock22"
    06:20:39:PM - echo to verify: "LIST -aL"
    06:20:39:PM - parseline:
    "LIST -aL"
    06:20:39:PM - NLIST: "LIST -aL" ("" == LIST command)
    06:20:39:PM - 150 Opening ASCII mode data connection for file list.
    06:20:39:PM - list_type is "LIST"
    06:20:39:PM - newpdc: open data channel sock24 - connect from "192.168.1.10:1975"
    06:20:39:PM - closing server data socket "sock23" to new connections
    06:20:39:PM - errval ""
    06:20:39:PM - passive data channel info(dc) set to sock24
    bgerror invoked with error
    
     " can't read "info(dc)": no such variable "
    
    re-initializing mfs_ftp
    
    close the current ftp connection and simply open another
    
    "core dump" :p
    
    info(version): 1.2.9p-patchlevel-20070207
    info(tswv): 6.2-01-2-151
    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
    
    
    06:20:39:PM - abortcheck: "bgerror"
    06:20:39:PM - reset_control_socket:
    catch close lastsock val ""
    06:20:39:PM - setup_control_socket:
    06:20:39:PM - "192,168,1,106:3105" ready for connections
    I have a feeling I'm, close. Any ideas what to try next?

    By the way, I'm trying all this because I want to take some recordings off a failing 4.01 drive and push them back to a 6.2 drive.

  12. #1272
    Join Date
    Aug 2004
    Posts
    4,075
    Quote Originally Posted by twostop View Post
    ...

    I have a feeling I'm, close. Any ideas what to try next?

    By the way, I'm trying all this because I want to take some recordings off a failing 4.01 drive and push them back to a 6.2 drive.
    Try this patch from a few posts back. It appears, at first glance, to be the same issue.

    Alternatively, turn off passive mode in your FTP client, unless you need it, e.g., for FXP.

    Time to roll up these pasv mode fixes with the rest of the mfs_ftp patches so only one patch needs to be applied....

  13. #1273
    Join Date
    Dec 2003
    Location
    SF Bay Area
    Posts
    15
    Quote Originally Posted by Jamie View Post
    Try this patch from a few posts back. It appears, at first glance, to be the same issue.
    Wow. Cool. I can't believe with all the searching and time I spent, I missed a patch so close to my own post.

    Anyway, that seemed to work. I also turned off PASSV but I didn't try that before applying the other passv patch, so I'm not sure if that would have done the trick too.

    Anyway, I'm trying to push my first thing to this tivo (which is essentially my "test box" to see if I can get it work.

    Thanks!

  14. #1274
    Join Date
    Dec 2003
    Posts
    13

    Can't transfer files

    I can't transfer any files, I keep getting an error that the file size is not supported, but everything else looks good, then it says "server closed connection" any ideas?



    30:14] TYPE A
    [22:30:14] 200 Type set to I
    [22:30:14] PASV
    [22:30:14] 227 Entering Passive Mode (192,168,1,110,12,32).
    [22:30:14] Opening data connection to 192.168.1.110 Port: 3104
    [22:30:14] LIST -aL
    [22:30:14] 150 Opening ASCII mode data connection for file list.
    [22:30:36] 19770 bytes transferred. (896 bytes/s) (00:00:22)
    [22:30:36] 226 Transfer complete.
    [22:30:36] TYPE I
    [22:30:36] 200 Type set to I
    [22:30:36] PASV
    [22:30:36] 227 Entering Passive Mode (192,168,1,110,12,32).
    [22:30:36] Opening data connection to 192.168.1.110 Port: 3104
    [22:30:36] RETR {Jackie Chan Adventures}{2002-10-19}{When Pigs Fly}{11.30 AM Sat Jul 21, 2007}{TDIS}.tmf
    [22:30:36] 150 About to open data connection.
    [22:30:37] 0 bytes transferred. (0 bytes/s) (359 ms)
    [22:31:07] Resolving host name "192.168.1.110"
    [22:31:07] Connecting to 192.168.1.110 Port: 3105
    [22:31:07] Connected to 192.168.1.110.
    [22:31:07] 220 Mfs_Ftp ver 1.2.9p-patchlevel-20070207 - {sock17} from "192.168.1.100:50342"
    [22:31:07] USER anonymous
    [22:31:07] 331 User name okay, need password.
    [22:31:07] PASS (hidden)
    [22:31:07] 230 Running in TiVo Mode.
    [22:31:07] SYST
    [22:31:07] 215 UNIX
    [22:31:07] Detected Server Type: UNIX
    [22:31:07] FEAT
    [22:31:07] 502 Command not implemented "FEAT"
    [22:31:07] TYPE I
    [22:31:07] 200 Type set to I
    [22:31:07] REST 0
    [22:31:07] 350 Restart okay, awaiting file request.
    [22:31:07] PWD
    [22:31:07] 257 "/" is current directory.
    [22:31:07] CWD /tmf
    [22:31:07] 250 Directory change successful.
    [22:31:07] PWD
    [22:31:07] 257 "/tmf" is current directory.
    [22:31:07] SIZE {Jackie Chan Adventures}{2002-10-19}{When Pigs Fly}{11.30 AM Sat Jul 21, 2007}{TDIS}.tmf
    [22:31:07] 502 Command not implemented "SIZE {Jackie Chan Adventures}{2002-10-19}{When Pigs Fly}{11.30 AM Sat Jul 21, 2007}{TDIS}.tmf"
    [22:31:07] SIZE not supported.
    [22:31:07] MDTM {Jackie Chan Adventures}{2002-10-19}{When Pigs Fly}{11.30 AM Sat Jul 21, 2007}{TDIS}.tmf
    [22:31:07] 502 Command not implemented "MDTM {Jackie Chan Adventures}{2002-10-19}{When Pigs Fly}{11.30 AM Sat Jul 21, 2007}{TDIS}.tmf"
    [22:31:07] Obtaining file information (size/date) from directory listing.
    [22:31:07] TYPE A
    [22:31:07] 200 Type set to I
    [22:31:07] PASV
    [22:31:07] 227 Entering Passive Mode (192,168,1,110,12,32).
    [22:31:07] Opening data connection to 192.168.1.110 Port: 3104
    [22:31:07] LIST -aL
    [22:31:07] 150 Opening ASCII mode data connection for file list.
    [22:31:29] 19770 bytes transferred. (915 bytes/s) (00:00:21)
    [22:31:29] 226 Transfer complete.
    [22:31:29] TYPE I
    [22:31:29] 200 Type set to I
    [22:31:29] PASV
    [22:31:29] 227 Entering Passive Mode (192,168,1,110,12,32).
    [22:31:29] Opening data connection to 192.168.1.110 Port: 3104
    [22:31:29] RETR {Jackie Chan Adventures}{2002-10-19}{When Pigs Fly}{11.30 AM Sat Jul 21, 2007}{TDIS}.tmf
    [22:31:29] 150 About to open data connection.
    [22:31:29] 0 bytes transferred. (0 bytes/s) (312 ms)
    Last edited by needmoretoys; 07-25-2007 at 01:40 AM.

  15. #1275
    Join Date
    Aug 2004
    Posts
    4,075
    SIZE isn't implemented. That's normal.

    You need a server side level 5 debug log. Set info(dbl) to 5 and look for port3105.log in your mfs_ftp directory.

    You might try turning off passive mode, or applying the additional patch discussed right above your post in the thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •