Logic Machine Forum
Export object log to ftp failed - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Export object log to ftp failed (/showthread.php?tid=2000)



Export object log to ftp failed - Kai-Roger - 01.04.2019

Hi.

I have set up an FTP server. When i add the ftp location as a network share in windows, i can write/read files to the location.
When i use the first example from openrb export from the following link, i get "Alert message" from LM with the text "FTP upload error: 553 Users may not upload files".

http://openrb.com/example-export-last-hour-csv-object-log-file-to-external-ftp-server-from-lm2/?fbclid=IwAR22cEHLeYvJzX2LGTI7puTyRNueBx1lAoC9b_oZADAMWLaX601Hpp1xYb8


Here is how i wrote the line with username, password and ftp adressess:

ftpfile = string.format('ftp://username:password@192.168.1.10/LM5_object_logs/%s.csv', os.date('%Y-%m-%d_%H-%M'))

Is this correct? 


BR
Kai-Roger


RE: Export object log to ftp failed - admin - 03.04.2019

Do you have access to FTP server logs? This might provide some more info if whole FTP protocol exchange is logged. As for connection string try removing ftp. from the beginning.


RE: Export object log to ftp failed - Kai-Roger - 03.04.2019

(03.04.2019, 07:34)admin Wrote: Do you have access to FTP server logs? This might provide some more info if whole FTP protocol exchange is logged. As for connection string try removing ftp. from the beginning.

There's no log on the NAS station for ftp.

I can copy the line ftp.username:password@192.168.1.10/LM5_object_logs/ and paste it in an internett browser without problems. Altso works on windows explorer with read/write permission.

Removing ftp. don't work.

The only setting i can change on the NAS station is the port number for ftp. nr. 21