[ODK Community] Connection refused when downloading form from local Tomcat install

Stuart,

Take a look at the section on "Your Well-Known Server Name" at
http://code.google.com/p/opendatakit/wiki/AggregateTroubleshooting.

Yaw

··· On Thu, Sep 20, 2012 at 4:37 AM, Stu S wrote: > I'm current working on an ODK deployment that will involve a moderately-sized group of survey staff together with 3 supervisors each leading a team. We will be mostly working in areas without cellular data coverage, but in order to ensure quality data-collection, the supervisors will need to be able to review data on a nightly basis. > > Hence, we are looking at using local ODK Aggregate installations running on a local instance of Tomcat. > > I spent a few hours installing Tomcat v6 and ODK Aggregate v1.2.0 on my machine, and I now have both up and running. I've set up my machine Wifi to run as a router, and I've set up my Android phone (a real phone, not an emulator) running ODK Collect v.1.2(1013). So far, I've managed to configure things so that when I push the "Get Blank Forms" button in Collect, the list of forms on my server shows up. When I try to download said forms, however, I get the following error message: > > "/127.0.0.1:8080 - Connection refused'" > > Does anyone know what's causing this? I believe the correct ports are open on my machine so that I can access the database, and the fact that the list of forms shows up correctly on my phone seems to indicate I'm doing something right. > > Any help would be much appreciated. > > -Stuart > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

In particular:

A common configuration problem is specifying "localhost" or "127.0.0.1" for
the fully qualified hostname during the ODK Aggregate installation process.
This is like saying "myself" -- if you enter that into a browser on the
phone or another computer, you're directing that device's browser to
connect to the device itself rather than the machine with ODK Aggregate
running on it.

You should re-run your installer and specify the IP address or name of your
server -- the value you used in in the URL you configured into ODK Collect
to reach your server.

Mitch

··· On Thu, Sep 20, 2012 at 10:50 AM, Yaw Anokwa wrote:

Stuart,

Take a look at the section on "Your Well-Known Server Name" at
http://code.google.com/p/opendatakit/wiki/AggregateTroubleshooting.

Yaw

On Thu, Sep 20, 2012 at 4:37 AM, Stu S stuart.shirrell@idinsight.org wrote:

I'm current working on an ODK deployment that will involve a
moderately-sized group of survey staff together with 3 supervisors each
leading a team. We will be mostly working in areas without cellular data
coverage, but in order to ensure quality data-collection, the supervisors
will need to be able to review data on a nightly basis.

Hence, we are looking at using local ODK Aggregate installations running
on a local instance of Tomcat.

I spent a few hours installing Tomcat v6 and ODK Aggregate v1.2.0 on my
machine, and I now have both up and running. I've set up my machine Wifi
to run as a router, and I've set up my Android phone (a real phone, not an
emulator) running ODK Collect v.1.2(1013). So far, I've managed to
configure things so that when I push the "Get Blank Forms" button in
Collect, the list of forms on my server shows up. When I try to download
said forms, however, I get the following error message:

"/127.0.0.1:8080 - Connection refused'"

Does anyone know what's causing this? I believe the correct ports are
open on my machine so that I can access the database, and the fact that the
list of forms shows up correctly on my phone seems to indicate I'm doing
something right.

Any help would be much appreciated.

-Stuart

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

This shouldn't be an issue with a simple wifi hotspot. Using your phone's
browser, what do you get when you browse to the URL for your server? You
should see the same login sequence as you do from within a browser running
on your server.

Are you sure about the 200 return code? This would suggest that the wifi
hotspot is presenting some sort of network login screen (like Starbucks).
If that is the case, you would first need to open the phone's browser, log
into out hotspot through the browser, then return to run ODK Collect to
upload data or download forms.

Mitch

··· On Fri, Sep 21, 2012 at 12:10 AM, wrote:

Thanks guys.

I've solved the problem of downloading forms and can now access forms on
the local instances of aggregate from my phone.

