• Issue with vsftpd and camcorder on Pi4B

    From None@none@none.none to comp.sys.raspberry-pi on Sun Jul 20 13:16:36 2025
    From Newsgroup: comp.sys.raspberry-pi

    I'm using-or more accurately trying to use-a Pi4B as an FTP server to eventually remotely transfer clips from an internet-capable camcorder (a
    Canon XF605 if that's important). Anyway I managed to get it all
    working briefly until a few months back. Now when I try transferring
    from the camera to the server the camera tells me it received an error
    code from the server.

    I'm afraid Canon doesn't help much when it comes to diagnosing what the
    issue the server has with the camera is, but when I go to vsftpd's log
    it seems the camera is trying (and failing) to create a subdirectory in
    my home directory instead of doing what it used to-just write to the
    directory I told it to in its settings. That directory, by the way is a USB-connected hard drive mounted in the /media directory. I have no
    problem connecting to the server and accessing the drive using the
    FileZilla client on my laptop, which leads me to believe the camera's
    FTP client got hosed up somehow with the last firmware update from
    Canon, whici is when I think this started.

    Frankly, that wouldn't suprise me since that client wasn't worth much to
    start with-it doesn't support SFTP, for instance, despite its being
    supposed to-which is why I had to install vsftpd instead of relying on
    the Pi's built-in SFTP/SSH support. Anyway, I thought I'd run this by
    the group to see if anyone had any ideas as to whether anything could
    possibly be done on the Pi or in vsftpd that would help. If not, it'll
    be another round of me vs. Canon. Thanks in advance for any suggestions.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Lars Poulsen@lars@cleo.beagle-ears.com to comp.sys.raspberry-pi on Sun Jul 20 20:16:08 2025
    From Newsgroup: comp.sys.raspberry-pi

    On 2025-07-20, None <none@none.none> wrote:
    when I try transferring
    from the camera to the server the camera tells me it received an error
    code from the server.

    when I go to vsftpd's log
    it seems the camera is trying (and failing) to create a subdirectory in
    my home directory instead of doing what it used to-just write to the directory I told it to in its settings. That directory, by the way is a USB-connected hard drive mounted in the /media directory.

    Thanks in advance for any suggestions.

    cd ~
    ln -s /media/my_hd/cam_files ~/whateverCanonWants

    - Lars Poulsen
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Theo@theom+news@chiark.greenend.org.uk to comp.sys.raspberry-pi on Sun Jul 20 22:31:33 2025
    From Newsgroup: comp.sys.raspberry-pi

    Lars Poulsen <lars@cleo.beagle-ears.com> wrote:
    On 2025-07-20, None <none@none.none> wrote:
    when I try transferring
    from the camera to the server the camera tells me it received an error code from the server.

    when I go to vsftpd's log
    it seems the camera is trying (and failing) to create a subdirectory in
    my home directory instead of doing what it used to-just write to the directory I told it to in its settings. That directory, by the way is a USB-connected hard drive mounted in the /media directory.

    Thanks in advance for any suggestions.

    cd ~
    ln -s /media/my_hd/cam_files ~/whateverCanonWants

    Or add
    local_root=/media/my_hd/cam_files

    to /etc/vsftpd.conf

    which makes / in the FTP server be that path.
    (maybe also anon_root if the camera uses anonymous mode, which I doubt)

    Theo
    --- Synchronet 3.21a-Linux NewsLink 1.2