Page 2 of 2

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Thu Jun 16, 2022 4:47 pm
by robermirza0
I was trying making some changes on the path of the argument and source files.
With the last one that i proved, it throws me an exception like i told you on my last answer.

But i checked the log in the other server like you told me to do and i saw that the file was upload.

My question is, why is it throwing and exception if it is working?

Regards

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Fri Jun 17, 2022 12:59 am
by FTP
If you can upload files successfully, then please ignore this error message. You can check out the source code "socket/ftp.lua", line 39.

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Fri Jun 17, 2022 6:51 am
by robermirza0
Hi,

Now the problem it's that from the console i run the script and it seems to work but if i put the same script
on a Task on the Task Scheduler it returns this:

Failed to execute lua script of system task scheduler 'prueba'.

What could be the problem?

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Fri Jun 17, 2022 3:03 pm
by FTP
Maybe you can edit the file "socket/ftp.lua", try to remove the line 41: exit()

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Mon Jun 20, 2022 7:42 am
by robermirz0
Seems that it's working correctly.

Thank you.

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Mon Jun 20, 2022 9:52 am
by robermirz0
Hi,

I'm having some issues with the "SOCKET" folder that is on the working directory.
It's stopping the WING FTP service. I tried to change the name of the folder just to see what happens and after that the service didnt stop so my conclusion it's that there's any problem with that folder.

What do you think about that? Maybe the issues came when i removed the line 41 from the ftp.lua

Thank you.

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Tue Jun 21, 2022 4:54 am
by FTP
If you are using Windows 2019+, maybe you can use "curl" instead:

os.execute('curl ftp://YourServerIP/ -u ^"Username:Password^" -T ^"%PathName^" ')

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Fri Oct 14, 2022 9:58 am
by TeamBas
We have the same problem with version 7.1.1/Windows Server 2019 since we updated the Core.dll stop the WingFTP service.

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Mon Oct 17, 2022 9:24 am
by ukirschi
We have the same problem here. I downloaded the new core.dll from the same link that was mentioned here before. On the administration console, the new socket module was called without problems.

In production however, WingFTP started to crash. Seems, that there are problem with the newly provided core.dll.
Any solutions?

Re: 11 Failed to execute lua script of event OnFileUploaded

Posted: Mon Oct 17, 2022 2:51 pm
by FTP
The new version of core.dll is a 64-bit app, and it requires WingFTP v7.0.1+.

If you still have crash issue when using core.dll, I suggest you use "curl" instead, because it supports more protocols like FTP/FTPS/SFTP. And you can call the program "curl" like this:

os.execute('curl ftp://YourServerIP/ -u ^"Username:Password^" -T ^"%PathName^" ')