Zufälliger Fehler beim Hochladen des Fotos mit einer Büroklammer auf meinem FTP-Server

Ich benutztegem "paperclip" für das Hochladen von Bildern undgem "paperclip-storage-ftp" zum Speichern von Bildern auf meinem eigenen FTP-Server. Es hat eine Weile gut funktioniert, aber jetzt erhalte ich zufällige Fehler, wenn ich Fotos hochlade.

Manchmal dieses

Net::FTPReplyError - 150 Connecting to port 3270

Mal dieses

Net::ReadTimeout - Net::ReadTimeout:

Mal dieses

Paperclip::Storage::Ftp::NoServerAvailable

.. und manchmal das:

Net::FTPPermError - 500 ?

Model

class AlbumPhoto < ActiveRecord::Base
  has_attached_file :photo, {
    # Choose the FTP storage backend
    :storage => :ftp,
    :path => "www.abcd.com/:attachment/:id/:style/:filename",
    :url => "ftp://[email protected]@domain.com/www.abcd.com/:attachment/:id/:style/:filename",

    :ftp_servers => [
      {
        :host => "domain.com",
        :user => "[email protected]",
        :password => "abcd123",
        :passive => true
      }
    ],
    :styles => { :medium => "300x300^", :thumb => "100x100^" ,:large => "400x400^"},

  }  
end

Warum passiert dies

Antworten auf die Frage(0)

Ihre Antwort auf die Frage