news from the front: new install process!

6 views
Skip to first unread message

Andy Smith

unread,
Mar 30, 2009, 3:47:13 AM3/30/09
to jaikuengi...@googlegroups.com
Yay for PyCon and the coding sprints inspiring some late night work (and to @lemonad for tons of testing help) to streamline our install process.

As of http://code.google.com/p/jaikuengine/source/detail?r=37 we have a much easier deployment process to get your app set up on App Engine. I'm sure there are still some kinks so feedback is very welcome.

Quickstart instructions from the README.txt:

--SNIP--

To deploy to Google App Engine

   1. Create an application, you can do this on appspot.com

   2. Check out the repository (it's somewhat large due to image binaries):
 
      ``svn checkout http://jaikuengine.googlecode.com/svn/trunk/ jaikuengine``

   3. Edit your ``app.yaml`` and change your application to use the
      application identifier you just created

   4. Set up some basic config stuff using the helper tool:

      ``python manage.py config --write-to-file``

   5. Deploy

      ``python manage.py update``

   6. Go to your app and create the initial data by going to the url
      (you'll need to be logged in to appspot.com as an admin of your
      application):

      ``http://yourapp.appspot.com/install``

--SNIP--

Give it a shot and let us know what you've found confusing :)

--andy

JLB

unread,
Mar 30, 2009, 9:05:22 PM3/30/09
to jaikuengine-discuss
This would be great.... if it would work.

I've tried this process several times. Every single time, when I go to
http://[MY_APP_NAME].appspot.com/install, I get:


'Whoa! That was *not* what I was expecting.'

Yep, an error message.

I'm really at the edge of my wits here. I don't know what to do. I've
been bashing against this problem for hours. Please, somebody help.


On Mar 30, 3:47 am, Andy Smith <andys...@gmail.com> wrote:
> Yay for PyCon and the coding sprints inspiring some late night work (and to
> @lemonad for tons of testing help) to streamline our install process.
>
> As ofhttp://code.google.com/p/jaikuengine/source/detail?r=37we have a much

Andy Smith

unread,
Mar 30, 2009, 9:09:14 PM3/30/09
to jaikuengi...@googlegroups.com
Have you looked at your logs? What errors are being thrown?

--andy

JLB

unread,
Mar 30, 2009, 9:47:18 PM3/30/09
to jaikuengine-discuss
Oh yes, I've looked at the logs. But what I've seen in there has
confused me. It seems to be some sort of permissions problem, yet I've
tried installing as an admin, and I got the same deal...

Pardon the spammage. Below is error-spew:

#

1.
03-30 06:44PM 13.181 /install 200 1781ms 1848ms-cpu 0kb Mozilla/
5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.8) Gecko/
2009032608 Firefox/3.0.8,gzip(gfe)
See details

173.100.98.35 - - [30/Mar/2009:18:44:14 -0700] "GET /install
HTTP/1.1" 200 747 - "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5;
en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8,gzip(gfe)"

2.
D 03-30 06:44PM 13.218

Loading __main__

3.
I 03-30 06:44PM 13.247

