我的VM运行了2年甚至更长时间,没有问题。几天前,我可以访问它的网站。我尝试了ssh,但是它失败了连接,所以我重新启动了VM,它失败了。从串行控制台附加日志。我看到解决元数据服务器的问题。有什么不对的?
谢谢!
Nov 27 13:21:54 (none) /etc/mysql/debian-start[2326]: Upgrading MySQL tables if necessary.
[[36minfo[39;49m] Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..
curl: (6) Couldn't resolve host 'metadata.google.internal'
Nov 27 13:21:54 (none) google:
Nov 27 13:21:54 (none) google: No startup script found in metadata.
Nov 27 13:21:54 (none) /etc/mysql/debian-start[2330]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Nov 27 13:21:54 (none) /etc/mysql/debian-start[2330]: Looking for 'mysql' as: /usr/bin/mysql
Nov 27 13:21:54 (none) /etc/mysql/debian-start[2330]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Nov 27 13:21:54 (none) /etc/mysql/debian-start[2330]: This installation of MySQL is already upgraded to 5.5.52, use --force if you still need to run mysql_upgrade
Nov 27 13:21:54 (none) /etc/mysql/debian-start[2377]: Checking for insecure root accounts.
Nov 27 13:21:54 (none) /etc/mysql/debian-start[2382]: Triggering myisam-recover for all MyISAM tables
Nov 27 13:21:56 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:01 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:06 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:11 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:16 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:21 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:26 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:31 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:37 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:42 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
Nov 27 13:22:47 (none) accounts-from-metadata: WARNING error while trying to update accounts: <urlopen error [Errno 101] Network is unreachable>
我查看了一些日志,发现可能是由以下原因引起的:
Operation type
compute.instances.migrateOnHostMaintenance
Status message
Instance migrated during Compute Engine maintenance.
发布于 2017-11-28 02:15:46
您可以启用对串行控制台的交互式访问,这样您就可以更容易地对无法正确引导或无法访问的实例进行故障排除。有关详细信息,请参阅与串行控制台交互。
发布于 2020-08-11 15:01:12
由于我们有错误消息1,元数据服务通常响应于http、DNS和ICMP回送。因此,我们建议检查防火墙和链接2可能会对您有所帮助。
另一方面,关于错误消息3.,似乎也应该有错误消息“hosterror”。主机错误意味着托管虚拟机的物理机器上存在硬件或软件问题,导致虚拟机崩溃。当计算引擎检测到这样的事件时,我们在操作日志中有一个compute.instances.hostError 4.消息。
要“防止”应用程序和服务发生类似的潜在干扰系统事件,请检查文档5中的“了解故障类型”,如下所示:
了解失败类型:
在某个时候,一个或多个VM实例可能由于系统或硬件故障而丢失。其中一些失败包括但不限于:
意外单实例故障
意外的单实例故障可能是由于硬件或系统故障造成的。要减少这些事件,请在重新启动实例后使用持久磁盘和启动脚本来保存数据和重新启用软件。
意外的单个实例重新启动
在某个时候,您将经历一个意外的单个实例失败和重新启动。与意外的单个实例失败不同,您的实例会失败,并且将由Compute Engine服务自动重新启动。为了帮助减轻这些事件,请备份数据,使用持久磁盘,并使用启动脚本快速重新配置软件。
区域或区域故障
区域和区域故障是罕见的故障,可能导致给定区域或区域中的所有实例无法访问或失败。为了减少这些故障,创建跨区域和区域的多样性并实现负载平衡。您还应该备份数据或跨多个区域复制持久磁盘。
确保您设计了健壮的系统,有关健壮系统的更多信息,请提供文档5。
1无法解析主机“metadata.google.internal”
3. compute.instances.migrateOnHostMaintenance
https://serverfault.com/questions/885401
复制相似问题