Open markus-96 opened 3 years ago
OK, seams like uwsgi ran out of memory, so I decided to increase the accessible RAM of the VM v.memory
to 1024
. The Vagrantfile
now looks like this:
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "debian/buster64"
config.ssh.insert_key = false
config.vm.provider :virtualbox do |v|
v.name = "openwisp2"
v.memory = 1024
v.cpus = 2
end
config.vm.hostname = "openwisp2"
config.vm.network :private_network, ip: "192.168.56.5"
# Set the name of the VM. See: http://stackoverflow.com/a/17864388/100134
config.vm.define :openwisp2 do |openwisp2|
end
# Ansible provisioner.
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioning/playbook.yml"
ansible.inventory_path = "provisioning/inventory"
ansible.become = true
end
end
If you want to, I can reproduce the error with only 512 v.memory and share the logs with you.
@markus-96 yes please share any useful info you have.
I tried this two times.
When I ran
vagrant up
the first time, everything seams to work properly. Then I try to log in viahttps://192.168.56.5/admin
everything works fine. But after about one minute or so, I get a gateway time-out for every single request to192.168.56.5
. In the logs of nginx there is nothing, and no single error is listed when I runsystemctl status nginx.service
.Since I have no idea where the failure comes from, I can not provide any additional information like an error log. If you could tell me where I have to look I could provide one.