From 9036840e5fad41ac399a693be9c8ef0c5853076c Mon Sep 17 00:00:00 2001 From: ludo8147 <ludo8147@bht-berlin.de> Date: Sat, 7 Sep 2024 12:48:43 +0200 Subject: [PATCH] vagrant vm locally --- .gitignore | 3 + .gitlab-ci.yml | 3 +- Define and run a pipeline/.gitlab-ci.yml | 9 +- Spin up a virtual machine locally/Vagrantfile | 77 - .../terminal.log | 394 --- .../.gitkeep | 0 .../default/virtualbox/action_provision | 1 + .../default/virtualbox/action_set_name | 1 + .../machines/default/virtualbox/box_meta | 1 + .../machines/default/virtualbox/creator_uid | 1 + .../.vagrant/machines/default/virtualbox/id | 1 + .../machines/default/virtualbox/index_uuid | 1 + .../machines/default/virtualbox/private_key | 8 + .../default/virtualbox/synced_folders | 1 + .../machines/default/virtualbox/vagrant_cwd | 1 + .../.vagrant/rgloader/loader.rb | 12 + Spin_up_a_virtual_machine_locally/Vagrantfile | 7 + .../terminal.log | 2448 +++++++++++++++++ 18 files changed, 2496 insertions(+), 473 deletions(-) delete mode 100644 Spin up a virtual machine locally/Vagrantfile delete mode 100644 Spin up a virtual machine locally/terminal.log rename {Spin up a virtual machine locally => Spin_up_a_virtual_machine_locally}/.gitkeep (100%) create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/action_provision create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/action_set_name create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/box_meta create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/creator_uid create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/id create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/index_uuid create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/private_key create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/synced_folders create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/vagrant_cwd create mode 100644 Spin_up_a_virtual_machine_locally/.vagrant/rgloader/loader.rb create mode 100644 Spin_up_a_virtual_machine_locally/Vagrantfile create mode 100644 Spin_up_a_virtual_machine_locally/terminal.log diff --git a/.gitignore b/.gitignore index e0bff83..fb16125 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ artifact.bin *.bin setup.txt todos +Spin_up_a_virtual_machine_locally/webservice + +Spin_up_a_virtual_machine_locally/.vagrant \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 90d6b41..9b73365 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,8 @@ # und Vorlesung #https://docs.gitlab.com/ee/user/packages/container_registry/build_and_push_images.html #https://docs.gitlab.com/ee/ci/yaml/workflow.html -# https://docs.gitlab.com/ee/ci/yaml/ +#https://docs.gitlab.com/ee/ci/yaml/ +#https://dnsmichi.at/2021/09/23/efficient-pipelines-gitlab-ci-cd-parallel-matrix-builds-reference/ workflow: rules: diff --git a/Define and run a pipeline/.gitlab-ci.yml b/Define and run a pipeline/.gitlab-ci.yml index 50db7fc..9b73365 100644 --- a/Define and run a pipeline/.gitlab-ci.yml +++ b/Define and run a pipeline/.gitlab-ci.yml @@ -1,3 +1,10 @@ +#Code: https://github.com/lucendio/lecture-devops-code/blob/master/tutorials/define-and-run-pipeline/.gitlab-ci.yml +# und Vorlesung +#https://docs.gitlab.com/ee/user/packages/container_registry/build_and_push_images.html +#https://docs.gitlab.com/ee/ci/yaml/workflow.html +#https://docs.gitlab.com/ee/ci/yaml/ +#https://dnsmichi.at/2021/09/23/efficient-pipelines-gitlab-ci-cd-parallel-matrix-builds-reference/ + workflow: rules: - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "main" @@ -39,7 +46,7 @@ job_publish: stage: 'publish' image: 'public.ecr.aws/lts/ubuntu:22.04' tags: - - docker-privileged + - gitlab-runner03 dependencies: - job_build before_script: diff --git a/Spin up a virtual machine locally/Vagrantfile b/Spin up a virtual machine locally/Vagrantfile deleted file mode 100644 index 2fc188c..0000000 --- a/Spin up a virtual machine locally/Vagrantfile +++ /dev/null @@ -1,77 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -# All Vagrant configuration is done below. The "2" in Vagrant.configure -# configures the configuration version (we support older styles for -# backwards compatibility). Please don't change it unless you know what -# you're doing. -Vagrant.configure("2") do |config| - # The most common configuration options are documented and commented below. - # For a complete reference, please see the online documentation at - # https://docs.vagrantup.com. - - # Every Vagrant development environment requires a box. You can search for - # boxes at https://vagrantcloud.com/search. - config.vm.box = "ubuntu/focal64" - - # Disable automatic box update checking. If you disable this, then - # boxes will only be checked for updates when the user runs - # `vagrant box outdated`. This is not recommended. - # config.vm.box_check_update = false - - # Create a forwarded port mapping which allows access to a specific port - # within the machine from a port on the host machine. In the example below, - # accessing "localhost:8080" will access port 80 on the guest machine. - # NOTE: This will enable public access to the opened port - # config.vm.network "forwarded_port", guest: 3000, host: 8080 - - # Create a forwarded port mapping which allows access to a specific port - # within the machine from a port on the host machine and only allow access - # via 127.0.0.1 to disable public access - config.vm.network "forwarded_port", guest: 3000, host: 8080 - - # Create a private network, which allows host-only access to the machine - # using a specific IP. - # config.vm.network "private_network", ip: "192.168.33.10" - - # Create a public network, which generally matched to bridged network. - # Bridged networks make the machine appear as another physical device on - # your network. - # config.vm.network "public_network" - - # Share an additional folder to the guest VM. The first argument is - # the path on the host to the actual folder. The second argument is - # the path on the guest to mount the folder. And the optional third - # argument is a set of non-required options. -config.vm.synced_folder "C:/Users/lucad/lucadVM", "/home/vagrant/vagrant_data" - - # Disable the default share of the current code directory. Doing this - # provides improved isolation between the vagrant box and your host - # by making sure your Vagrantfile isn't accessible to the vagrant box. - # If you use this you may want to enable additional shared subfolders as - # shown above. - # config.vm.synced_folder ".", "/vagrant", disabled: true - - # Provider-specific configuration so you can fine-tune various - # backing providers for Vagrant. These expose provider-specific options. - # Example for VirtualBox: - # - # config.vm.provider "virtualbox" do |vb| - # # Display the VirtualBox GUI when booting the machine - # vb.gui = true - # - # # Customize the amount of memory on the VM: - # vb.memory = "1024" - # end - # - # View the documentation for the provider you are using for more - # information on available options. - - # Enable provisioning with a shell script. Additional provisioners such as - # Ansible, Chef, Docker, Puppet and Salt are also available. Please see the - # documentation for more information about their specific syntax and use. - # config.vm.provision "shell", inline: <<-SHELL - # apt-get update - # apt-get install -y apache2 - # SHELL -end diff --git a/Spin up a virtual machine locally/terminal.log b/Spin up a virtual machine locally/terminal.log deleted file mode 100644 index 5c67124..0000000 --- a/Spin up a virtual machine locally/terminal.log +++ /dev/null @@ -1,394 +0,0 @@ -Microsoft Windows [Version 10.0.19045.4412] -(c) Microsoft Corporation. Alle Rechte vorbehalten. - -C:\Users\lucad>cd lucadVM - -C:\Users\lucad\lucadVM>vagrant up --provider virtaulbox -An active machine was found with a different provider. Vagrant -currently allows each machine to be brought up with only a single -provider at a time. A future version will remove this limitation. -Until then, please destroy the existing machine to up with a new -provider. - -Machine name: default -Active provider: virtualbox -Requested provider: virtaulbox - -C:\Users\lucad\lucadVM>vagrant ssh -VM must be running to open SSH connection. Run `vagrant up` -to start the virtual machine. - -C:\Users\lucad\lucadVM>vagrant up -Bringing machine 'default' up with 'virtualbox' provider... -==> default: Checking if box 'ubuntu/focal64' version '20240524.0.0' is up to date... -==> default: Clearing any previously set forwarded ports... -==> default: Clearing any previously set network interfaces... -==> default: Preparing network interfaces based on configuration... - default: Adapter 1: nat -==> default: Forwarding ports... - default: 3000 (guest) => 8080 (host) (adapter 1) - default: 22 (guest) => 2222 (host) (adapter 1) -==> default: Running 'pre-boot' VM customizations... -==> default: Booting VM... -==> default: Waiting for machine to boot. This may take a few minutes... - default: SSH address: 127.0.0.1:2222 - default: SSH username: vagrant - default: SSH auth method: private key -==> default: Machine booted and ready! -==> default: Checking for guest additions in VM... - default: The guest additions on this VM do not match the installed version of - default: VirtualBox! In most cases this is fine, but in rare cases it can - default: prevent things such as shared folders from working properly. If you see - default: shared folder errors, please make sure the guest additions within the - default: virtual machine match the version of VirtualBox you have installed on - default: your host and reload your VM. - default: - default: Guest Additions Version: 6.1.50 - default: VirtualBox Version: 7.0 -==> default: Mounting shared folders... - default: /vagrant => C:/Users/lucad/lucadVM - default: /vagrant_data => C:/Users/lucad/lucadVM -==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` -==> default: flag to force provisioning. Provisioners marked to run always will still run. - -C:\Users\lucad\lucadVM>vagrant ssh -Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-182-generic x86_64) - - * Documentation: https://help.ubuntu.com - * Management: https://landscape.canonical.com - * Support: https://ubuntu.com/pro - - System information as of Sun Jun 2 13:52:41 UTC 2024 - - System load: 0.64 Processes: 119 - Usage of /: 3.6% of 38.70GB Users logged in: 0 - Memory usage: 20% IPv4 address for enp0s3: 10.0.2.15 - Swap usage: 0% - - -Expanded Security Maintenance for Applications is not enabled. - -0 updates can be applied immediately. - -Enable ESM Apps to receive additional future security updates. -See https://ubuntu.com/esm or run: sudo pro status - - -The list of available updates is more than a week old. -To check for new updates run: sudo apt update -New release '22.04.3 LTS' available. -Run 'do-release-upgrade' to upgrade to it. - - -Last login: Wed May 29 14:18:47 2024 from 10.0.2.2 -vagrant@ubuntu-focal:~$ ls -vagrant@ubuntu-focal:~$ dir -vagrant@ubuntu-focal:~$ cd .. -vagrant@ubuntu-focal:/home$ ls -ubuntu vagrant -vagrant@ubuntu-focal:/home$ cd $PATH --bash: cd: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: No such file or directory -vagrant@ubuntu-focal:/home$ exit -logout -Connection to 127.0.0.1 closed. - -C:\Users\lucad\lucadVM>vagrant ssh -Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-182-generic x86_64) - - * Documentation: https://help.ubuntu.com - * Management: https://landscape.canonical.com - * Support: https://ubuntu.com/pro - - System information as of Sun Jun 2 13:54:28 UTC 2024 - - System load: 0.15 Processes: 121 - Usage of /: 3.6% of 38.70GB Users logged in: 0 - Memory usage: 26% IPv4 address for enp0s3: 10.0.2.15 - Swap usage: 0% - - -Expanded Security Maintenance for Applications is not enabled. - -0 updates can be applied immediately. - -Enable ESM Apps to receive additional future security updates. -See https://ubuntu.com/esm or run: sudo pro status - - -The list of available updates is more than a week old. -To check for new updates run: sudo apt update -New release '22.04.3 LTS' available. -Run 'do-release-upgrade' to upgrade to it. - - -Last login: Sun Jun 2 13:52:42 2024 from 10.0.2.2 -vagrant@ubuntu-focal:~$ pwd -/home/vagrant -vagrant@ubuntu-focal:~$ ls -a -. .. .bash_history .bash_logout .bashrc .cache .profile .ssh -vagrant@ubuntu-focal:~$ ls -all -total 32 -drwxr-xr-x 4 vagrant vagrant 4096 May 29 14:19 . -drwxr-xr-x 4 root root 4096 May 29 14:18 .. --rw------- 1 vagrant vagrant 35 Jun 2 13:54 .bash_history --rw-r--r-- 1 vagrant vagrant 220 May 24 21:56 .bash_logout --rw-r--r-- 1 vagrant vagrant 3771 May 24 21:56 .bashrc -drwx------ 2 vagrant vagrant 4096 May 29 14:18 .cache --rw-r--r-- 1 vagrant vagrant 807 May 24 21:56 .profile -drwx------ 2 vagrant vagrant 4096 May 29 14:18 .ssh -vagrant@ubuntu-focal:~$ cd .. -vagrant@ubuntu-focal:/home$ ls -ubuntu vagrant -vagrant@ubuntu-focal:/home$ cd .. -vagrant@ubuntu-focal:/$ ls -bin dev home lib32 libx32 media opt root sbin srv tmp vagrant var -boot etc lib lib64 lost+found mnt proc run snap sys usr vagrant_data -vagrant@ubuntu-focal:/$ exit -logout -Connection to 127.0.0.1 closed. - -C:\Users\lucad\lucadVM>vagrant ssh -Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-182-generic x86_64) - - * Documentation: https://help.ubuntu.com - * Management: https://landscape.canonical.com - * Support: https://ubuntu.com/pro - - System information as of Sun Jun 2 13:57:51 UTC 2024 - - System load: 0.0 Processes: 118 - Usage of /: 3.6% of 38.70GB Users logged in: 0 - Memory usage: 25% IPv4 address for enp0s3: 10.0.2.15 - Swap usage: 0% - - -Expanded Security Maintenance for Applications is not enabled. - -0 updates can be applied immediately. - -Enable ESM Apps to receive additional future security updates. -See https://ubuntu.com/esm or run: sudo pro status - - -The list of available updates is more than a week old. -To check for new updates run: sudo apt update -New release '22.04.3 LTS' available. -Run 'do-release-upgrade' to upgrade to it. - - -Last login: Sun Jun 2 13:54:29 2024 from 10.0.2.2 -vagrant@ubuntu-focal:~$ ls -vagrant@ubuntu-focal:~$ cd .. -vagrant@ubuntu-focal:/home$ cd .. -vagrant@ubuntu-focal:/$ ls -bin dev home lib32 libx32 media opt root sbin srv tmp vagrant var -boot etc lib lib64 lost+found mnt proc run snap sys usr vagrant_data -vagrant@ubuntu-focal:/$ exit -logout -Connection to 127.0.0.1 closed. - -C:\Users\lucad\lucadVM>vagrant halt -==> default: Attempting graceful shutdown of VM... - -C:\Users\lucad\lucadVM>vagrant up -Bringing machine 'default' up with 'virtualbox' provider... -==> default: Checking if box 'ubuntu/focal64' version '20240524.0.0' is up to date... -==> default: Clearing any previously set forwarded ports... -==> default: Clearing any previously set network interfaces... -==> default: Preparing network interfaces based on configuration... - default: Adapter 1: nat -==> default: Forwarding ports... - default: 3000 (guest) => 8080 (host) (adapter 1) - default: 22 (guest) => 2222 (host) (adapter 1) -==> default: Running 'pre-boot' VM customizations... -==> default: Booting VM... -==> default: Waiting for machine to boot. This may take a few minutes... - default: SSH address: 127.0.0.1:2222 - default: SSH username: vagrant - default: SSH auth method: private key -==> default: Machine booted and ready! -==> default: Checking for guest additions in VM... - default: The guest additions on this VM do not match the installed version of - default: VirtualBox! In most cases this is fine, but in rare cases it can - default: prevent things such as shared folders from working properly. If you see - default: shared folder errors, please make sure the guest additions within the - default: virtual machine match the version of VirtualBox you have installed on - default: your host and reload your VM. - default: - default: Guest Additions Version: 6.1.50 - default: VirtualBox Version: 7.0 -==> default: Mounting shared folders... - default: /vagrant => C:/Users/lucad/lucadVM - default: /home/vagrant/vagrant_data => C:/Users/lucad/lucadVM -==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` -==> default: flag to force provisioning. Provisioners marked to run always will still run. - -C:\Users\lucad\lucadVM>vagrant ssh -Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-182-generic x86_64) - - * Documentation: https://help.ubuntu.com - * Management: https://landscape.canonical.com - * Support: https://ubuntu.com/pro - - System information as of Sun Jun 2 14:09:56 UTC 2024 - - System load: 0.05 Processes: 115 - Usage of /: 3.6% of 38.70GB Users logged in: 0 - Memory usage: 19% IPv4 address for enp0s3: 10.0.2.15 - Swap usage: 0% - - -Expanded Security Maintenance for Applications is not enabled. - -0 updates can be applied immediately. - -Enable ESM Apps to receive additional future security updates. -See https://ubuntu.com/esm or run: sudo pro status - - -The list of available updates is more than a week old. -To check for new updates run: sudo apt update -New release '22.04.3 LTS' available. -Run 'do-release-upgrade' to upgrade to it. - - -Last login: Sun Jun 2 13:57:52 2024 from 10.0.2.2 -vagrant@ubuntu-focal:~$ ls -vagrant_data -vagrant@ubuntu-focal:~$ cd vagrant_data/ -vagrant@ubuntu-focal:~/vagrant_data$ ls -Vagrantfile terminal.log webservice -vagrant@ubuntu-focal:~/vagrant_data$ cd .. -vagrant@ubuntu-focal:~$ chmod +x ./vagrant_data/webservice -vagrant@ubuntu-focal:~$ ./vagrant_data/webservice - - ┌───────────────────────────────────────────────────┠- │ webservice │ - │ Fiber v2.51.0 │ - │ http://127.0.0.1:3000 │ - │ │ - │ Handlers ............ 27 Processes ........... 1 │ - │ Prefork ....... Disabled PID .............. 1725 │ - └───────────────────────────────────────────────────┘ - -^Ctime=2024-06-02T14:18:07.271Z level=INFO msg="Gracefully shutting down HTTP server" -vagrant@ubuntu-focal:~$ ^C -vagrant@ubuntu-focal:~$ chmod +x ./vagrant_data/webservice -vagrant@ubuntu-focal:~$ ./vagrant_data/webservice - - ┌───────────────────────────────────────────────────┠- │ webservice │ - │ Fiber v2.51.0 │ - │ http://127.0.0.1:3000 │ - │ │ - │ Handlers ............ 27 Processes ........... 1 │ - │ Prefork ....... Disabled PID .............. 1887 │ - └───────────────────────────────────────────────────┘ - -time=2024-06-02T14:19:57.540Z level=DEBUG msg="GET / mime:*/* agent:curl/7.68.0" -^Ctime=2024-06-02T14:26:40.777Z level=INFO msg="Gracefully shutting down HTTP server" -vagrant@ubuntu-focal:~$ ^C -vagrant@ubuntu-focal:~$ sudo ufw allow 8080/tcp -Rules updated -Rules updated (v6) -vagrant@ubuntu-focal:~$ ./vagrant_data/webservice - - ┌───────────────────────────────────────────────────┠- │ webservice │ - │ Fiber v2.51.0 │ - │ http://127.0.0.1:3000 │ - │ │ - │ Handlers ............ 27 Processes ........... 1 │ - │ Prefork ....... Disabled PID .............. 2192 │ - └───────────────────────────────────────────────────┘ - -time=2024-06-02T14:27:51.768Z level=DEBUG msg="GET / mime:*/* agent:curl/7.68.0" -^Ctime=2024-06-02T14:30:28.596Z level=INFO msg="Gracefully shutting down HTTP server" -vagrant@ubuntu-focal:~$ ^C -vagrant@ubuntu-focal:~$ exit -logout -Connection to 127.0.0.1 closed. - -C:\Users\lucad\lucadVM>vagrant reload -==> default: Attempting graceful shutdown of VM... -==> default: Checking if box 'ubuntu/focal64' version '20240524.0.0' is up to date... -==> default: Clearing any previously set forwarded ports... -==> default: Clearing any previously set network interfaces... -==> default: Preparing network interfaces based on configuration... - default: Adapter 1: nat -==> default: Forwarding ports... - default: 3000 (guest) => 8080 (host) (adapter 1) - default: 22 (guest) => 2222 (host) (adapter 1) -==> default: Running 'pre-boot' VM customizations... -==> default: Booting VM... -==> default: Waiting for machine to boot. This may take a few minutes... - default: SSH address: 127.0.0.1:2222 - default: SSH username: vagrant - default: SSH auth method: private key -==> default: Machine booted and ready! -==> default: Checking for guest additions in VM... - default: The guest additions on this VM do not match the installed version of - default: VirtualBox! In most cases this is fine, but in rare cases it can - default: prevent things such as shared folders from working properly. If you see - default: shared folder errors, please make sure the guest additions within the - default: virtual machine match the version of VirtualBox you have installed on - default: your host and reload your VM. - default: - default: Guest Additions Version: 6.1.50 - default: VirtualBox Version: 7.0 -==> default: Mounting shared folders... - default: /vagrant => C:/Users/lucad/lucadVM - default: /home/vagrant/vagrant_data => C:/Users/lucad/lucadVM -==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` -==> default: flag to force provisioning. Provisioners marked to run always will still run. - -C:\Users\lucad\lucadVM>vargrant ssh -Der Befehl "vargrant" ist entweder falsch geschrieben oder -konnte nicht gefunden werden. - -C:\Users\lucad\lucadVM>vagrant ssh -Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-182-generic x86_64) - - * Documentation: https://help.ubuntu.com - * Management: https://landscape.canonical.com - * Support: https://ubuntu.com/pro - - System information as of Sun Jun 2 14:31:53 UTC 2024 - - System load: 0.62 Processes: 121 - Usage of /: 3.6% of 38.70GB Users logged in: 0 - Memory usage: 19% IPv4 address for enp0s3: 10.0.2.15 - Swap usage: 0% - - -Expanded Security Maintenance for Applications is not enabled. - -0 updates can be applied immediately. - -Enable ESM Apps to receive additional future security updates. -See https://ubuntu.com/esm or run: sudo pro status - - -The list of available updates is more than a week old. -To check for new updates run: sudo apt update -New release '22.04.3 LTS' available. -Run 'do-release-upgrade' to upgrade to it. - - -Last login: Sun Jun 2 14:27:28 2024 from 10.0.2.2 -^Avagrant@ubuntu-focal:~$ ./vagrant_data/webservice - - ┌───────────────────────────────────────────────────┠- │ webservice │ - │ Fiber v2.51.0 │ - │ http://127.0.0.1:3000 │ - │ │ - │ Handlers ............ 27 Processes ........... 1 │ - │ Prefork ....... Disabled PID .............. 1307 │ - └───────────────────────────────────────────────────┘ - -^Ctime=2024-06-02T14:33:15.208Z level=INFO msg="Gracefully shutting down HTTP server" -^Ctime=2024-06-02T14:33:15.328Z level=INFO msg="Gracefully shutting down HTTP server" -vagrant@ubuntu-focal:~$ exit -logout -Connection to 127.0.0.1 closed. diff --git a/Spin up a virtual machine locally/.gitkeep b/Spin_up_a_virtual_machine_locally/.gitkeep similarity index 100% rename from Spin up a virtual machine locally/.gitkeep rename to Spin_up_a_virtual_machine_locally/.gitkeep diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/action_provision b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/action_provision new file mode 100644 index 0000000..463b1a0 --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/action_provision @@ -0,0 +1 @@ +1.5:2648619a-19a5-4e34-a965-5f627deadc3e \ No newline at end of file diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/action_set_name b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/action_set_name new file mode 100644 index 0000000..5fefce1 --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/action_set_name @@ -0,0 +1 @@ +1725704898 \ No newline at end of file diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/box_meta b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/box_meta new file mode 100644 index 0000000..c728d9c --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/box_meta @@ -0,0 +1 @@ +{"name":"ubuntu/jammy64","version":"20240823.0.1","provider":"virtualbox","directory":"boxes/ubuntu-VAGRANTSLASH-jammy64/20240823.0.1/virtualbox"} \ No newline at end of file diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/creator_uid b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/creator_uid new file mode 100644 index 0000000..e37d32a --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/creator_uid @@ -0,0 +1 @@ +1000 \ No newline at end of file diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/id b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/id new file mode 100644 index 0000000..9ec2e9a --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/id @@ -0,0 +1 @@ +2648619a-19a5-4e34-a965-5f627deadc3e \ No newline at end of file diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/index_uuid b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/index_uuid new file mode 100644 index 0000000..1d08422 --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/index_uuid @@ -0,0 +1 @@ +ce293571343240c598cd53a604069b04 \ No newline at end of file diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/private_key b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/private_key new file mode 100644 index 0000000..4054a8c --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/private_key @@ -0,0 +1,8 @@ +-----BEGIN OPENSSH PRIVATE KEY----- +b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA +AAtzc2gtZWQyNTUxOQAAACDD+sc3pF1oqZ6KmRIhtiRzBuJgFyzu1DDzuUiW +/nLSHgAAAJDPSnDAz0pwwAAAAAtzc2gtZWQyNTUxOQAAACDD+sc3pF1oqZ6K +mRIhtiRzBuJgFyzu1DDzuUiW/nLSHgAAAEBeTKHofZTHVjnJfMG4l4xaEYHt +41V5gw4417CZTqXczsP6xzekXWipnoqZEiG2JHMG4mAXLO7UMPO5SJb+ctIe +AAAAB3ZhZ3JhbnQBAgMEBQY= +-----END OPENSSH PRIVATE KEY----- diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/synced_folders b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/synced_folders new file mode 100644 index 0000000..665f73f --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/synced_folders @@ -0,0 +1 @@ +{"virtualbox":{"/home/vagrant/vagrant_data":{"guestpath":"/home/vagrant/vagrant_data","hostpath":"/home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally","disabled":false,"__vagrantfile":true},"/vagrant":{"guestpath":"/vagrant","hostpath":"/home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally","disabled":false,"__vagrantfile":true}}} \ No newline at end of file diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/vagrant_cwd b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/vagrant_cwd new file mode 100644 index 0000000..d80e93d --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/machines/default/virtualbox/vagrant_cwd @@ -0,0 +1 @@ +/home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally \ No newline at end of file diff --git a/Spin_up_a_virtual_machine_locally/.vagrant/rgloader/loader.rb b/Spin_up_a_virtual_machine_locally/.vagrant/rgloader/loader.rb new file mode 100644 index 0000000..b6c81bf --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/.vagrant/rgloader/loader.rb @@ -0,0 +1,12 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: BUSL-1.1 + +# This file loads the proper rgloader/loader.rb file that comes packaged +# with Vagrant so that encoded files can properly run with Vagrant. + +if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] + require File.expand_path( + "rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]) +else + raise "Encoded files can't be read outside of the Vagrant installer." +end diff --git a/Spin_up_a_virtual_machine_locally/Vagrantfile b/Spin_up_a_virtual_machine_locally/Vagrantfile new file mode 100644 index 0000000..bfab7d2 --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/Vagrantfile @@ -0,0 +1,7 @@ +Vagrant.configure("2") do |config| + + config.vm.box = "ubuntu/jammy64" + config.vm.synced_folder "/home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally", "/home/vagrant/vagrant_data" + config.vm.network "forwarded_port", guest: 3000, host: 8080, host_ip: "127.0.0.1", auto_correct: true + +end diff --git a/Spin_up_a_virtual_machine_locally/terminal.log b/Spin_up_a_virtual_machine_locally/terminal.log new file mode 100644 index 0000000..04843ca --- /dev/null +++ b/Spin_up_a_virtual_machine_locally/terminal.log @@ -0,0 +1,2448 @@ +Script started on 2024-09-07 08:42:39+02:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="179" LINES="15"] +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant start +[?2004l +[0mUsage: vagrant [options] <command> [<args>] + + -h, --help Print this help. + +Common commands: + autocomplete manages autocomplete installation on host + box manages boxes: installation, removal, etc. + cloud manages everything related to Vagrant Cloud + destroy stops and deletes all traces of the vagrant machine + global-status outputs status Vagrant environments for this user + halt stops the vagrant machine + help shows the help for a subcommand + init initializes a new Vagrant environment by creating a Vagrantfile + login + package packages a running vagrant environment into a box + plugin manages plugins: install, uninstall, update, etc. + port displays information about guest port mappings + powershell connects to machine via powershell remoting + provision provisions the vagrant machine + push deploys code in this environment to a configured destination + rdp connects to machine via RDP + reload restarts vagrant machine, loads new Vagrantfile configuration + resume resume a suspended vagrant machine + serve start Vagrant server + snapshot manages snapshots: saving, restoring, etc. + ssh connects to machine via SSH + ssh-config outputs OpenSSH valid configuration to connect to the machine + status outputs status of the vagrant machine + suspend suspends the machine + up starts and provisions the vagrant environment + upload upload to machine via communicator + validate validates the Vagrantfile + version prints current and latest Vagrant version + winrm executes commands on a machine via WinRM + winrm-config outputs WinRM configuration to connect to the machine + +For help on any individual command run `vagrant COMMAND -h` + +Additional subcommands are available, but are either more advanced +or not commonly used. To see all subcommands, run the command +`vagrant list-commands`. + --[no-]color Enable or disable color output + --machine-readable Enable machine readable output + -v, --version Display Vagrant version + --debug Enable debug output + --timestamp Enable timestamps on log output + --debug-timestamp Enable debug output with timestamps + --no-tty Enable non-interactive output +[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant start vm +[?2004l +[0mUsage: vagrant [options] <command> [<args>] + + -h, --help Print this help. + +Common commands: + autocomplete manages autocomplete installation on host + box manages boxes: installation, removal, etc. + cloud manages everything related to Vagrant Cloud + destroy stops and deletes all traces of the vagrant machine + global-status outputs status Vagrant environments for this user + halt stops the vagrant machine + help shows the help for a subcommand + init initializes a new Vagrant environment by creating a Vagrantfile + login + package packages a running vagrant environment into a box + plugin manages plugins: install, uninstall, update, etc. + port displays information about guest port mappings + powershell connects to machine via powershell remoting + provision provisions the vagrant machine + push deploys code in this environment to a configured destination + rdp connects to machine via RDP + reload restarts vagrant machine, loads new Vagrantfile configuration + resume resume a suspended vagrant machine + serve start Vagrant server + snapshot manages snapshots: saving, restoring, etc. + ssh connects to machine via SSH + ssh-config outputs OpenSSH valid configuration to connect to the machine + status outputs status of the vagrant machine + suspend suspends the machine + up starts and provisions the vagrant environment + upload upload to machine via communicator + validate validates the Vagrantfile + version prints current and latest Vagrant version + winrm executes commands on a machine via WinRM + winrm-config outputs WinRM configuration to connect to the machine + +For help on any individual command run `vagrant COMMAND -h` + +Additional subcommands are available, but are either more advanced +or not commonly used. To see all subcommands, run the command +`vagrant list-commands`. + --[no-]color Enable or disable color output + --machine-readable Enable machine readable output + -v, --version Display Vagrant version + --debug Enable debug output + --timestamp Enable timestamps on log output + --debug-timestamp Enable debug output with timestamps + --no-tty Enable non-interactive output +[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Box 'hashicorp/bionic64' could not be found. Attempting to find and install...[0m +[0m default: Box Provider: virtualbox[0m +[0m default: Box Version: >= 0[0m +[1m==> default: Loading metadata for box 'hashicorp/bionic64'[0m +[0m default: URL: https://vagrantcloud.com/api/v2/vagrant/hashicorp/bionic64[0m +[1m==> default: Adding box 'hashicorp/bionic64' (v1.0.282) for provider: virtualbox[0m +[0m default: Downloading: https://vagrantcloud.com/hashicorp/boxes/bionic64/versions/1.0.282/providers/virtualbox/unknown/vagrant.box[0m +[0m +[K[0m[0mProgress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 100% (Rate: 456/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 100% (Rate: 440/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 100% (Rate: 363/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 0% (Rate: 0{/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 0% (Rate: 516k/s, Estimated time remaining: 0:39:22)[0m[0m +[K[0m[0mProgress: 1% (Rate: 3870k/s, Estimated time remaining: 0:03:38)[0m[0m +[K[0m[0mProgress: 3% (Rate: 5488k/s, Estimated time remaining: 0:02:10)[0m[0m +[K[0m[0mProgress: 4% (Rate: 6367k/s, Estimated time remaining: 0:01:41)[0m[0m +[K[0m[0mProgress: 6% (Rate: 6865k/s, Estimated time remaining: 0:01:27)[0m[0m +[K[0m[0mProgress: 8% (Rate: 8693k/s, Estimated time remaining: 0:01:17)[0m[0m +[K[0m[0mProgress: 10% (Rate: 8958k/s, Estimated time remaining: 0:01:12)[0m[0m +[K[0m[0mProgress: 12% (Rate: 8857k/s, Estimated time remaining: 0:01:08)[0m[0m +[K[0m[0mProgress: 13% (Rate: 8835k/s, Estimated time remaining: 0:01:05)[0m[0m +[K[0m[0mProgress: 15% (Rate: 8752k/s, Estimated time remaining: 0:01:02)[0m[0m +[K[0m[0mProgress: 17% (Rate: 8544k/s, Estimated time remaining: 0:00:59)[0m[0m +[K[0m[0mProgress: 18% (Rate: 8643k/s, Estimated time remaining: 0:00:57)[0m[0m +[K[0m[0mProgress: 20% (Rate: 8940k/s, Estimated time remaining: 0:00:54)[0m[0m +[K[0m[0mProgress: 22% (Rate: 9150k/s, Estimated time remaining: 0:00:52)[0m[0m +[K[0m[0mProgress: 24% (Rate: 9644k/s, Estimated time remaining: 0:00:49)[0m[0m +[K[0m[0mProgress: 26% (Rate: 9435k/s, Estimated time remaining: 0:00:48)[0m[0m +[K[0m[0mProgress: 28% (Rate: 9175k/s, Estimated time remaining: 0:00:47)[0m[0m +[K[0m[0mProgress: 30% (Rate: 9381k/s, Estimated time remaining: 0:00:45)[0m[0m +[K[0m[0mProgress: 32% (Rate: 9475k/s, Estimated time remaining: 0:00:43)[0m[0m +[K[0m[0mProgress: 34% (Rate: 9411k/s, Estimated time remaining: 0:00:41)[0m[0m +[K[0m[0mProgress: 36% (Rate: 9843k/s, Estimated time remaining: 0:00:39)[0m[0m +[K[0m[0mProgress: 38% (Rate: 10.3M/s, Estimated time remaining: 0:00:37)[0m[0m +[K[0m[0mProgress: 40% (Rate: 10.2M/s, Estimated time remaining: 0:00:36)[0m[0m +[K[0m[0mProgress: 42% (Rate: 10.2M/s, Estimated time remaining: 0:00:34)[0m[0m +[K[0m[0mProgress: 44% (Rate: 10.2M/s, Estimated time remaining: 0:00:33)[0m[0m +[K[0m[0mProgress: 46% (Rate: 10.1M/s, Estimated time remaining: 0:00:31)[0m[0m +[K[0m[0mProgress: 48% (Rate: 9782k/s, Estimated time remaining: 0:00:30)[0m[0m +[K[0m[0mProgress: 49% (Rate: 9191k/s, Estimated time remaining: 0:00:30)[0m[0m +[K[0m[0mProgress: 51% (Rate: 8849k/s, Estimated time remaining: 0:00:29)[0m[0m +[K[0m[0mProgress: 52% (Rate: 8317k/s, Estimated time remaining: 0:00:28)[0m[0m +[K[0m[0mProgress: 54% (Rate: 7956k/s, Estimated time remaining: 0:00:27)[0m[0m +[K[0m[0mProgress: 55% (Rate: 7747k/s, Estimated time remaining: 0:00:26)[0m[0m +[K[0m[0mProgress: 57% (Rate: 7740k/s, Estimated time remaining: 0:00:26)[0m[0m +[K[0m[0mProgress: 58% (Rate: 7413k/s, Estimated time remaining: 0:00:25)[0m[0m +[K[0m[0mProgress: 60% (Rate: 7301k/s, Estimated time remaining: 0:00:24)[0m[0m +[K[0m[0mProgress: 61% (Rate: 7258k/s, Estimated time remaining: 0:00:23)[0m[0m +[K[0m[0mProgress: 63% (Rate: 7398k/s, Estimated time remaining: 0:00:22)[0m[0m +[K[0m[0mProgress: 64% (Rate: 7348k/s, Estimated time remaining: 0:00:22)[0m[0m +[K[0m[0mProgress: 66% (Rate: 7500k/s, Estimated time remaining: 0:00:21)[0m[0m +[K[0m[0mProgress: 67% (Rate: 7676k/s, Estimated time remaining: 0:00:20)[0m[0m +[K[0m[0mProgress: 69% (Rate: 7682k/s, Estimated time remaining: 0:00:19)[0m[0m +[K[0m[0mProgress: 70% (Rate: 7487k/s, Estimated time remaining: 0:00:18)[0m[0m +[K[0m[0mProgress: 72% (Rate: 7641k/s, Estimated time remaining: 0:00:17)[0m[0m +[K[0m[0mProgress: 73% (Rate: 7547k/s, Estimated time remaining: 0:00:16)[0m[0m +[K[0m[0mProgress: 74% (Rate: 7417k/s, Estimated time remaining: 0:00:15)[0m[0m +[K[0m[0mProgress: 76% (Rate: 7248k/s, Estimated time remaining: 0:00:15)[0m[0m +[K[0m[0mProgress: 77% (Rate: 7441k/s, Estimated time remaining: 0:00:14)[0m[0m +[K[0m[0mProgress: 79% (Rate: 7432k/s, Estimated time remaining: 0:00:13)[0m[0m +[K[0m[0mProgress: 80% (Rate: 7378k/s, Estimated time remaining: 0:00:12)[0m[0m +[K[0m[0mProgress: 82% (Rate: 7415k/s, Estimated time remaining: 0:00:11)[0m[0m +[K[0m[0mProgress: 83% (Rate: 7518k/s, Estimated time remaining: 0:00:10)[0m[0m +[K[0m[0mProgress: 85% (Rate: 7801k/s, Estimated time remaining: 0:00:09)[0m[0m +[K[0m[0mProgress: 87% (Rate: 7750k/s, Estimated time remaining: 0:00:08)[0m[0m +[K[0m[0mProgress: 88% (Rate: 7926k/s, Estimated time remaining: 0:00:07)[0m[0m +[K[0m[0mProgress: 90% (Rate: 7796k/s, Estimated time remaining: 0:00:06)[0m[0m +[K[0m[0mProgress: 91% (Rate: 7603k/s, Estimated time remaining: 0:00:05)[0m[0m +[K[0m[0mProgress: 92% (Rate: 7424k/s, Estimated time remaining: 0:00:04)[0m[0m +[K[0m[0mProgress: 94% (Rate: 7522k/s, Estimated time remaining: 0:00:03)[0m[0m +[K[0m[0mProgress: 95% (Rate: 7241k/s, Estimated time remaining: 0:00:02)[0m[0m +[K[0m[0mProgress: 97% (Rate: 7360k/s, Estimated time remaining: 0:00:02)[0m[0m +[K[0m[0mProgress: 98% (Rate: 7536k/s, Estimated time remaining: 0:00:01)[0m[0m +[K[0m[1;32m==> default: Successfully added box 'hashicorp/bionic64' (v1.0.282) for 'virtualbox'![0m +[1m==> default: Importing base box 'hashicorp/bionic64'...[0m +[0m +[K[0m[0mProgress: 10%[0m[0m +[K[0m[0mProgress: 20%[0m[0m +[K[0m[0mProgress: 30%[0m[0m +[K[0m[0mProgress: 40%[0m[0m +[K[0m[0mProgress: 50%[0m[0m +[K[0m[0mProgress: 60%[0m[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'hashicorp/bionic64' version '1.0.282' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725691593896_45610[0m +[0;33mVagrant is currently configured to create VirtualBox synced folders with +the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant +guest is not trusted, you may want to disable this option. For more +information on this option, please refer to the VirtualBox manual: + + https://www.virtualbox.org/manual/ch04.html#sharedfolders + +This option can be disabled globally with an environment variable: + + VAGRANT_DISABLE_VBOXSYMLINKCREATE=1 + +or on a per folder basis within the Vagrantfile: + + config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.10 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-58-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/advantage + + System information as of Sat Sep 7 06:47:40 UTC 2024 + + System load: 0.56 Processes: 91 + Usage of /: 2.5% of 61.80GB Users logged in: 0 + Memory usage: 11% IP address for eth0: 10.0.2.15 + Swap usage: 0% + + * Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s + just raised the bar for easy, resilient and secure K8s cluster deployment. + + https://ubuntu.com/engage/secure-kubernetes-at-the-edge + +0 packages can be updated. +0 updates are security updates. + + +]0;vagrant@vagrant: ~[01;32mvagrant@vagrant[00m:[01;34m~[00m$ exit +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ ^[[200~GOOS=linux GOARCH=amd64 go build -o ./webservice ./*.go~[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[Kcd .. +[?2004l +[?2004h]0;lucad@lucad: ~/Documents/webservice[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice[00m$ [7mGOOS=linux GOARCH=amd64 go build -o ./webservice ./*.go[27m +[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[CGOOS=linux GOARCH=amd64 go build -o ./webservice ./*.go +[?2004l +[?2004h]0;lucad@lucad: ~/Documents/webservice[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice[00m$ cp webservice ./spi[K[K[KSpin_up_a_virtual_machine_locally/ +[?2004l +[?2004h]0;lucad@lucad: ~/Documents/webservice[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice[00m$ rm webservice +[?2004l +[?2004h]0;lucad@lucad: ~/Documents/webservice[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice[00m$ cd sp[K[KSpin_up_a_virtual_machine_locally/ +[?2004l +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ ls +[?2004l +terminal.log Vagrantfile [0m[01;32mwebservice[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant halt +[?2004l +[1m==> default: Attempting graceful shutdown of VM...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant destroy7[K +[?2004l +[0m default: Are you sure you want to destroy the 'default' VM? [y/N] [0my +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Importing base box 'hashicorp/bionic64'...[0m +[0m +[K[0m[0mProgress: 10%[0m[0m +[K[0m[0mProgress: 20%[0m[0m +[K[0m[0mProgress: 30%[0m[0m +[K[0m[0mProgress: 40%[0m[0m +[K[0m[0mProgress: 50%[0m[0m +[K[0m[0mProgress: 70%[0m[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'hashicorp/bionic64' version '1.0.282' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725691930562_53781[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.10 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh[K[K[Kup[K[Kssh +[?2004l +Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-58-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/advantage + + System information as of Sat Sep 7 06:53:16 UTC 2024 + + System load: 0.26 Processes: 91 + Usage of /: 2.5% of 61.80GB Users logged in: 0 + Memory usage: 11% IP address for eth0: 10.0.2.15 + Swap usage: 0% + + * Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s + just raised the bar for easy, resilient and secure K8s cluster deployment. + + https://ubuntu.com/engage/secure-kubernetes-at-the-edge + +0 packages can be updated. +0 updates are security updates. + + +]0;vagrant@vagrant: ~[01;32mvagrant@vagrant[00m:[01;34m~[00m$ ls +[0m[01;34mvagrant_data[0m +]0;vagrant@vagrant: ~[01;32mvagrant@vagrant[00m:[01;34m~[00m$ cd[K[Kls ./vagrant_data/ +terminal.log Vagrantfile [0m[01;32mwebservice[0m +]0;vagrant@vagrant: ~[01;32mvagrant@vagrant[00m:[01;34m~[00m$ chmod +y[Ky[Kx ./vagrant_data/webservice +]0;vagrant@vagrant: ~[01;32mvagrant@vagrant[00m:[01;34m~[00m$ ./vagrant_data/webservice +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./vagrant_data/webservice) +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./vagrant_data/webservice) +]0;vagrant@vagrant: ~[01;32mvagrant@vagrant[00m:[01;34m~[00m$ cd webs[K[K[K[Kvagrant_data/ +]0;vagrant@vagrant: ~/vagrant_data[01;32mvagrant@vagrant[00m:[01;34m~/vagrant_data[00m$ webs[K[K[K[K./webservice +./webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./webservice) +./webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./webservice) +]0;vagrant@vagrant: ~/vagrant_data[01;32mvagrant@vagrant[00m:[01;34m~/vagrant_data[00m$ exit +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant halt +[?2004l +[1m==> default: Attempting graceful shutdown of VM...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant destrro[K[Koy +[?2004l +[0m default: Are you sure you want to destroy the 'default' VM? [y/N] [0my +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...[0m +[0m default: Box Provider: virtualbox[0m +[0m default: Box Version: >= 0[0m +[1m==> default: Loading metadata for box 'ubuntu/trusty64'[0m +[0m default: URL: https://vagrantcloud.com/api/v2/vagrant/ubuntu/trusty64[0m +[1m==> default: Adding box 'ubuntu/trusty64' (v20191107.0.0) for provider: virtualbox[0m +[0m default: Downloading: https://vagrantcloud.com/ubuntu/boxes/trusty64/versions/20191107.0.0/providers/virtualbox/unknown/vagrant.box[0m +[0m +[K[0m[0mProgress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 0% (Rate: 0{/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 100% (Rate: 117/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mDownload redirected to host: cloud-images.ubuntu.com[0m +[0m +[K[0m[0mProgress: 100% (Rate: 676/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 0% (Rate: 10472/s, Estimated time remaining: 11:54:31)[0m[0m +[K[0m[0mProgress: 1% (Rate: 8294k/s, Estimated time remaining: 0:03:32)[0m[0m +[K[0m[0mProgress: 3% (Rate: 8203k/s, Estimated time remaining: 0:02:11)[0m[0m +[K[0m[0mProgress: 5% (Rate: 8229k/s, Estimated time remaining: 0:01:42)[0m[0m +[K[0m[0mProgress: 7% (Rate: 8332k/s, Estimated time remaining: 0:01:26)[0m[0m +[K[0m[0mProgress: 9% (Rate: 8330k/s, Estimated time remaining: 0:01:17)[0m[0m +[K[0m[0mProgress: 11% (Rate: 8408k/s, Estimated time remaining: 0:01:10)[0m[0m +[K[0m[0mProgress: 13% (Rate: 8590k/s, Estimated time remaining: 0:01:04)[0m[0m +[K[0m[0mProgress: 15% (Rate: 8927k/s, Estimated time remaining: 0:00:59)[0m[0m +[K[0m[0mProgress: 17% (Rate: 9104k/s, Estimated time remaining: 0:00:55)[0m[0m +[K[0m[0mProgress: 20% (Rate: 9400k/s, Estimated time remaining: 0:00:51)[0m[0m +[K[0m[0mProgress: 21% (Rate: 8773k/s, Estimated time remaining: 0:00:51)[0m[0m +[K[0m[0mProgress: 23% (Rate: 8840k/s, Estimated time remaining: 0:00:48)[0m[0m +[K[0m[0mProgress: 25% (Rate: 8678k/s, Estimated time remaining: 0:00:46)[0m[0m +[K[0m[0mProgress: 27% (Rate: 8501k/s, Estimated time remaining: 0:00:44)[0m[0m +[K[0m[0mProgress: 29% (Rate: 8513k/s, Estimated time remaining: 0:00:42)[0m[0m +[K[0m[0mProgress: 32% (Rate: 9362k/s, Estimated time remaining: 0:00:40)[0m[0m +[K[0m[0mProgress: 34% (Rate: 9433k/s, Estimated time remaining: 0:00:38)[0m[0m +[K[0m[0mProgress: 36% (Rate: 9356k/s, Estimated time remaining: 0:00:37)[0m[0m +[K[0m[0mProgress: 38% (Rate: 9463k/s, Estimated time remaining: 0:00:35)[0m[0m +[K[0m[0mProgress: 40% (Rate: 9099k/s, Estimated time remaining: 0:00:34)[0m[0m +[K[0m[0mProgress: 42% (Rate: 8845k/s, Estimated time remaining: 0:00:33)[0m[0m +[K[0m[0mProgress: 44% (Rate: 8627k/s, Estimated time remaining: 0:00:31)[0m[0m +[K[0m[0mProgress: 45% (Rate: 8185k/s, Estimated time remaining: 0:00:31)[0m[0m +[K[0m[0mProgress: 47% (Rate: 7996k/s, Estimated time remaining: 0:00:29)[0m[0m +[K[0m[0mProgress: 49% (Rate: 7945k/s, Estimated time remaining: 0:00:28)[0m[0m +[K[0m[0mProgress: 51% (Rate: 7954k/s, Estimated time remaining: 0:00:27)[0m[0m +[K[0m[0mProgress: 53% (Rate: 7830k/s, Estimated time remaining: 0:00:26)[0m[0m +[K[0m[0mProgress: 55% (Rate: 8240k/s, Estimated time remaining: 0:00:25)[0m[0m +[K[0m[0mProgress: 56% (Rate: 8185k/s, Estimated time remaining: 0:00:24)[0m[0m +[K[0m[0mProgress: 58% (Rate: 8367k/s, Estimated time remaining: 0:00:23)[0m[0m +[K[0m[0mProgress: 60% (Rate: 8401k/s, Estimated time remaining: 0:00:22)[0m[0m +[K[0m[0mProgress: 63% (Rate: 8625k/s, Estimated time remaining: 0:00:20)[0m[0m +[K[0m[0mProgress: 64% (Rate: 8530k/s, Estimated time remaining: 0:00:19)[0m[0m +[K[0m[0mProgress: 66% (Rate: 8659k/s, Estimated time remaining: 0:00:18)[0m[0m +[K[0m[0mProgress: 69% (Rate: 8848k/s, Estimated time remaining: 0:00:17)[0m[0m +[K[0m[0mProgress: 71% (Rate: 8916k/s, Estimated time remaining: 0:00:16)[0m[0m +[K[0m[0mProgress: 73% (Rate: 9141k/s, Estimated time remaining: 0:00:14)[0m[0m +[K[0m[0mProgress: 75% (Rate: 9164k/s, Estimated time remaining: 0:00:13)[0m[0m +[K[0m[0mProgress: 77% (Rate: 9038k/s, Estimated time remaining: 0:00:12)[0m[0m +[K[0m[0mProgress: 79% (Rate: 8873k/s, Estimated time remaining: 0:00:11)[0m[0m +[K[0m[0mProgress: 81% (Rate: 8694k/s, Estimated time remaining: 0:00:10)[0m[0m +[K[0m[0mProgress: 82% (Rate: 8310k/s, Estimated time remaining: 0:00:09)[0m[0m +[K[0m[0mProgress: 84% (Rate: 8345k/s, Estimated time remaining: 0:00:08)[0m[0m +[K[0m[0mProgress: 86% (Rate: 8234k/s, Estimated time remaining: 0:00:07)[0m[0m +[K[0m[0mProgress: 88% (Rate: 8385k/s, Estimated time remaining: 0:00:06)[0m[0m +[K[0m[0mProgress: 90% (Rate: 8635k/s, Estimated time remaining: 0:00:05)[0m[0m +[K[0m[0mProgress: 93% (Rate: 8967k/s, Estimated time remaining: 0:00:03)[0m[0m +[K[0m[0mProgress: 95% (Rate: 9059k/s, Estimated time remaining: 0:00:02)[0m[0m +[K[0m[0mProgress: 97% (Rate: 9547k/s, Estimated time remaining: 0:00:01)[0m[0m +[K[0m[0mProgress: 99% (Rate: 9559k/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[1;32m==> default: Successfully added box 'ubuntu/trusty64' (v20191107.0.0) for 'virtualbox'![0m +[1m==> default: Importing base box 'ubuntu/trusty64'...[0m +[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'ubuntu/trusty64' version '20191107.0.0' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725692226345_4601[0m +[1m==> default: Clearing any previously set forwarded ports...[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 4.3.40 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssj[Kh +[?2004l +Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 3.13.0-170-generic x86_64) + + * Documentation: https://help.ubuntu.com/ + + System information as of Sat Sep 7 06:57:31 UTC 2024 + + System load: 0.8 Processes: 81 + Usage of /: 3.6% of 39.34GB Users logged in: 0 + Memory usage: 25% IP address for eth0: 10.0.2.15 + Swap usage: 0% + + Graph this data and manage this system at: + https://landscape.canonical.com/ + +UA Infrastructure Extended Security Maintenance (ESM) is not enabled. + +0 updates can be installed immediately. +0 of these updates are security updates. + +Enable UA Infrastructure ESM to receive 64 additional security updates. +See https://ubuntu.com/advantage or run: sudo ua status + +New release '16.04.7 LTS' available. +Run 'do-release-upgrade' to upgrade to it. + + +]0;vagrant@vagrant-ubuntu-trusty-64: ~vagrant@vagrant-ubuntu-trusty-64:~$ ls +[0m[01;34mvagrant_data[0m +]0;vagrant@vagrant-ubuntu-trusty-64: ~vagrant@vagrant-ubuntu-trusty-64:~$ ls vagrant_data/ +terminal.log Vagrantfile [0m[01;32mwebservice[0m +]0;vagrant@vagrant-ubuntu-trusty-64: ~vagrant@vagrant-ubuntu-trusty-64:~$ chmod +x vagrant_data/webservice +]0;vagrant@vagrant-ubuntu-trusty-64: ~vagrant@vagrant-ubuntu-trusty-64:~$ ./vagrant_data/webservice +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./vagrant_data/webservice) +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./vagrant_data/webservice) +]0;vagrant@vagrant-ubuntu-trusty-64: ~vagrant@vagrant-ubuntu-trusty-64:~$ exit +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagranr [K[Kt z[Kup +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Checking if box 'ubuntu/trusty64' version '20191107.0.0' is up to date...[0m +[1m==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` +==> default: flag to force provisioning. Provisioners marked to run always will still run.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant sh[Ksh +[?2004l +Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 3.13.0-170-generic x86_64) + + * Documentation: https://help.ubuntu.com/ + + System information as of Sat Sep 7 07:01:01 UTC 2024 + + System load: 0.26 Processes: 77 + Usage of /: 3.6% of 39.34GB Users logged in: 0 + Memory usage: 25% IP address for eth0: 10.0.2.15 + Swap usage: 0% + + Graph this data and manage this system at: + https://landscape.canonical.com/ + +UA Infrastructure Extended Security Maintenance (ESM) is not enabled. + +0 updates can be installed immediately. +0 of these updates are security updates. + +Enable UA Infrastructure ESM to receive 64 additional security updates. +See https://ubuntu.com/advantage or run: sudo ua status + +New release '16.04.7 LTS' available. +Run 'do-release-upgrade' to upgrade to it. + + +Last login: Sat Sep 7 07:01:01 2024 from 10.0.2.2 + +]0;vagrant@vagrant-ubuntu-trusty-64: ~vagrant@vagrant-ubuntu-trusty-64:~$ ./vagrant_data/webservice +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./vagrant_data/webservice) +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./vagrant_data/webservice) +]0;vagrant@vagrant-ubuntu-trusty-64: ~vagrant@vagrant-ubuntu-trusty-64:~$ exit +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant -f destroy +[?2004l +[0m default: Are you sure you want to destroy the 'default' VM? [y/N] [0my +[1m==> default: Forcing shutdown of VM...[0m +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant u[Kstatus +[?2004l +[0mCurrent machine states: + +default not created (virtualbox) + +The environment has not yet been created. Run `vagrant up` to +create the environment. If a machine is not created, only the +default provider will be shown. So if a provider is not listed, +then the machine is not created for that environment.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Box 'ubuntu/focal64' could not be found. Attempting to find and install...[0m +[0m default: Box Provider: virtualbox[0m +[0m default: Box Version: >= 0[0m +[1m==> default: Loading metadata for box 'ubuntu/focal64'[0m +[0m default: URL: https://vagrantcloud.com/api/v2/vagrant/ubuntu/focal64[0m +[1m==> default: Adding box 'ubuntu/focal64' (v20240821.0.0) for provider: virtualbox[0m +[0m default: Downloading: https://vagrantcloud.com/ubuntu/boxes/focal64/versions/20240821.0.0/providers/virtualbox/unknown/vagrant.box[0m +[0m +[K[0m[0mProgress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 100% (Rate: 183/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mDownload redirected to host: cloud-images.ubuntu.com[0m +[0m +[K[0m[0mProgress: 100% (Rate: 145/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 0% (Rate: 1019k/s, Estimated time remaining: 0:09:27)[0m[0m +[K[0m[0mProgress: 2% (Rate: 8757k/s, Estimated time remaining: 0:03:30)[0m[0m +[K[0m[0mProgress: 3% (Rate: 9536k/s, Estimated time remaining: 0:02:18)[0m[0m +[K[0m[0mProgress: 5% (Rate: 9381k/s, Estimated time remaining: 0:01:54)[0m[0m +[K[0m[0mProgress: 7% (Rate: 9411k/s, Estimated time remaining: 0:01:40)[0m[0m +[K[0m[0mProgress: 8% (Rate: 9357k/s, Estimated time remaining: 0:01:31)[0m[0m +[K[0m[0mProgress: 10% (Rate: 9347k/s, Estimated time remaining: 0:01:25)[0m[0m +[K[0m[0mProgress: 11% (Rate: 9196k/s, Estimated time remaining: 0:01:19)[0m[0m +[K[0m[0mProgress: 13% (Rate: 9212k/s, Estimated time remaining: 0:01:15)[0m[0m +[K[0m[0mProgress: 15% (Rate: 9313k/s, Estimated time remaining: 0:01:11)[0m[0m +[K[0m[0mProgress: 16% (Rate: 9319k/s, Estimated time remaining: 0:01:08)[0m[0m +[K[0m[0mProgress: 18% (Rate: 9175k/s, Estimated time remaining: 0:01:06)[0m[0m +[K[0m[0mProgress: 19% (Rate: 8839k/s, Estimated time remaining: 0:01:05)[0m[0m +[K[0m[0mProgress: 21% (Rate: 8895k/s, Estimated time remaining: 0:01:02)[0m[0m +[K[0m[0mProgress: 22% (Rate: 8705k/s, Estimated time remaining: 0:01:00)[0m[0m +[K[0m[0mProgress: 24% (Rate: 8782k/s, Estimated time remaining: 0:00:58)[0m[0m +[K[0m[0mProgress: 25% (Rate: 9064k/s, Estimated time remaining: 0:00:56)[0m[0m +[K[0m[0mProgress: 27% (Rate: 9499k/s, Estimated time remaining: 0:00:54)[0m[0m +[K[0m[0mProgress: 29% (Rate: 9594k/s, Estimated time remaining: 0:00:52)[0m[0m +[K[0m[0mProgress: 30% (Rate: 9422k/s, Estimated time remaining: 0:00:51)[0m[0m +[K[0m[0mProgress: 32% (Rate: 9414k/s, Estimated time remaining: 0:00:50)[0m[0m +[K[0m[0mProgress: 33% (Rate: 9132k/s, Estimated time remaining: 0:00:49)[0m[0m +[K[0m[0mProgress: 34% (Rate: 8400k/s, Estimated time remaining: 0:00:48)[0m[0m +[K[0m[0mProgress: 36% (Rate: 8083k/s, Estimated time remaining: 0:00:47)[0m[0m +[K[0m[0mProgress: 37% (Rate: 7855k/s, Estimated time remaining: 0:00:46)[0m[0m +[K[0m[0mProgress: 38% (Rate: 7123k/s, Estimated time remaining: 0:00:46)[0m[0m +[K[0m[0mProgress: 39% (Rate: 7123k/s, Estimated time remaining: 0:00:45)[0m[0m +[K[0m[0mProgress: 41% (Rate: 7743k/s, Estimated time remaining: 0:00:43)[0m[0m +[K[0m[0mProgress: 42% (Rate: 7774k/s, Estimated time remaining: 0:00:42)[0m[0m +[K[0m[0mProgress: 44% (Rate: 8067k/s, Estimated time remaining: 0:00:41)[0m[0m +[K[0m[0mProgress: 45% (Rate: 8564k/s, Estimated time remaining: 0:00:40)[0m[0m +[K[0m[0mProgress: 47% (Rate: 8590k/s, Estimated time remaining: 0:00:39)[0m[0m +[K[0m[0mProgress: 48% (Rate: 8132k/s, Estimated time remaining: 0:00:38)[0m[0m +[K[0m[0mProgress: 49% (Rate: 7873k/s, Estimated time remaining: 0:00:37)[0m[0m +[K[0m[0mProgress: 50% (Rate: 7505k/s, Estimated time remaining: 0:00:36)[0m[0m +[K[0m[0mProgress: 51% (Rate: 7070k/s, Estimated time remaining: 0:00:36)[0m[0m +[K[0m[0mProgress: 53% (Rate: 6815k/s, Estimated time remaining: 0:00:35)[0m[0m +[K[0m[0mProgress: 54% (Rate: 6728k/s, Estimated time remaining: 0:00:34)[0m[0m +[K[0m[0mProgress: 55% (Rate: 6668k/s, Estimated time remaining: 0:00:34)[0m[0m +[K[0m[0mProgress: 56% (Rate: 6546k/s, Estimated time remaining: 0:00:33)[0m[0m +[K[0m[0mProgress: 57% (Rate: 6591k/s, Estimated time remaining: 0:00:32)[0m[0m +[K[0m[0mProgress: 58% (Rate: 6599k/s, Estimated time remaining: 0:00:31)[0m[0m +[K[0m[0mProgress: 59% (Rate: 6524k/s, Estimated time remaining: 0:00:31)[0m[0m +[K[0m[0mProgress: 61% (Rate: 6585k/s, Estimated time remaining: 0:00:30)[0m[0m +[K[0m[0mProgress: 62% (Rate: 6909k/s, Estimated time remaining: 0:00:29)[0m[0m +[K[0m[0mProgress: 63% (Rate: 6922k/s, Estimated time remaining: 0:00:28)[0m[0m +[K[0m[0mProgress: 65% (Rate: 7273k/s, Estimated time remaining: 0:00:27)[0m[0m +[K[0m[0mProgress: 66% (Rate: 7549k/s, Estimated time remaining: 0:00:26)[0m[0m +[K[0m[0mProgress: 67% (Rate: 7726k/s, Estimated time remaining: 0:00:25)[0m[0m +[K[0m[0mProgress: 69% (Rate: 7905k/s, Estimated time remaining: 0:00:23)[0m[0m +[K[0m[0mProgress: 70% (Rate: 8280k/s, Estimated time remaining: 0:00:22)[0m[0m +[K[0m[0mProgress: 72% (Rate: 8156k/s, Estimated time remaining: 0:00:21)[0m[0m +[K[0m[0mProgress: 73% (Rate: 8224k/s, Estimated time remaining: 0:00:20)[0m[0m +[K[0m[0mProgress: 74% (Rate: 8363k/s, Estimated time remaining: 0:00:19)[0m[0m +[K[0m[0mProgress: 76% (Rate: 8139k/s, Estimated time remaining: 0:00:18)[0m[0m +[K[0m[0mProgress: 77% (Rate: 7601k/s, Estimated time remaining: 0:00:17)[0m[0m +[K[0m[0mProgress: 78% (Rate: 7539k/s, Estimated time remaining: 0:00:16)[0m[0m +[K[0m[0mProgress: 79% (Rate: 7395k/s, Estimated time remaining: 0:00:15)[0m[0m +[K[0m[0mProgress: 81% (Rate: 7155k/s, Estimated time remaining: 0:00:14)[0m[0m +[K[0m[0mProgress: 82% (Rate: 7186k/s, Estimated time remaining: 0:00:13)[0m[0m +[K[0m[0mProgress: 83% (Rate: 7628k/s, Estimated time remaining: 0:00:12)[0m[0m +[K[0m[0mProgress: 85% (Rate: 8110k/s, Estimated time remaining: 0:00:11)[0m[0m +[K[0m[0mProgress: 87% (Rate: 8422k/s, Estimated time remaining: 0:00:10)[0m[0m +[K[0m[0mProgress: 88% (Rate: 8890k/s, Estimated time remaining: 0:00:09)[0m[0m +[K[0m[0mProgress: 90% (Rate: 9168k/s, Estimated time remaining: 0:00:07)[0m[0m +[K[0m[0mProgress: 91% (Rate: 9260k/s, Estimated time remaining: 0:00:06)[0m[0m +[K[0m[0mProgress: 92% (Rate: 8463k/s, Estimated time remaining: 0:00:06)[0m[0m +[K[0m[0mProgress: 94% (Rate: 8185k/s, Estimated time remaining: 0:00:05)[0m[0m +[K[0m[0mProgress: 95% (Rate: 7782k/s, Estimated time remaining: 0:00:04)[0m[0m +[K[0m[0mProgress: 96% (Rate: 7571k/s, Estimated time remaining: 0:00:03)[0m[0m +[K[0m[0mProgress: 98% (Rate: 7822k/s, Estimated time remaining: 0:00:01)[0m[0m +[K[0m[0mProgress: 99% (Rate: 8310k/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[1;32m==> default: Successfully added box 'ubuntu/focal64' (v20240821.0.0) for 'virtualbox'![0m +[1m==> default: Importing base box 'ubuntu/focal64'...[0m +[0m +[K[0m[0mProgress: 10%[0m[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'ubuntu/focal64' version '20240821.0.0' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725692688535_25180[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: Warning: Connection reset. Retrying...[0m +[0m default: Warning: Remote connection disconnect. Retrying...[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.1.50 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrn[Kant ssh +[?2004l +Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-193-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:05:06 UTC 2024 + + System load: 0.22 Processes: 130 + Usage of /: 3.5% of 38.70GB Users logged in: 0 + Memory usage: 19% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update +New release '22.04.3 LTS' available. +Run 'do-release-upgrade' to upgrade to it. + + +]0;vagrant@ubuntu-focal: ~[01;32mvagrant@ubuntu-focal[00m:[01;34m~[00m$ vagrant [K[K[K[K[K[K[K[Kchmod [K[K[K[K[K[Kls +[0m[01;34mvagrant_data[0m +]0;vagrant@ubuntu-focal: ~[01;32mvagrant@ubuntu-focal[00m:[01;34m~[00m$ chmod vag[K[K[K+x vagrant_data/webservice +]0;vagrant@ubuntu-focal: ~[01;32mvagrant@ubuntu-focal[00m:[01;34m~[00m$ ./vagrant_data/webservice +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./vagrant_data/webservice) +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./vagrant_data/webservice) +]0;vagrant@ubuntu-focal: ~[01;32mvagrant@ubuntu-focal[00m:[01;34m~[00m$ cd vagrant_data/ +]0;vagrant@ubuntu-focal: ~/vagrant_data[01;32mvagrant@ubuntu-focal[00m:[01;34m~/vagrant_data[00m$ ./wev[Kbservice +./webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./webservice) +./webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./webservice) +]0;vagrant@ubuntu-focal: ~/vagrant_data[01;32mvagrant@ubuntu-focal[00m:[01;34m~/vagrant_data[00m$ exit +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant destroy -f[K[K[K-destroy[Cdestroy[1Pestroyfdestroy destroy +[?2004l +[0m default: Are you sure you want to destroy the 'default' VM? [y/N] [0my +[1m==> default: Forcing shutdown of VM...[0m +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Importing base box 'ubuntu/focal64'...[0m +[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'ubuntu/focal64' version '20240821.0.0' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725692850660_53062[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.1.50 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-193-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:07:47 UTC 2024 + + System load: 1.42 Processes: 124 + Usage of /: 3.5% of 38.70GB Users logged in: 0 + Memory usage: 22% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update +New release '22.04.3 LTS' available. +Run 'do-release-upgrade' to upgrade to it. + + +]0;vagrant@ubuntu-focal: ~[01;32mvagrant@ubuntu-focal[00m:[01;34m~[00m$ vagrant_data/cvagrant_data/hvagrant_data/mvagrant_data/ovagrant_data/dvagrant_data/ vagrant_data/+vagrant_data/xvagrant_data/ vagrant_data/[C[C[C[C[C[C[C[C[C[C[C[C[Cwebservice +]0;vagrant@ubuntu-focal: ~[01;32mvagrant@ubuntu-focal[00m:[01;34m~[00m$ ./vagrant_data/webservice +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./vagrant_data/webservice) +./vagrant_data/webservice: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./vagrant_data/webservice) +]0;vagrant@ubuntu-focal: ~[01;32mvagrant@ubuntu-focal[00m:[01;34m~[00m$ exit +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ [7mGOOS=linux GOARCH=amd64 go build -o ./webservice ./*.go[27mGOOS=linux GOARCH=amd64 go build -o ./webservice ./*.go +[?2004l +stat /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally/*.go: directory not found +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ ./webservice +[?2004l +2024/09/07 09:09:12 Starting application... +2024/09/07 09:09:12 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T09:09:12.382+02:00 level=INFO msg="Using ephemeral store" +time=2024-09-07T09:09:12.382+02:00 level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID ............. [96m24890[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +exit + +^Ctime=2024-09-07T09:09:21.971+02:00 level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant destroy -f +[?2004l +[1m==> default: Forcing shutdown of VM...[0m +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrn[Kant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Box 'ubuntu/jammy64' could not be found. Attempting to find and install...[0m +[0m default: Box Provider: virtualbox[0m +[0m default: Box Version: >= 0[0m +[1m==> default: Loading metadata for box 'ubuntu/jammy64'[0m +[0m default: URL: https://vagrantcloud.com/api/v2/vagrant/ubuntu/jammy64[0m +[1m==> default: Adding box 'ubuntu/jammy64' (v20240823.0.1) for provider: virtualbox[0m +[0m default: Downloading: https://vagrantcloud.com/ubuntu/boxes/jammy64/versions/20240823.0.1/providers/virtualbox/unknown/vagrant.box[0m +[0m +[K[0m[0mProgress: 0% (Rate: 0*/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 100% (Rate: 120/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 100% (Rate: 119/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mDownload redirected to host: cloud-images.ubuntu.com[0m +[0m +[K[0m[0mProgress: 100% (Rate: 61/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 100% (Rate: 0/s, Estimated time remaining: --:--:--)[0m[0m +[K[0m[0mProgress: 1% (Rate: 1925k/s, Estimated time remaining: 0:05:09)[0m[0m +[K[0m[0mProgress: 2% (Rate: 9472k/s, Estimated time remaining: 0:02:40)[0m[0m +[K[0m[0mProgress: 4% (Rate: 9576k/s, Estimated time remaining: 0:02:01)[0m[0m +[K[0m[0mProgress: 5% (Rate: 9434k/s, Estimated time remaining: 0:01:44)[0m[0m +[K[0m[0mProgress: 7% (Rate: 9532k/s, Estimated time remaining: 0:01:32)[0m[0m +[K[0m[0mProgress: 9% (Rate: 9584k/s, Estimated time remaining: 0:01:24)[0m[0m +[K[0m[0mProgress: 10% (Rate: 9703k/s, Estimated time remaining: 0:01:18)[0m[0m +[K[0m[0mProgress: 12% (Rate: 9564k/s, Estimated time remaining: 0:01:14)[0m[0m +[K[0m[0mProgress: 13% (Rate: 9504k/s, Estimated time remaining: 0:01:12)[0m[0m +[K[0m[0mProgress: 15% (Rate: 9324k/s, Estimated time remaining: 0:01:09)[0m[0m +[K[0m[0mProgress: 16% (Rate: 8692k/s, Estimated time remaining: 0:01:09)[0m[0m +[K[0m[0mProgress: 17% (Rate: 8483k/s, Estimated time remaining: 0:01:06)[0m[0m +[K[0m[0mProgress: 19% (Rate: 8524k/s, Estimated time remaining: 0:01:04)[0m[0m +[K[0m[0mProgress: 20% (Rate: 8572k/s, Estimated time remaining: 0:01:02)[0m[0m +[K[0m[0mProgress: 22% (Rate: 8567k/s, Estimated time remaining: 0:01:00)[0m[0m +[K[0m[0mProgress: 23% (Rate: 9145k/s, Estimated time remaining: 0:00:58)[0m[0m +[K[0m[0mProgress: 25% (Rate: 9362k/s, Estimated time remaining: 0:00:56)[0m[0m +[K[0m[0mProgress: 27% (Rate: 9477k/s, Estimated time remaining: 0:00:54)[0m[0m +[K[0m[0mProgress: 28% (Rate: 9718k/s, Estimated time remaining: 0:00:52)[0m[0m +[K[0m[0mProgress: 30% (Rate: 9909k/s, Estimated time remaining: 0:00:51)[0m[0m +[K[0m[0mProgress: 31% (Rate: 9622k/s, Estimated time remaining: 0:00:50)[0m[0m +[K[0m[0mProgress: 33% (Rate: 9456k/s, Estimated time remaining: 0:00:48)[0m[0m +[K[0m[0mProgress: 35% (Rate: 9459k/s, Estimated time remaining: 0:00:47)[0m[0m +[K[0m[0mProgress: 36% (Rate: 9238k/s, Estimated time remaining: 0:00:46)[0m[0m +[K[0m[0mProgress: 38% (Rate: 8997k/s, Estimated time remaining: 0:00:44)[0m[0m +[K[0m[0mProgress: 39% (Rate: 8953k/s, Estimated time remaining: 0:00:44)[0m[0m +[K[0m[0mProgress: 40% (Rate: 8898k/s, Estimated time remaining: 0:00:42)[0m[0m +[K[0m[0mProgress: 42% (Rate: 8748k/s, Estimated time remaining: 0:00:41)[0m[0m +[K[0m[0mProgress: 43% (Rate: 8588k/s, Estimated time remaining: 0:00:40)[0m[0m +[K[0m[0mProgress: 45% (Rate: 8655k/s, Estimated time remaining: 0:00:39)[0m[0m +[K[0m[0mProgress: 46% (Rate: 8788k/s, Estimated time remaining: 0:00:38)[0m[0m +[K[0m[0mProgress: 48% (Rate: 8633k/s, Estimated time remaining: 0:00:37)[0m[0m +[K[0m[0mProgress: 49% (Rate: 8431k/s, Estimated time remaining: 0:00:36)[0m[0m +[K[0m[0mProgress: 50% (Rate: 8393k/s, Estimated time remaining: 0:00:35)[0m[0m +[K[0m[0mProgress: 52% (Rate: 8154k/s, Estimated time remaining: 0:00:34)[0m[0m +[K[0m[0mProgress: 53% (Rate: 7871k/s, Estimated time remaining: 0:00:34)[0m[0m +[K[0m[0mProgress: 54% (Rate: 7961k/s, Estimated time remaining: 0:00:33)[0m[0m +[K[0m[0mProgress: 55% (Rate: 7854k/s, Estimated time remaining: 0:00:32)[0m[0m +[K[0m[0mProgress: 57% (Rate: 7756k/s, Estimated time remaining: 0:00:31)[0m[0m +[K[0m[0mProgress: 58% (Rate: 7673k/s, Estimated time remaining: 0:00:30)[0m[0m +[K[0m[0mProgress: 59% (Rate: 7852k/s, Estimated time remaining: 0:00:29)[0m[0m +[K[0m[0mProgress: 60% (Rate: 7524k/s, Estimated time remaining: 0:00:28)[0m[0m +[K[0m[0mProgress: 62% (Rate: 7453k/s, Estimated time remaining: 0:00:28)[0m[0m +[K[0m[0mProgress: 63% (Rate: 7340k/s, Estimated time remaining: 0:00:27)[0m[0m +[K[0m[0mProgress: 64% (Rate: 7270k/s, Estimated time remaining: 0:00:26)[0m[0m +[K[0m[0mProgress: 65% (Rate: 6444k/s, Estimated time remaining: 0:00:26)[0m[0m +[K[0m[0mProgress: 66% (Rate: 6503k/s, Estimated time remaining: 0:00:25)[0m[0m +[K[0m[0mProgress: 67% (Rate: 6408k/s, Estimated time remaining: 0:00:24)[0m[0m +[K[0m[0mProgress: 68% (Rate: 6337k/s, Estimated time remaining: 0:00:23)[0m[0m +[K[0m[0mProgress: 69% (Rate: 6456k/s, Estimated time remaining: 0:00:23)[0m[0m +[K[0m[0mProgress: 71% (Rate: 7136k/s, Estimated time remaining: 0:00:22)[0m[0m +[K[0m[0mProgress: 72% (Rate: 7124k/s, Estimated time remaining: 0:00:21)[0m[0m +[K[0m[0mProgress: 73% (Rate: 7716k/s, Estimated time remaining: 0:00:20)[0m[0m +[K[0m[0mProgress: 75% (Rate: 8030k/s, Estimated time remaining: 0:00:18)[0m[0m +[K[0m[0mProgress: 76% (Rate: 8422k/s, Estimated time remaining: 0:00:17)[0m[0m +[K[0m[0mProgress: 77% (Rate: 8208k/s, Estimated time remaining: 0:00:16)[0m[0m +[K[0m[0mProgress: 79% (Rate: 8418k/s, Estimated time remaining: 0:00:15)[0m[0m +[K[0m[0mProgress: 80% (Rate: 8209k/s, Estimated time remaining: 0:00:14)[0m[0m +[K[0m[0mProgress: 82% (Rate: 8203k/s, Estimated time remaining: 0:00:13)[0m[0m +[K[0m[0mProgress: 83% (Rate: 7948k/s, Estimated time remaining: 0:00:12)[0m[0m +[K[0m[0mProgress: 84% (Rate: 8502k/s, Estimated time remaining: 0:00:11)[0m[0m +[K[0m[0mProgress: 86% (Rate: 8714k/s, Estimated time remaining: 0:00:10)[0m[0m +[K[0m[0mProgress: 88% (Rate: 8883k/s, Estimated time remaining: 0:00:09)[0m[0m +[K[0m[0mProgress: 89% (Rate: 9180k/s, Estimated time remaining: 0:00:08)[0m[0m +[K[0m[0mProgress: 91% (Rate: 9202k/s, Estimated time remaining: 0:00:06)[0m[0m +[K[0m[0mProgress: 92% (Rate: 9045k/s, Estimated time remaining: 0:00:05)[0m[0m +[K[0m[0mProgress: 93% (Rate: 8797k/s, Estimated time remaining: 0:00:04)[0m[0m +[K[0m[0mProgress: 95% (Rate: 8473k/s, Estimated time remaining: 0:00:04)[0m[0m +[K[0m[0mProgress: 96% (Rate: 8050k/s, Estimated time remaining: 0:00:03)[0m[0m +[K[0m[0mProgress: 97% (Rate: 7859k/s, Estimated time remaining: 0:00:02)[0m[0m +[K[0m[0mProgress: 98% (Rate: 7789k/s, Estimated time remaining: 0:00:01)[0m[0m +[K[0m[1;32m==> default: Successfully added box 'ubuntu/jammy64' (v20240823.0.1) for 'virtualbox'![0m +[1m==> default: Importing base box 'ubuntu/jammy64'...[0m +[0m +[K[0m[0mProgress: 20%[0m[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725693170328_39107[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagranr ssh[K[K[K[K[Kt sh[Ksh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:14:23 UTC 2024 + + System load: 0.11 Processes: 106 + Usage of /: 3.7% of 38.70GB Users logged in: 0 + Memory usage: 22% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ webs[K[K[K[Kvagrant_data/cvagrant_data/hvagrant_data/mvagrant_data/ovagrant_data/dvagrant_data/ vagrant_data/-vagrant_data/[1Pvagrant_data/+vagrant_data/xvagrant_data/ vagrant_data/[C[C[C[C[C[C[C[C[C[C[C[C[Cwebservice +[?2004l +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./vagrant_data/webservice +[?2004l +2024/09/07 07:14:43 Starting application... +2024/09/07 07:14:43 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T07:14:43.062Z level=INFO msg="Using ephemeral store" +time=2024-09-07T07:14:43.073Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m2026[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^X^Ctime=2024-09-07T07:14:47.141Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant reload +[?2004l +[1m==> default: Attempting graceful shutdown of VM...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Clearing any previously set forwarded ports...[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[1m==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` +==> default: flag to force provisioning. Provisioners marked to run always will still run.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up[K[K[K[K[K[K[K[K[K[Kvagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:20:27 UTC 2024 + + System load: 0.12 Processes: 106 + Usage of /: 3.7% of 38.70GB Users logged in: 0 + Memory usage: 21% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +Last login: Sat Sep 7 07:14:23 2024 from 10.0.2.2 + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ [7mcurl -s http://localhost:8080[27m +[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Ccurl -s http://localhost:8080 +[?2004l +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ curl -s http://localhost:8080[K[K[K[K3000 +[?2004l +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ [7mcurl -s http://localhost:8080[27mcurl -s http://localhost:8080 +[?2004l +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:21:42 UTC 2024 + + System load: 0.07 Processes: 106 + Usage of /: 3.7% of 38.70GB Users logged in: 0 + Memory usage: 20% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +Last login: Sat Sep 7 07:20:28 2024 from 10.0.2.2 + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./vagrant_data/webservice +[?2004l +2024/09/07 07:22:02 Starting application... +2024/09/07 07:22:02 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T07:22:02.107Z level=INFO msg="Using ephemeral store" +time=2024-09-07T07:22:02.122Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1296[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^X^Ctime=2024-09-07T07:22:04.878Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ curl [7m127.0.0.1:3000[27m127.0.0.1:3000h127.0.0.1:3000t127.0.0.1:3000t127.0.0.1:3000p127.0.0.1:3000:127.0.0.1:3000/127.0.0.1:3000/127.0.0.1:3000 +[?2004l +curl: (7) Failed to connect to 127.0.0.1 port 3000 after 0 ms: Connection refused +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ curl http://127.0.0.1:3000[C[C[K[K[K[K[K +[?2004l +curl: (7) Failed to connect to 127.0.0.1 port 80 after 0 ms: Connection refused +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ curl http://127.0.0.1:3000[C[C[C[C[C[C[K[K[K[K8080 +[?2004l +curl: (7) Failed to connect to 127.0.0.1 port 8080 after 0 ms: Connection refused +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ curl http://127.0.0.1:8080-http://127.0.0.1:8080shttp://127.0.0.1:8080 http://127.0.0.1:8080 +[?2004l +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant sshcurl -s http://localhost:8080 +[?2004l +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ curl -s http://localhost:8080[1P http://localhost:8080[1P http://localhost:8080 +[?2004l +curl: (56) Recv failure: Connection reset by peer +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ curl http://localhost:8080[1Phttp://localhost:8080 +[?2004l +curl: (56) Recv failure: Connection reset by peer +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ carant[Kvagrant ssj[Kh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:23:53 UTC 2024 + + System load: 0.06 Processes: 103 + Usage of /: 3.7% of 38.70GB Users logged in: 0 + Memory usage: 20% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +Last login: Sat Sep 7 07:21:42 2024 from 10.0.2.2 + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant reload[K[K[K[K[K[Kdestroy -f +[?2004l +[1m==> default: Forcing shutdown of VM...[0m +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Importing base box 'ubuntu/jammy64'...[0m +[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725693885377_24019[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant d[Kssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:25:02 UTC 2024 + + System load: 0.3 Processes: 114 + Usage of /: 3.6% of 38.70GB Users logged in: 0 + Memory usage: 20% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./vagrant_data/webservice +[?2004l +2024/09/07 07:25:23 Starting application... +2024/09/07 07:25:23 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T07:25:23.934Z level=INFO msg="Using ephemeral store" +time=2024-09-07T07:25:23.943Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1981[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^Ctime=2024-09-07T07:29:47.687Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ [7m./webservice --host 0.0.0.0 --port 3000[27m +[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C./webservice --host 0.0.0.0 --port 3000 +[?2004l +-bash: ./webservice: No such file or directory +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ cd vagrant_data/ +[?2004l +[?2004h]0;vagrant@ubuntu-jammy: ~/vagrant_data[01;32mvagrant@ubuntu-jammy[00m:[01;34m~/vagrant_data[00m$ [7m./webservice --host 0.0.0.0 --port 3000[27m +[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C./webservice --host 0.0.0.0 --port 3000 +[?2004l +2024/09/07 07:29:58 Starting application... +2024/09/07 07:29:58 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T07:29:58.047Z level=INFO msg="Using ephemeral store" +time=2024-09-07T07:29:58.048Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m2033[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +time=2024-09-07T07:30:43.216Z level=DEBUG msg="GET / mime:*/* agent:curl/7.81.0" +^Ctime=2024-09-07T07:34:08.445Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~/vagrant_data[01;32mvagrant@ubuntu-jammy[00m:[01;34m~/vagrant_data[00m$ vagra[K[K[K[K[Kexit+[K +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant desr[Ktroy -f +[?2004l +[1m==> default: Forcing shutdown of VM...[0m +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh[K[K[Kup +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Importing base box 'ubuntu/jammy64'...[0m +[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725694689397_27392[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:38:26 UTC 2024 + + System load: 0.31 Processes: 114 + Usage of /: 3.6% of 38.70GB Users logged in: 0 + Memory usage: 22% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./vagrant_data/d[Kwebservice +[?2004l +2024/09/07 07:38:49 Starting application... +2024/09/07 07:38:49 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T07:38:49.153Z level=INFO msg="Using ephemeral store" +time=2024-09-07T07:38:49.159Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1992[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^Ctime=2024-09-07T07:40:10.241Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ [7mip addr show[27mip addr show +[?2004l +1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + valid_lft forever preferred_lft forever + inet6 ::1/128 scope host + valid_lft forever preferred_lft forever +2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 + link/ether 02:c6:f7:1b:46:08 brd ff:ff:ff:ff:ff:ff + inet 10.0.2.15/24 metric 100 brd 10.0.2.255 scope global dynamic enp0s3 + valid_lft 86289sec preferred_lft 86289sec + inet6 fe80::c6:f7ff:fe1b:4608/64 scope link + valid_lft forever preferred_lft forever +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ [7msudo ufw allow 3000/tcp[27m + +[7msudo ufw reload[27m[A +]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ sudo ufw allow 3000/tcp + +sudo ufw reload +[?2004l +Rules updated +Rules updated (v6) +Firewall not enabled (skipping reload) +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ cagr[K[K[K[Kvagrant destrox[Ky +[?2004l +[0m default: Are you sure you want to destroy the 'default' VM? [y/N] [0my +[1m==> default: Forcing shutdown of VM...[0m +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Importing base box 'ubuntu/jammy64'...[0m +[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725694938626_33112[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Available bridged network interfaces:[0m +[1m1) wlp8s0[0m +[1m2) enp9s0[0m +[1m3) docker0[0m +[1m==> default: When choosing an interface, it is usually the one that is +==> default: being used to connect to the internet. +==> default: [0m +[0m default: Which interface should the network bridge to? [0m2 +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[0m default: Adapter 2: bridged[0m +[1m==> default: Forwarding ports...[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Configuring and enabling network interfaces...[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:42:49 UTC 2024 + + System load: 0.3 Processes: 113 + Usage of /: 3.6% of 38.70GB Users logged in: 0 + Memory usage: 20% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./vagrant_data/webservice +[?2004l +2024/09/07 07:43:15 Starting application... +2024/09/07 07:43:15 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T07:43:15.930Z level=INFO msg="Using ephemeral store" +time=2024-09-07T07:43:15.943Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m2175[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^Ctime=2024-09-07T07:43:38.319Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ [7msudo ufw allow 3000/tcp[27msudo ufw allow 3000/tcp +[?2004l +Rules updated +Rules updated (v6) +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ sudo ufw allow 3000/tcp./vagrant_data/webservice +[?2004l +2024/09/07 07:43:49 Starting application... +2024/09/07 07:43:49 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T07:43:49.225Z level=INFO msg="Using ephemeral store" +time=2024-09-07T07:43:49.227Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m2211[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^Ctime=2024-09-07T07:44:14.533Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ [7msudo ufw status[27msudo ufw status +[?2004l +Status: inactive +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ecit +[?2004l +Command 'ecit' not found, did you mean: + command 'edit' from deb mailcap (3.70+nmu1ubuntu1) +Try: apt install <deb name> +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exiz +[?2004l +Command 'exiz' not found, did you mean: + command 'exim' from deb exim4-daemon-heavy (4.95-4ubuntu2.6) + command 'exim' from deb exim4-daemon-light (4.95-4ubuntu2.6) + command 'exif' from deb exif (0.6.22-2) +Try: apt install <deb name> +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant destroy -f +[?2004l +[1m==> default: Forcing shutdown of VM...[0m +[1m==> default: Destroying VM and associated drives...[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ip[K[Kip[K[Kup +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Importing base box 'ubuntu/jammy64'...[0m +[0m +[K[0m[0mProgress: 90%[0m[0m +[K[0m[1m==> default: Matching MAC address for NAT networking...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Setting the name of the VM: Spin_up_a_virtual_machine_locally_default_1725695225804_1715[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[0m default: + default: Vagrant insecure key detected. Vagrant will automatically replace + default: this with a newly generated keypair for better security.[0m +[0m default: + default: Inserting generated public key within guest...[0m +[0m default: Removing insecure key from the guest if it's present...[0m +[0m default: Key inserted! Disconnecting and reconnecting using new SSH key...[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 07:47:22 UTC 2024 + + System load: 0.95 Processes: 112 + Usage of /: 3.6% of 38.70GB Users logged in: 0 + Memory usage: 23% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ vagrat[K[K[K[K[K[K./vagrant_data/webservice +[?2004l +2024/09/07 07:47:54 Starting application... +2024/09/07 07:47:54 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T07:47:54.551Z level=INFO msg="Using ephemeral store" +time=2024-09-07T07:47:54.558Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m2001[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +time=2024-09-07T07:48:33.314Z level=DEBUG msg="GET / mime:*/* agent:curl/7.81.0" +time=2024-09-07T07:48:39.480Z level=DEBUG msg="GET / mime:*/* agent:curl/7.81.0" +time=2024-09-07T10:15:59.561Z level=DEBUG msg="GET / mime:*/* agent:curl/7.81.0" +^Ctime=2024-09-07T10:21:46.169Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ [7mvagrant reload[27mvagrant reload +[?2004l +[1m==> default: Attempting graceful shutdown of VM...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Clearing any previously set forwarded ports...[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[1m==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` +==> default: flag to force provisioning. Provisioners marked to run always will still run.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` +==> default: flag to force provisioning. Provisioners marked to run always will still run.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 10:21:55 UTC 2024 + + System load: 0.0 Processes: 104 + Usage of /: 4.2% of 38.70GB Users logged in: 0 + Memory usage: 24% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +14 updates can be applied immediately. +10 of these updates are standard security updates. +To see these additional updates run: apt list --upgradable + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +Last login: Sat Sep 7 10:11:51 2024 from 10.0.2.2 + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ -/[K[K./vagrant_data/webservice +[?2004l +2024/09/07 10:22:58 Starting application... +2024/09/07 10:22:58 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T10:22:58.742Z level=INFO msg="Using ephemeral store" +time=2024-09-07T10:22:58.759Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1182[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +Connection to 127.0.0.1 closed by remote host. + +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant up +[?2004l +[0mBringing machine 'default' up with 'virtualbox' provider...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` +==> default: flag to force provisioning. Provisioners marked to run always will still run.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 10:24:44 UTC 2024 + + System load: 0.3 Processes: 115 + Usage of /: 3.6% of 38.70GB Users logged in: 0 + Memory usage: 21% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./vagrant_data/webservice +[?2004l +2024/09/07 10:25:17 Starting application... +2024/09/07 10:25:17 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T10:25:17.342Z level=INFO msg="Using ephemeral store" +time=2024-09-07T10:25:17.358Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m2020[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +time=2024-09-07T10:25:38.535Z level=DEBUG msg="GET / mime:*/* agent:curl/7.81.0" +Connection to 127.0.0.1 closed by remote host. + +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 10:28:35 UTC 2024 + + System load: 0.3 Processes: 116 + Usage of /: 3.6% of 38.70GB Users logged in: 0 + Memory usage: 20% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + => There is 1 zombie process. + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./a[Kb[Kvagrant_data/webservice +[?2004l +2024/09/07 10:28:59 Starting application... +2024/09/07 10:28:59 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T10:28:59.377Z level=INFO msg="Using ephemeral store" +time=2024-09-07T10:28:59.383Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1990[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^Ctime=2024-09-07T10:30:54.706Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ vagrant reload +[?2004l +Command 'vagrant' not found, but can be installed with: +apt install vagrant +Please ask your administrator. +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ b[Kvagrant reload +[?2004l +[1m==> default: Attempting graceful shutdown of VM...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Clearing any previously set forwarded ports...[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[0m default: Adapter 2: hostonly[0m +[1m==> default: Forwarding ports...[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Configuring and enabling network interfaces...[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[1m==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` +==> default: flag to force provisioning. Provisioners marked to run always will still run.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 10:31:07 UTC 2024 + + System load: 0.07 Processes: 110 + Usage of /: 3.7% of 38.70GB Users logged in: 0 + Memory usage: 21% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +The list of available updates is more than a week old. +To check for new updates run: sudo apt update + +Last login: Sat Sep 7 10:29:59 2024 from 10.0.2.2 + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./vagrant_data/webservice +[?2004l +2024/09/07 10:31:53 Starting application... +2024/09/07 10:31:53 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T10:31:53.524Z level=INFO msg="Using ephemeral store" +time=2024-09-07T10:31:53.529Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1317[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^Ctime=2024-09-07T10:32:01.687Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ifconfig +[?2004l +Command 'ifconfig' not found, but can be installed with: +apt install net-tools +Please ask your administrator. +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ apt sinta[K[K[K[K[Kifconfig./vagrant_data/webservice +[?2004l +2024/09/07 10:32:37 Starting application... +2024/09/07 10:32:37 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T10:32:37.065Z level=INFO msg="Using ephemeral store" +time=2024-09-07T10:32:37.065Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1354[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^Ctime=2024-09-07T10:32:58.402Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ifconfig +[?2004l +Command 'ifconfig' not found, but can be installed with: +apt install net-tools +Please ask your administrator. +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ap [Kt sont[K[K[K[Kinsall[K[K[Ktall net-tools +[?2004l +[1;31mE: [0mCould not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)[0m +[1;31mE: [0mUnable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?[0m +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ apt install net-tools[1@s[1@u[1@d[1@o[1@ +[?2004l + +Reading package lists... 0% + +Reading package lists... 0% + +Reading package lists... 0% + +Reading package lists... 7% + +Reading package lists... 7% + +Reading package lists... 10% + +Reading package lists... 10% + +Reading package lists... 11% + +Reading package lists... 11% + +Reading package lists... 12% + +Reading package lists... 12% + +Reading package lists... 24% + +Reading package lists... 24% + +Reading package lists... 32% + +Reading package lists... 32% + +Reading package lists... 48% + +Reading package lists... 48% + +Reading package lists... 57% + +Reading package lists... 57% + +Reading package lists... 68% + +Reading package lists... 68% + +Reading package lists... 75% + +Reading package lists... 75% + +Reading package lists... 90% + +Reading package lists... 90% + +Reading package lists... 99% + +Reading package lists... 99% + +Reading package lists... Done + + +Building dependency tree... 0% + +Building dependency tree... 0% + +Building dependency tree... 0% + +Building dependency tree... 50% + +Building dependency tree... 50% + +Building dependency tree... Done + + +Reading state information... 0% + +Reading state information... 0% + +Reading state information... Done + +The following NEW packages will be installed: + net-tools +0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. +Need to get 204 kB of archives. +After this operation, 819 kB of additional disk space will be used. +[33m +0% [Working][0m + +Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 net-tools amd64 1.60+git20181103.0eebece-1ubuntu5 [204 kB] +[33m +6% [1 net-tools 14.2 kB/204 kB 7%][0m[33m + +100% [Working][0m + +Fetched 204 kB in 0s (1055 kB/s) + +7[0;15r8[1ASelecting previously unselected package net-tools. +(Reading database ... +(Reading database ... 5% +(Reading database ... 10% +(Reading database ... 15% +(Reading database ... 20% +(Reading database ... 25% +(Reading database ... 30% +(Reading database ... 35% +(Reading database ... 40% +(Reading database ... 45% +(Reading database ... 50% +(Reading database ... 55% +(Reading database ... 60% +(Reading database ... 65% +(Reading database ... 70% +(Reading database ... 75% +(Reading database ... 80% +(Reading database ... 85% +(Reading database ... 90% +(Reading database ... 95% +(Reading database ... 100% +(Reading database ... 64047 files and directories currently installed.) +Preparing to unpack .../net-tools_1.60+git20181103.0eebece-1ubuntu5_amd64.deb ... +7[16;0f[42m[30mProgress: [ 0%][49m[39m [...............................................................................................................................................] 87[16;0f[42m[30mProgress: [ 20%][49m[39m [############################...................................................................................................................] 8Unpacking net-tools (1.60+git20181103.0eebece-1ubuntu5) ... +7[16;0f[42m[30mProgress: [ 40%][49m[39m [#########################################################......................................................................................] 8Setting up net-tools (1.60+git20181103.0eebece-1ubuntu5) ... +7[16;0f[42m[30mProgress: [ 60%][49m[39m [#####################################################################################..........................................................] 87[16;0f[42m[30mProgress: [ 80%][49m[39m [##################################################################################################################.............................] 8Processing triggers for man-db (2.10.2-1) ... + +7[0;16r8[1A[JScanning processes... [ ] +Scanning processes... [= ] +Scanning processes... [== ] +Scanning processes... [=== ] +Scanning processes... [===== ] +Scanning processes... [====== ] +Scanning processes... [======= ] +Scanning processes... [======== ] +Scanning processes... [========== ] +Scanning processes... [=========== ] +Scanning processes... [============ ] +Scanning processes... [============= ] +Scanning processes... [=============== ] +Scanning processes... [================ ] +Scanning processes... [================= ] +Scanning processes... [================== ] +Scanning processes... [==================== ] +Scanning processes... [===================== ] +Scanning processes... [====================== ] +Scanning processes... [======================= ] +Scanning processes... [========================= ] +Scanning processes... [========================== ] +Scanning processes... [=========================== ] +Scanning processes... [============================ ] +Scanning processes... [============================== ] +Scanning processes... [=============================== ] +Scanning processes... [================================ ] +Scanning processes... [================================= ] +Scanning processes... [=================================== ] +Scanning processes... [==================================== ] +Scanning processes... [===================================== ] +Scanning processes... [======================================= ] +Scanning processes... [======================================== ] +Scanning processes... [========================================= ] +Scanning processes... [========================================== ] +Scanning processes... [============================================ ] +Scanning processes... [============================================= ] +Scanning processes... [============================================== ] +Scanning processes... [=============================================== ] +Scanning processes... [================================================= ] +Scanning processes... [================================================== ] +Scanning processes... [=================================================== ] +Scanning processes... [==================================================== ] +Scanning processes... [====================================================== ] +Scanning processes... [======================================================= ] +Scanning processes... [======================================================== ] +Scanning processes... [========================================================= ] +Scanning processes... [=========================================================== ] +Scanning processes... [============================================================ ] +Scanning processes... [============================================================= ] +Scanning processes... [============================================================== ] +Scanning processes... [================================================================ ] +Scanning processes... [================================================================= ] +Scanning processes... [================================================================== ] +Scanning processes... [=================================================================== ] +Scanning processes... [===================================================================== ] +Scanning processes... [====================================================================== ] +Scanning processes... [======================================================================= ] +Scanning processes... [========================================================================= ] +Scanning processes... [========================================================================== ] +Scanning processes... [=========================================================================== ] +Scanning processes... [============================================================================ ] +Scanning processes... [============================================================================== ] +Scanning processes... [=============================================================================== ] +Scanning processes... [================================================================================ ] +Scanning processes... [================================================================================= ] +Scanning processes... [=================================================================================== ] +Scanning processes... [==================================================================================== ] +Scanning processes... [===================================================================================== ] +Scanning processes... [====================================================================================== ] +Scanning processes... [======================================================================================== ] +Scanning processes... [========================================================================================= ] +Scanning processes... [========================================================================================== ] +Scanning processes... [=========================================================================================== ] +Scanning processes... [============================================================================================= ] +Scanning processes... [============================================================================================== ] +Scanning processes... [=============================================================================================== ] +Scanning processes... [================================================================================================ ] +Scanning processes... [================================================================================================== ] +Scanning processes... [=================================================================================================== ] +Scanning processes... [==================================================================================================== ] +Scanning processes... [===================================================================================================== ] +Scanning processes... [======================================================================================================= ] +Scanning processes... [======================================================================================================== ] +Scanning processes... [========================================================================================================= ] +Scanning processes... [=========================================================================================================== ] +Scanning processes... [============================================================================================================ ] +Scanning processes... [============================================================================================================= ] +Scanning processes... [============================================================================================================== ] +Scanning processes... [================================================================================================================ ] +Scanning processes... [================================================================================================================= ] +Scanning processes... [================================================================================================================== ] +Scanning processes... [=================================================================================================================== ] +Scanning processes... [===================================================================================================================== ] +Scanning processes... [====================================================================================================================== ] +Scanning processes... [======================================================================================================================= ] +Scanning processes... [======================================================================================================================== ] +Scanning processes... [========================================================================================================================== ] +Scanning processes... [=========================================================================================================================== ] +Scanning processes... [============================================================================================================================ ] +Scanning processes... [============================================================================================================================= ] +Scanning processes... [=============================================================================================================================== ] +Scanning processes... [================================================================================================================================ ] +Scanning processes... [================================================================================================================================= ] +Scanning processes... [================================================================================================================================== ] +Scanning processes... [==================================================================================================================================== ] +Scanning processes... [===================================================================================================================================== ] +Scanning processes... [====================================================================================================================================== ] +Scanning processes... [======================================================================================================================================= ] +Scanning processes... [========================================================================================================================================= ] +Scanning processes... [========================================================================================================================================== ] +Scanning processes... [=========================================================================================================================================== ] +Scanning processes... [=============================================================================================================================================] +Scanning processes... +Scanning linux images... [ ] +Scanning linux images... [============================================== ] +Scanning linux images... [============================================================================================ ] +Scanning linux images... [==========================================================================================================================================] +Scanning linux images... + +Running kernel seems to be up-to-date. + +No services need to be restarted. + +No containers need to be restarted. + +No user sessions are running outdated binaries. + +No VM guests are running outdated hypervisor (qemu) binaries on this host. +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ifcondf[K[Kfig +[?2004l +enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 + inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 + inet6 fe80::c6:f7ff:fe1b:4608 prefixlen 64 scopeid 0x20<link> + ether 02:c6:f7:1b:46:08 txqueuelen 1000 (Ethernet) + RX packets 1300 bytes 329889 (329.8 KB) + RX errors 0 dropped 0 overruns 0 frame 0 + TX packets 970 bytes 134439 (134.4 KB) + TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 + +enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 + inet 192.168.56.3 netmask 255.255.255.0 broadcast 192.168.56.255 + inet6 fe80::a00:27ff:feb0:8f1a prefixlen 64 scopeid 0x20<link> + ether 08:00:27:b0:8f:1a txqueuelen 1000 (Ethernet) + RX packets 4 bytes 2360 (2.3 KB) + RX errors 0 dropped 0 overruns 0 frame 0 + TX packets 15 bytes 2262 (2.2 KB) + TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 + +lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 + inet 127.0.0.1 netmask 255.0.0.0 + inet6 ::1 prefixlen 128 scopeid 0x10<host> + loop txqueuelen 1000 (Local Loopback) + RX packets 250 bytes 19265 (19.2 KB) + RX errors 0 dropped 0 overruns 0 frame 0 + TX packets 250 bytes 19265 (19.2 KB) + TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ext[Kit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ [7mvagrant ssh -- -L 8080:localhost:3000[27mvagrant ssh -- -L 8080:localhost:3000 +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 10:35:04 UTC 2024 + + System load: 0.01 Processes: 108 + Usage of /: 3.7% of 38.70GB Users logged in: 0 + Memory usage: 22% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +Last login: Sat Sep 7 10:31:50 2024 from 10.0.2.2 + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ web[K[K[K./vagrant_data/webservice +[?2004l +2024/09/07 10:35:12 Starting application... +2024/09/07 10:35:12 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T10:35:12.861Z level=INFO msg="Using ephemeral store" +time=2024-09-07T10:35:12.863Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1579[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +time=2024-09-07T10:35:21.195Z level=DEBUG msg="GET / mime:*/* agent:curl/8.5.0" +exit +^Ctime=2024-09-07T10:37:33.740Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ vrag[K[K[Kagrant reload +[?2004l +Command 'vagrant' not found, but can be installed with: +apt install vagrant +Please ask your administrator. +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vsg[K[Kah[Kgrant rr[Keload +[?2004l +[1m==> default: Attempting graceful shutdown of VM...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Clearing any previously set forwarded ports...[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[1m==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` +==> default: flag to force provisioning. Provisioners marked to run always will still run.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant ssh +[?2004l +Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-119-generic x86_64) + + * Documentation: https://help.ubuntu.com + * Management: https://landscape.canonical.com + * Support: https://ubuntu.com/pro + + System information as of Sat Sep 7 10:37:50 UTC 2024 + + System load: 0.0 Processes: 105 + Usage of /: 3.7% of 38.70GB Users logged in: 0 + Memory usage: 22% IPv4 address for enp0s3: 10.0.2.15 + Swap usage: 0% + + +Expanded Security Maintenance for Applications is not enabled. + +0 updates can be applied immediately. + +Enable ESM Apps to receive additional future security updates. +See https://ubuntu.com/esm or run: sudo pro status + + +Last login: Sat Sep 7 10:35:05 2024 from 10.0.2.2 + +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ ./vagrant_data/webservice +[?2004l +2024/09/07 10:38:32 Starting application... +2024/09/07 10:38:32 Configuration loaded: &{Version:n/a FontColor: LogLevel:debug Environment:development Host:127.0.0.1 Port:3000 DatabaseHost: DatabasePort:6379 DatabaseName:0 DatabaseUsername: DatabasePassword:} +time=2024-09-07T10:38:32.087Z level=INFO msg="Using ephemeral store" +time=2024-09-07T10:38:32.108Z level=INFO msg="Starting server on 127.0.0.1:3000" + +[90m[90m ┌───────────────────────────────────────────────────┠+[90m │ [96mwebservice[90m │ +[90m │ [96mFiber v2.52.5[90m │ +[90m │ http://127.0.0.1:3000 │ +[90m │ │ +[90m │ Handlers ............ [96m31[90m Processes ........... [96m1[90m │ +[90m │ Prefork ....... Disabled PID .............. [96m1156[90m │ +[90m └───────────────────────────────────────────────────┘[0m + +^Ctime=2024-09-07T10:39:07.765Z level=INFO msg="HTTP-Server wird ordnungsgemäß heruntergefahren" +[?2004h]0;vagrant@ubuntu-jammy: ~[01;32mvagrant@ubuntu-jammy[00m:[01;34m~[00m$ exit +[?2004l +logout +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant re +load +[?2004l +[1m==> default: Attempting graceful shutdown of VM...[0m +[1m==> default: Checking if box 'ubuntu/jammy64' version '20240823.0.1' is up to date...[0m +[1m==> default: Clearing any previously set forwarded ports...[0m +[1m==> default: Clearing any previously set network interfaces...[0m +[1m==> default: Preparing network interfaces based on configuration...[0m +[0m default: Adapter 1: nat[0m +[1m==> default: Forwarding ports...[0m +[0m default: 3000 (guest) => 8080 (host) (adapter 1)[0m +[0m default: 22 (guest) => 2222 (host) (adapter 1)[0m +[1m==> default: Running 'pre-boot' VM customizations...[0m +[1m==> default: Booting VM...[0m +[1m==> default: Waiting for machine to boot. This may take a few minutes...[0m +[0m default: SSH address: 127.0.0.1:2222[0m +[0m default: SSH username: vagrant[0m +[0m default: SSH auth method: private key[0m +[1m==> default: Machine booted and ready![0m +[1m==> default: Checking for guest additions in VM...[0m +[0m default: The guest additions on this VM do not match the installed version of + default: VirtualBox! In most cases this is fine, but in rare cases it can + default: prevent things such as shared folders from working properly. If you see + default: shared folder errors, please make sure the guest additions within the + default: virtual machine match the version of VirtualBox you have installed on + default: your host and reload your VM. + default: + default: Guest Additions Version: 6.0.0 r127566 + default: VirtualBox Version: 7.0[0m +[1m==> default: Mounting shared folders...[0m +[0m default: /vagrant => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[0m default: /home/vagrant/vagrant_data => /home/lucad/Documents/webservice/Spin_up_a_virtual_machine_locally[0m +[1m==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` +==> default: flag to force provisioning. Provisioners marked to run always will still run.[0m +[1m==> default: Running provisioner: shell...[0m +[0m default: Running: inline script[0m +[0;31m default: Host key verification failed.[0m +[0;31mThe SSH command responded with a non-zero exit status. Vagrant +assumes that this means the command failed. The output for this command +should be in the log above. Please read the output to determine what +went wrong.[0m +[?2004h]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;34m~/Documents/webservice/Spin_up_a_virtual_machine_locally[00m$ vagrant reload[A +]0;lucad@lucad: ~/Documents/webservice/Spin_up_a_virtual_machine_locally[01;32mlucad@lucad[00m:[01;3 + +lucad@lucad:~/Documents/webservice/Spin_up_a_virtual_machine_locally$ curl http://localhost:8080 +Hello, World! -- GitLab