The easiest way to replicate the error is by doing: curl
http://openku.appspot.com
The AppEngine logs contain this stack trace:
Error: Traceback (most recent call last):
File "/base/data/home/apps/openku/1.332063089193455316/django.zip/django/core/handlers/base.py",
line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/base/data/home/apps/openku/1.332063089193455316/front/views.py",
line 69, in front_front
request.user, api.ROOT.nick, limit=SIDEBAR_FETCH_LIMIT)
File "/base/data/home/apps/openku/1.332063089193455316/common/api.py",
line 385, in _wrap
actor_ref = _actor_from_args_kw(['channel', 'nick', 'owner'], args, kw)
File "/base/data/home/apps/openku/1.332063089193455316/common/api.py",
line 131, in _actor_from_args_kw
return _item_from_args_kw(actor_get, allowed, args, kw)
File "/base/data/home/apps/openku/1.332063089193455316/common/api.py",
line 128, in _item_from_args_kw
return f(ROOT, x)
File "/base/data/home/apps/openku/1.332063089193455316/common/api.py",
line 884, in actor_get
nick = clean.nick(nick)
File "/base/data/home/apps/openku/1.332063089193455316/common/clean.py",
line 87, in nick
return channel(value, message=message)
File "/base/data/home/apps/openku/1.332063089193455316/common/clean.py",
line 114, in channel
raise exception.ValidationError(message)
ValidationError: Invalid nick
I'm fairly sure that it's just a matter of tweaking my settings.py.
Has anyone gone beyond this yet?
2009/3/14 Ade Oshineye <ade...@gmail.com>:
Unfortunately I made that change and I'm still getting the same error.
BTW this problem also breaks the non-debug error pages so when I set
DEBUG to False I eventually hit Firefox's redirection limit.
However I eventually realised what the error message was telling me.
Basically the access permissions of the ROOT user are used to display
pages like / and /channel but if there is no ROOT user you get a
validation error.
If you can manage to get to the sign-up page you can create an account
(in my case adewale) then make the user's nick the ROOT nick in your
settings.py and redeploy.
Most things now work on openku although:
http://openku.appspot.com/channel still wants an actor called:
ade...@openku.appspot.com
Anyone have any thoughts on that?
This is my current config which has a working ROOT nick, debug set to
false and Bob's suggested NS_DOMAIN.
====
# Copyright 2009 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import re
import os
import os.path
###
# Django related settings
###
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_...@domain.com'),
)
MANAGERS = ADMINS
# This stuff is always going to be the same for an App Engine instance
DATABASE_ENGINE = 'appengine' # 'appengine' is the only supported engine
DATABASE_NAME = '' # Not used with appengine
DATABASE_USER = '' # Not used with appengine
DATABASE_PASSWORD = '' # Not used with appengine
DATABASE_HOST = '' # Not used with appengine
DATABASE_PORT = '' # Not used with appengine
# The appengine_django code doesn't care about the address of memcached
# because it is a built in API for App Engine
CACHE_BACKEND = 'memcached://'
ROOT_URLCONF = 'urls'
SITE_NAME = 'Openku'
SUPPORT_CHANNEL = 'support'
# This is the name of the root user of the site
ROOT_NICK = 'adewale'
# This is the domain where this is installed on App Engine. It will be
# necessary to know this if you plan on enabling SSL for login and join.
GAE_DOMAIN = 'openku.appspot.com'
# Enabling this means we expect to be spending most of our time on a
# Hosted domain
HOSTED_DOMAIN_ENABLED = True
# This is the domain you intend to serve your site from, when using hosted
# domains. If SSL is enabled for login and join those requests will still
# go to the GAE_DOMAIN above.
HOSTED_DOMAIN = 'appspot.com'
# App Engine requires you to serve with a subdomain
DEFAULT_HOSTED_SUBDOMAIN = 'openku'
NS_DOMAIN = 'openku.appspot.com'
Can you give that a try?
2009/4/4 shawntsai <shaw...@gmail.com>:
> Hi,
>
> I just try to set up my own jaiku instance and I encountered the same
> problem with you.
>
> I was wondering how you solve this problem, would you please give me
> some helps?
>
> Thanks.
>
> Shawn
>
>
> On Mar 14, 11:24 pm, Adewale Oshineye <adew...@gmail.com> wrote:
>> Hi all,
>> At the moment my instance, openku, almost works. The current problem
>> is that when an authenticated user visits the roothttp://openku.appspot.comthey get a validation error accusing them of
>> having an "invalid nick."
>>
>> The easiest way to replicate the error is by doing: curlhttp://openku.appspot.com
>> 2009/3/14 Ade Oshineye <adew...@gmail.com>:> Hi all,
>> > I thought I'd share my experiences trying to get a JaikuEngine
>> > instance deployed.
>>
>> > - Go herehttp://appengine.google.com/startand register your
>> > # ('Your Name', 'your_em...@domain.com'),
>> > )
>>
>> > MANAGERS = ADMINS
>>
>> > # This stuff is always going to be the same for an App Engine instance
>> > DATABASE_ENGINE = 'appengine' # 'appengine' is the only supported
>> > engine
>> > DATABASE_NAME = '' # Not used with appengine
>> > DATABASE_USER = '' # Not used with appengine
>> > DATABASE_PASSWORD = '' # Not used with appengine
>> > DATABASE_HOST = '' # Not used with appengine
>> > DATABASE_PORT = '' # Not used with appengine
>>
>> > # The appengine_django code doesn't care about the address of
>> > memcached
>> > because it is a built in API for App Engine
>> > CACHE_BACKEND = 'memcached://'
>>
>> > # Local time zone for this installation. Choices can be found here:
>> > #http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
>> > # although not all choices may be available on all operating systems.
>> > # If running in a Windows environment this must be set to the same as
>> > your
>> > # system time zone.
>> > TIME_ZONE = 'UTC'
>>
>> > # Language code for this installation. All choices can be found here:
>> > #http://www.i18nguy.com/unicode/language-identifiers.html
>> > ROOT_NICK = '...@oshineye.com'
>> > # andhttps://GAE_DOMAIN/joinfor those respective actions.
>> > # read the docs athttp://code.google.com/p/jaikuengine/wiki/sms_support
>> > SMS_ENABLED = False
>>
>> > # Most SMS vendors will provide a service that will post messages to a
>> > url
>> > # on your site when an SMS has been received on their end, this
>> > setting allows
>> > # you to add a secret value to that must exist in that url to prevent
>> > # malicious use.
>> > SMS_VENDOR_SECRET = 'SMS_VENDOR'
>>
>> > # Valid numbers on which you expect to receive SMS
>> > SMS_TARGET = '00000'
>>
>> > # Whitelist regular expression for allowable mobile-terminated targets
>> > SMS_MT_WHITELIST = re.compile('\+\d+')
>>
>> > # Blacklist regular expression for blocked mobile-terminated targets
>> > SMS_MT_BLACKLIST = None
>>
>> > # Turn on test mode for SMS
>> > SMS_TEST_ONLY = False
>>
>> > # Numbers to use when testing live SMS so you don't spam all your
>> > users
>> > SMS_TEST_NUMBERS = []
>>
>> > #
>> > # XMPP / IM
>> > #
>>
>> > # Enabling IM will require a bit more than just making this True,
>> > please
>> > # read the docs athttp://code.google.com/p/jaikuengine/wiki/im_support
>> > DEFAULT_UNITTEST_TO_EMAIL = 'unitte...@oshineye.com'