
我在 Ubuntu 20.04 LTS 和 Ubuntu 22.04 LTS 上遇到了奇怪的行為(沒有足夠的形容詞來形容)。
這是 IBM Db2 測試伺服器。伺服器在 db2inst1 使用者 ID (UID 1002) 下執行 Db2 服務。伺服器名稱是 srv-db2-teste。
每次我使用 db2inst1 使用者 id 從遠端電腦執行 ascp
或 arsync
到 srv-db2-teste 伺服器時,成功複製檔案後,在該使用者 id 下執行的所有服務(我說所有服務)都會被終止!無論正在運行什麼進程,所有在 db2inst1 用戶下運行的進程都會停止運行。
Db2 正在端口 50000 上運行,但我測試了其他端口,它仍然會殺死進程。
範例:在遠端電腦中,我執行以下複製命令:
dba@workstation1:~$ scp /db2/files/* db2inst1@srv-db2-teste:/db2/files/
我已經用其他使用者 ID 進行了測試,行為是相同的:除了使用者 root 之外,所有進程都停止運作(不明白為什麼 root 完好無損)。
當進入 db2top(Db2 應用程式)時,遠端 scp 後崩潰,這是錯誤:
SQL1224N The database manager is not able to accept new requests, has
terminated all requests in progress, or has terminated the specified request
because of an error or a forced interrupt. SQLSTATE=55032
(semctl (*id,0,IPC_RMID, (union semun) x)): Invalid argument
db2inst1@srv-db2-teste:~$
測試伺服器的日誌說:
Nov 14 11:09:21 srv-db2-teste sshd[5247]: Accepted password for db2inst1 from 192.168.172.10 port 33032 ssh2
Nov 14 11:09:21 srv-db2-teste sshd[5247]: pam_unix(sshd:session): session opened for user db2inst1(uid=1002) by (uid=0)
Nov 14 11:09:21 srv-db2-teste systemd[1]: Created slice User Slice of UID 1002.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Starting User Runtime Directory /run/user/1002...
Nov 14 11:09:21 srv-db2-teste systemd-logind[1110]: New session 15 of user db2inst1.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Finished User Runtime Directory /run/user/1002.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Starting User Manager for UID 1002...
Nov 14 11:09:21 srv-db2-teste systemd[5254]: pam_unix(systemd-user:session): session opened for user db2inst1(uid=1002) by (uid=0)
Nov 14 11:09:21 srv-db2-teste ntpd[1141]: Soliciting pool server 137.184.81.69
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Queued start job for default target Main User Target.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Created slice User Application Slice.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Paths.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Timers.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Starting D-Bus User Message Bus Socket...
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG network certificate management daemon.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on GnuPG cryptographic agent and passphrase cache.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on debconf communication socket.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on REST API socket for snapd user session agent.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Listening on D-Bus User Message Bus Socket.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Sockets.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Basic System.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Reached target Main User Target.
Nov 14 11:09:21 srv-db2-teste systemd[5254]: Startup finished in 87ms.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Started User Manager for UID 1002.
Nov 14 11:09:21 srv-db2-teste systemd[1]: Started Session 15 of User db2inst1.
Nov 14 11:09:22 srv-db2-teste sshd[5333]: Received disconnect from 192.168.172.10 port 33032:11: disconnected by user
Nov 14 11:09:22 srv-db2-teste sshd[5333]: Disconnected from user db2inst1 192.168.172.10 port 33032
Nov 14 11:09:22 srv-db2-teste sshd[5247]: pam_unix(sshd:session): session closed for user db2inst1
Nov 14 11:09:22 srv-db2-teste systemd[1]: session-15.scope: Deactivated successfully.
Nov 14 11:09:22 srv-db2-teste systemd-logind[1110]: Session 15 logged out. Waiting for processes to exit.
Nov 14 11:09:22 srv-db2-teste systemd-logind[1110]: Removed session 15.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Stopping User Manager for UID 1002...
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Main User Target.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Basic System.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Paths.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Sockets.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Stopped target Timers.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed D-Bus User Message Bus Socket.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG network certificate management daemon.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed GnuPG cryptographic agent and passphrase cache.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed debconf communication socket.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Closed REST API socket for snapd user session agent.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Removed slice User Application Slice.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Reached target Shutdown.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Finished Exit the Session.
Nov 14 11:09:32 srv-db2-teste systemd[5254]: Reached target Exit the Session.
Nov 14 11:09:32 srv-db2-teste systemd[5255]: pam_unix(systemd-user:session): session closed for user db2inst1
Nov 14 11:09:32 srv-db2-teste systemd[1]: [email protected]: Deactivated successfully.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Stopped User Manager for UID 1002.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Stopping User Runtime Directory /run/user/1002...
Nov 14 11:09:32 srv-db2-teste systemd[1]: run-user-1002.mount: Deactivated successfully.
Nov 14 11:09:32 srv-db2-teste systemd[1]: [email protected]: Deactivated successfully.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Stopped User Runtime Directory /run/user/1002.
Nov 14 11:09:32 srv-db2-teste systemd[1]: Removed slice User Slice of UID 1002.
我從來沒有見過這樣的事情......非常感謝任何幫助!