如何重置Google Cloud Shell用户永久磁盘? [英] How to reset Google Cloud Shell user persistent disk?

查看:1392
本文介绍了如何重置Google Cloud Shell用户永久磁盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,伙计们。为了达到(我的理解)的限制,我在Google Cloud Platform上打破了我的Google Cloud Shell。我不能再打开一个shell会话。



当我点击工具栏上的shell图标> _ 时,shell会在屏幕的下半部分打开一段时间,说明它正在调配实例(如果它已经超过一个小时),建立一个连接,然后poof,它会关闭。



我能够在屏幕截图中正确地查看以下内容:

 欢迎来到Cloud Shell!如需帮助,请访问https://cloud.google.com/cloud-shell/help。 
-bash:/ usr / bin / zsh:没有这样的文件或目录

我是很确定这涉及到一个天真的尝试安装zsh上一个不同的项目。我的理论是,Cloud Shell提供的持久磁盘存储5Gb是每个用户,而不是每个项目的每个用户。因此,我的主目录是borked的,因为操作系统的修改不会持久,所以只有用户主目录和我的 .bashrc 现在引用了不存在的文件。 / p>

所以我的问题是这样的:如何重新开始,或者消除现有的持久磁盘和设置以再次获得可用的Shell?

解决方案

在Google的帮助下解决了问题。 可能不是长期的最佳方式。



我使用壳牌的发送反馈功能将问题传达给Google。





Google Cloud Shell团队的工程师非常棒,并回复与以下:


不幸的是,这是一个已知的问题,如果你添加zsh到你的.bashrc文件。如果在磁盘上没有任何重要的东西,我可以删除你的主磁盘,然后为你提供一个没有这个问题的新磁盘。但是,如果在那里有重要的东西,我可以手动安装磁盘并进行清理。这个缺点是在安装磁盘时我可以看到磁盘上有什么。
让我知道你想做什么。对于给您造成的不便,我们深表歉意。


幸运的是,我没有任何重要的东西,也没有敏感,并且用删除选项回复。返回商家。



希望这可以帮助别人。


Ok, folks. Pushing the limits (of my understanding), I've broken my Google Cloud Shell on Google Cloud Platform. I can no longer open a shell session.

When I click the shell icon >_ on the tool bar, the shell opens on the lower half of the screen for a moment, stating it is provisioning the instance (if it has been over an hour), established a connection, and then poof, it closes.

I was able to time a screen capture just right to see the following:

Welcome to Cloud Shell! For help, visit https://cloud.google.com/cloud-shell/help.
-bash: /usr/bin/zsh: No such file or directory

I am pretty sure this relates to a naive attempt to install zsh ON A DIFFERENT PROJECT. My theory is that the 5Gb of persistent disk storage provided by Cloud Shell is per user, not per user per project. Therefore, my home directory is borked and will no longer load because the OS modifications are not persisted, only user home directories, and my .bashrc now references non-existent files.

So my question is this: How do I start over, or wipe out the existing persistent disk and settings to obtain a working Shell again?

解决方案

Resolved, with help from Google.

Note: This approach of obtaining help is likely not the best way long term.

I used the Shell's 'Send Feedback' feature to communicate the issue to Google.

An engineer on the Google Cloud Shell team was awesome, and replied with the following:

Unfortunately, this is a known issue that if you add starting zsh to your .bashrc file. If there is nothing important to you on the disk, I can just delete your home disk which will in turn provision you a new disk that does not have this issue. However, if there is something important on there, I could manually mount your disk and do the cleanup. The downside of that is while the disk is mounted I could see what's on the disk. Let me know what you would like done. Apologies for the inconvenience.

Fortunately, I didn't have anything important, nor sensitive, and replied with the delete option. Back in business.

Hope this helps someone else.

这篇关于如何重置Google Cloud Shell用户永久磁盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