Unable to correct problems, you have held broken packages.

304 views
Skip to first unread message

Thomas Wiradikusuma

unread,
Jan 12, 2017, 11:12:03 AM1/12/17
to AppScale Community
Hi, I followed the steps in https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-appscale-on-ubuntu-12-04 verbatim, but I'm stuck right before "Step 2", specifically this command:

        bash appscale_build.sh

Here's the error:

// ...omitted
Note, selecting 'php-gearman' instead of 'php5.5-gearman'
Note, selecting 'php-mongo' instead of 'php5.5-mongo'
Note, selecting 'php-xhprof' instead of 'php5.5-xhprof'
php5-cgi is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php-apcu : Conflicts: php-yac but 2.0.1+0.9.2-1+deb.sury.org~precise+1 is to be installed
 php-yac : Conflicts: php-apcu but 5.1.7+4.0.11-2+deb.sury.org~precise+1 is to be installed
           Conflicts: php-user-cache
E: Unable to correct problems, you have held broken packages.

This is a freshly provisioned server. Anyone know how to fix this? I use Python and Java, so I don't mind if PHP support is removed (I assume that's what the packages are for).

Meni Vaitsi

unread,
Jan 12, 2017, 11:42:15 AM1/12/17
to appscale_community
Hi Thomas,

We strongly recommend that you build/run AppScale on top of Ubuntu 14.04 as described here, as we don't test regularly on previous versions.

Is there an immediate need for Ubuntu 12.04? If so, do let us know and we'll put out a fix for this build error.

Thanks
-Meni


--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

--
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.

Thomas Wiradikusuma

unread,
Jan 13, 2017, 11:17:40 PM1/13/17
to AppScale Community
Hi Meni,

I have no affinity to specific Ubuntu version, just following the tutorial from Digital Ocean. I've tried 14.04, it works thanks!
But I found another problem:

...omitted
 * branch            HEAD       -> FETCH_HEAD
 * branch            HEAD       -> FETCH_HEAD
3.1.0
AppScale is already at the specified release.

root@appscale-01:~# bash appscale/scripts/fast-start.sh --no-demo-app
Detected enviroment: CLUSTER
Private IP found: {my ip}
{my ip}
Public IP found:  {my ip}
{my ip}
Creating AppScalefile...done.
Downloading sample app...done.
Traceback (most recent call last):
  File "/usr/local/bin/appscale", line 4, in <module>
    import pkg_resources
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 655, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 963, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'msrestazure' distribution was not found and is required by appscale-tools

root@appscale-01:~# appscale deploy guestbook.tar.gz
Traceback (most recent call last):
  File "/usr/local/bin/appscale", line 4, in <module>
    import pkg_resources
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 655, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 963, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'msrestazure' distribution was not found and is required by appscale-tools

That's Step Two and Step Three from https://www.appscale.com/try-appscale/.

Thomas Wiradikusuma

unread,
Jan 14, 2017, 12:08:57 AM1/14/17
to AppScale Community
Please ignore my previous message. I removed everything from /root and retried, and it works. Sort of. Now I'm stuck with this:

stacktrace : Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/appscale_tools-3.1.0-py2.7.egg/EGG-INFO/scripts/appscale", line 42, in <module>
    appscale.up()
  File "/usr/local/lib/python2.7/dist-packages/appscale_tools-3.1.0-py2.7.egg/appscale/tools/appscale.py", line 263, in up
    contents_as_yaml = yaml.safe_load(contents)
  File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 93, in safe_load
    return load(stream, SafeLoader)
  File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
    return loader.get_single_data()
  File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
    node = self.get_single_node()
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 428, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 115, in check_token
    while self.need_more_tokens():
  File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 149, in need_more_tokens
    self.stale_possible_simple_keys()
  File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 289, in stale_possible_simple_keys
    "could not found expected ':'", self.get_mark())
ScannerError: while scanning a simple key
  in "<string>", line 3, column 1:
    10.15.xx.xx
    ^
could not found expected ':'
  in "<string>", line 4, column 1:
    login : 188.166.xxx.xxx
    ^

exception : ScannerError

tools_version : 3.1.0

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

message : while scanning a simple key
  in "<string>", line 3, column 1:
    10.15.xx.xx
    ^
could not found expected ':'
  in "<string>", line 4, column 1:
    login : 188.166.xxx.xxx
    ^

runtime : CPython

