AppScale 3.1.0 does not start on Ubuntu 14.04

39 views
Skip to first unread message

Evgeny Kaminsky

unread,
Jan 23, 2017, 10:07:02 AM1/23/17
to AppScale Community, evgeny....@huawei.com

Hi distinguish technical team,


I am trying to get «АppScale up» using the "Building AppScale from Source" on Ubuntu server 14.04.



I downloaded appscale and appscale-tools   from 


https://github.com/AppScale/appscale and https://github.com/AppScale/appscale-tools


then unzip and 


  • cd appscale/debian
  • bash appscale_build.sh
  • cd appscale-tools/debian
  • bash appscale_build.sh

and reboot
unfortunately I can not download files directly on this machine or run "wget -O bootstrap.sh http://bootstrap.appscale.com && bash ./bootstrap.sh"  due to security restrictions


Then I followed the instructions here (starting from Step 5):


https://github.com/AppScale/appscale/wiki/AppScale-on-VirtualBox



However, AppScale stops on "appscale up" with the following message:

 

The machine at 192.168.0.26 does not have AppScale installed.

 

Please see below the steps I did to get Appscale up.



Thanks in advance for your help!


Best regards,

Evgeny



-------------------------------------------------------------------------------------------------------------------------------------




:~$ ifconfig

eth0      Link encap:Ethernet  HWaddr 7c:a2:3e:8e:4d:14

          inet addr:192.168.0.26  Bcast:192.168.0.255  Mask:255.255.255.0

          inet6 addr: fe80::7ea2:3eff:fe8e:4d14/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:18665084 errors:0 dropped:325 overruns:0 frame:0

          TX packets:426847 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:8328383051 (8.3 GB)  TX bytes:109865681 (109.8 MB)


eth1      Link encap:Ethernet  HWaddr 7c:a2:3e:8e:4d:15

          inet addr:10.122.251.53  Bcast:10.122.251.255  Mask:255.255.255.0

          inet6 addr: fe80::7ea2:3eff:fe8e:4d15/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:62629347 errors:0 dropped:201814 overruns:0 frame:0

          TX packets:119818061 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:4746118427 (4.7 GB)  TX bytes:62414567783 (62.4 GB)


:~$ appscale init cluster

AppScalefile successfully created! Be sure to customize it for your particular cloud or cluster.


AppScalefile:
ips_layout :
  master : 192.168.0.26
  appengine : 192.168.0.26
  database : 192.168.0.26
  zookeeper : 192.168.0.26


:~$ appscale up
Executing ssh-copy-id for host: 192.168.0.26
ro...@192.168.0.26's password:
Generated a new SSH key for this deployment at /home/evgeny/.appscale/appscalec155b91bf90c4163908f2a2cec5da6b0
Starting AppScale 3.1
The machine at 192.168.0.26 does not have AppScale installed.

A log with more information is available at
/home/evgeny/.appscale/log-f3abdadf-1c75-4866-87bc-2b0dd143d9e5.

stacktrace : Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/appscale/tools/scripts/appscale.py", line 43, in main
    appscale.up()
  File "/usr/local/lib/python2.7/dist-packages/appscale/tools/appscale.py", line 309, in up
    AppScaleTools.run_instances(run_instances_opts)
  File "/usr/local/lib/python2.7/dist-packages/appscale/tools/appscale_tools.py", line 521, in run_instances
    head_node.public_ip, options.keyname, options.verbose)
  File "/usr/local/lib/python2.7/dist-packages/appscale/tools/remote_helper.py", line 491, in ensure_machine_is_compatible
    "AppScale installed.".format(host))
AppScaleException: The machine at 192.168.0.26 does not have AppScale installed.

exception : AppScaleException

tools_version : 3.1.0

platform : Linux-4.4.0-57-generic-x86_64-with-Ubuntu-14.04-trusty

message : The machine at 192.168.0.26 does not have AppScale installed.

runtime : CPython

/home/evgeny/.appscale/log-f3abdadf-1c75-4866-87bc-2b0dd143d9e5 (END)










Chris Donati

unread,
Jan 23, 2017, 1:10:56 PM1/23/17
to appscale_...@googlegroups.com
Hi Evgeny,

When you ran `bash appscale_install.sh` for the appscale repo, did you get the "AppScale installation completed successfully!" message at the end? Unfortunately, that script attempts to download multiple files from S3, so I suspect it may not have completed successfully if you machine does not allow that.

-Chris

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.
To post to this group, send email to appscale_community@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

Meni Vaitsi

unread,
Jan 23, 2017, 1:22:25 PM1/23/17
to appscale_community
Hi Evgeny,

Building AppScale from source still requires an Internet connection at this time.
One optimization that we could do is create a tarball of cached packages and dependencies that you could put on a restricted machine like that. 
However, that's not on our immediate roadmap.

Using a pre-built Vagrant box would be the way to go in this case.
Note that vagrant init appscale/releases will still try to download the box.
In order to make this work, you'll need to download the AppScale 3.1.0 box from HashiCorp and then copy it onto the machine you want to run it.

I suspect that the "The machine at 192.168.0.26 does not have AppScale installed." error you saw is due to the box not being present.
Can you confirm that?

