Trying to migrating an App Engine sample app to AppScale Docker

32 views
Skip to first unread message

Kevin

unread,
Oct 17, 2016, 8:19:03 AM10/17/16
to AppScale Community
The sample app was stuck in pending state, and repeatedly outputting these warnings in the controller's log.

W, [2016-10-17T11:47:25.473063 #2741]  WARN -- : Didn't see any monitoring info - helloworld may not be running.

W, [2016-10-17T11:47:25.473189 #2741]  WARN -- : Didn't see any request data - not sure whether to scale up or down.

I, [2016-10-17T11:47:25.885427 #2741]  INFO -- : Reloading nginx service.



I was testing on Docker platform (i.e. appscale/scripts/fast-start.sh --no-demo-app) and my app contained only two files.

1. app.yaml:

application: helloworld 

version: 1

runtime: python27

api_version: 1

threadsafe: true


handlers:

- url: /.*

  script: main.app 


libraries:

- name: lxml 

  version: "2.3.5" 

- name: Flask 

  version: "0.11.1"

- name: requests

  version: "2.11.1"


2. main.py:

import logging


from flask import Flask

from lxml import html


app = Flask(__name__)



@app.route('/')

def hello():

    return 'Hello World!!'


Any help would be greatly appreciated.

Thanks!

Meni Vaitsi

unread,
Oct 17, 2016, 4:36:04 PM10/17/16
to appscale_community
Hi Kevin,

There's a couple things to address before deploying your helloworld app.
You'll need:
  • Application level:
    • lxml "2.3.5" is in Alpha in GAE and AppScale doesn't support that yet. You can change it to "2.3" or "latest" and it should work.
    • flask and requests modules need to be removed from app.yaml vendored in via appengine_config.py, as they're not natively supported neither in GAE nor in AppScale (how-to guide).
  • Container level: 
    • Make sure you have at least 4GB of RAM so that all AppScale services have room to start.
Let me know if you have any additional questions.

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+unsubscribe@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.

Reply all
Reply to author
Forward
0 new messages