Comments (11)
Hello, can you implement your delegate to gather the full transcript and post that here too, please? That should give some more idea why it's failing.
from connectionkit.
Sorry I couldn't post a cleaner log - is this what you wanted?
2013-05-09 00:45:00.446 Orbitink[2061:780b] STATE: INIT => CONNECT handle 0x1015d8390; line 1001 (connection #-5000)
2013-05-09 00:45:00.446 Orbitink[2061:4503] About to connect() to 192.168.100.178 port 21 (#0)
2013-05-09 00:45:00.446 Orbitink[2061:1803] Trying 192.168.100.178...
2013-05-09 00:45:00.446 Orbitink[2061:5807] Adding handle: conn: 0x1020df200
2013-05-09 00:45:00.447 Orbitink[2061:780b] Adding handle: send: 0
2013-05-09 00:45:00.447 Orbitink[2061:4503] Adding handle: recv: 0
2013-05-09 00:45:00.447 Orbitink[2061:1803] Curl_addHandleToPipeline: length: 1
2013-05-09 00:45:00.447 Orbitink[2061:5807] 0x100927600 is at send pipe head!
2013-05-09 00:45:00.447 Orbitink[2061:780b] - Conn 0 (0x1020df200) send_pipe: 1, recv_pipe: 0
2013-05-09 00:45:00.448 Orbitink[2061:4503] STATE: CONNECT => WAITCONNECT handle 0x1015d8390; line 1048 (connection #0)
2013-05-09 00:45:00.520 Orbitink[2061:780b] Connected to 192.168.100.178 (192.168.100.178) port 21 (#0)
2013-05-09 00:45:00.520 Orbitink[2061:1803] STATE: WAITCONNECT => PROTOCONNECT handle 0x1015d8390; line 1161 (connection #0)
2013-05-09 00:45:00.520 Orbitink[2061:4503] FTP 0x1020df710 (line 3260) state change from STOP to WAIT220
2013-05-09 00:45:00.595 Orbitink[2061:780b] 220 (vsFTPd 2.3.5)
2013-05-09 00:45:00.595 Orbitink[2061:4503] USER ftpuser
2013-05-09 00:45:00.595 Orbitink[2061:1803] FTP 0x1020df710 (line 843) state change from WAIT220 to USER
2013-05-09 00:45:00.667 Orbitink[2061:780b] 331 Please specify the password.
2013-05-09 00:45:00.667 Orbitink[2061:4503] PASS ####
2013-05-09 00:45:00.667 Orbitink[2061:1803] FTP 0x1020df710 (line 2635) state change from USER to PASS
2013-05-09 00:45:00.773 Orbitink[2061:780b] 230 Login successful.
2013-05-09 00:45:00.773 Orbitink[2061:4503] PWD
2013-05-09 00:45:00.773 Orbitink[2061:1803] FTP 0x1020df710 (line 855) state change from PASS to PWD
2013-05-09 00:45:00.842 Orbitink[2061:780b] 257 "/var/www"
2013-05-09 00:45:00.842 Orbitink[2061:4503] Entry path is '/var/www'
2013-05-09 00:45:00.842 Orbitink[2061:1803] FTP 0x1020df710 (line 2952) state change from PWD to STOP
2013-05-09 00:45:00.843 Orbitink[2061:5807] protocol connect phase DONE
2013-05-09 00:45:00.843 Orbitink[2061:780b] STATE: PROTOCONNECT => DO handle 0x1015d8390; line 1180 (connection #0)
2013-05-09 00:45:00.843 Orbitink[2061:4503] DO phase starts
2013-05-09 00:45:00.843 Orbitink[2061:1803] CWD ..
2013-05-09 00:45:00.843 Orbitink[2061:5807] FTP 0x1020df710 (line 942) state change from STOP to CWD
2013-05-09 00:45:00.844 Orbitink[2061:780b] STATE: DO => DOING handle 0x1015d8390; line 1240 (connection #0)
2013-05-09 00:45:00.912 Orbitink[2061:4503] CWD orbitink
2013-05-09 00:45:00.912 Orbitink[2061:780b] 250 Directory successfully changed.
2013-05-09 00:45:00.983 Orbitink[2061:4503] CWD blog
2013-05-09 00:45:00.983 Orbitink[2061:780b] 250 Directory successfully changed.
2013-05-09 00:45:01.052 Orbitink[2061:4503] Server denied you to change to the given directory
2013-05-09 00:45:01.052 Orbitink[2061:780b] 550 Failed to change directory.
2013-05-09 00:45:01.052 Orbitink[2061:1803] DO phase failed
from connectionkit.
Well that's pretty odd. It looks like some of the transcript is out-of-order (might well be my fault, not sure I'm properly dispatching it to the delegate).
So I take that to show that the blog
directory doesn't exist, whereupon the operation fails. Which is odd, since libcurl
is supposed to at least try creating it at that point. I'll have a play to see if there's anything obviously wrong in our code for that.
from connectionkit.
Thank you - let me know if you need any other information.
from connectionkit.
I did a bit of research, maybe it's because of active vs passive ftp connections. Can I flip the switch on this on a higher level?
from connectionkit.
That sounds unlikely to me. No data connection has even been attempted at this point. libcurl supports both active and passive, but I'm only interested in supporting passive in ConnectionKit.
from connectionkit.
I found my error - I was trying to get contentsOfDirectoryAtURL
before uploading to verify the credentials. Sorry about that. Is there a standard method for checking credentials somewhere?
from connectionkit.
There is not; just go ahead and try the upload. If the credentials are incorrect, it will fail accordingly.
from connectionkit.
I've stopped using a global queue for transcript messages now, so they should always arrive in-order. Thanks for bringing that to light.
from connectionkit.
I guess one other thing: The delegates that are called from within the completion handler are not called on the main thread - is this standard behaviour?
from connectionkit.
Yes. Completion handlers and delegate methods are performed on arbitrary threads/queues. It is your app's responsibility to bounce over to another thread if desired.
There's a note about the delegate methods in the headers already, but I'll update the docs to be a little clearer.
from connectionkit.
Related Issues (20)
- Updating look of CK2OpenPanel for 10.10+
- Support file download HOT 1
- Open Panel error-handling HOT 2
- Authentication HOT 3
- New Folder button shouldn’t be enabled until actually connected HOT 12
- Support uploading of directories using CK2FileManager
- Optimise dequeuing FTP operations
- private ssh key authentication on sftp HOT 2
- Down/Upload and a Crash in Release Build HOT 3
- Add cocoapod HOT 2
- -[CK2OpenPanelController pathControlItemSelected:] exception HOT 4
- CK2FileManager's -enumerateContentsOfURL... sometimes doles out URLs without the username
- -createFileAtURL:... with intermediate directories set to YES doesn't seem to work? HOT 13
- Open panel kicks off a directory listing when being cancelled HOT 6
- Is anyone using -[CK2FileManager setAttributes:…] in their code? HOT 2
- Receiving URL of form https://@dav.box.com/dav HOT 17
- Support for FTP using SSL in Swift 3? HOT 5
- NSURLErrorDomain error -1012 on Sierra? HOT 1
- Incorporate CurlHandle fix 82d036fa7e453b71a01a8a6ba2d7e31560490009
- libcurl broken on 10.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectionkit.