Closed GoogleCodeExporter closed 9 years ago
Sorry for the duplicate submission. I got an submission error on earlier submit
and re-
posted, but found the first submit had gone thru. Please close either one as
duplicate.
Original comment by Ingenutrix@gmail.com
on 23 Jun 2009 at 5:34
Did you try to set remote_host in your settings.DATABASE_SETTINGS?
Original comment by wkornew...@gmail.com
on 23 Jun 2009 at 7:38
All settings were default.
Only changes done to AEP Sample before deployment were in app.yaml
1) application: changed-to-my-app-id
2) version: 2
If version = 1 in app.yaml, the AEP Sample deployment works fine for both
version = 1, and version =
2. ( deploy AEP sample first with version = 1 overwriting the existing java app
with version = 1,
then deploy AEP Sample with version = 2, no problems )
The problem only happens when version 1 is an already deployed java app, and
then AEP sample is
deployed as version = 2 ( without deploying AEP Sample with version = 1 )
Original comment by Ingenutrix@gmail.com
on 23 Jun 2009 at 9:45
Could you please try to set settings.DATABASE_SETTINGS['remote_host'] (see
bottom of
settings.py)?
Original comment by wkornew...@gmail.com
on 23 Jun 2009 at 9:59
Enabled remote_url. Deployment fails.
but the work-around works. ( steps #3,#4,#5 mentioned in bug description )
DATABASE_OPTIONS = {
# Override remoteapi handler's path (default: '/remote_api').
# This is a good idea, so you make it not too easy for hackers. ;)
# Don't forget to also update your app.yaml!
'remote_url': '/remote_api',
handlers:
- url: /remote_api
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
login: admin
Original comment by Ingenutrix@gmail.com
on 23 Jun 2009 at 10:21
OK, I'll better explain the problem: By default, the remote *host* (not url) is
<appid>.appspot.com, but in your case that would be the java version, so you
have to
change the remote_host to <version>.latest.<appid>.appspot.com.
Original comment by wkornew...@gmail.com
on 23 Jun 2009 at 10:33
wkornewald, thanks. Your suggestion to change the remote_host to
<version>.latest.<appid>.appspot.com *worked*. ( in this case <version> = 2 )
I kept reading 'host' but for some reason, kept thinking as 'url'!?
btw, I tried greping for DATABASE_SETTINGS in settings.py and in the AEP Sample
but
couldn't find DATABASE_SETTINGS['remote_host']. In the comment #4, I guess you
meant DATABASE_OPTIONS in settings.py. (just mentioning it here if someone else
bumps into
this same problem and searches for DATABASE_SETTINGS.)
Original comment by Ingenutrix@gmail.com
on 23 Jun 2009 at 1:41
Oh, yeah sorry for the typo (DATABASE_OPTIONS). Great it's fixed.
Original comment by wkornew...@gmail.com
on 23 Jun 2009 at 1:47
Original issue reported on code.google.com by
Ingenutrix@gmail.com
on 23 Jun 2009 at 5:31