scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

FTP deploy error: 553 Can't open that file: Permission denied (Net::FTPPermError) #34

Closed bubblun closed 11 years ago

bubblun commented 11 years ago

I just installed dandelion via gem install dandelion on Mountain Lion and set up the config file like this (example.com is of course a placeholder for pasting it here):

# Required
scheme: ftp
host: example.com
username: test
password: test

# Optional
exclude:
    - .gitignore
    - dandelion.yml
    - .htaccess
revision_file: .revision

After running dandelion deploy from the repositories' folder, trying to deploy to an empty folder via FTP, I got the following error that I wasn't able to diagnose and/or fix on my own:

Connecting to ftp://test@example.com/
Remote revision:      ---
Deploying revision:   9d2137141b4cadc78e500433565eac02477a2952
Skipping file: .gitignore
Skipping file: .htaccess
Uploading file: webseite.swf
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:243:in `getresp': 553 Can't open that file: Permission denied (Net::FTPPermError)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:264:in `sendcmd'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:262:in `sendcmd'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:321:in `transfercmd'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:452:in `storbinary'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:450:in `storbinary'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:562:in `putbinaryfile'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/backend/ftp.rb:38:in `write'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/backend.rb:49:in `temp'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/backend/ftp.rb:33:in `write'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/deployment.rb:138:in `deploy'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/deployment.rb:133:in `each'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/deployment.rb:133:in `deploy'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/command/deploy.rb:50:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/application.rb:38:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/command.rb:92:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/application.rb:36:in `new'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/application.rb:36:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/../lib/dandelion/application.rb:7:in `execute'
    from /Library/Ruby/Gems/1.8/gems/dandelion-0.3.10/bin/dandelion:7
    from /usr/bin/dandelion:23:in `load'
    from /usr/bin/dandelion:23

I'd appreciate any help in pointing me towards a solution.

scttnlsn commented 11 years ago

Are you able to upload to the same server with another FTP client? It looks like you just don't have permission to create files.

bubblun commented 11 years ago

Thanks for the quick reply. It was indeed a permission problem on the FTP server. Of course, I should have checked that before posting.

reesretuta commented 10 years ago

bubblun - was the folder permission issue within the web root? what exactly was the fix here? thanks

bubblun commented 10 years ago

Correct. The permission error was due to the root folder being not readable by the FTP user.