Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23

Thread: How do I get mget to work on mfs_ftp ?

  1. #16
    Join Date
    Feb 2007
    Posts
    70
    nevermind, I got it.

    Ok, here is the level 5 debug output:



    10:36:50:AM - readlinefromsocket: "sock24"
    10:36:50:AM - echo to verify: "TYPE I"
    10:36:50:AM - parseline:
    "TYPE I"
    10:36:50:AM - 200 Type set to I
    10:40:01:AM - readlinefromsocket: "sock24"
    10:40:01:AM - echo to verify: "TYPE A"
    10:40:01:AM - parseline:
    "TYPE A"
    10:40:01:AM - 200 Type set to I
    10:40:01:AM - readlinefromsocket: "sock24"
    10:40:01:AM - echo to verify: "EPSV"
    10:40:01:AM - parseline:
    "EPSV"
    10:40:01:AM - 502 Command not implemented "EPSV"
    10:40:01:AM - readlinefromsocket: "sock24"
    10:40:01:AM - echo to verify: "PASV"
    10:40:01:AM - parseline:
    "PASV"
    10:40:01:AM - PASV: closing info(dc) just in case
    10:40:01:AM - catch close info(dc) "can't read "info(dc)": no such element in array"
    10:40:01:AM - closing pdcs just in case
    10:40:01:AM - errval "can't read "pdcs": no such variable"
    10:40:01:AM - attempting to setup callback
    10:40:01:AM - passive data channel "192,168,0,11:3104"
    10:40:01:AM - 227 Entering Passive Mode (192,168,0,11,12,32).
    10:40:02:AM - newpdc: open data channel sock26 - connect from "192.168.0.10:49788"
    10:40:02:AM - closing server data socket "sock25" to new connections
    10:40:02:AM - errval ""
    10:40:02:AM - passive data channel info(dc) set to sock26
    10:40:02:AM - readlinefromsocket: "sock24"
    10:40:02:AM - echo to verify: "NLST *"
    10:40:02:AM - parseline:
    "NLST *"
    10:40:02:AM - NLIST: "NLST *" ("" == LIST command)
    10:40:02:AM - 150 Opening ASCII mode data connection for file list.
    10:40:02:AM - list_type is "NLST"
    10:40:02:AM - update_rec_fsids: forced 1
    10:40:04:AM - updating cached recording info
    ...................................................................

    10:40:05:AM - build_rec_filenames:
    ...................................................................

    bgerror invoked with error

    " couldn't compile regular expression pattern: quantifier operand invalid "

    errorInfo:
    couldn't compile regular expression pattern: quantifier operand invalid
    while executing
    "regexp -nocase $matchstr $info($fsid,rec_filename)"
    (procedure "NLST" line 19)
    invoked from within
    "NLST $line $fsock "
    ("NLST" arm line 1)
    invoked from within
    "switch $cmd {
    USER { USER $fsock $line }
    PASS { PASS $fsock $line }
    CWD { CWD $args $fsock }
    CDUP { CDUP $fsock }
    DELE { DELE $fsock $line..."
    (procedure "parseline" line 6)
    invoked from within
    "parseline $line $sock "
    (procedure "readlinefromsocket" line 10)
    invoked from within
    "readlinefromsocket sock24"

    re-initializing mfs_ftp

    close the current ftp connection and simply open another

    "core dump"

    info(version): 1.2.9p-patchlevel-20080512
    info(tswv): 9.4-01-2-648
    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


    10:40:05:AM - abortcheck: "bgerror"
    10:40:05:AM - reset_control_socket:
    catch close lastsock val ""
    10:40:05:AM - setup_control_socket:
    10:40:05:AM - "192,168,0,11:3105" ready for connections


    So that's that. Any good info there ?

  2. #17
    Join Date
    Mar 2005
    Posts
    54
    Quote Originally Posted by tiver View Post
    ...Unfortunately, you can't "mount -uw /" on linux like you can on FreeBSD to change a read-only filesystem to read-write on the fly.
    mount -o remount,rw /
    mount -o remount,ro / To return back to a RO root

    Quote Originally Posted by tiver View Post
    ...
    I am thinking of killing mfs_ftp and restarting it on the command line with an alternate config file that I create in /var ... any tips on how to do this ?

    killall mfs_ftp...
    Easier to reboot system?

  3. #18
    Join Date
    Mar 2005
    Posts
    54
    1) Is this a TivoHD?
    1a) If so, are you using the 64bit mfs utils?
    2) Disable PASV
    3) Try using a different FTP client... I was using SecureFX and couldn't get anything working... using a different client now and it works like a charm. [Filezilla set to *1* connection]

  4. #19
    Join Date
    May 2004
    Posts
    253
    ..........
    Last edited by mike_s; 11-03-2008 at 08:34 PM. Reason: deleted

  5. #20
    Join Date
    Feb 2007
    Posts
    70
    Quote Originally Posted by phdeez View Post
    1) Is this a TivoHD?
    1a) If so, are you using the 64bit mfs utils?
    2) Disable PASV
    3) Try using a different FTP client... I was using SecureFX and couldn't get anything working... using a different client now and it works like a charm. [Filezilla set to *1* connection]
    This is an s3 tivo.

    The problem persists even if I disable PASV. That was the first thing I tried, of course

    The ftp client I am using is:

    /usr/bin/ftp

    The standard FreeBSD userland ftp client. There is nothing more stock or standard than this.


    # file mfs_streams
    bash: file: command not found


    How would you check the binaries for 32 vs. 64-bit ? I don't seem to have the 'file' command (!)

    Thanks.

  6. #21
    Join Date
    Aug 2004
    Posts
    4,075
    I tracked this down. If you want to use the NLST ftp command with a pattern, it has to be a legal TCL regular expression. For example, ".*' rather than just a bare "*". In other words, NLST is expecting a regular expression, not a glob pattern. Here's a reference on tcl regular expressions: link.

    I'm sure it is possible to rewrite mfs_ftp.tcl to fix this. I'm not feeling terribly inspired to do it myself. If someone else wants to do it, I'd look at using string match instead of regexp.

  7. #22
    Join Date
    Feb 2007
    Posts
    70
    Thank you very much - I ran:

    ftp> mget .*

    and it worked perfectly. I am not requesting that this be "fixed" - as long as I can mget in my CLI ftp program, I am happy.

    Thanks again.

  8. #23
    Join Date
    Dec 2001
    Posts
    603
    Sure you can

    Use the /remount switch

Posting Permissions

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