Meni Vaitsi

unread,
Jan 14, 2017, 9:00:52 PM1/14/17
to appscale_community
Hi Thomas,

It seems like an invalid YAML in AppScalefile.
You can send it to me in private and I'll take a look.

Thanks
-Meni

--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

Thomas Wiradikusuma

unread,
Jan 14, 2017, 11:26:46 PM1/14/17
to appscale_...@googlegroups.com
Hi Meni,

This is the login details for the server I mentioned in the Group.
It's newly provisioned, I haven't logged in myself. Hopefully it's
easier to trace. Let me know if you need anything else! Attached is
the configuration I selected.

Regards,
Thomas Wiradikusuma


---------- Forwarded message ----------
From: DigitalOcean <sup...@support.digitalocean.com>
Date: Sun, Jan 15, 2017 at 10:57 AM
Subject: Your New Droplet: ubuntu-8gb-sgp1-02


Your new Droplet is all set to go! You can access it using the
following credentials:

Droplet Name: ubuntu-8gb-sgp1-02
IP Address: 128.199.111.188
Username: root
Password: d8d21c9579f9667d

For security reasons, you will be required to change this Droplet’s
root password when you login. You should choose a strong password that
will be easy for you to remember, but hard for a computer to guess.
You might try creating an alpha-numerical phrase from a memorable
sentence (e.g. “I won my first spelling bee at age 7,” might become
“Iwm#1sbaa7”). Random strings of common words, such as “Mousetrap
Sandwich Hospital Anecdote,” tend to work well, too.

As an added security measure, we also strongly recommend adding an SSH
key to your account. You can do that here:
https://cloud.digitalocean.com/settings/security?i=535c09

Once added, you can select your SSH key and use it when creating
future Droplets. This eliminates the need for root passwords
altogether, and makes your Droplets much less vulnerable to attack.

Happy Coding,
Team DigitalOcean
Screen Shot 2017-01-15 at 12.24.08 PM.png

Thomas Wiradikusuma

unread,
Jan 14, 2017, 11:26:59 PM1/14/17
to AppScale Community
Hi Meni,

I've deleted my server instance. I just provisioned another two *identical* servers in Digital Ocean, one of which I tried installing, and met with this error:

...omitted
Installed /usr/local/lib/python2.7/dist-packages/requests-2.12.4-py2.7.egg
Searching for msrestazure
Best match: msrestazure 0.4.6
Processing msrestazure-0.4.6.zip
Writing /tmp/easy_install-bCyTCZ/msrestazure-0.4.6/setup.cfg
Running msrestazure-0.4.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bCyTCZ/msrestazure-0.4.6/egg-dist-tmp-7pzJtr
error: Setup script exited with error in msrestazure setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
Unable to complete AppScale tools installation.
failed!

This is my command history:

root@ubuntu-8gb-sgp1-01:~# history
    1  apt-get update
    2  wget -O bootstrap.sh http://bootstrap.appscale.com && bash ./bootstrap.sh

I've forwarded you the other server's login detail so you can try it yourself, fresh from the oven. Maybe it's a Digital Ocean thing. I'll delete it once you're finished.


Regards,
Thomas Wiradikusuma
To post to this group, send email to appscale_...@googlegroups.com.

Thomas Wiradikusuma

unread,
Jan 14, 2017, 11:32:46 PM1/14/17
to AppScale Community
Whoops, sorry this email was meant for private consumption. I've destroyed the server mentioned in this email.

Meni Vaitsi

unread,
Jan 15, 2017, 3:24:51 PM1/15/17
to appscale_community
Hi Thomas,

I wasn't able to find any AppScale installation or AppScalefile on this machine.

Anyway, the first issue was that you were trying to build the last release of AppScale which relies upon a couple packages that have changed; this is fixed in current master. All you need to change is:
wget -O bootstrap.sh http://bootstrap.appscale.com && bash ./bootstrap.sh --tag dev
FYI, we're releasing a new version of AppScale soon.

Also, there's indeed a bug in our fast-start script that produces invalid YAML in the AppScalefile due to multiple IPs being detected in this infrastructure. We'll put a fix out for this.
For now, I manually edited the AppScalefile to remove the 2nd IP that was malformed and ran appscale up. After that AppScale came up fine.

Let me know if you have any questions or run into any other issues.

Thanks
-Meni


--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

Reply all
Reply to author
Forward
0 new messages