FTP libURLftpUploadFile error
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 29
- Joined: Wed Feb 14, 2007 3:26 pm
- Location: FRANCE, Villeneuve d'Ascq
FTP libURLftpUploadFile error
Hello,
I have been developing with Livecode for a long time, but I'm new to FTP commands.
I need to upload to my website hosted by OVH, which uses the "Pure-FTPd" FTP server. Usually I used Fetch (on Mac) but now I need to automate the transfers.
My current problem: in this example : I only have the error “error” which returns as the second parameter of the callback message of the command :
libURLftpUploadFile filePath, uploadURL, callbackMessage
- filePath: the path to a simple text file “test.txt”
- uploadURL: uploadURL0 & "test.txt"
- uploadURL0: ftp://myUsername:myPassword@ftp.cluster ... h.net/www/
I replaced my real username and password.
The uploadURL0 is correct because I got no error using the same info, for example with:
put libURLftpCommand ("CWD www", "ftp.cluster014.hosting.ovh.net:21", myUsername, myPassword)
which gives: 250 OK. Current directory is /www
If libURLftpUploadFile, which probably uses the STOR command, gave a more explicit error code I could try to find the source of the error. But like that ...
Do you have a way to solve this problem ? Thanks !
Eric
I have been developing with Livecode for a long time, but I'm new to FTP commands.
I need to upload to my website hosted by OVH, which uses the "Pure-FTPd" FTP server. Usually I used Fetch (on Mac) but now I need to automate the transfers.
My current problem: in this example : I only have the error “error” which returns as the second parameter of the callback message of the command :
libURLftpUploadFile filePath, uploadURL, callbackMessage
- filePath: the path to a simple text file “test.txt”
- uploadURL: uploadURL0 & "test.txt"
- uploadURL0: ftp://myUsername:myPassword@ftp.cluster ... h.net/www/
I replaced my real username and password.
The uploadURL0 is correct because I got no error using the same info, for example with:
put libURLftpCommand ("CWD www", "ftp.cluster014.hosting.ovh.net:21", myUsername, myPassword)
which gives: 250 OK. Current directory is /www
If libURLftpUploadFile, which probably uses the STOR command, gave a more explicit error code I could try to find the source of the error. But like that ...
Do you have a way to solve this problem ? Thanks !
Eric
The Erikoded Frenchy
La logique est le dernier refuge des gens sans imagination
Oscar Wilde :: Logic is the last refuge of the unimaginative
La logique est le dernier refuge des gens sans imagination
Oscar Wilde :: Logic is the last refuge of the unimaginative
-
- VIP Livecode Opensource Backer
- Posts: 190
- Joined: Sat Apr 08, 2006 7:55 am
- Location: Lübbecke, Germany
- Contact:
Re: FTP libURLftpUploadFile error
To check if LC is able to upload to your server you could
use instead:
or if you upload a plain text file
Does that work?
use
Code: Select all
put URL... into URL "ftp://...
Code: Select all
put URL "binfile:pathToFile" into URL "ftp://myUsername:myPassword@ftp.cluster014.hosting.ovh.net/www/myFile"
Code: Select all
put URL "file:pathToFile" into URL "ftp://myUsername:myPassword@ftp.cluster014.hosting.ovh.net/www/myFile"
-
- Posts: 29
- Joined: Wed Feb 14, 2007 3:26 pm
- Location: FRANCE, Villeneuve d'Ascq
Re: FTP libURLftpUploadFile error
Hi matthiasr … thanks for you help !
I tried as you suggested:
put URL ... into URL "ftp:// ...
put the result
... and the result is: tsneterr: (25) Failed FTP upload: 553
It's not an authentication problem because I can use the listing functions etc. Then I tested with the FTP command:
libURLftpCommand MKD test … -- it returns: 550 Can't create directory: Disk quota exceeded
I also tested with the Mac Fetch app: I can connect and browse the directories, but when I want to upload I have the same error!
But there are very few files on my site because I only do tests! Maybe I blocked something by doing too many tests![Wink ;-)](./images/smilies/icon_wink.gif)
I've contacted OVH support and I'm waiting for an answer ...
I tried as you suggested:
put URL ... into URL "ftp:// ...
put the result
... and the result is: tsneterr: (25) Failed FTP upload: 553
It's not an authentication problem because I can use the listing functions etc. Then I tested with the FTP command:
libURLftpCommand MKD test … -- it returns: 550 Can't create directory: Disk quota exceeded
I also tested with the Mac Fetch app: I can connect and browse the directories, but when I want to upload I have the same error!
But there are very few files on my site because I only do tests! Maybe I blocked something by doing too many tests
![Wink ;-)](./images/smilies/icon_wink.gif)
I've contacted OVH support and I'm waiting for an answer ...
The Erikoded Frenchy
La logique est le dernier refuge des gens sans imagination
Oscar Wilde :: Logic is the last refuge of the unimaginative
La logique est le dernier refuge des gens sans imagination
Oscar Wilde :: Logic is the last refuge of the unimaginative
-
- VIP Livecode Opensource Backer
- Posts: 190
- Joined: Sat Apr 08, 2006 7:55 am
- Location: Lübbecke, Germany
- Contact:
Re: FTP libURLftpUploadFile error
That indicates, that you have no more space available to store data in that ftp account.Eric_Taquet wrote: ↑Tue Oct 12, 2021 5:39 pm
libURLftpCommand MKD test … -- it returns: 550 Can't create directory: Disk quota exceeded
You could check the settings of that FTP account. Maybe you've set up the account with a quota. If you reach this quota then you cannot store anymore data into that account until you delete some other files or until you increase the quota for that account.
Re: FTP libURLftpUploadFile error
I would not like to guarantee that it is a quota limitation. 550 is a generic file system error, mostly to do with either a wrong path being specified or permissions/authentication failure.
Anonymous ftp is handled differently, but I am getting a suspicion that the account has read-only permissions on the directory. That or the libUrl syntax to include the username and password is not correct. I have a feeling that it might be necessary to use the raw ftp commands, so STOR as you also wondered, but that will need to be preceeded by user and pass, with other commands for the passive/active and host/port values.
But it's hard to know, just guessing.
Anonymous ftp is handled differently, but I am getting a suspicion that the account has read-only permissions on the directory. That or the libUrl syntax to include the username and password is not correct. I have a feeling that it might be necessary to use the raw ftp commands, so STOR as you also wondered, but that will need to be preceeded by user and pass, with other commands for the passive/active and host/port values.
But it's hard to know, just guessing.
-
- Posts: 29
- Joined: Wed Feb 14, 2007 3:26 pm
- Location: FRANCE, Villeneuve d'Ascq
Re: FTP libURLftpUploadFile error
Hello all,
Today, my web site is exactly 16,6 Mo ! It is a test site to study LC FTP commands. I don't think the problem is quota space.
A few days ago I was allowed to upload, delete, and re-upload files, and delete and create directories, with the Mac Fetch app,
But the day before yesterday everything was blocked, while the volume of data on the site had only slightly changed!
Don't you think that the fact that I often caused FTP errors while testing LC commands would have blocked something, for security reasons?
Maybe I'm now considered a "pirate" as we say in French![Wink ;-)](./images/smilies/icon_wink.gif)
Today, my web site is exactly 16,6 Mo ! It is a test site to study LC FTP commands. I don't think the problem is quota space.
A few days ago I was allowed to upload, delete, and re-upload files, and delete and create directories, with the Mac Fetch app,
But the day before yesterday everything was blocked, while the volume of data on the site had only slightly changed!
Don't you think that the fact that I often caused FTP errors while testing LC commands would have blocked something, for security reasons?
Maybe I'm now considered a "pirate" as we say in French
![Wink ;-)](./images/smilies/icon_wink.gif)
The Erikoded Frenchy
La logique est le dernier refuge des gens sans imagination
Oscar Wilde :: Logic is the last refuge of the unimaginative
La logique est le dernier refuge des gens sans imagination
Oscar Wilde :: Logic is the last refuge of the unimaginative
Re: FTP libURLftpUploadFile error
I think it's possible but unlikely that you have been blacklisted. More likely that the Fetch app was set up correctly (have you tested with Fetch since having these problems?) - but probably that your hand-coded FTP tests are not formed correctly and so you are being denied.
I get very little chance to use an actual computer to test these days, if I did get a possible chance to try, I will see if I can see what FTP file upload options there are on a server I can test but don't hold your breath. It would be great to see more of your code to see what you are trying each time.
I get very little chance to use an actual computer to test these days, if I did get a possible chance to try, I will see if I can see what FTP file upload options there are on a server I can test but don't hold your breath. It would be great to see more of your code to see what you are trying each time.
-
- Posts: 29
- Joined: Wed Feb 14, 2007 3:26 pm
- Location: FRANCE, Villeneuve d'Ascq
Re: FTP libURLftpUploadFile error
Yes, I've tested with Fetch since having these problems : I can't do anythins, as with LC libURLftpUpload !
The Erikoded Frenchy
La logique est le dernier refuge des gens sans imagination
Oscar Wilde :: Logic is the last refuge of the unimaginative
La logique est le dernier refuge des gens sans imagination
Oscar Wilde :: Logic is the last refuge of the unimaginative
Re: FTP libURLftpUploadFile error
OK, I have also managed some quick tests successfully and it looks like either you have a quota (ftp bandwidth upload/download) imposed on your account because of too much traffic (unlikely). Or some permission settings have changed, or you copy/pasted the user account details / password incorrectly into the script. This has then triggered a block because of suspicious activity.
I think you can only ask the hosting provider for assistance.
I think you can only ask the hosting provider for assistance.