FTP to Google Storage

前端 未结 4 896
野趣味
野趣味 2020-12-31 10:46

Some files get uploaded on a daily basis to an FTP server and I need those files under Google Cloud Storage. I don\'t want to bug the users that upload the files to install

4条回答
  •  再見小時候
    2020-12-31 11:14

    I have successfully set up an FTP proxy to GCS using gcsfs in a VM in Google Compute (mentioned by jkff in the comment to my question), with these instructions: http://ilyapimenov.com/blog/2015/01/19/ftp-proxy-to-gcs.html

    Some changes are needed though:

    • In /etc/vsftpd.conf change #write_enable=YES
      to write_enable=YES
    • Add firewall rules in your GC project to allow access to ports 21 and passive ports 15393 to 15592 (https://console.cloud.google.com/networking/firewalls/list)

    Some possible problems:

    • If you can access the FTP server using the local ip, but not the remote ip, it's probably because you haven't set up the firewall rules
    • If you can access the ftp server, but are unable to write, it's probably because you need the write_enable=YES
    • If you are tying to read on the folder you created on /mnt, but get a I/O error, it's probably because the bucket in gcsfs_config is not right.

    Also, your ftp client needs to use the transfer mode set to "passive".

提交回复
热议问题