Thanks
-Meni


--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

On Mon, Jan 23, 2017 at 7:07 AM, Evgeny Kaminsky <evgeny....@gmail.com> wrote:

Evgeny Kaminsky

unread,
Jan 23, 2017, 2:50:41 PM1/23/17
to AppScale Community
Hi Meni,

thank you for your quick reply.

So I have to buy this software (AppScale 3.1.0)  from a third party (ie HashiCorp)?

Thanks,
Evgeny
To post to this group, send email to appscale_...@googlegroups.com.

Meni Vaitsi

unread,
Jan 23, 2017, 4:54:19 PM1/23/17
to appscale_community
Hello again,

The AppScale Vagrant box can be downloaded for free.
In the instructions you followed to install AppScale on Vagrant/VirtualBox you probably did something like:
vagrant up

This uses a Vagrantfile to understand which image to use to start up a VM. If the specified VM image is not present locally it will try to download it.
If you run:
vagrant box list
you should be able to see if you have any boxes locally present. What we're looking for is the box appscale/releases (v.3.1.0).

What I propose is that you download this box from here, you copy to the machine that has the connectivity restrictions and you add it to vagrant like so:
vagrant box add appscale/releases </path/to/box>
This will allow you to continue with steps 4 and 5 from the tutorial above.

Let me know if you have any more questions.

Thanks
-Meni

--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsubscribe@googlegroups.com.
To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.
To post to this group, send email to appscale_community@googlegroups.com.

Evgeny Kaminsky

unread,
Jan 24, 2017, 10:42:49 AM1/24/17
to AppScale Community
Hi Meni,

I did all steps following your instruction.

But unfortunately I still have the same message:

"The machine at 192.168.0.26 does not have AppScale installed."

Thanks
Evgeny





:~/appscale$  less /home/evgeny/.appscale/log-98dbe02a-c219-407e-9e52-e61b7e9fe2f1

stacktrace : Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/appscale/tools/scripts/appscale.py", line 43, in main
    appscale.up()
  File "/usr/local/lib/python2.7/dist-packages/appscale/tools/appscale.py", line 309, in up
    AppScaleTools.run_instances(run_instances_opts)
  File "/usr/local/lib/python2.7/dist-packages/appscale/tools/appscale_tools.py", line 521, in run_instances
    head_node.public_ip, options.keyname, options.verbose)
  File "/usr/local/lib/python2.7/dist-packages/appscale/tools/remote_helper.py", line 491, in ensure_machine_is_compatible
    "AppScale installed.".format(host))
AppScaleException: The machine at 192.168.0.26 does not have AppScale installed.

exception : AppScaleException

tools_version : 3.1.0

platform : Linux-4.4.0-57-generic-x86_64-with-Ubuntu-14.04-trusty

message : The machine at 192.168.0.26 does not have AppScale installed.

runtime : CPython

:~/appscale$ vagrant status
Current machine states:

default                   running (virtualbox)

The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.




:~/appscale$ less Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "appscale/releases"
  config.vm.network "private_network", ip: "192.168.0.26"

  config.vm.provider "virtualbox" do |vb|
    vb.customize ["modifyvm", :id, "--memory", "4098"]
  end
end
Vagrantfile (END)




To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.
To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.

Evgeny Kaminsky

unread,
Jan 26, 2017, 9:34:53 AM1/26/17
to AppScale Community
Hello again,

I have installed a new Vagrant version (1.9.1), but now I get an error message when I run "vagrant up"

:~$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
^[==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
The specified host network collides with a non-hostonly network!
This will cause your specified IP to be inaccessible. Please change
the IP or name of your host only network so that it no longer matches that of
a bridged or non-hostonly network."


:~$ nano Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "appscale/releases"
  config.vm.network "private_network", ip: "192.168.0.148"

  config.vm.provider "virtualbox" do |vb|
    vb.customize ["modifyvm", :id, "--memory", "4098"]
  end
end

192.168.0.148 - is a new ip that I can use for a new virtual machine but it does not hostable


So I need a new hostable IP to run Vagrant with АppScale?

Thank you in advance,
Evgeny 

Meni Vaitsi

unread,
Jan 27, 2017, 1:26:58 PM1/27/17
to appscale_community
Hi Evgeny,

Can you SSH into that default box you started, that complains about not having AppScale installed, and send the output of: ls  /root?

Thanks
-Meni

--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsubscribe@googlegroups.com.
To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsubscribe@googlegroups.com.

To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsubscribe@googlegroups.com.
To post to this group, send email to appscale_community@googlegroups.com.

Evgeny Kaminsky

unread,
Jan 30, 2017, 11:27:18 AM1/30/17
to AppScale Community
Hi Meni,

I cannot connect to this VM via SSH, should I use different IP?

How can I solve this problem?

Best regards,
Evgeny
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.
To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.

To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.

Meni Vaitsi

unread,
Jan 30, 2017, 2:15:55 PM1/30/17
to appscale_community
Hi Evgeny,

You should be able to SSH into a running Vagrant VM with vagrant ssh.

-Meni

--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsubscribe@googlegroups.com.
To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsubscribe@googlegroups.com.

To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsubscribe@googlegroups.com.

To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.
To post to this group, send email to appscale_community@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages