Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
6.7 kB
4
Indexable
Never
Running with gitlab-runner 14.3.0 (b37d3da9)
  on docker executor runner eAaArpS3
Preparing the "docker" executor
Using Docker executor with image docker ...
Pulling docker image docker ...
Using docker image sha256:c8dffce8f3d6a8e35b8ed0d2ca71c26ae8a9d351260d7f9b4f0689bb1c1da724 for docker with digest docker@sha256:cee19af93958077db280d3987fef99866f539a8b640fc2e2ee0653f780d3de26 ...
Preparing environment
00:01
Running on runner-eaaarps3-project-70869-concurrent-0 via runner.slurm.io...
Getting source from Git repository
00:01
Fetching changes with git depth set to 50...
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /builds/s012288/cicd-app/.git/
Created fresh repository.
Checking out a9333af8 as main...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:01
Using docker image sha256:c8dffce8f3d6a8e35b8ed0d2ca71c26ae8a9d351260d7f9b4f0689bb1c1da724 for docker with digest docker@sha256:cee19af93958077db280d3987fef99866f539a8b640fc2e2ee0653f780d3de26 ...
$ eval $(ssh-agent -s)
Agent pid 17
$ echo "$SSH_PRIVATE_KEY" | ssh-add -
Identity added: (stdin) ((stdin))
$ mkdir -p ~/.ssh
$ chmod 700 ~/.ssh
$ ssh-keyscan $PRODUCTION_SERVER_IP >> ~/.ssh/known_hosts
# 172.29.204.6:22 SSH-2.0-OpenSSH_7.4
# 172.29.204.6:22 SSH-2.0-OpenSSH_7.4
# 172.29.204.6:22 SSH-2.0-OpenSSH_7.4
# 172.29.204.6:22 SSH-2.0-OpenSSH_7.4
# 172.29.204.6:22 SSH-2.0-OpenSSH_7.4
$ chmod 644 ~/.ssh/known_hosts
$ ls -la /root/.ssh/
total 12
drwx------    2 root     root          4096 Jul 15 06:53 .
drwx------    1 root     root          4096 Jul 15 06:53 ..
-rw-r--r--    1 root     root           662 Jul 15 06:53 known_hosts
$ ssh root@$PRODUCTION_SERVER_IP -v "hostname"
OpenSSH_9.0p1, OpenSSL 1.1.1o  3 May 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 172.29.204.6 [172.29.204.6] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa_sk type -1
debug1: identity file /root/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: identity file /root/.ssh/id_ed25519_sk type -1
debug1: identity file /root/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /root/.ssh/id_xmss type -1
debug1: identity file /root/.ssh/id_xmss-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.0
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: compat_banner: match: OpenSSH_7.4 pat OpenSSH_7.4* compat 0x04000006
debug1: Authenticating to 172.29.204.6:22 as 'root'
debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:VcP3Y9qz1lvmVbAFTsSTq0C46s9vr04ijqL36P3yvuc
debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '172.29.204.6' is known and matches the ED25519 host key.
debug1: Found key in /root/.ssh/known_hosts:3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: (stdin) RSA SHA256:IOehACzzasruxas82PVjNEuWH25xIuiXEKYlo2HiORY agent
debug1: Will attempt key: /root/.ssh/id_rsa 
debug1: Will attempt key: /root/.ssh/id_ecdsa 
debug1: Will attempt key: /root/.ssh/id_ecdsa_sk 
debug1: Will attempt key: /root/.ssh/id_ed25519 
debug1: Will attempt key: /root/.ssh/id_ed25519_sk 
debug1: Will attempt key: /root/.ssh/id_xmss 
debug1: Will attempt key: /root/.ssh/id_dsa 
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: (stdin) RSA SHA256:IOehACzzasruxas82PVjNEuWH25xIuiXEKYlo2HiORY agent
debug1: Server accepts key: (stdin) RSA SHA256:IOehACzzasruxas82PVjNEuWH25xIuiXEKYlo2HiORY agent
Authenticated to 172.29.204.6 ([172.29.204.6]:22) using "publickey".
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: client_input_hostkeys: searching /root/.ssh/known_hosts for 172.29.204.6 / (none)
debug1: client_input_hostkeys: searching /root/.ssh/known_hosts2 for 172.29.204.6 / (none)
debug1: client_input_hostkeys: hostkeys file /root/.ssh/known_hosts2 does not exist
debug1: client_input_hostkeys: no new or deprecated keys from server
debug1: Sending command: hostname
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
node-1.s012288.slurm.io
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2832, received 2620 bytes, in 0.1 seconds
Bytes per second: sent 34928.2, received 32313.6
debug1: Exit status 0
Cleaning up project directory and file based variables
00:01
Job succeeded