I'm not having problems uploading forms to the server. What I've done is
to set up a wifi hotspot on my laptop and connect the phone to that. Now
when I try to submit a form I get the following error: "Error: Invalid
status code on Head request."

From what it looks like, the routing software on my wifi might be giving a
200 code when it receives the request from the phone. Does anyone have any
suggestions about how to remedy this? Is it the way the wifi network is
routing it or the way the server is configured?

Thanks,
Stuart

On Thursday, September 20, 2012 11:51:53 PM UTC+5:30, Mitch wrote:

In particular:

A common configuration problem is specifying "localhost" or "127.0.0.1"
for the fully qualified hostname during the ODK Aggregate installation
process. This is like saying "myself" -- if you enter that into a
browser on the phone or another computer, you're directing that device's
browser to connect to the device itself rather than the machine with
ODK Aggregate running on it.

You should re-run your installer and specify the IP address or name of
your server -- the value you used in in the URL you configured into ODK
Collect to reach your server.

Mitch

On Thu, Sep 20, 2012 at 10:50 AM, Yaw Anokwa yan...@nafundi.com wrote:

Stuart,

Take a look at the section on "Your Well-Known Server Name" at

http://code.google.com/p/opendatakit/wiki/AggregateTroubleshooting.

Yaw

On Thu, Sep 20, 2012 at 4:37 AM, Stu S stuart....@idinsight.org wrote:

I'm current working on an ODK deployment that will involve a
moderately-sized group of survey staff together with 3 supervisors each
leading a team. We will be mostly working in areas without cellular data
coverage, but in order to ensure quality data-collection, the supervisors
will need to be able to review data on a nightly basis.

Hence, we are looking at using local ODK Aggregate installations
running on a local instance of Tomcat.

I spent a few hours installing Tomcat v6 and ODK Aggregate v1.2.0 on
my machine, and I now have both up and running. I've set up my machine
Wifi to run as a router, and I've set up my Android phone (a real phone,
not an emulator) running ODK Collect v.1.2(1013). So far, I've managed to
configure things so that when I push the "Get Blank Forms" button in
Collect, the list of forms on my server shows up. When I try to download
said forms, however, I get the following error message:

"/127.0.0.1:8080 - Connection refused'"

Does anyone know what's causing this? I believe the correct ports are
open on my machine so that I can access the database, and the fact that the
list of forms shows up correctly on my phone seems to indicate I'm doing
something right.

Any help would be much appreciated.

-Stuart

--

Post: opend...@googlegroups.com

Unsubscribe: opendatakit...@googlegroups.com

Options: http://groups.google.com/group/opendatakit?hl=en

--

Post: opend...@googlegroups.com

Unsubscribe: opendatakit...@googlegroups.com

Options: http://groups.google.com/group/opendatakit?hl=en

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

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

I've gotten it to work. Apparently I needed to add "/submission" on the
end of the URL I was giving the form to submit to, though I never saw any
mention of this in the documentation.

Thanks for all the help. This is a big deal for our supervisors in the
field to be able to aggregate data from their team and do some basic
verifications.

-Stuart

