Ubuntu 20.04/22.04 — удаленное ssh или rsync уничтожает весь процесс пользователя

У меня странное странное поведение (для этого не хватает прилагательных) в Ubuntu 20.04 LTS и Ubuntu 22.04 LTS.

Это тестовый сервер IBM Db2. На сервере запущена служба Db2 под идентификатором пользователя db2inst1 (UID 1002). Имя сервера — srv-db2-teste.

Каждый раз, когда я запускаюscpилиrsyncс удаленной машины на сервер srv-db2-teste с использованием идентификатора пользователя db2inst1, после успешного копирования файлов ВСЕ службы, работающие под идентификатором пользователя (я говорю ВСЕ СЛУЖБЫ), уничтожаются! Независимо от того, какой процесс запущен, все процессы, запущенные под пользователем db2inst1, отключаются.

Db2 работает на порту 50000, но я протестировал другие порты, и процессы все равно убивают.

Пример: на удаленном компьютере я выполняю эту команду копирования:

      dba@workstation1:~$ scp /db2/files/* db2inst1@srv-db2-teste:/db2/files/

Я тестировал с другими идентификаторами пользователей, и поведение такое же: все процессы отключены, кроме пользователя 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]: user@1002.service: 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]: user-runtime-dir@1002.service: 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.

Я никогда не видел ничего подобного... любая помощь очень ценится!

0 ответов

Другие вопросы по тегам