11 Failed to execute lua script of event OnFileUploaded

Please post here if you have problems in using Wing FTP Server.
robermirza0
Posts: 6
Joined: Thu Jun 16, 2022 2:46 pm

Re: 11 Failed to execute lua script of event OnFileUploaded

Post 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
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: 11 Failed to execute lua script of event OnFileUploaded

Post 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.
robermirza0
Posts: 6
Joined: Thu Jun 16, 2022 2:46 pm

Re: 11 Failed to execute lua script of event OnFileUploaded

Post 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?
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: 11 Failed to execute lua script of event OnFileUploaded

Post by FTP »

Maybe you can edit the file "socket/ftp.lua", try to remove the line 41: exit()
robermirz0
Posts: 2
Joined: Mon Jun 20, 2022 7:41 am

Re: 11 Failed to execute lua script of event OnFileUploaded

Post by robermirz0 »

Seems that it's working correctly.

Thank you.
robermirz0
Posts: 2
Joined: Mon Jun 20, 2022 7:41 am

Re: 11 Failed to execute lua script of event OnFileUploaded

Post 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.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: 11 Failed to execute lua script of event OnFileUploaded

Post by FTP »

If you are using Windows 2019+, maybe you can use "curl" instead:

os.execute('curl ftp://YourServerIP/ -u ^"Username:Password^" -T ^"%PathName^" ')
TeamBas
Posts: 12
Joined: Wed Sep 15, 2021 8:59 am

Re: 11 Failed to execute lua script of event OnFileUploaded

Post 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.
ukirschi
Posts: 1
Joined: Mon Oct 17, 2022 9:21 am

Re: 11 Failed to execute lua script of event OnFileUploaded

Post 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?
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: 11 Failed to execute lua script of event OnFileUploaded

Post 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^" ')
Post Reply