··· On Friday, September 21, 2012 11:09:07 PM UTC+5:30, Mitch wrote: > > This shouldn't be an issue with a simple wifi hotspot. Using your phone's > browser, what do you get when you browse to the URL for your server? You > should see the same login sequence as you do from within a browser running > on your server. > > Are you sure about the 200 return code? This would suggest that the wifi > hotspot is presenting some sort of network login screen (like Starbucks). > If that is the case, you would first need to open the phone's browser, log > into out hotspot through the browser, then return to run ODK Collect to > upload data or download forms. > > Mitch > > On Fri, Sep 21, 2012 at 12:10 AM, <stuart....@idinsight.org >wrote: > >> Thanks guys. >> >> I've solved the problem of downloading forms and can now access forms on >> the local instances of aggregate from my phone. >> >> I'm not having problems uploading forms to the server. What I've done is >> to set up a wifi hotspot on my laptop and connect the phone to that. Now >> when I try to submit a form I get the following error: "Error: Invalid >> status code on Head request." >> >> From what it looks like, the routing software on my wifi might be giving >> a 200 code when it receives the request from the phone. Does anyone have >> any suggestions about how to remedy this? Is it the way the wifi network >> is routing it or the way the server is configured? >> >> Thanks, >> Stuart >> >> >> On Thursday, September 20, 2012 11:51:53 PM UTC+5:30, Mitch wrote: >> > In particular: >> > >> > A common configuration problem is specifying "localhost" or "127.0.0.1" >> > for the fully qualified hostname during the ODK Aggregate installation >> > process. This is like saying "myself" -- if you enter that into a >> > browser on the phone or another computer, you're directing that device's >> > browser to connect to the device itself rather than the machine with >> > ODK Aggregate running on it. >> > >> > You should re-run your installer and specify the IP address or name of >> your server -- the value you used in in the URL you configured into ODK >> Collect to reach your server. >> > >> > Mitch >> > >> > >> > >> > On Thu, Sep 20, 2012 at 10:50 AM, Yaw Anokwa wrote: >> > >> > Stuart, >> > >> > >> > >> > Take a look at the section on "Your Well-Known Server Name" at >> > >> > http://code.google.com/p/opendatakit/wiki/AggregateTroubleshooting. >> > >> > >> > >> > Yaw >> > >> > >> > >> > >> > >> > On Thu, Sep 20, 2012 at 4:37 AM, Stu S wrote: >> > >> > > I'm current working on an ODK deployment that will involve a >> moderately-sized group of survey staff together with 3 supervisors each >> leading a team. We will be mostly working in areas without cellular data >> coverage, but in order to ensure quality data-collection, the supervisors >> will need to be able to review data on a nightly basis. >> > >> > >> > > >> > >> > > Hence, we are looking at using local ODK Aggregate installations >> running on a local instance of Tomcat. >> > >> > > >> > >> > > I spent a few hours installing Tomcat v6 and ODK Aggregate v1.2.0 on >> my machine, and I now have both up and running. I've set up my machine >> Wifi to run as a router, and I've set up my Android phone (a real phone, >> not an emulator) running ODK Collect v.1.2(1013). So far, I've managed to >> configure things so that when I push the "Get Blank Forms" button in >> Collect, the list of forms on my server shows up. When I try to download >> said forms, however, I get the following error message: >> > >> > >> > > >> > >> > > "/127.0.0.1:8080 - Connection refused'" >> > >> > > >> > >> > > Does anyone know what's causing this? I believe the correct ports >> are open on my machine so that I can access the database, and the fact that >> the list of forms shows up correctly on my phone seems to indicate I'm >> doing something right. >> > >> > >> > > >> > >> > > Any help would be much appreciated. >> > >> > > >> > >> > > -Stuart >> > >> > > >> > >> > > -- >> > >> > > Post: opend...@googlegroups.com >> > >> > > Unsubscribe: opendatakit...@googlegroups.com >> > >> > > Options: http://groups.google.com/group/opendatakit?hl=en >> > >> > >> > >> > -- >> > >> > Post: opend...@googlegroups.com >> > >> > Unsubscribe: opendatakit...@googlegroups.com >> > >> > Options: http://groups.google.com/group/opendatakit?hl=en >> > >> > >> > >> > >> > -- >> > Mitch Sundt >> > Software Engineer >> > University of Washington >> > mitche...@gmail.com >> >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Yes, generally, if "Server Platform" is set to "ODK Aggregate", then Form
List Path should be set as /formList and Submission Path should be set as
/submission.

It appears that these are not properly initialized/configured in the latest
build, as these should be read-only values if you choose ODK Aggregate, and
should be forced to those settings.

http://code.google.com/p/opendatakit/issues/detail?id=690

Mitch

··· On Fri, Sep 21, 2012 at 9:52 PM, Stuart Shirrell < stuart.shirrell@idinsight.org> wrote:

I've gotten it to work. Apparently I needed to add "/submission" on the
end of the URL I was giving the form to submit to, though I never saw any
mention of this in the documentation.

