Problems with Aggregate Code After Uploading to My Google App Engine Site

Hi -

I am having issues with my code once I deploy it to Google App
Engine. Here is a brief summary of what I have done. I'm developing
in Eclipse 3.7 – Indigo Service Release 1:

  1. I've successfully checked out v1_0 of the Aggregate Code following
    the directions provided in http://code.google.com/p/opendatakit/wiki/AggregateEclipseProjectSetup.

  2. I modified the addNodeToHeader function in GenerateHeaderInfo.java
    (I took out the "SiteLocation" prefix in the headers so that it will
    work better with ESRI products).

  3. I carefully followed all the directions under the "Minimal Eclipse
    Setup" heading in the document
    http://code.google.com/p/opendatakit/source/browse/CONFIGURE.txt?repo=aggregate&name=v1_0

  4. I successfully ran the application from Eclipse to a local server
    (from Run >> Run As >> Web Application).

  5. I uploaded the code to my Google App Engine site by following the
    directions provided in http://code.google.com/p/opendatakit/wiki/AggregateEclipseUpload

Here are the errors I am getting:

Once the application is running on my Google App Engine Site, I am no
longer able to successfully add an ODK user under Site Admin. When I
try to change the password for a new user I get the following error:
“JSON change-password request to http://opendataholly.appspot.com.8888/ssl/user-manage-passwords
failed.”

I’m also unable to export a CSV. I get the following error:
“Oops! Google Chrome could not connect to opendataholly.appspot.com:
8888”

Thanks for your help,

··· -- Holly Orr GIS Application Developer / Specialist NYU - Global Technology Services holly.orr@nyu.edu

Every time you upload to AppSpot from Eclipse, you need to modify and
rebuild the security.properties file.

This is a source file in the odk-gae-settings project.
On disk, it is at src/main/resources/common/security.properties

The changes to make are:

security.server.secureChannelType=REQUIRES_SECURE_CHANNEL
security.server.channelType=REQUIRES_SECURE_CHANNEL
security.server.hostname=opendataholly.appspot.com
security.server.port=80
security.server.securePort=443

Note that you should also probably have a realmString different from the
default for your deployment.
And you should probably change the siteKey and userServiceKey to some other
UUID value.

Once you make the changes, you need to run the Ant Build script in
odk-gae-settings, then refresh (F5) the eclipse-gae project, then deploy to
AppSpot. When you go back to local testing, you need to undo the 5 changes
I called out. You'll note that there are commented-out versions of those
lines in the file which makes that easy to do.

What is happening is that you didn't change the port values, and so the
requests are going to port 8888 rather than 80, and the site is not running
under https, but http, which means your password changes (though sent as
hashes) are visible to eavesdroppers.

Mitch

··· On Fri, Jan 27, 2012 at 6:56 AM, Holly Orr wrote:

Hi -

I am having issues with my code once I deploy it to Google App
Engine. Here is a brief summary of what I have done. I'm developing
in Eclipse 3.7 – Indigo Service Release 1:

  1. I've successfully checked out v1_0 of the Aggregate Code following
    the directions provided in
    http://code.google.com/p/opendatakit/wiki/AggregateEclipseProjectSetup.

  2. I modified the addNodeToHeader function in GenerateHeaderInfo.java
    (I took out the "SiteLocation" prefix in the headers so that it will
    work better with ESRI products).

  3. I carefully followed all the directions under the "Minimal Eclipse
    Setup" heading in the document

http://code.google.com/p/opendatakit/source/browse/CONFIGURE.txt?repo=aggregate&name=v1_0

  1. I successfully ran the application from Eclipse to a local server
    (from Run >> Run As >> Web Application).

  2. I uploaded the code to my Google App Engine site by following the
    directions provided in
    http://code.google.com/p/opendatakit/wiki/AggregateEclipseUpload

Here are the errors I am getting:

Once the application is running on my Google App Engine Site, I am no
longer able to successfully add an ODK user under Site Admin. When I
try to change the password for a new user I get the following error:
“JSON change-password request to
http://opendataholly.appspot.com.8888/ssl/user-manage-passwords
failed.”

I’m also unable to export a CSV. I get the following error:
“Oops! Google Chrome could not connect to opendataholly.appspot.com:
8888”

Thanks for your help,

Holly Orr
GIS Application Developer / Specialist
NYU - Global Technology Services
holly.orr@nyu.edu

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com