VM Deploy
Snorre Skjellestad Kristiansen
This job is an out-of-date deployment to production. View the most recent deployment.
1Running with gitlab-runner 15.9.0 (c20f0bec)2 on Public Gitlab Runner - DIND - NTNU s7PyZZU8, system ID: s_102e57c1bcb94Using Docker executor with image node:16.10.0 ...5Pulling docker image node:16.10.0 ...6Using docker image sha256:9c23a8242f8b767d9719690aea3d86a9b86a45ff02fff49fd51fd622d687af45 for node:16.10.0 with digest node@sha256:543c034446e58fb3991842e22db7a404f5feb1050cf6126cb551e03cae0e7ac1 ...8Running on runner-s7pyzzu8-project-20935-concurrent-0 via glrp...10Fetching changes with git depth set to 20...11Initialized empty Git repository in /builds/snorrekr/tdt4240-tank-wars/.git/12Created fresh repository.13Checking out 0f08c87f as detached HEAD (ref is main)...14Skipping Git submodules setup16Checking cache for main-protected...17No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted. 18Successfully extracted cache20Using docker image sha256:9c23a8242f8b767d9719690aea3d86a9b86a45ff02fff49fd51fd622d687af45 for node:16.10.0 with digest node@sha256:543c034446e58fb3991842e22db7a404f5feb1050cf6126cb551e03cae0e7ac1 ...21$ if [ -d vm-state/ ]; then rsync -avm --exclude vm-state/ vm-state/ /; fi22$ mkdir -p ~/.ssh23$ echo "$NTNU_VM_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa24$ chmod 600 ~/.ssh/id_rsa25$ ssh-keyscan 10.212.26.72 >> ~/.ssh/known_hosts26# 10.212.26.72:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.527# 10.212.26.72:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.528# 10.212.26.72:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.529$ ssh-keygen -p -f ~/.ssh/id_rsa30Enter new passphrase (empty for no passphrase): Enter same passphrase again: Key has comment 'fredrik@dhcp-10-24-29-250.wlan.ntnu.no'31Your identification has been saved with the new passphrase.32$ ssh -v -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no ubuntu@10.212.26.72 -p 22 "bash /home/git/tdt4240-tank-wars/backend/vm-startup.sh"33OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1d 10 Sep 201934debug1: Reading configuration data /etc/ssh/ssh_config35debug1: /etc/ssh/ssh_config line 19: Applying options for *36debug1: Connecting to 10.212.26.72 [10.212.26.72] port 22.37debug1: Connection established.38debug1: identity file /root/.ssh/id_rsa type -139debug1: identity file /root/.ssh/id_rsa-cert type -140debug1: Local version string SSH-2.0-OpenSSH_7.9p1 Debian-10+deb10u241debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.542debug1: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.5 pat OpenSSH* compat 0x0400000043debug1: Authenticating to 10.212.26.72:22 as 'ubuntu'44debug1: SSH2_MSG_KEXINIT sent45debug1: SSH2_MSG_KEXINIT received46debug1: kex: algorithm: curve25519-sha25647debug1: kex: host key algorithm: ecdsa-sha2-nistp25648debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none49debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none50debug1: expecting SSH2_MSG_KEX_ECDH_REPLY51debug1: Server host key: ecdsa-sha2-nistp256 SHA256:IS7afFsdbFMYd/WAWeC0h7qaT0vuCLbxc9cp3yDaPpk52debug1: Host '10.212.26.72' is known and matches the ECDSA host key.53debug1: Found key in /root/.ssh/known_hosts:154debug1: rekey after 134217728 blocks55debug1: SSH2_MSG_NEWKEYS sent56debug1: expecting SSH2_MSG_NEWKEYS57debug1: SSH2_MSG_NEWKEYS received58debug1: rekey after 134217728 blocks59debug1: Will attempt key: /root/.ssh/id_rsa explicit60debug1: SSH2_MSG_EXT_INFO received61debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com>62debug1: SSH2_MSG_SERVICE_ACCEPT received63debug1: Authentications that can continue: publickey64debug1: Next authentication method: publickey65debug1: Trying private key: /root/.ssh/id_rsa66debug1: Authentication succeeded (publickey).67Authenticated to 10.212.26.72 ([10.212.26.72]:22).68debug1: channel 0: new [client-session]69debug1: Requesting no-more-sessions@openssh.com70debug1: Entering interactive session.71debug1: pledge: network72debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 073debug1: Remote: /home/ubuntu/.ssh/authorized_keys:2: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding74debug1: Sending environment.75debug1: Sending command: bash /home/git/tdt4240-tank-wars/backend/vm-startup.sh77 5b0854a..95b19eb main -> origin/main78Updating 5b0854a..95b19eb79Fast-forward80 README.md | 7 +++++++81 backend/README.md | 2 ++82 diagrams/{ => frontend}/README.md | 083 frontend/README.md | 3 +++84 4 files changed, 12 insertions(+)85 rename diagrams/{ => frontend}/README.md (100%)86yarn install v1.22.1987[1/4] Resolving packages...88success Already up-to-date.89Done in 0.48s.90yarn run v1.22.1991$ tsc && pm2 startOrRestart ./config/ecosystem.config.js --env production92[PM2] Applying action restartProcessId on app [backend](ids: [ 1 ])93[PM2] [backend](1) ✓94┌────┬──────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐95│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │96├────┼──────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤97│ 1 │ backend │ default │ 0.0.1 │ fork │ 7720 │ 0s │ 9 │ online │ 0% │ 13.9mb │ root │ disabled │98└────┴──────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘99Module100┌────┬──────────────────────────────┬───────────────┬──────────┬──────────┬──────┬──────────┬──────────┬──────────┐101│ id │ module │ version │ pid │ status │ ↺ │ cpu │ mem │ user │102├────┼──────────────────────────────┼───────────────┼──────────┼──────────┼──────┼──────────┼──────────┼──────────┤103│ 0 │ pm2-slack │ 1.1.0 │ 1564 │ online │ 0 │ 6.7% │ 71.0mb │ root │104└────┴──────────────────────────────┴───────────────┴──────────┴──────────┴──────┴──────────┴──────────┴──────────┘105Done in 9.96s.106Backend started successfully107debug1: client_input_channel_req: channel 0 rtype exit-status reply 0108debug1: channel 0: free: client-session, nchannels 1109debug1: fd 0 clearing O_NONBLOCK110debug1: fd 2 clearing O_NONBLOCK111Transferred: sent 2676, received 6508 bytes, in 26.0 seconds112Bytes per second: sent 102.9, received 250.2113debug1: Exit status 0115Creating cache main-protected...116WARNING: .m2/repository/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/snorrekr/tdt4240-tank-wars) 117WARNING: target/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/snorrekr/tdt4240-tank-wars) 118backend/node_modules/: found 22850 matching artifact files and directories 119.yarn: found 24553 matching artifact files and directories 120android-sdk/: found 287 matching artifact files and directories 121WARNING: .gradle/wrapper: no matching files. Ensure that the artifact path is relative to the working directory (/builds/snorrekr/tdt4240-tank-wars) 122WARNING: .gradle/caches: no matching files. Ensure that the artifact path is relative to the working directory (/builds/snorrekr/tdt4240-tank-wars) 123WARNING: vm-state/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/snorrekr/tdt4240-tank-wars) 124No URL provided, cache will not be uploaded to shared cache server. Cache will be stored only locally. 125Created cache127Job succeeded