Re: [google-appengine] yellow clock. Appengine hangs

562 views
Skip to first unread message

Thiago Catoto

unread,
Nov 7, 2012, 2:12:48 PM11/7/12
to google-a...@googlegroups.com
Hi,

Have you resolved the issue? Can you give more info about the app.yaml file and the GAELaucher configuration? Have you tried with virtual env?

Here is my SS


Cheers,

-- Catoto


On Mon, Nov 5, 2012 at 8:15 PM, Blaine Hodder <blaine...@gmail.com> wrote:

Hi all,

I am unable to get Appengine running as it hangs with the yellow clock when I hit run.

I am running python 2.7.3 and OSX 10.6.8.

I have downloaded Appengine, dragged the launcher to my desktop and created a new project. When I hit run, the yellow clock appears and never goes away. Therefore when I navigate to the local host the app is not running.

In the log I get the following error:

*** Running dev_appserver with the following flags: --admin_console_server= --port=8081 Python command:

The name of the project is simply 'hello' in lowercase, so that should not be the problem. I have tried both port 8080, and 8081, but the problem persists. I have attempted fresh installs of both Python 2.7 and Appengine yet that does not asolve the problem. Lastly, I have tried pasting the python path in Appengine's launcher preferences but it doesn't seem to help either.


Any ideas?


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/56l8--FpNRsJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Blaine Hodder

unread,
Nov 8, 2012, 8:25:03 PM11/8/12
to google-a...@googlegroups.com
Hi Catoto,

Thanks for responding to my question!

Attached is a photo screenshot of the GAElauncher and preferences.  The path for python was pasted directly from my terminal after typing the 'which python' command.

Lastly, I will paste the app.yaml file contents below:

application: hello
version: 1
runtime: python27
api_version: 1
threadsafe: yes

handlers:
- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: .*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.1"




I have not attempted setting up GAE in a virtual env.

Thanks again for responding to my question,

Blaine
Screen shot 2012-11-08 at 6.13.38 PM.png

Thiago Catoto

unread,
Nov 13, 2012, 3:23:39 PM11/13/12
to google-a...@googlegroups.com
Hey Blaine,

Sorry about the late response. Strange error you got... have you been able to figure it out?

Can you send a screenshot of the console log?

Do you use "import webob" on your code? if so, can you send the ls of the lib directory in GAE Laucher

ex: ( $ ls -lha /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib )

cheer, Catoto.


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/m8NbYuzT9FIJ.

Blaine Hodder

unread,
Nov 16, 2012, 10:47:10 AM11/16/12
to google-a...@googlegroups.com

Hi Catoto,
 
I am at work right now, and don't have access to the imac I was trying to run GAE on... however I am pretty certain there was not an "import webob" in the code.  If I recall correctly, the import statement in the .py file was 'import webapp2'.
 
The code was simply the standard hello world code generated by appengine when I created a new project.  I'll get you a screenshot of the error when I get home, however what I posted before was a direct copy/paste from the log:
 
*** Running dev_appserver with the following flags: --admin_console_server= --port=8081 Python command:
 
I'll also double check the import statement and print an ls of the GAE lib directory.  I would have assumed when I downloaded GAE, the necessary modules would be in the correct location, but perhaps that is it.
 
I am sadly getting close to giving up on GAE. 
 
Thanks again for the help,
 
Blaine
 

 

Blaine Hodder

unread,
Nov 16, 2012, 5:37:31 PM11/16/12
to google-a...@googlegroups.com
Thanks for the help Kord!
 
As someone new to programming, I really appreciate the help!  I'll try this and get back to you tomorrow!

Thanks again,
 
Blaine

Blaine Hodder

unread,
Nov 18, 2012, 1:39:02 PM11/18/12
to google-a...@googlegroups.com
Hi Catoto/Kord,

First let me preface this by saying thanks for the help!  Unfortunately I haven't been able to resolve the issue.  Here is what I have so far that perhaps you can help me with.  I only see one import statement for the webapp2 module.  I am not really sure what directory to ls for you Catoto.  I really only have the 4 files in the project directory generated by appengine.  The files are:

app.yaml
favicon.ico
index.yaml
main.py

Attached is a screenshot of the main.py file...  It is just the standard GAE generated main.py file

I don't know where the lib directory of GAE really lives?  A When I downloaded it, it seemed to only be the GAE icon, which I dragged to my desktop.  I see no GAE directory on my computer?  Sorry, I realize this isn't very helpful.  I am very knew to programming, and am trying to get GAE loaded to take an introductory webapp class though Udacity.  Perhaps if I walk you through my whole process up unitl now it will help.

-When I downloaded Appengine, it created a file called GoogleAppengineLauncher-1.7.3.dmg
-After opening that I see the GoogleAppEngineLauncher Icon.  I get this error upon launching the appenginelauncher icon:

'The Google App Engine Runtime could not be extracted (perhaps you are running the Launcher from the dmg?  If so, drag copy the Launcher to your local disk first.)  GoogleAppEngineLauncher.app may not work correctly.'

-Next I drag the GoogleAppenginerLauncher to my local disk (desktop) and it asks me to make command symlinks.  Having no idea what this means I decided "Sure" to the symlinks.  Those were created as indicated by the following message:

