Бродяга PyBossa не работает

Мы сталкиваемся с проблемами при настройке PyBossa на следующем облачном сервере.

DigitalOcean
RAM: 8GB
SSD: 80GB
OS: UBUNTU 16.04.1
Arch: 64

Я пытаюсь настроить его, используя следующие команды.

apt-get install virtualbox
apt-get install vagrant
git clone --recursive https://github.com/PyBossa/pybossa.git
cd pybossa
vagrant up

Система застряла на "vagrant up" и трассировка выглядит следующим образом.

# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'ubuntu/trusty64' (v0) for provider: virtualbox
    default: Downloading: https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
==> default: Successfully added box 'ubuntu/trusty64' (v0) for 'virtualbox'!
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: pybossa_default_1472726103015_90247
==> 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: 5000 (guest) => 5000 (host) (adapter 1)
    default: 5001 (guest) => 5001 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...

Попытался изменить тайм-аут в Vagrant File, используя

config.vm.boot_timeout = 300

Но все равно никакого эффекта. Можете ли вы предложить решение?

Проблема была с версией Virtualbox, она работает только с 4.0, 4.1, 4.2, 4.3.

Теперь понизил ОС до версии 14.04 и виртуальную коробку до 4.3, теперь она движется дальше, и теперь проблема в этом следе.

[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 5000 => 5000 (adapter 1)
[default] -- 5001 => 5001 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'gurumeditation' state. Please verify everything is configured
properly and try again.

Если поставщик, которого вы используете, имеет графический интерфейс, который поставляется с ним, часто бывает полезно открыть его и посмотреть на машину, поскольку графический интерфейс часто содержит больше полезных сообщений об ошибках, чем Vagrant может получить. Например, если вы используете VirtualBox, запустите vagrant up при открытом графическом интерфейсе VirtualBox.

Если вы снова попытаетесь это сделать, Vbox все равно будет заблокирован.

# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "2b7f90da-d5a5-4782-a6a5-4e3e96838ed3", "--natpf1", "delete", "ssh", "--natpf1", "delete", "tcp5000", "--natpf1", "delete", "tcp5001"]

Stderr: VBoxManage: error: The machine 'pybossa_default_1472733433672_71002' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 471 of file VBoxManageModifyVM.cpp

Теперь, если вы убьете процесс и скомандуете «vagrant up --debug», трассировка завершится в режиме vbox.

/usr/lib/ruby/vendor_ruby/vagrant/machine.rb:147:in `action'
/usr/lib/ruby/vendor_ruby/vagrant/batch_action.rb:63:in `block (2 levels) in run'
 INFO interface: error: The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'gurumeditation' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'gurumeditation' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

Что может быть решением?


person sharafjaffri    schedule 01.09.2016    source источник
comment
трудно сказать ... можете ли вы vagrant up --debug и проверить сообщение, если оно есть, или посмотреть, где оно висит   -  person Frederic Henri    schedule 01.09.2016
comment
@sharafjaffri Что решило вашу проблему?   -  person Ted Taylor of Life    schedule 31.12.2016
comment
@TedTaylorofLife Проверьте принятый ответ. это сработало.   -  person sharafjaffri    schedule 03.01.2017
comment
@ sharfafjadfri Хорошо, спасибо за ответ!   -  person Ted Taylor of Life    schedule 03.01.2017


Ответы (1)


Я только что протестировал новую установку PYBOSSA с последней версией VirtualBox (v5.1.4) и Vagrant (v1.8.5), и все сработало, как и ожидалось. Я точно не знаю, что может быть не так, но я запускаю vagrant на своем собственном ноутбуке, а не на виртуальной машине (вы использовали виртуальную машину в Digital Ocean?). Таким образом, мой совет будет следующим:

  • Установите последние версии Vagrant и VirtualBox.
  • Повторно запустите vagrant-up и посмотрите, что произойдет.

Обязательно очистите предыдущую виртуальную машину, чтобы начать с чистой новой установки.

person Daniel Lombraña González    schedule 02.09.2016
comment
Я думаю, что это уже не решает проблему. Я пробовал несколько версий VirtualBox и Vagrant (включая самые последние, конечно). Я либо застреваю на Booting VM..., либо получаю ошибку gurumeditation, как это описано в вопросе. Знаете ли вы, что может быть причиной этой проблемы? Заранее спасибо! - person arcruz0; 29.10.2017
comment
Vagrant up предназначен только для тестирования. Если вы хотите установить сервер в облачной системе, такой как Digital Ocean, установите его, следуя этому руководству: docs .pybossa.com/installation/gettingstarted Vagrant предназначен только для тестирования, как описано здесь: docs .pybossa.com/installation/vagrant - person Daniel Lombraña González; 30.10.2017