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
11 Failed to execute lua script of event OnFileUploaded
-
- Posts: 6
- Joined: Thu Jun 16, 2022 2:46 pm
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: 11 Failed to execute lua script of event OnFileUploaded
If you can upload files successfully, then please ignore this error message. You can check out the source code "socket/ftp.lua", line 39.
-
- Posts: 6
- Joined: Thu Jun 16, 2022 2:46 pm
Re: 11 Failed to execute lua script of event OnFileUploaded
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?
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?
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: 11 Failed to execute lua script of event OnFileUploaded
Maybe you can edit the file "socket/ftp.lua", try to remove the line 41: exit()
-
- Posts: 2
- Joined: Mon Jun 20, 2022 7:41 am
Re: 11 Failed to execute lua script of event OnFileUploaded
Seems that it's working correctly.
Thank you.
Thank you.
-
- Posts: 2
- Joined: Mon Jun 20, 2022 7:41 am
Re: 11 Failed to execute lua script of event OnFileUploaded
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.
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.
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: 11 Failed to execute lua script of event OnFileUploaded
If you are using Windows 2019+, maybe you can use "curl" instead:
os.execute('curl ftp://YourServerIP/ -u ^"Username:Password^" -T ^"%PathName^" ')
os.execute('curl ftp://YourServerIP/ -u ^"Username:Password^" -T ^"%PathName^" ')
-
- Posts: 12
- Joined: Wed Sep 15, 2021 8:59 am
Re: 11 Failed to execute lua script of event OnFileUploaded
We have the same problem with version 7.1.1/Windows Server 2019 since we updated the Core.dll stop the WingFTP service.
-
- Posts: 1
- Joined: Mon Oct 17, 2022 9:21 am
Re: 11 Failed to execute lua script of event OnFileUploaded
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?
In production however, WingFTP started to crash. Seems, that there are problem with the newly provided core.dll.
Any solutions?
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: 11 Failed to execute lua script of event OnFileUploaded
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^" ')
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^" ')