zipimporter('/base/data/home/apps/MY_APP_NAME/
1.332447225337829935/django.zip', '')

4.
I 03-30 06:44PM 13.773

Trying to load components in ['dummy_xmpp_service',
'dummy_analytics', 'models.py', '__init__.py', 'dummy_sms_service',
'tests.py', 'dummy_legal']...

5.
I 03-30 06:44PM 13.866

zipimporter('wsgiref.zip', '')

6.
I 03-30 06:44PM 13.869

zipimporter('gdata.zip', '')

7.
I 03-30 06:44PM 13.877

zipimporter('django.zip', '')

8.
I 03-30 06:44PM 13.879

zipimporter('atom.zip', '')

9.
I 03-30 06:44PM 13.880

zipimporter('markdown.zip', '')

10.
I 03-30 06:44PM 13.881

zipimporter('oauth.zip', '')

11.
I 03-30 06:44PM 13.882

zipimporter('epydoc.zip', '')

12.
I 03-30 06:44PM 13.884

zipimporter('simplejson.zip', '')

13.
I 03-30 06:44PM 13.885

zipimporter('cleanliness.zip', '')

14.
E 03-30 06:44PM 14.333

5xx: Traceback (most recent call last):
File "/base/data/home/apps/MY_APP_NAME/1.332447225337829935/
django.zip/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args,
**callback_kwargs)
File "/base/data/home/apps/MY_APP_NAME/1.332447225337829935/
install/views.py", line 32, in install_rootuser
return http.HttpResponseRedirect(users.create_login_url('/
install'))
File "/base/python_lib/versions/1/google/appengine/api/
users.py", line 156, in create_login_url
raise NotAllowedError
NotAllowedError

15.
E 03-30 06:44PM 14.334

Exception in request: NotAllowedError:
Traceback (most recent call last):
File "/base/data/home/apps/MY_APP_NAME/1.332447225337829935/
django.zip/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args,
**callback_kwargs)
File "/base/data/home/apps/MY_APP_NAME/1.332447225337829935/
install/views.py", line 32, in install_rootuser
return http.HttpResponseRedirect(users.create_login_url('/
install'))
File "/base/python_lib/versions/1/google/appengine/api/
users.py", line 156, in create_login_url
raise NotAllowedError
NotAllowedError

16.
E 03-30 06:44PM 14.411

An error occurred: <WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'APPLICATION_ID': 'MY_APP_NAME',
'AUTH_DOMAIN': 'MY_APP_NAME.com',
'CURRENT_VERSION_ID': '1.332447225337829935',
'DJANGO_SETTINGS_MODULE': 'settings',
'HTTPS': 'off',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_HOST': 'MY_APP_NAME.appspot.com',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X
10.5; en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8,gzip(gfe)',
'PATH_INFO': u'/install',
'PATH_TRANSLATED': '/base/data/home/apps/MY_APP_NAME/
1.332447225337829935/main.py',
'QUERY_STRING': '',
'REMOTE_ADDR': '173.100.98.35',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'MY_APP_NAME.appspot.com',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'Google Apphosting/1.0',
'TZ': 'UTC',
'USER': 'apphosting',
'USER_EMAIL': '',
'USER_IS_ADMIN': '0',
'USER_NICKNAME': '',
'wsgi.errors': <cStringIO.StringO object at
0xaf0be894a9a3d198>,
'wsgi.input': <cStringIO.StringI object at 0xaf0be894a552cfa8>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': True,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>



On Mar 30, 9:09 pm, Andy Smith <andys...@gmail.com> wrote:
> Have you looked at your logs? What errors are being thrown?
>
> --andy
>
> On Mon, Mar 30, 2009 at 6:05 PM, JLB <jrandomco...@gmail.com> wrote:
>
> > This would be great.... if it would work.
>
> > I've tried this process several times. Every single time, when I go to
> >http://[MY_APP_NAME].appspot.com/install, I get:
>
> > 'Whoa! That was *not* what I was expecting.'
>
> > Yep, an error message.
>
> > I'm really at the edge of my wits here. I don't know what to do. I've
> > been bashing against this problem for hours. Please, somebody help.
>
> > On Mar 30, 3:47 am, Andy Smith <andys...@gmail.com> wrote:
> > > Yay for PyCon and the coding sprints inspiring some late night work (and
> > to
> > > @lemonad for tons of testing help) to streamline our install process.
>
> > > As ofhttp://code.google.com/p/jaikuengine/source/detail?r=37wehave a
> > much
> > > easier deployment process to get your app set up on App Engine. I'm sure
> > > there are still some kinks so feedback is very welcome.
>
> > > Quickstart instructions from the README.txt:
>
> > > --SNIP--
>
> > > To deploy to Google App Engine
>
> > >    1. Create an application, you can do this on appspot.com
>
> > >    2. Check out the repository (it's somewhat large due to image
> > binaries):
>
> > >       ``svn checkouthttp://
> > jaikuengine.googlecode.com/svn/trunk/jaikuengine``<http://jaikuengine.googlecode.com/svn/trunk/jaikuengine%60%60>
>
> > >    3. Edit your ``app.yaml`` and change your application to use the
> > >       application identifier you just created
>
> > >    4. Set up some basic config stuff using the helper tool:
>
> > >       ``python manage.py config --write-to-file``
>
> > >    5. Deploy
>
> > >       ``python manage.py update``
>
> > >    6. Go to your app and create the initial data by going to the url
> > >       (you'll need to be logged in to appspot.com as an admin of your
> > >       application):
>
> > >       ``http://yourapp.appspot.com/install``<http://yourapp.appspot.com/install%60%60>

Andy Smith

unread,
Mar 30, 2009, 9:53:38 PM3/30/09
to jaikuengi...@googlegroups.com
Hmm. I'm definitely wasn't getting that behavior. As a quick test you may want to try making the code redirect to a full url (http://YOUR_APP.appspot.com/install) and see if that changes things, if it does we can make that the standard.

--andy

JLB

unread,
Mar 30, 2009, 10:02:24 PM3/30/09
to jaikuengine-discuss
Absolutely nothing changed. Same error.

#

1.
03-30 07:00PM 56.019 /install 200 1842ms 2016ms-cpu 0kb Mozilla/
5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.8) Gecko/
2009032608 Firefox/3.0.8,gzip(gfe)
See details

173.100.98.35 - - [30/Mar/2009:19:00:57 -0700] "GET /install
HTTP/1.1" 200 747 - "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5;
en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8,gzip(gfe)"

2.
D 03-30 07:00PM 56.052

Loading __main__

3.
I 03-30 07:00PM 56.124

zipimporter('/base/data/home/apps/MYAPPNAME/1.332447874784312934/
django.zip', '')

4.
I 03-30 07:00PM 56.761

Trying to load components in ['dummy_xmpp_service',
'dummy_analytics', 'models.py', '__init__.py', 'dummy_sms_service',
'tests.py', 'dummy_legal']...

5.
I 03-30 07:00PM 56.997

zipimporter('wsgiref.zip', '')

6.
I 03-30 07:00PM 57.019

zipimporter('gdata.zip', '')

7.
I 03-30 07:00PM 57.027

zipimporter('django.zip', '')

8.
I 03-30 07:00PM 57.048

zipimporter('atom.zip', '')

9.
I 03-30 07:00PM 57.060

zipimporter('markdown.zip', '')

10.
I 03-30 07:00PM 57.073

zipimporter('oauth.zip', '')

11.
I 03-30 07:00PM 57.093

zipimporter('epydoc.zip', '')

12.
I 03-30 07:00PM 57.106

zipimporter('simplejson.zip', '')

13.
I 03-30 07:00PM 57.109

zipimporter('cleanliness.zip', '')

14.
E 03-30 07:00PM 57.697

5xx: Traceback (most recent call last):
File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
django.zip/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args,
**callback_kwargs)
File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
install/views.py", line 32, in install_rootuser
return http.HttpResponseRedirect(users.create_login_url
('http://MYAPPNAME.appspot.com/install'))
File "/base/python_lib/versions/1/google/appengine/api/
users.py", line 156, in create_login_url
raise NotAllowedError
NotAllowedError

15.
E 03-30 07:00PM 57.697

Exception in request: NotAllowedError:
Traceback (most recent call last):
File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
django.zip/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args,
**callback_kwargs)
File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
install/views.py", line 32, in install_rootuser
return http.HttpResponseRedirect(users.create_login_url
('http://MYAPPNAME.appspot.com/install'))
File "/base/python_lib/versions/1/google/appengine/api/
users.py", line 156, in create_login_url
raise NotAllowedError
NotAllowedError

16.
E 03-30 07:00PM 57.785

An error occurred: <WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'APPLICATION_ID': 'MYAPPNAME',
'AUTH_DOMAIN': 'MYAPPNAME.com',
'CURRENT_VERSION_ID': '1.332447874784312934',
'DJANGO_SETTINGS_MODULE': 'settings',
'HTTPS': 'off',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_HOST': 'MYAPPNAME.appspot.com',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X
10.5; en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8,gzip(gfe)',
'PATH_INFO': u'/install',
'PATH_TRANSLATED': '/base/data/home/apps/MYAPPNAME/
1.332447874784312934/main.py',
'QUERY_STRING': '',
'REMOTE_ADDR': '173.100.98.35',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'MYAPPNAME.appspot.com',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'Google Apphosting/1.0',
'TZ': 'UTC',
'USER': 'apphosting',
'USER_EMAIL': '',
'USER_IS_ADMIN': '0',
'USER_NICKNAME': '',
'wsgi.errors': <cStringIO.StringO object at
0x55e6a9aa87b4c2d8>,
'wsgi.input': <cStringIO.StringI object at 0x55e6a9aa8b45dce8>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': True,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>



On Mar 30, 9:53 pm, Andy Smith <andys...@gmail.com> wrote:
> Hmm. I'm definitely wasn't getting that behavior. As a quick test you may
> want to try making the code redirect to a full url (http://YOUR_APP.appspot.com/install) and see if that changes things, if it
> does we can make that the standard.
>
> --andy
>

JLB

unread,
Mar 30, 2009, 10:04:51 PM3/30/09
to jaikuengine-discuss
If you do not have any further suggestions, I will happily give you
access to my dev environment, and developer access to our application,
so you can figure out the problem? I'm very frustrated at this point,
and would very much appreciate the help. If you don't have any other
specific ideas for me to try, please contact me off-list.

Andy Smith

unread,
Mar 30, 2009, 10:54:31 PM3/30/09
to jaikuengi...@googlegroups.com
A search for app engine notallowederror brought this up:

http://groups.google.com/group/google-appengine/browse_thread/thread/c47fff1614573823

Does that seem to apply to you?

--andy

JLB

unread,
Mar 30, 2009, 11:02:28 PM3/30/09
to jaikuengine-discuss
It looks like it might indeed apply to me. However, I am at a loss as
to how I can change the 'Authentication Options'. Any ideas?

On Mar 30, 10:54 pm, Andy Smith <andys...@gmail.com> wrote:
> A search for app engine notallowederror brought this up:
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> Does that seem to apply to you?
>
> --andy
>
> > > ('http://MYAPPNAME.appspot.com/install'<http://MYAPPNAME.appspot.com/install%27>
> > ))
> > >         File "/base/python_lib/versions/1/google/appengine/api/
> > > users.py", line 156, in create_login_url
> > >           raise NotAllowedError
> > >       NotAllowedError
>
> > >   15.
> > >       E 03-30 07:00PM 57.697
>
> > >       Exception in request: NotAllowedError:
> > >       Traceback (most recent call last):
> > >         File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
> > > django.zip/django/core/handlers/base.py", line 86, in get_response
> > >           response = callback(request, *callback_args,
> > > **callback_kwargs)
> > >         File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
> > > install/views.py", line 32, in install_rootuser
> > >           return http.HttpResponseRedirect(users.create_login_url
> > > ('http://MYAPPNAME.appspot.com/install'<http://MYAPPNAME.appspot.com/install%27>
> ...
>
> read more »

JLB

unread,
Mar 30, 2009, 11:15:19 PM3/30/09
to jaikuengine-discuss
Okay, so I did some digging. Looks like this particular app is locked
to users from MYAPP.COM, as opposed to MYAPP.APPSPOT.COM.

So I tried logging into appspot.com as my 'f...@myapp.com' account.

Same bloody thing.

---
#

1.
03-30 08:11PM 19.861 /install 200 1722ms 2016ms-cpu 0kb Mozilla/
5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.8) Gecko/
2009032608 Firefox/3.0.8,gzip(gfe)
See details

173.100.98.35 - - [30/Mar/2009:20:11:21 -0700] "GET /install
HTTP/1.1" 200 747 - "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5;
en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8,gzip(gfe)"

2.
D 03-30 08:11PM 19.901

Loading __main__

3.
I 03-30 08:11PM 19.973

zipimporter('/base/data/home/apps/MYAPPNAME/1.332447874784312934/
django.zip', '')

4.
I 03-30 08:11PM 20.505

Trying to load components in ['dummy_xmpp_service',
'dummy_analytics', 'models.py', '__init__.py', 'dummy_sms_service',
'tests.py', 'dummy_legal']...

5.
I 03-30 08:11PM 20.764

zipimporter('wsgiref.zip', '')

6.
I 03-30 08:11PM 20.786

zipimporter('gdata.zip', '')

7.
I 03-30 08:11PM 20.794

zipimporter('django.zip', '')

8.
I 03-30 08:11PM 20.823

zipimporter('atom.zip', '')

9.
I 03-30 08:11PM 20.835

zipimporter('markdown.zip', '')

10.
I 03-30 08:11PM 20.848

zipimporter('oauth.zip', '')

11.
I 03-30 08:11PM 20.877

zipimporter('epydoc.zip', '')

12.
I 03-30 08:11PM 20.890

zipimporter('simplejson.zip', '')

13.
I 03-30 08:11PM 20.892

zipimporter('cleanliness.zip', '')

14.
E 03-30 08:11PM 21.422

5xx: Traceback (most recent call last):
File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
django.zip/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args,
**callback_kwargs)
File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
install/views.py", line 32, in install_rootuser
return http.HttpResponseRedirect(users.create_login_url
('http://MYAPPNAME.appspot.com/install'))
File "/base/python_lib/versions/1/google/appengine/api/
users.py", line 156, in create_login_url
raise NotAllowedError
NotAllowedError

15.
E 03-30 08:11PM 21.422

Exception in request: NotAllowedError:
Traceback (most recent call last):
File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
django.zip/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args,
**callback_kwargs)
File "/base/data/home/apps/MYAPPNAME/1.332447874784312934/
install/views.py", line 32, in install_rootuser
return http.HttpResponseRedirect(users.create_login_url
('http://MYAPPNAME.appspot.com/install'))
File "/base/python_lib/versions/1/google/appengine/api/
users.py", line 156, in create_login_url
raise NotAllowedError
NotAllowedError

16.
E 03-30 08:11PM 21.519
0xc71b17c07b773758>,
'wsgi.input': <cStringIO.StringI object at 0xc71b17c077862968>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': True,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>



This makes me want to bash my head against the desk. Please help.
> ...
>
> read more »

JLB

unread,
Mar 30, 2009, 11:21:53 PM3/30/09
to jaikuengine-discuss
Yep. It was, in fact, an authentication issue. I created a duplicate
copy of the app with no authentication, and whammo, no more error.

Now how can I change authentication settings on my app temporarily,
just long enough to create a root user?
> ...
>
> read more »

JLB

unread,
Mar 30, 2009, 11:48:37 PM3/30/09
to jaikuengine-discuss
Okay. I ended up figuring the issue out.

I had to twiddle the Domain authentication settings within GAE, which
are (inexplicably) located under 'Versions'.

See: http://code.google.com/appengine/articles/domains.html

Once I added the myappname.com domain, I was able to run the install
script as my myu...@myappname.com account.

Perhaps somebody (maybe me?) should add a bit to the code to detect
this particular error condition and provide the user with these
instructions? The generic error message thing is kind of un-helpful ;)
> ...
>
> read more »

Adewale Oshineye

unread,
Mar 31, 2009, 7:29:51 AM3/31/09
to jaikuengi...@googlegroups.com
Thanks for the info. I don't think anyone (except Andy) has deployed
JaikuEngine on a domain other than appspot.com yet.
Could you file a bug about this at:
http://code.google.com/p/jaikuengine/issues/list

2009/3/31 JLB <jrando...@gmail.com>:

kevin Wei

unread,
Mar 31, 2009, 4:44:54 PM3/31/09
to jaikuengi...@googlegroups.com
i did, it is very easy at this build, not before
Reply all
Reply to author
Forward
0 new messages