Hello,
i am using G6 3.10 and using Domain Events OnFileUploaded and OnFileUploadedFailed.
Under XP in File explorer i connected to the ftp site and copyed a large file. in teh middle of transfer i had interruped the tarnsfer tocheck waht will happen. The file was not transferd, but the Event OnFileUploaded was generated. If one of these Events occurs i send a mail (but it is not correct on abort).
Any idea why this Event is fired?
Is There also an event OnFileUploadedAbort is available?
The idea is to help customers who had problems in transfering files.
Best Regards
Christian
Page 1 of 1
OnFileUpload / OnFileUploadFailed fired wrong Event OnFileUpload also is generated on abort
#1
Posted 28 July 2008 - 11:30 PM
Best regards
Christian
EULANDA Software GmbH
Se volgi il tuo volto al sole, le ombre scivolano dietro di te
EULANDA ERP Solutions www.eulanda.it
Christian
EULANDA Software GmbH
Se volgi il tuo volto al sole, le ombre scivolano dietro di te
EULANDA ERP Solutions www.eulanda.it
#2
Posted 29 July 2008 - 01:18 PM
In FTP there is unfortunately no 100% way to be sure the file is correctly uploaded unless using some kind of crc check after a file upload. An abort can be considered as a simple end of file by the server if the client does not use the abort command.
Errors are the best teachers.
#3
Posted 29 July 2008 - 02:42 PM
Hello,
ok understand. But in this case perhaps G6 can check if the file is existing and if not then not fire an event. in this case some of these events which are false are handled ok. perhaps an idea for an update. I know with a script i can check the file if existing and then make nothing, but it is only a workaround. thank you.
ok understand. But in this case perhaps G6 can check if the file is existing and if not then not fire an event. in this case some of these events which are false are handled ok. perhaps an idea for an update. I know with a script i can check the file if existing and then make nothing, but it is only a workaround. thank you.
Best regards
Christian
EULANDA Software GmbH
Se volgi il tuo volto al sole, le ombre scivolano dietro di te
EULANDA ERP Solutions www.eulanda.it
Christian
EULANDA Software GmbH
Se volgi il tuo volto al sole, le ombre scivolano dietro di te
EULANDA ERP Solutions www.eulanda.it
#4
Posted 29 July 2008 - 02:52 PM
Even if you abort the transfer, the part that was uploaded stays on the server, even if only half of the file, that's why the event is launched (unlike in explorer when you abort a transfer it does not leave it half copied).
This allows later resume of the file which is often done for very large file with an unstable connection for example so you don't have to restart from zero the transfer.
This allows later resume of the file which is often done for very large file with an unstable connection for example so you don't have to restart from zero the transfer.
This post has been edited by Nabla: 29 July 2008 - 02:53 PM
Errors are the best teachers.
#5
Posted 29 July 2008 - 03:19 PM
i understand, but i dont know why, but the directory was empty. i had used Windows File Explorer for transfering the file. Perhaps he has deleted the file when i had pressed the abort button. or i have samoe mistakes in the configuration. I had used put delete files in the basket. Perhaps it is not a good choice for those things.
When somesting to change, let me know.
thank you
When somesting to change, let me know.
thank you
Best regards
Christian
EULANDA Software GmbH
Se volgi il tuo volto al sole, le ombre scivolano dietro di te
EULANDA ERP Solutions www.eulanda.it
Christian
EULANDA Software GmbH
Se volgi il tuo volto al sole, le ombre scivolano dietro di te
EULANDA ERP Solutions www.eulanda.it
#6
Posted 29 July 2008 - 03:21 PM
Server logs should tell you what happen with IE concerning commands and replies.
Errors are the best teachers.
#7
Posted 30 July 2008 - 10:27 AM
Yes, you are right, it is not an easy task to detect for the server.
In this case an abort from Windows File Explorer, used as an ftp client, the system makes an disconnect. Then relogsin and deletes the file.
This happens on download and abort
This happens directly ater disconnect. Relogsin and deletes the file.
so my event has no chance to fire correct in that case. In this case i can also not try to look in the batch if the file is there, because in that moment it is really there. I need an deleay option or something else, to wait until the windows file eplorer has finished his task. now it would be nice if the Event could have on option under Domain/Events to wait some seconds. do you know if the batch is stoping the server ntil btch finished his work, or can i insert a simple dos waint command in my batch?
By the way thank you for your help.
In this case an abort from Windows File Explorer, used as an ftp client, the system makes an disconnect. Then relogsin and deletes the file.
This happens on download and abort
CODE
08/07/30 11:11:52, 102, 77.25.131.101, chris, STOR TrueImageServer9.1UniversalRestore_s_de.exe
08/07/30 11:11:52, 102, 77.25.131.101, chris, asked to upload '/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe' -> 'E:\Eulanda\Internal\Tools\Acronis\TrueImageServer9.1UniversalRestore_s_de.exe' resuming at 0 --> Access allowed.
08/07/30 11:11:52, 102, 77.25.131.101, chris, 150 Data connection accepted from 77.25.131.101:61107; transfer starting for /Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe
08/07/30 11:13:22, 102, 77.25.131.101, chris, finished uploading '/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe' -> 'E:\Eulanda\Internal\Tools\Acronis\TrueImageServer9.1UniversalRestore_s_de.exe' from 0 to 3493888 (00:01:25 - 40,141 KBytes/s).
08/07/30 11:13:22, 102, 77.25.131.101, chris, Event OnFileUploaded: Executing '"C:\Programme\Gene6 FTP Server\Accounts\eulanda\events\OnFileUpload.bat" 77.25.131.101 "chris" "ftp://ftp.eulanda.de/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe" "E:\Eulanda\Internal\Tools\Acronis\TrueImageServer9.1UniversalRestore_s_de.exe" 30.07.2008 11:13:22"' --> Ok.
08/07/30 11:13:22, 102, 77.25.131.101, chris, 226 File received ok.
08/07/30 11:13:22, 102, 77.25.131.101, chris, disconnected. (00d00:01:47)
08/07/30 11:11:52, 102, 77.25.131.101, chris, asked to upload '/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe' -> 'E:\Eulanda\Internal\Tools\Acronis\TrueImageServer9.1UniversalRestore_s_de.exe' resuming at 0 --> Access allowed.
08/07/30 11:11:52, 102, 77.25.131.101, chris, 150 Data connection accepted from 77.25.131.101:61107; transfer starting for /Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe
08/07/30 11:13:22, 102, 77.25.131.101, chris, finished uploading '/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe' -> 'E:\Eulanda\Internal\Tools\Acronis\TrueImageServer9.1UniversalRestore_s_de.exe' from 0 to 3493888 (00:01:25 - 40,141 KBytes/s).
08/07/30 11:13:22, 102, 77.25.131.101, chris, Event OnFileUploaded: Executing '"C:\Programme\Gene6 FTP Server\Accounts\eulanda\events\OnFileUpload.bat" 77.25.131.101 "chris" "ftp://ftp.eulanda.de/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe" "E:\Eulanda\Internal\Tools\Acronis\TrueImageServer9.1UniversalRestore_s_de.exe" 30.07.2008 11:13:22"' --> Ok.
08/07/30 11:13:22, 102, 77.25.131.101, chris, 226 File received ok.
08/07/30 11:13:22, 102, 77.25.131.101, chris, disconnected. (00d00:01:47)
This happens directly ater disconnect. Relogsin and deletes the file.
CODE
08/07/30 11:13:22, 103, 77.25.131.101, , new connection from 77.25.131.101 on 192.168.42.88:21 (Explicit SSL)
08/07/30 11:13:22, 103, 77.25.131.101, , hostname resolved : ip-77-25-131-101.web.vodafone.de
08/07/30 11:13:22, 103, 77.25.131.101, , sending welcome message.
08/07/30 11:13:22, 103, 77.25.131.101, , 220 Gene6 FTP Server v3.10.0 (Build 2) ready...
08/07/30 11:13:22, 103, 77.25.131.101, , USER chris
08/07/30 11:13:22, 103, 77.25.131.101, chris, 331 Password required for chris.
08/07/30 11:13:22, 103, 77.25.131.101, chris, PASS ****
08/07/30 11:13:22, 103, 77.25.131.101, chris, logged in as "Chris".
08/07/30 11:13:22, 103, 77.25.131.101, chris, 230-
08/07/30 11:13:22, 103, 77.25.131.101, chris, ×————————————————————=[ Willkommen / Welcome / Benvenuto ]=————————————————————×
08/07/30 11:13:22, 103, 77.25.131.101, chris, 230 User chris logged in.
08/07/30 11:13:22, 103, 77.25.131.101, chris, opts utf8 on
08/07/30 11:13:22, 103, 77.25.131.101, chris, 501 Please CLNT first.
08/07/30 11:13:23, 103, 77.25.131.101, chris, PWD
08/07/30 11:13:23, 103, 77.25.131.101, chris, 257 "/" is current directory.
08/07/30 11:13:23, 103, 77.25.131.101, chris, CWD /Internal/Tools/Acronis/
08/07/30 11:13:23, 103, 77.25.131.101, chris, change directory '/Internal/Tools/Acronis' -> 'E:\Eulanda\Internal\Tools\Acronis' --> Access allowed.
08/07/30 11:13:23, 103, 77.25.131.101, chris, 250 CWD command successful. "/Internal/Tools/Acronis" is current directory.
08/07/30 11:13:23, 103, 77.25.131.101, chris, DELE TrueImageServer9.1UniversalRestore_s_de.exe
08/07/30 11:13:23, 103, 77.25.131.101, chris, delete file '/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe' -> 'E:\Eulanda\Internal\Tools\Acronis\TrueImageServer9.1UniversalRestore_s_de.exe' --> File deleted.
08/07/30 11:13:23, 103, 77.25.131.101, chris, 250 File "/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe" deleted.
08/07/30 11:13:26, 103, 77.25.131.101, chris, noop
08/07/30 11:13:26, 103, 77.25.131.101, chris, 200 NOOP command successful.
08/07/30 11:13:26, 103, 77.25.131.101, chris, CWD /Internal/Tools/Acronis/
08/07/30 11:13:26, 103, 77.25.131.101, chris, change directory '/Internal/Tools/Acronis' -> 'E:\Eulanda\Internal\Tools\Acronis' --> Access allowed.
08/07/30 11:13:26, 103, 77.25.131.101, chris, 250 CWD command successful. "/Internal/Tools/Acronis" is current directory.
08/07/30 11:13:22, 103, 77.25.131.101, , hostname resolved : ip-77-25-131-101.web.vodafone.de
08/07/30 11:13:22, 103, 77.25.131.101, , sending welcome message.
08/07/30 11:13:22, 103, 77.25.131.101, , 220 Gene6 FTP Server v3.10.0 (Build 2) ready...
08/07/30 11:13:22, 103, 77.25.131.101, , USER chris
08/07/30 11:13:22, 103, 77.25.131.101, chris, 331 Password required for chris.
08/07/30 11:13:22, 103, 77.25.131.101, chris, PASS ****
08/07/30 11:13:22, 103, 77.25.131.101, chris, logged in as "Chris".
08/07/30 11:13:22, 103, 77.25.131.101, chris, 230-
08/07/30 11:13:22, 103, 77.25.131.101, chris, ×————————————————————=[ Willkommen / Welcome / Benvenuto ]=————————————————————×
08/07/30 11:13:22, 103, 77.25.131.101, chris, 230 User chris logged in.
08/07/30 11:13:22, 103, 77.25.131.101, chris, opts utf8 on
08/07/30 11:13:22, 103, 77.25.131.101, chris, 501 Please CLNT first.
08/07/30 11:13:23, 103, 77.25.131.101, chris, PWD
08/07/30 11:13:23, 103, 77.25.131.101, chris, 257 "/" is current directory.
08/07/30 11:13:23, 103, 77.25.131.101, chris, CWD /Internal/Tools/Acronis/
08/07/30 11:13:23, 103, 77.25.131.101, chris, change directory '/Internal/Tools/Acronis' -> 'E:\Eulanda\Internal\Tools\Acronis' --> Access allowed.
08/07/30 11:13:23, 103, 77.25.131.101, chris, 250 CWD command successful. "/Internal/Tools/Acronis" is current directory.
08/07/30 11:13:23, 103, 77.25.131.101, chris, DELE TrueImageServer9.1UniversalRestore_s_de.exe
08/07/30 11:13:23, 103, 77.25.131.101, chris, delete file '/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe' -> 'E:\Eulanda\Internal\Tools\Acronis\TrueImageServer9.1UniversalRestore_s_de.exe' --> File deleted.
08/07/30 11:13:23, 103, 77.25.131.101, chris, 250 File "/Internal/Tools/Acronis/TrueImageServer9.1UniversalRestore_s_de.exe" deleted.
08/07/30 11:13:26, 103, 77.25.131.101, chris, noop
08/07/30 11:13:26, 103, 77.25.131.101, chris, 200 NOOP command successful.
08/07/30 11:13:26, 103, 77.25.131.101, chris, CWD /Internal/Tools/Acronis/
08/07/30 11:13:26, 103, 77.25.131.101, chris, change directory '/Internal/Tools/Acronis' -> 'E:\Eulanda\Internal\Tools\Acronis' --> Access allowed.
08/07/30 11:13:26, 103, 77.25.131.101, chris, 250 CWD command successful. "/Internal/Tools/Acronis" is current directory.
so my event has no chance to fire correct in that case. In this case i can also not try to look in the batch if the file is there, because in that moment it is really there. I need an deleay option or something else, to wait until the windows file eplorer has finished his task. now it would be nice if the Event could have on option under Domain/Events to wait some seconds. do you know if the batch is stoping the server ntil btch finished his work, or can i insert a simple dos waint command in my batch?
By the way thank you for your help.
Best regards
Christian
EULANDA Software GmbH
Se volgi il tuo volto al sole, le ombre scivolano dietro di te
EULANDA ERP Solutions www.eulanda.it
Christian
EULANDA Software GmbH
Se volgi il tuo volto al sole, le ombre scivolano dietro di te
EULANDA ERP Solutions www.eulanda.it
#8
Posted 01 August 2008 - 08:34 AM
I'd try a simple wait, I think it is launched asynchroneously (server continues working and does not wait batch return).
Errors are the best teachers.
Share this topic:
Page 1 of 1

Help










