I have copied the sample yml files and get numerous errors when trying to use them. I'm assuming I must be doing something wrong here.
if I delete the space before the number on line 5 it will run until it hits another space... then I get other weird errors. I'm using notepad++ to create and edit the yml
Tue, 04 Jun 2019 16:29:16 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 16:29:16 UTC FTL Cannot load configuration error="unable to open config file, lstat ftpgrab.yml: no such file or directory"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 16:29:39 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 16:29:39 UTC FTL Cannot load configuration error="unable to open config file, lstat ./ftpgrab.yml: no such file or directory"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 16:30:44 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 16:30:44 UTC FTL Improper configuration error="FTP host is required"
fake@fake:~$ ftpgrab --config ftpgrab.yml
-bash: ftpgrab: command not found
fake@fake:~$ ./ftpgrab --config ftpgrab.yml
Tue, 04 Jun 2019 16:31:05 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 16:31:05 UTC FTL Improper configuration error="FTP host is required"
fake@fake:~$ ./ftpgrab --help
usage: ftpgrab --config=CONFIG [<flags>]
Grab your files periodically from a remote FTP or SFTP server easily. More info
on https://ftpgrab.github.io
Flags:
--help Show context-sensitive help (also try --help-long and
--help-man).
--config=CONFIG FTPGrab configuration file.
--schedule=SCHEDULE CRON expression format.
--timezone="UTC" Timezone assigned to FTPGrab.
--log-level="info" Set log level.
--log-json Enable JSON logging output.
--log-file=LOG-FILE Add logging to a specific file.
--docker Enable Docker mode.
--version Show application version.
fake@fake:~$ ./ftpgrab --config=config
Tue, 04 Jun 2019 16:31:49 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 16:31:49 UTC FTL Cannot load configuration error="unable to open config file, lstat config: no such file or directory"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 16:32:08 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 16:32:08 UTC FTL Improper configuration error="FTP host is required"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:15:15 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:15:15 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config
ftpgrab: error: expected argument for flag '--config', try --help
fake@fake:~$ ./ftpgrab --config --help
ftpgrab: error: expected argument for flag '--config', try --help
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
[sudo] password for sboob:
Tue, 04 Jun 2019 17:15:58 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:15:58 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config
ftpgrab: error: expected argument for flag '--config', try --help
fake@fake:~$ ./ftpgrab --config ftpgrab.yml
Tue, 04 Jun 2019 17:16:35 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:16:36 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:17:17 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:17:17 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:17:39 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:17:39 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:17:55 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:17:55 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:17:57 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:17:57 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:18:17 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:18:17 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 8: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:18:38 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:18:38 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 8: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:18:50 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:18:50 UTC FTL Improper configuration error="FTP host is required"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:20:25 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:20:25 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:20:38 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:20:38 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 10: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:21:45 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:21:45 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:22:03 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:22:06 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:22:26 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:22:26 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:22:47 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:22:48 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:23:12 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:23:12 UTC FTL Improper configuration error="FTP host is required"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:23:39 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:23:39 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 5: mapping values are not allowed in this context"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:23:49 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:23:49 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 10: mapping values are not allowed in this context"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:23:56 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:23:57 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 11: mapping values are not allowed in this context"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:24:06 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:24:06 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:31:53 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:31:53 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 8: mapping values are not allowed in this context"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:40:14 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:40:14 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 10: mapping values are not allowed in this context"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:40:27 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:40:27 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 11: mapping values are not allowed in this context"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:40:35 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:40:35 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:40:49 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:40:49 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 15: did not find expected key"
fake@fake:~$ sudo ./ftpgrab --config ./ftpgrab.yml
Tue, 04 Jun 2019 17:41:03 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:41:03 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 15: did not find expected key"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:41:26 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:41:26 UTC FTL Improper configuration error="FTP host is required"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:41:33 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:41:35 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:41:40 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:41:40 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:43:02 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:43:02 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:43:23 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:43:23 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:43:34 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:43:34 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:45:20 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:45:20 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 8: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:45:35 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:45:35 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 8: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:45:45 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:45:45 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 12: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:45:54 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:45:55 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: line 13: mapping values are not allowed in this context"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:46:08 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:46:08 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: unmarshal errors:\n line 4: cannot unmarshal !!str `host:88...` into model.FTP"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:46:36 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:46:36 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: unmarshal errors:\n line 4: cannot unmarshal !!str `host:ft...` into model.FTP"
fake@fake:~$ ./ftpgrab --config=ftpgrab.yml
Tue, 04 Jun 2019 17:46:57 UTC INF Starting FTPGrab 5.3.0
Tue, 04 Jun 2019 17:46:57 UTC FTL Cannot load configuration error="unable to decode into struct, yaml: unmarshal errors:\n line 4: cannot unmarshal !!str `host:/8...` into model.FTP"
#at this point it almost seems to be ready to work but can't figure out that I put an IP there?