Thanks for all the help. This is a big deal for our supervisors in the
field to be able to aggregate data from their team and do some basic
verifications.

-Stuart

On Friday, September 21, 2012 11:09:07 PM UTC+5:30, Mitch wrote:

This shouldn't be an issue with a simple wifi hotspot. Using your
phone's browser, what do you get when you browse to the URL for your
server? You should see the same login sequence as you do from within a
browser running on your server.

Are you sure about the 200 return code? This would suggest that the wifi
hotspot is presenting some sort of network login screen (like Starbucks).
If that is the case, you would first need to open the phone's browser, log
into out hotspot through the browser, then return to run ODK Collect to
upload data or download forms.

Mitch

On Fri, Sep 21, 2012 at 12:10 AM, <stuart....@idinsight.org**> wrote:

Thanks guys.

I've solved the problem of downloading forms and can now access forms on
the local instances of aggregate from my phone.

I'm not having problems uploading forms to the server. What I've done
is to set up a wifi hotspot on my laptop and connect the phone to that.
Now when I try to submit a form I get the following error: "Error: Invalid
status code on Head request."

From what it looks like, the routing software on my wifi might be giving
a 200 code when it receives the request from the phone. Does anyone have
any suggestions about how to remedy this? Is it the way the wifi network
is routing it or the way the server is configured?

Thanks,
Stuart

On Thursday, September 20, 2012 11:51:53 PM UTC+5:30, Mitch wrote:

In particular:

A common configuration problem is specifying "localhost" or "127.0.0.1"
for the fully qualified hostname during the ODK Aggregate installation
process. This is like saying "myself" -- if you enter that into a
browser on the phone or another computer, you're directing that
device's
browser to connect to the device itself rather than the machine with
ODK Aggregate running on it.

You should re-run your installer and specify the IP address or name of
your server -- the value you used in in the URL you configured into ODK
Collect to reach your server.

Mitch

On Thu, Sep 20, 2012 at 10:50 AM, Yaw Anokwa yan...@nafundi.com wrote:

Stuart,

Take a look at the section on "Your Well-Known Server Name" at

http://code.google.com/p/**opendatakit/wiki/**AggregateTroubleshootinghttp://code.google.com/p/opendatakit/wiki/AggregateTroubleshooting
.

Yaw

On Thu, Sep 20, 2012 at 4:37 AM, Stu S stuart....@idinsight.org wrote:

I'm current working on an ODK deployment that will involve a
moderately-sized group of survey staff together with 3 supervisors each
leading a team. We will be mostly working in areas without cellular data
coverage, but in order to ensure quality data-collection, the supervisors
will need to be able to review data on a nightly basis.

Hence, we are looking at using local ODK Aggregate installations
running on a local instance of Tomcat.

I spent a few hours installing Tomcat v6 and ODK Aggregate v1.2.0 on
my machine, and I now have both up and running. I've set up my machine
Wifi to run as a router, and I've set up my Android phone (a real phone,
not an emulator) running ODK Collect v.1.2(1013). So far, I've managed to
configure things so that when I push the "Get Blank Forms" button in
Collect, the list of forms on my server shows up. When I try to download
said forms, however, I get the following error message:

"/127.0.0.1:8080 - Connection refused'"

Does anyone know what's causing this? I believe the correct ports
are open on my machine so that I can access the database, and the fact that
the list of forms shows up correctly on my phone seems to indicate I'm
doing something right.

Any help would be much appreciated.

-Stuart

--

Post: opend...@googlegroups.com

Unsubscribe: opendatakit...@googlegroups.**com

Options: http://groups.google.com/**group/opendatakit?hl=enhttp://groups.google.com/group/opendatakit?hl=en

--

Post: opend...@googlegroups.com

Unsubscribe: opendatakit...@googlegroups.**com

Options: http://groups.google.com/**group/opendatakit?hl=enhttp://groups.google.com/group/opendatakit?hl=en

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

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@**googlegroups.com
Options: http://groups.google.com/**group/opendatakit?hl=enhttp://groups.google.com/group/opendatakit?hl=en

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

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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