Sending data from ODK Collect to local ODK aggregate instance

Hi there,

I have compiled the source code for ODK collect and setup ODK
aggregate with tomcat and MySQL. Now I want to try to send the data
from the forms from ODK collect and everytime I try to do that I get
an error like

"FAILED: http://opendatakit.appspot.com/ submission returned 404 not
found"

but since I want it to go to my local instance I have changed the
"default_server_url" from R.string to "http://localhost:8080/
ODKAggregate" the location where aggregate is running locally but I
still get the same error.

I can't figure out how to do it. Can anyone please help me out.

Thanks

what version of collect and aggregate are you using?

changing the default url probably only works the first time you
install collect. when you go to preferences menu, what url are you
pointed to?

what happens if you type the the server into your phone's browser? if
that fails, then there is something wrong with your network?

··· On Tue, Nov 1, 2011 at 13:15, Tasbeer wrote: > Hi there, > > I have compiled the source code for ODK collect and setup ODK > aggregate with tomcat and MySQL. Now I want to try to send the data > from the forms from ODK collect and everytime I try to do that I get > an error like > > "FAILED: http://opendatakit.appspot.com/ submission returned 404 not > found" > > but since I want it to go to my local instance I have changed the > "default_server_url" from R.string to "http://localhost:8080/ > ODKAggregate" the location where aggregate is running locally but I > still get the same error. > > I can't figure out how to do it. Can anyone please help me out. > > Thanks

From the phone, or an emulator, "localhost" refers to the phone itself, not
your computer. Also, when you configured your Tomcat instance, you should
not have specified "localhost" for this same reason. In most cases, it
needs to be a fully-qualified hostname that could be typed into a browser
anywhere in the world and reach your computer.

The easiest way to get such a name is to use Dynamic DNS to identify the
computer on which your Aggregate instance runs (search for Free Dynamic
DNS). If you have an IT person in your organization, s/he can help you
configure a name that hangs off your organization's domain name -- so if
your organization is "opendatakit.org" and your computer name is "fred",
s/he can set things up so that fred.opendatakit.org identifies your
computer.

Mitch

··· On Tue, Nov 1, 2011 at 3:06 PM, Yaw Anokwa wrote:

what version of collect and aggregate are you using?

changing the default url probably only works the first time you
install collect. when you go to preferences menu, what url are you
pointed to?

what happens if you type the the server into your phone's browser? if
that fails, then there is something wrong with your network?

On Tue, Nov 1, 2011 at 13:15, Tasbeer bikrito@gmail.com wrote:

Hi there,

I have compiled the source code for ODK collect and setup ODK
aggregate with tomcat and MySQL. Now I want to try to send the data
from the forms from ODK collect and everytime I try to do that I get
an error like

"FAILED: http://opendatakit.appspot.com/ submission returned 404 not
found"

but since I want it to go to my local instance I have changed the
"default_server_url" from R.string to "http://localhost:8080/
ODKAggregate" the location where aggregate is running locally but I
still get the same error.

I can't figure out how to do it. Can anyone please help me out.

Thanks

--
Mitch Sundt
Software Engineer
http://www.OpenDataKit.org
University of Washington
mitchellsundt@gmail.com