GCP Linux 实例问题

GCP Linux 实例问题

我们在 GCP 中有一个测试 Linux 服务器,并配置了 tomcat 服务器和 mysql 服务器,磁盘存储为 50GB。我们想要进行 SQL 转储,但由于空间限制,无法完全创建 SQL 转储。生成转储时,它已使用磁盘上剩余的可用空间并失败。此后 SSH 终端自动关闭,从那时起我就无法重新连接。然后我将实例的磁盘大小从 50 GB 增加到 80 GB,但仍然不起作用。通过 SSH 连接时,它显示 SSH 身份验证失败并要求我检查串行控制台中的日志。我也尝试过停止和启动实例,但这没有帮助。这是我在串行控制台中收到的日志。你能帮我吗?

Oct 10 10:29:56 tomcat-server-1 systemd[1]: Stopped Snap Daemon.
Oct 10 10:29:56 tomcat-server-1 systemd[1]: Starting Snap Daemon...
Oct 10 10:29:56 tomcat-server-1 snapd[14607]: AppArmor status: apparmor is enabled and all features are available
Oct 10 10:30:50 tomcat-server-1 google-accounts: ERROR Exception calling the response handler. [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'].#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/google_compute_engine/metadata_watcher.py", line 200, in WatchMetadata#012    handler(response)#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_daemon.py", line 285, in HandleAccounts#012    self.utils.SetConfiguredUsers(desired_users.keys())#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_utils.py", line 318, in SetConfiguredUsers#012    mode='w', prefix=prefix, delete=True) as updated_users:#012  File "/usr/lib/python3.5/tempfile.py", line 679, in NamedTemporaryFile#012    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)#012  File "/usr/lib/python3.5/tempfile.py", line 269, in _sanitize_params#012    dir = gettempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 435, in gettempdir#012    tempdir = _get_default_tempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 370, in _get_default_tempdir#012    dirlist)#012FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Oct 10 10:31:26 tomcat-server-1 systemd[1]: snapd.service: Start operation timed out. Terminating.
Oct 10 10:31:50 tomcat-server-1 google-accounts: ERROR Exception calling the response handler. [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'].#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/google_compute_engine/metadata_watcher.py", line 200, in WatchMetadata#012    handler(response)#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_daemon.py", line 285, in HandleAccounts#012    self.utils.SetConfiguredUsers(desired_users.keys())#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_utils.py", line 318, in SetConfiguredUsers#012    mode='w', prefix=prefix, delete=True) as updated_users:#012  File "/usr/lib/python3.5/tempfile.py", line 679, in NamedTemporaryFile#012    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)#012  File "/usr/lib/python3.5/tempfile.py", line 269, in _sanitize_params#012    dir = gettempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 435, in gettempdir#012    tempdir = _get_default_tempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 370, in _get_default_tempdir#012    dirlist)#012FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Oct 10 10:32:50 tomcat-server-1 google-accounts: ERROR Exception calling the response handler. [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'].#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/google_compute_engine/metadata_watcher.py", line 200, in WatchMetadata#012    handler(response)#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_daemon.py", line 285, in HandleAccounts#012    self.utils.SetConfiguredUsers(desired_users.keys())#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_utils.py", line 318, in SetConfiguredUsers#012    mode='w', prefix=prefix, delete=True) as updated_users:#012  File "/usr/lib/python3.5/tempfile.py", line 679, in NamedTemporaryFile#012    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)#012  File "/usr/lib/python3.5/tempfile.py", line 269, in _sanitize_params#012    dir = gettempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 435, in gettempdir#012    tempdir = _get_default_tempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 370, in _get_default_tempdir#012    dirlist)#012FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Oct 10 10:32:56 tomcat-server-1 systemd[1]: snapd.service: State 'stop-final-sigterm' timed out. Killing.
Oct 10 10:32:56 tomcat-server-1 systemd[1]: snapd.service: Main process exited, code=killed, status=9/KILL
Oct 10 10:32:56 tomcat-server-1 systemd[1]: Failed to start Snap Daemon.
Oct 10 10:32:56 tomcat-server-1 systemd[1]: snapd.service: Unit entered failed state.
Oct 10 10:32:56 tomcat-server-1 systemd[1]: snapd.service: Triggering OnFailure= dependencies.
Oct 10 10:32:56 tomcat-server-1 systemd[1]: snapd.service: Failed with result 'signal'.
Oct 10 10:32:56 tomcat-server-1 systemd[1]: Starting Failure handling of the snapd snap...
Oct 10 10:32:56 tomcat-server-1 systemd[1]: Started Failure handling of the snapd snap.
Oct 10 10:32:56 tomcat-server-1 systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Oct 10 10:32:56 tomcat-server-1 systemd[1]: Stopped Snap Daemon.
Oct 10 10:32:56 tomcat-server-1 systemd[1]: Starting Snap Daemon...
Oct 10 10:32:56 tomcat-server-1 snapd[14703]: AppArmor status: apparmor is enabled and all features are available
Oct 10 10:33:50 tomcat-server-1 google-accounts: ERROR Exception calling the response handler. [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'].#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/google_compute_engine/metadata_watcher.py", line 200, in WatchMetadata#012    handler(response)#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_daemon.py", line 285, in HandleAccounts#012    self.utils.SetConfiguredUsers(desired_users.keys())#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_utils.py", line 318, in SetConfiguredUsers#012    mode='w', prefix=prefix, delete=True) as updated_users:#012  File "/usr/lib/python3.5/tempfile.py", line 679, in NamedTemporaryFile#012    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)#012  File "/usr/lib/python3.5/tempfile.py", line 269, in _sanitize_params#012    dir = gettempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 435, in gettempdir#012    tempdir = _get_default_tempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 370, in _get_default_tempdir#012    dirlist)#012FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Oct 10 10:34:27 tomcat-server-1 systemd[1]: snapd.service: Start operation timed out. Terminating.
Oct 10 10:34:50 tomcat-server-1 google-accounts: ERROR Exception calling the response handler. [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'].#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/google_compute_engine/metadata_watcher.py", line 200, in WatchMetadata#012    handler(response)#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_daemon.py", line 285, in HandleAccounts#012    self.utils.SetConfiguredUsers(desired_users.keys())#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_utils.py", line 318, in SetConfiguredUsers#012    mode='w', prefix=prefix, delete=True) as updated_users:#012  File "/usr/lib/python3.5/tempfile.py", line 679, in NamedTemporaryFile#012    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)#012  File "/usr/lib/python3.5/tempfile.py", line 269, in _sanitize_params#012    dir = gettempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 435, in gettempdir#012    tempdir = _get_default_tempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 370, in _get_default_tempdir#012    dirlist)#012FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Oct 10 10:35:50 tomcat-server-1 google-accounts: ERROR Exception calling the response handler. [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'].#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/google_compute_engine/metadata_watcher.py", line 200, in WatchMetadata#012    handler(response)#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_daemon.py", line 285, in HandleAccounts#012    self.utils.SetConfiguredUsers(desired_users.keys())#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_utils.py", line 318, in SetConfiguredUsers#012    mode='w', prefix=prefix, delete=True) as updated_users:#012  File "/usr/lib/python3.5/tempfile.py", line 679, in NamedTemporaryFile#012    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)#012  File "/usr/lib/python3.5/tempfile.py", line 269, in _sanitize_params#012    dir = gettempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 435, in gettempdir#012    tempdir = _get_default_tempdir()#012  File "/usr/lib/python3.5/tempfile.py", line 370, in _get_default_tempdir#012    dirlist)#012FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Oct 10 10:35:57 tomcat-server-1 systemd[1]: snapd.service: State 'stop-final-sigterm' timed out. Killing.
Oct 10 10:35:57 tomcat-server-1 systemd[1]: snapd.service: Main process exited, code=killed, status=9/KILL
Oct 10 10:35:57 tomcat-server-1 systemd[1]: Failed to start Snap Daemon.
Oct 10 10:35:57 tomcat-server-1 systemd[1]: snapd.service: Unit entered failed state.
Oct 10 10:35:57 tomcat-server-1 systemd[1]: snapd.service: Triggering OnFailure= dependencies.
Oct 10 10:35:57 tomcat-server-1 systemd[1]: snapd.service: Failed with result 'signal'.
Oct 10 10:35:57 tomcat-server-1 systemd[1]: Starting Failure handling of the snapd snap...
Oct 10 10:35:57 tomcat-server-1 systemd[1]: Started Failure handling of the snapd snap.
Oct 10 10:35:57 tomcat-server-1 systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
Oct 10 10:35:57 tomcat-server-1 systemd[1]: Stopped Snap Daemon.
Oct 10 10:35:57 tomcat-server-1 systemd[1]: Starting Snap Daemon...
Oct 10 10:35:57 tomcat-server-1 snapd[14801]: AppArmor status: apparmor is enabled and all features are available

相关内容