AppScale / appscale-tools

A set of command-line tools that can be used to interact with AppScale.
Other
51 stars 49 forks source link

Log when app-engine.xml do not exists #398

Closed dnascimento closed 6 years ago

dnascimento commented 10 years ago

If the app-engine.xml does not exists, the following stacktrace happens. The error message at interface is just: "coercing to Unicode: need string or buffer, NoneType found". Take a look in appengine_helper.py:233 to add a better info message :) It happens if the app-engine.xml is not found.

stacktrace : Traceback (most recent call last):
  File "/usr/local/appscale-tools/bin/appscale", line 87, in <module>
    appscale.deploy(sys.argv[2])
  File "/usr/local/appscale-tools/bin/../lib/appscale.py", line 449, in deploy
    return AppScaleTools.upload_app(options)
  File "/usr/local/appscale-tools/bin/../lib/appscale_tools.py", line 561, in upload_app
    app_id = AppEngineHelper.get_app_id_from_app_config(file_location)
  File "/usr/local/appscale-tools/bin/../lib/appengine_helper.py", line 165, in get_app_id_from_app_config
    app_config_file = cls.get_config_file_from_dir(app_dir)
  File "/usr/local/appscale-tools/bin/../lib/appengine_helper.py", line 233, in get_config_file_from_dir
    elif os.path.exists(cls.get_appengine_web_xml_location(app_dir)):
  File "/usr/lib/python2.7/genericpath.py", line 18, in exists
    os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found

exception : TypeError

locale : en_US

tools_version : 1.14.0

platform : Linux-3.2.0-32-generic-x86_64-with-Ubuntu-12.04-precise

message : coercing to Unicode: need string or buffer, NoneType found

runtime : CPython
menivaitsi commented 10 years ago

Hi Dario,

What's your setup? Are you running on AppScale 1.14 or latest master?

dnascimento commented 10 years ago

Hi :)

I used the latest master... It's just to add a better logging info...

On 1 June 2014 19:17, Meni Vaitsi notifications@github.com wrote:

Hi Dario,

What's your setup? Are you running on AppScale 1.14 or latest master?

— Reply to this email directly or view it on GitHub https://github.com/AppScale/appscale-tools/issues/398#issuecomment-44784659 .

Dário Nascimento

Master Degree in Computer Science and Networks Engineering Student Instituto Superior Técnico - Technical University of Lisbon Skype: dario-nascimento darionascimento.com http://darionascimento.com

menivaitsi commented 10 years ago

Just wanted to make sure you're using the latest tools as well. :)

cdonati commented 6 years ago

This was fixed with #686