Symbolic links in /usr/local/bin have been created for the following commands:

api_server.py appcfg.py bulkload_client.py bulkloader.py dev_appserver.py download_appstats.py endpointscfg.py gen_protorpc.py google_sql.py remote_api_shell.py 

In addition, /usr/local/google_appengine points to the SDK.


-Then I see the GAELauncher open and created a new application 'hello' on port 8080, (I have also tried 8081 in the past)
-Then upon hitting the run icon it hangs with the yellow clock.

Now I am getting the following errors:


** Running dev_appserver with the following flags:

    --admin_console_server= --port=8080

Python command: /Library/Frameworks/Python.framework/Versions/2.7/bin/python

/Library/Frameworks/Python.framework/Versions/2.7/bin/python


Kord, I agree something must be stopping the process from starting.  After quitting GAE, I went to the terminal and ran 'ps -ax |grep 8080', and O get the following response:

 6755 ttys000    0:00.00 grep 8080


I am not really sure what that means... anyhow, I continue by trying to run a kill -9  on 6755 (assuming that is what the process ID is), and it tells me there is no such process.  Here is a paste in from Terminal

blaine-hodders-imac-2:~ blainehodder$ sudo kill -9 6755
Password:
kill: 6755: No such process

So, sadly still no real luck, but perhaps the increased detail in my response will help you understand the problem as well as understand how new I am to this.

Thanks

Blaine



Screen shot 2012-11-18 at 11.00.27 AM.png

Blaine Hodder

unread,
Nov 18, 2012, 1:40:33 PM11/18/12
to google-a...@googlegroups.com
One last thing,

I ran 'netstat -an |grep 8080' and it didn't bring up anything.

Kord Campbell

unread,
Nov 18, 2012, 4:18:34 PM11/18/12
to google-a...@googlegroups.com
The process ID will rotate, so once you kill -9 it, it won't be that number again.  It may not be there at all if there isn't a process listening on 8080, which means AppEngine Launcher shutdown normally.  Basically we know it's not running (apparently) and you are periodically having issues starting it.  I would hazard the icon next to the project turns green (with play button in it) when you do a fresh start and don't have another process already running (which will give you a yellow fail icon).

Again, I'd put that --debug in there, which isn't showing up in your logs you pasted, and see what it says.

K

Blaine Hodder

unread,
Nov 20, 2012, 12:21:59 PM11/20/12
to google-a...@googlegroups.com

Hi Kord,
 
Hmm... I tried the --debug in the extra flag field but the log result was the same.
 
Lastly, GAE has never worked.   It doesn't just periodically show the yellow fail icon when I have another process running... I have literally never seen it run properly on this computer.
 
Thanks again for the help either way! I really appreciate it.  If you, or anyone else has any other ideas I open to hear them!
 
 
Thanks,
Blaine

Thiago Catoto

unread,
Nov 21, 2012, 12:39:51 PM11/21/12
to google-a...@googlegroups.com
Hi Blaine,

Can you try call python from the path that you put in your "Python Path" at GAE Laucher?

Ex: my python is on /usr/bin/python2.7


(On your log, i got the impression that you put the python path 2 times... not sure)

Can you also try to start your project with a empty "Python Path" on GAE Laucher


-- Catoto

PS: Sorry about the ls on that folder and the "import webob", it happend to my when i updated a previus SDK and use the webob import, not your case for sure! :p



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/qsCULxS3uEoJ.

Blaine Hodder

unread,
Nov 21, 2012, 8:17:56 PM11/21/12
to google-a...@googlegroups.com
Hurray! Thanks for all the help guys!  The file path in the Python box was pooching the whole deal.  It even looked exactly correct, but little did I know there were several empty lines in the path and when I scrolled down the path was printed twice!


Thanks a ton Kord and Catoto!!!
Screen shot 2012-11-21 at 6.15.00 PM.png

Kord Campbell

unread,
Nov 22, 2012, 11:38:47 AM11/22/12
to google-a...@googlegroups.com
Awesome dude!  Now you have it running, take a look at http://github.com/coto/gae-boilerplate

Blaine Hodder

unread,
Nov 23, 2012, 1:48:36 PM11/23/12
to google-a...@googlegroups.com
Boilerplate looks really slick, thanks for the tip.   I have been learning some jquery and looking to learn how to use bootstrap too, so building something with the boilerplate looks like it will be very useful to me.
 
Now I just need an idea for something to actually develop. ha.
 
I'm going to finish the basic "build a blog" course on Udacity and branch out from there.
 
Thanks
 
 
 

Thiago Catoto

unread,
Nov 23, 2012, 6:52:20 PM11/23/12
to google-a...@googlegroups.com
Hi,

Nice one! Keep it up!

=]

cheers

-- Catoto


 
 
 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/RWC1wc51jSIJ.

Kord Campbell

unread,
Nov 24, 2012, 3:18:26 PM11/24/12
to google-a...@googlegroups.com
Cool. I just finished writing a Github backed multi-user blog for it:
https://github.com/StackGeek/stackgeek-gaeb

K
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/RWC1wc51jSIJ.
Reply all
Reply to author
Forward
0 new messages