[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Accidentally ran rm -rf in app-root folder.



If it’s just the code you want to recover, you can re-activate the last deployment using the `rhc deployment-activate` command.

On Dec 19, 2014, at 2:34 AM, Shashank <shashank hugehop com> wrote:

Accidentally  executed rm -rf in app-root folder (wanted to run du -sh *, but due to network latency pressed return key at wrong time).
How to recover from that. Application is not able to restart.

Getting error:
  • Restarting PHP 5.4 cartridge (Apache+mod_php) Application directory "/" selected as DocumentRoot Starting PHP 5.4 cartridge (Apache+mod_php) Application directory "/" selected as DocumentRoot
  • Failed to execute: 'control restart' for /var/lib/openshift/540a83d45004465dde0001c7/php
Can anyone help me how to fix this.

Command output in shell :
[sandbox-hugehop.rhcloud.com app-root]\> ls runtime/
build-dependencies  dependencies   logshifter-cron-hourly    logshifter-cron-weekly
data     logshifter-cron-daily  logshifter-cron-minutely  repo
[sandbox-hugehop.rhcloud.com app-root]\> rm -rf  *
rm: cannot remove `build-dependencies': Permission denied
rm: cannot remove `data': Permission denied
rm: cannot remove `dependencies': Permission denied
rm: cannot remove `logs': Permission denied
rm: cannot remove `repo': Permission denied
rm: cannot remove `runtime': Permission denied
[sandbox-hugehop.rhcloud.com app-root]\> du -sh *
0 build-dependencies
4.0K data
0 dependencies
4.0K logs
0 repo
4.0K runtime



<Screen Shot 2014-12-19 at 1.01.18 pm.png>
_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]