网站被OpenShift删除后的数据找回记录

说明

OpenShift最近似乎加强了对用户文件的管理,会扫描用户的文件,如果发现不符合他们TOS的文件,那么相应的应用会被立即删除并且实现没有任何通知
很不幸我的一个应用http://robots-shuyz.rhcloud.com就不慎保存了违反TOS的文件,等我收到OpenShift的通知邮件时应用网站已经被删除了(实际上是Google WebMaster先通知我的)。由于网站的数据没有备份,应用被删除后数据也丢了。不过OpenShift在删除会将应用的所有数据备份,可以向他们要,这里记录一下数据的找回过程。

网站被删及数据找回

2014/09/05

突然收到OpenShift发的一封邮件,说我的应用http://robots-shuyz.rhcloud.com因违反了使用条款而被删除。

Hello!

On Sep 04, 2014 at 05:00:45 PM the OpenShift operations team flagged your application.

We believe your use of OpenShift violates the Services Agreement and Acceptable Use Policy both of which can be found here: https://openshift.redhat.com/app/legal/

Infected file(s):
/var/lib/openshift/51d513eb5973ca31ff000191/app-root/runtime/repo/openwrt/raspberry/2014-07-04/nmap-ssl_6.46-1_brcm2708.ipk: nmap.A(OpenShift).UNOFFICIAL
/var/lib/openshift/51d513eb5973ca31ff000191/app-root/runtime/repo/openwrt/raspberry/2014-07-04/upx_3.08-1_brcm2708.ipk: Checkinto.upx_encoded.A(OpenShift).UNOFFICIAL
/var/lib/openshift/51d513eb5973ca31ff000191/app-root/runtime/repo/openwrt/raspberry/2014-07-04/nmap_6.46-1_brcm2708.ipk: nmap.A(OpenShift).UNOFFICIAL
/var/lib/openshift/51d513eb5973ca31ff000191/app-root/runtime/repo/openwrt/wr703n/2014-08-13/nmap-ssl_6.46-1_ar71xx.ipk: nmap.A(OpenShift).UNOFFICIAL
/var/lib/openshift/51d513eb5973ca31ff000191/app-root/runtime/repo/openwrt/wr703n/2014-08-13/upx_3.08-1_ar71xx.ipk: Checkinto.upx_encoded.A(OpenShift).UNOFFICIAL
/var/lib/openshift/51d513eb5973ca31ff000191/app-root/runtime/repo/openwrt/wr703n/2014-08-13/nmap_6.46-1_ar71xx.ipk: nmap.A(OpenShift).UNOFFICIAL

Your applications have been removed. You can contact us at 'rhcloud-security@redhat.com'

The Red Hat OpenShift Team

收到邮件后点击应用的网址,发现果然已经不能访问了!发生这样的事情让我感觉非常意外,印象中自己一直是遵纪守法的好用户啊!因为OpenShift良好的用户体验,连自己的VPS都放着不用,而且为OpenShift做过不少免费宣传,我信任的OpenShift团队怎么能这样对待自己的用户呢!

邮件中标记的几个文件是OpenWrt的应用文件,因为OpenWrt Trunk上的应用更新非常快,所以我把官方的应用在OpenShift上保存一份备份。作为一个开源的操作系统,下载和分发OpenWrt上的应用完全是合法的,而且OpenWrt也鼓励用户这么做。但OpenShift却认为这些文件非官方而违反了TOS。

这可能是一个误会,于是我给OpenShiftrhcloud-security@redhat.com回了一封邮件试图解释一下:

Dear OpenShift Team,

I can't accept the truth that you removed my application(http://robots-shuyz.rhcloud.com) immediately after you guys flagged it as violation, leaving no chance for me to explain or backup data.

The files you flagged violation are quite LEGAL, they are applications from OpenWrt, an open-source project. Since these applications are updated frequently, OpenWrt encourages users to cache them, that's why I download them to my OpenShift application.

I've been a member of OpenShift for more than two years, prior to this I was quite satisfied with the service and introduced my friends to join. Now I'm too upset to know that user's data is not safe on your platform.

Anyway, I would appreciate a lot if you could give my data back. My user name is xxx@gmail.com, the flagged application url is http://robots-shuyz.rhcloud.com.

Best Regards,
Lance

2014/09/09

过了几天还没收到OpenShift的回复,估计没人处理我的邮件了。在网上搜了一下the OpenShift operations team flagged your application,搜到了这篇帖子:Application flagged,于是按照上面的说明往openshift@redhat.com这个邮箱重新发了一遍邮件。

邮件发送之后立即收到自动回复,建议到Help Center 发Request。
Help Center 找到了Contact US链接,点进去发现可以给OpenShift发工单处理应用删除的问题,于是将邮件的内容贴了一份发了出去。

2014/09/10

收到OpenShift的处理邮件,解释说是OpenShift的nmap应用违法了TOS,并且提供了数据备份的下载链接。

Hi,

Your application was removed because it contained an nmap binary and/or source code. Since all forms of port-scanning are prohibited on OpenShift, applications found with port-scanning tools are automatically flagged for removal.

Your account privileges have been restored, so you may now create apps again. If you wish to re-deploy your app, you can do so using this backup of your data.

http://20140909-tmprestore.rhcloud.com/51d513eb5973ca31ff00XXXX.tar.gz

Login name: tempuser
Password: XXXXXXXX

Please remember to remove the nmap binary and source code before re-deploying, or the app could be flagged for removal again.

Regards,

Red Hat OpenShift Security Team

Ref:MSG2893319

