Giter Site home page Giter Site logo

Comments (6)

ADRFranklin avatar ADRFranklin commented on May 28, 2024 1

Ah, perfect it works. I noticed that the different between the configs was the fact the config example had an type: ftp type in it, which seems to be the reason for it?

I know I tried with insecure_skip_verify true already and that made no difference.

from ftpgrab.

crazy-max avatar crazy-max commented on May 28, 2024

@ADRFranklin

FTPGrab version (5.0.0) : ftpgrab/ftpgrab:latest (5.0)

Please use latest stable release: 6.4.0

Remote FTP (Pure-FTPd) or SFTP (OpenSSH) server: Pure-FTPd

Which version of Pure-FTPd? Can you give me server logs?

{"level":"fatal","error":"dial tcp: i/o timeout","time":"2020-06-17T14:34:22+01:00","message":"Cannot connect to server"}

Looks like the container cannot reach your FTP server at xxx:10105
What's the output of ftp xxx 10105?

from ftpgrab.

ADRFranklin avatar ADRFranklin commented on May 28, 2024

@crazy-max I did mention, that I was able to connect to the ftp server using ftp <hostname> <port> just fine.

root@remote-02:~/mount# ftp xxx 10105
Connected to xxx.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 14:43. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 15 minutes of inactivity.

After login
...
230-This server supports FXP transfers
230 OK. Current directory is /
Remote system type is UNIX.
Using binary mode to transfer files.

I have tried changing the options, like enabling TLS, and not checking for certs too, just to try every option

EDIT: I am using the very latest container as of day, sorry I thought it was 5.0, I must have seen it somewhere.

I don't have access to the ftp server itself unfortunately, or any useful logs.

from ftpgrab.

crazy-max avatar crazy-max commented on May 28, 2024

@ADRFranklin Looking at those logs, your local port is 21. Is it a Pure-FTPd standalone server or a container binded to 10105? Also it looks like you're using explicit SSL on your server. Can you try this config:

server:
  ftp:
    host: xxx
    port: 10105
    username: ********
    password: ********
    sources:
      - /
    timeout: 5
    disable_epsv: false
    tls: false
    insecure_skip_verify: true
    log_trace: true

And give me log output please and also Pure-FTPd server version? Thanks

from ftpgrab.

ADRFranklin avatar ADRFranklin commented on May 28, 2024

Errors from ftpgrab

Wed, 17 Jun 2020 16:02:35 BST INF Starting FTPGrab 6.4.0


Wed, 17 Jun 2020 16:02:35 BST FTL Cannot load configuration error="unable to decode into struct, yaml: unmarshal errors:\n  line 9: cannot unmarshal !!int `5` into time.Duration"

Config:

server:
  ftp:
    host: xxx
    port: 10105
    username: xxx
    password: xxx
    sources:
      - /
    timeout: 5
    disable_epsv: false
    tls: false
    insecure_skip_verify: true
    log_trace: true

Docker:

  ftpgrab:
    image: ftpgrab/ftpgrab:6.4.0.
    container_name: ftpgrab
    volumes:
      - "${DATA_DIR:?required}/ftpgrab/db:/db:rw"
      - "${TORRENT_DIR}:/download:rw"
      - "${DATA_DIR:?required}/ftpgrab/ftpgrab.yml:/ftpgrab.yml:ro"
    environment:
      - "TZ=Europe/London"
      - "SCHEDULE=*/30 * * * *"
      - "LOG_LEVEL=debug"
      - "LOG_JSON=false"
    restart: always    

PureFTP Version: 1.0.43-1

from ftpgrab.

crazy-max avatar crazy-max commented on May 28, 2024

@ADRFranklin Replace timeout: 5 with timeout: 5s

from ftpgrab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.