看到数据有备份,终于松了口气。备份文件下载不到1分钟,查看大小竟然只有538KB! 解压之后果然发现这个备份有问题,备份的这些文件都是多余的,而最重要的data和repo目录竟然没有备份!

root@s1:/tmp/51d513eb5973ca31ff000191# tree -d
.
|-- app-root
|   `-- logs
|-- cron
|   |-- bin
|   |-- conf
|   |-- configuration
|   |-- data
|   |-- env
|   |-- etc
|   |-- log
|   |-- metadata
|   |-- pid
|   `-- run
|-- diy
|   |-- bin
|   |-- conf
|   |-- configuration
|   |   `-- etc
|   |       `-- conf.d
|   |-- env
|   |-- hooks
|   |-- logs
|   |-- metadata
|   |-- run
|   `-- tmp
|-- git
|   `-- robots.git
|       |-- branches
|       |-- hooks
|       |-- info
|       |-- objects
|       |   |-- 16
|       |   |-- 2f
|       |   |-- 61
|       |   |-- 6d
|       |   |-- 73
|       |   |-- 7c
|       |   |-- 7d
|       |   |-- 82
|       |   |-- 88
|       |   |-- 8c
|       |   |-- 8d
|       |   |-- 90
|       |   |-- a7
|       |   |-- aa
|       |   |-- ca
|       |   |-- d5
|       |   |-- df
|       |   |-- e6
|       |   |-- e9
|       |   |-- ea
|       |   |-- ed
|       |   |-- fc
|       |   |-- info
|       |   `-- pack
|       `-- refs
|           |-- heads
|           `-- tags
|-- metrics
|   |-- bin
|   |-- conf
|   |-- conf.d
|   |-- env
|   |-- metadata
|   |-- run
|   `-- sessions
`-- mysql
    |-- bin
    |-- conf
    |-- data
    |   |-- mysql
    |   `-- robots
    |-- env
    |-- hooks
    |-- lib
    |-- log
    |-- metadata
    |-- pid
    |-- run
    `-- socket

80 directories

看来数据并没有完全备份,于是再发了一个Request:

OpenShift fllagged my application and I asked for a data backup.
When I got the backup archive, I can not find any of my data. It's only 538KB on size, my data and repo directory is not there.

I believe there is something wrong with your backup system, could you check it again?

The download url is:
http://20140909-tmprestore.rhcloud.com/51d513eb5973ca31ffXXXXXX.tar.gz

```

OpenShift回复我的request被推迟5天处理,因为回家过中秋节,暂时就没有跟进处理情况。

This is an email to remind you that your request (#496) has been pending for 5 days and awaits your feedback.

2019/09/15

OpenShift告知我Request被取消,估计是太久没客服处理的原因。

Due to 4 days of inactivity, your request has been closed. If this is an error, please reply to this email with new information to re-open the case.

到这里我已经不报希望了,毕竟我只是个免费用户,不能苛求太多的售后服务,于是开始处理博客上连接到被删除应用网站的死链。

2014/09/16

收到OpenShift的服务评价邮件,是针对没人处理的那个Request的。

Hello Lance Liao,

We'd love to hear what you think of our customer service. Please take a moment to answer one simple question by clicking either link below:

How would you rate the support you received?

Good, I'm satisfied

Bad, I'm unsatisfied

Here's a reminder of what your ticket was about:

没人处理我的Request,当然直接果断地给差评了!

Dear OpenShift Team,

I've received no reply from you on the request #496

2014/09/19

意外收到OpenShift市场部经理Nick Harvey(以前混OpenShift Community的时候经常见到,所以感觉这个名字很熟)的回复的邮件(难道差评都反馈到他那里?),告诉我数据还在,如果这次下载还有问题再告诉他们。

Hi Lance,

I went ahead and checked with our team to make sure that all of your data is available and rest assured that it is. Go ahead and try that download link once more and if you're still getting the same results, please let me know and we'll work on creating a new link for you.

Respectfully,
Nick Harvey
OpenShift Customer Enablement Team
www.OpenShift.com

再次下载,发现这次的文件大小642M,应该是完整的备份了。

PS: 由于文件巨大,并且不支持断点续传,下载的时候遇到不少麻烦,填上用户名和密码用迅雷下载了几次都中断失败。最后是在VPS上使用wget工具下载的,命令为wget --http-user=tempuser --http-password=mypass http://20140909-tmprestore.rhcloud.com/51d513eb5973ca31ffXXXXXX.tar.gz

2014/09/20

周末,OpenShift应用http://robots-shuyz.rhcloud.com上的数据已恢复,网站重新上线。

总结

由于OpenShift的服务非常稳定,一直对其非常信任,所以这个站点没有经常进行备份,造成这次网站被删后花了半个多月时间来要回数据,看来平常数据的定期备份真的很重要!

从人性化的角度来说,我对OpenShift对违反TOS的处理方法不太认同。如果网站出现了问题,可以停用后通知用户处理,至少留给用户足够的时间进行数据备份。而不是直接删除后再通知用户。

不过总的来说,OpenShift还是非常不错的,即使用户网站被删半个月之后,数据仍然有备份。而且售后支持团队的服务也非常不错,即使对免费用户的差评也足够重视,说明这是一个非常有诚意的团队。

关键字:OpenShift

本文链接:树叶的BLOG >> 网站被OpenShift删除后的数据找回记录

本作品采用知识共享署名-非商业性使用-相同方式共享 3.0 Unported许可协议进行许可。

上一篇 : 组建N2N VPN网络实现内网设备之间的相互访问.md 下一篇 : 一次曲折的小米路由Mini开启SSH经历