Running ODKCollect 1.1.7 RC on Android Emulator on VirtualBox host

Hi all,

I installed the latest version of ODK Aggregate on a (Ubuntu)
VirtualBox machine and all appears to be running fine (in both the
host machine and the guest machine). However I´m having issues
downloading forms from this server when I run ODKCollect on the
Android emulator. Note that I´m running the emulator on the guest
machine - the same guest that ODK Aggregate server is running - not on
the host machine (though I did try this first).

In ODKCollect I enter the server url (http://192.168.56.101:8080/
ODKAggregate/) and username/password, then go to the manage form page.
ODKCollect connects to the Aggregate server fine and shows me a list
of the forms I have created - so far so good!

However, when I select the forms for download, I get the message that
the downloading of forms was successful (message: "Downloading Forms
Result, Alex test: SUCCESS"), but when I view the list of downloaded
forms nothing is displayed. I checked the Android log and it shows an
error:

"java.net.UnknownHostException: odkaggregate"

odkaggregate is the host name of my guest machine - so I realise that
I must have something wrong with my networking configuration in
VirtualBox, but I have a couple of questions:

  1. As I entered the server url as 192.168.56.101:8080... and this
    connected fine, shouldn't then form downloader use this url rather
    than 'odkaggregate'? I don´t quite understand where either ODKCollect
  • or Aggregate is getting the url odkaggregate from (just from the
    guest machine?)
  1. What url can I use in my guest machine browser to simulate
    downloading the form - something like: http://192.168.56.101:8080/ODKAggregate/formdownloader?id=123
  • I´d just like to know what the url is to download a form
  1. As the download was a failure, shouldn't the Downloading Forms
    Results show an error rather than a success message? Is there
    somewhere I should report this as a bug?

Sorry for the long message - any help much appreciated :slight_smile:

Cheers,
Alex

1 Like

hi alex,

can you file the download issue at
http://code.google.com/p/opendatakit/issues/list with the stack trace
attached? and if the information below helps, add it to the bug as
well..

i believe aggregate uses whatever fully qualified name you give it in
the installer as the root of whatever url. so try enabling the
anonymous user in aggregate. then if you connect to
http://192.168.56.101:8080/formList, it should give you the manifest
of files it would download. in that manifest, it should be something
like http://192.168.56.101:8080/formXML?formId=My_Form.

it may also be helpful connecting the emulator to 10.0.2.2:8080,
that's the ip the emulator sees as localhost, but i have no clue what
that will actually do on your setup...

yaw

··· On Wed, Jul 27, 2011 at 01:00, Alex Little wrote: > Hi all, > > I installed the latest version of ODK Aggregate on a (Ubuntu) > VirtualBox machine and all appears to be running fine (in both the > host machine and the guest machine). However I´m having issues > downloading forms from this server when I run ODKCollect on the > Android emulator. Note that I´m running the emulator on the guest > machine - the same guest that ODK Aggregate server is running - not on > the host machine (though I did try this first). > > In ODKCollect I enter the server url (http://192.168.56.101:8080/ > ODKAggregate/) and username/password, then go to the manage form page. > ODKCollect connects to the Aggregate server fine and shows me a list > of the forms I have created - so far so good! > > However, when I select the forms for download, I get the message that > the downloading of forms was successful (message: "Downloading Forms > Result, Alex test: SUCCESS"), but when I view the list of downloaded > forms nothing is displayed. I checked the Android log and it shows an > error: > > "java.net.UnknownHostException: odkaggregate" > > odkaggregate is the host name of my guest machine - so I realise that > I must have something wrong with my networking configuration in > VirtualBox, but I have a couple of questions: > > 1) As I entered the server url as 192.168.56.101:8080... and this > connected fine, shouldn't then form downloader use this url rather > than 'odkaggregate'? I don´t quite understand where either ODKCollect > - or Aggregate is getting the url odkaggregate from (just from the > guest machine?) > 2) What url can I use in my guest machine browser to simulate > downloading the form - something like: http://192.168.56.101:8080/ODKAggregate/formdownloader?id=123 > - I´d just like to know what the url is to download a form > 3) As the download was a failure, shouldn't the Downloading Forms > Results show an error rather than a success message? Is there > somewhere I should report this as a bug? > > Sorry for the long message - any help much appreciated :-) > > Cheers, > Alex > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Thanks for the quick reply Yaw. I've just submitted the issue with the
full stack trace (http://code.google.com/p/opendatakit/issues/detail?
id=273) Just let me know if any further info is needed here to
replicate (I realise it's possibly not a common configuration!- I
just prefer to trying out software on a virtual machine).

Thanks for the info about the URLs.

Is it possible to change the fully qualified domain name in Aggregate
now that it's already set up? I assume there's a setting for this
somewhere? I had a look in the ODKAggregate war file that was
produced, but I didn't see anything, I thought perhaps if I changed
this to the IP address I'd like to use then it may work?

Cheers,
Alex

··· On Jul 27, 11:10 am, Yaw Anokwa wrote: > hi alex, > > can you file the download issue athttp://code.google.com/p/opendatakit/issues/listwith the stack trace > attached? and if the information below helps, add it to the bug as > well.. > > i believe aggregate uses whatever fully qualified name you give it in > the installer as the root of whatever url. so try enabling the > anonymous user in aggregate. then if you connect tohttp://192.168.56.101:8080/formList, it should give you the manifest > of files it would download. in that manifest, it should be something > likehttp://192.168.56.101:8080/formXML?formId=My_Form. > > it may also be helpful connecting the emulator to 10.0.2.2:8080, > that's the ip the emulator sees as localhost, but i have no clue what > that will actually do on your setup... > > yaw > > On Wed, Jul 27, 2011 at 01:00, Alex Little wrote: > > Hi all, > > > I installed the latest version of ODK Aggregate on a (Ubuntu) > > VirtualBox machine and all appears to be running fine (in both the > > host machine and the guest machine). However I´m having issues > > downloading forms from this server when I run ODKCollect on the > > Android emulator. Note that I´m running the emulator on the guest > > machine - the same guest that ODK Aggregate server is running - not on > > the host machine (though I did try this first). > > > In ODKCollect I enter the server url (http://192.168.56.101:8080/ > > ODKAggregate/) and username/password, then go to the manage form page. > > ODKCollect connects to the Aggregate server fine and shows me a list > > of the forms I have created - so far so good! > > > However, when I select the forms for download, I get the message that > > the downloading of forms was successful (message: "Downloading Forms > > Result, Alex test: SUCCESS"), but when I view the list of downloaded > > forms nothing is displayed. I checked the Android log and it shows an > > error: > > > "java.net.UnknownHostException: odkaggregate" > > > odkaggregate is the host name of my guest machine - so I realise that > > I must have something wrong with my networking configuration in > > VirtualBox, but I have a couple of questions: > > > 1) As I entered the server url as 192.168.56.101:8080... and this > > connected fine, shouldn't then form downloader use this url rather > > than 'odkaggregate'? I don´t quite understand where either ODKCollect > > - or Aggregate is getting the url odkaggregate from (just from the > > guest machine?) > > 2) What url can I use in my guest machine browser to simulate > > downloading the form - something like:http://192.168.56.101:8080/ODKAggregate/formdownloader?id=123 > > - I´d just like to know what the url is to download a form > > 3) As the download was a failure, shouldn't the Downloading Forms > > Results show an error rather than a success message? Is there > > somewhere I should report this as a bug? > > > Sorry for the long message - any help much appreciated :-) > > > Cheers, > > Alex > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en

BTW... from the form list I can see it's giving the domain name I
entered at installation rather than the current address:

E.g. calling http://192.168.56.101:8080/ODKAggregate/formList gives
me:

Alex test Alex test

If this list returned

Alex test Alex test

then I think it will work.

Cheers,
Alex

··· On Jul 27, 11:50 am, Alex Little wrote: > Thanks for the quick reply Yaw. I've just submitted the issue with the > full stack trace (http://code.google.com/p/opendatakit/issues/detail? > id=273) Just let me know if any further info is needed here to > replicate (I realise it's possibly not a common configuration!- I > just prefer to trying out software on a virtual machine). > > Thanks for the info about the URLs. > > Is it possible to change the fully qualified domain name in Aggregate > now that it's already set up? I assume there's a setting for this > somewhere? I had a look in the ODKAggregate war file that was > produced, but I didn't see anything, I thought perhaps if I changed > this to the IP address I'd like to use then it may work? > > Cheers, > Alex > > On Jul 27, 11:10 am, Yaw Anokwa wrote: > > > hi alex, > > > can you file the download issue athttp://code.google.com/p/opendatakit/issues/listwiththe stack trace > > attached? and if the information below helps, add it to the bug as > > well.. > > > i believe aggregate uses whatever fully qualified name you give it in > > the installer as the root of whatever url. so try enabling the > > anonymous user in aggregate. then if you connect tohttp://192.168.56.101:8080/formList, it should give you the manifest > > of files it would download. in that manifest, it should be something > > likehttp://192.168.56.101:8080/formXML?formId=My_Form. > > > it may also be helpful connecting the emulator to 10.0.2.2:8080, > > that's the ip the emulator sees as localhost, but i have no clue what > > that will actually do on your setup... > > > yaw > > > On Wed, Jul 27, 2011 at 01:00, Alex Little wrote: > > > Hi all, > > > > I installed the latest version of ODK Aggregate on a (Ubuntu) > > > VirtualBox machine and all appears to be running fine (in both the > > > host machine and the guest machine). However I´m having issues > > > downloading forms from this server when I run ODKCollect on the > > > Android emulator. Note that I´m running the emulator on the guest > > > machine - the same guest that ODK Aggregate server is running - not on > > > the host machine (though I did try this first). > > > > In ODKCollect I enter the server url (http://192.168.56.101:8080/ > > > ODKAggregate/) and username/password, then go to the manage form page. > > > ODKCollect connects to the Aggregate server fine and shows me a list > > > of the forms I have created - so far so good! > > > > However, when I select the forms for download, I get the message that > > > the downloading of forms was successful (message: "Downloading Forms > > > Result, Alex test: SUCCESS"), but when I view the list of downloaded > > > forms nothing is displayed. I checked the Android log and it shows an > > > error: > > > > "java.net.UnknownHostException: odkaggregate" > > > > odkaggregate is the host name of my guest machine - so I realise that > > > I must have something wrong with my networking configuration in > > > VirtualBox, but I have a couple of questions: > > > > 1) As I entered the server url as 192.168.56.101:8080... and this > > > connected fine, shouldn't then form downloader use this url rather > > > than 'odkaggregate'? I don´t quite understand where either ODKCollect > > > - or Aggregate is getting the url odkaggregate from (just from the > > > guest machine?) > > > 2) What url can I use in my guest machine browser to simulate > > > downloading the form - something like:http://192.168.56.101:8080/ODKAggregate/formdownloader?id=123 > > > - I´d just like to know what the url is to download a form > > > 3) As the download was a failure, shouldn't the Downloading Forms > > > Results show an error rather than a success message? Is there > > > somewhere I should report this as a bug? > > > > Sorry for the long message - any help much appreciated :-) > > > > Cheers, > > > Alex > > > > -- > > > Post: opendatakit@googlegroups.com > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > > Options:http://groups.google.com/group/opendatakit?hl=en

I rebuilt the ODKAggregator war from the installer program (this time
using the IP instead of the machine name), now the forms are
successfully downloaded and I can go through the surveys in ODKCollect
in the emulator and view the data submitted in ODK Aggregate. Though
still interested to know if there's better way to change the domain
name/IP rather than rebuilding the whole war?
cheers,
A

··· On Jul 27, 11:54 am, Alex Little wrote: > BTW... from the form list I can see it's giving the domain name I > entered at installation rather than the current address: > > E.g. callinghttp://192.168.56.101:8080/ODKAggregate/formListgives > me: > > > Alex test > Alex test > > > If this list returned > > > Alex test > Alex test > > > then I think it will work. > > Cheers, > Alex > > On Jul 27, 11:50 am, Alex Little wrote: > > > Thanks for the quick reply Yaw. I've just submitted the issue with the > > full stack trace (http://code.google.com/p/opendatakit/issues/detail? > > id=273) Just let me know if any further info is needed here to > > replicate (I realise it's possibly not a common configuration!- I > > just prefer to trying out software on a virtual machine). > > > Thanks for the info about the URLs. > > > Is it possible to change the fully qualified domain name in Aggregate > > now that it's already set up? I assume there's a setting for this > > somewhere? I had a look in the ODKAggregate war file that was > > produced, but I didn't see anything, I thought perhaps if I changed > > this to the IP address I'd like to use then it may work? > > > Cheers, > > Alex > > > On Jul 27, 11:10 am, Yaw Anokwa wrote: > > > > hi alex, > > > > can you file the download issue athttp://code.google.com/p/opendatakit/issues/listwiththestack trace > > > attached? and if the information below helps, add it to the bug as > > > well.. > > > > i believe aggregate uses whatever fully qualified name you give it in > > > the installer as the root of whatever url. so try enabling the > > > anonymous user in aggregate. then if you connect tohttp://192.168.56.101:8080/formList, it should give you the manifest > > > of files it would download. in that manifest, it should be something > > > likehttp://192.168.56.101:8080/formXML?formId=My_Form. > > > > it may also be helpful connecting the emulator to 10.0.2.2:8080, > > > that's the ip the emulator sees as localhost, but i have no clue what > > > that will actually do on your setup... > > > > yaw > > > > On Wed, Jul 27, 2011 at 01:00, Alex Little wrote: > > > > Hi all, > > > > > I installed the latest version of ODK Aggregate on a (Ubuntu) > > > > VirtualBox machine and all appears to be running fine (in both the > > > > host machine and the guest machine). However I´m having issues > > > > downloading forms from this server when I run ODKCollect on the > > > > Android emulator. Note that I´m running the emulator on the guest > > > > machine - the same guest that ODK Aggregate server is running - not on > > > > the host machine (though I did try this first). > > > > > In ODKCollect I enter the server url (http://192.168.56.101:8080/ > > > > ODKAggregate/) and username/password, then go to the manage form page. > > > > ODKCollect connects to the Aggregate server fine and shows me a list > > > > of the forms I have created - so far so good! > > > > > However, when I select the forms for download, I get the message that > > > > the downloading of forms was successful (message: "Downloading Forms > > > > Result, Alex test: SUCCESS"), but when I view the list of downloaded > > > > forms nothing is displayed. I checked the Android log and it shows an > > > > error: > > > > > "java.net.UnknownHostException: odkaggregate" > > > > > odkaggregate is the host name of my guest machine - so I realise that > > > > I must have something wrong with my networking configuration in > > > > VirtualBox, but I have a couple of questions: > > > > > 1) As I entered the server url as 192.168.56.101:8080... and this > > > > connected fine, shouldn't then form downloader use this url rather > > > > than 'odkaggregate'? I don´t quite understand where either ODKCollect > > > > - or Aggregate is getting the url odkaggregate from (just from the > > > > guest machine?) > > > > 2) What url can I use in my guest machine browser to simulate > > > > downloading the form - something like:http://192.168.56.101:8080/ODKAggregate/formdownloader?id=123 > > > > - I´d just like to know what the url is to download a form > > > > 3) As the download was a failure, shouldn't the Downloading Forms > > > > Results show an error rather than a success message? Is there > > > > somewhere I should report this as a bug? > > > > > Sorry for the long message - any help much appreciated :-) > > > > > Cheers, > > > > Alex > > > > > -- > > > > Post: opendatakit@googlegroups.com > > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > > > Options:http://groups.google.com/group/opendatakit?hl=en

The installer takes your configuration information and builds:
WEB-INF/lib/ODKAggregate-settings.jar

Within that jar, the configurable settings are in:
jdbc.properties (for the datastore configuration)
security.properties (for the server name, ports and security configuration)

The xml files are selected based upon the deployment type (GAE, MySQL,
PostgreSQL).

The server name is coded into the configuration so that you can configure
Aggregate to construct URLs correctly if you are running behind a proxy
server, a load balancer, or using a CNAME.

Mitch

··· On Wed, Jul 27, 2011 at 3:35 AM, Alex Little wrote:

I rebuilt the ODKAggregator war from the installer program (this time
using the IP instead of the machine name), now the forms are
successfully downloaded and I can go through the surveys in ODKCollect
in the emulator and view the data submitted in ODK Aggregate. Though
still interested to know if there's better way to change the domain
name/IP rather than rebuilding the whole war?
cheers,
A

On Jul 27, 11:54 am, Alex Little a...@alexlittle.net wrote:

BTW... from the form list I can see it's giving the domain name I
entered at installation rather than the current address:

E.g. callinghttp://192.168.56.101:8080/ODKAggregate/formListgives
me:

Alex test Alex test

If this list returned

Alex test Alex test

then I think it will work.

Cheers,
Alex

On Jul 27, 11:50 am, Alex Little a...@alexlittle.net wrote:

Thanks for the quick reply Yaw. I've just submitted the issue with the
full stack trace (http://code.google.com/p/opendatakit/issues/detail?
id=273) Just let me know if any further info is needed here to
replicate (I realise it's possibly not a common configuration!- I
just prefer to trying out software on a virtual machine).

Thanks for the info about the URLs.

Is it possible to change the fully qualified domain name in Aggregate
now that it's already set up? I assume there's a setting for this
somewhere? I had a look in the ODKAggregate war file that was
produced, but I didn't see anything, I thought perhaps if I changed
this to the IP address I'd like to use then it may work?

Cheers,
Alex

On Jul 27, 11:10 am, Yaw Anokwa yano...@gmail.com wrote:

hi alex,

can you file the download issue athttp://
code.google.com/p/opendatakit/issues/listwiththestack trace
attached? and if the information below helps, add it to the bug as
well..

i believe aggregate uses whatever fully qualified name you give it in
the installer as the root of whatever url. so try enabling the
anonymous user in aggregate. then if you connect tohttp://
192.168.56.101:8080/formList, it should give you the manifest
of files it would download. in that manifest, it should be something
likehttp://192.168.56.101:8080/formXML?formId=My_Form.

it may also be helpful connecting the emulator to 10.0.2.2:8080,
that's the ip the emulator sees as localhost, but i have no clue what
that will actually do on your setup...

yaw

On Wed, Jul 27, 2011 at 01:00, Alex Little a...@alexlittle.net wrote:

Hi all,

I installed the latest version of ODK Aggregate on a (Ubuntu)
VirtualBox machine and all appears to be running fine (in both the
host machine and the guest machine). However I´m having issues
downloading forms from this server when I run ODKCollect on the
Android emulator. Note that I´m running the emulator on the guest
machine - the same guest that ODK Aggregate server is running - not
on
the host machine (though I did try this first).

In ODKCollect I enter the server url (http://192.168.56.101:8080/
ODKAggregate/) and username/password, then go to the manage form
page.
ODKCollect connects to the Aggregate server fine and shows me a
list
of the forms I have created - so far so good!

However, when I select the forms for download, I get the message
that
the downloading of forms was successful (message: "Downloading
Forms
Result, Alex test: SUCCESS"), but when I view the list of
downloaded
forms nothing is displayed. I checked the Android log and it shows
an
error:

"java.net.UnknownHostException: odkaggregate"

odkaggregate is the host name of my guest machine - so I realise
that
I must have something wrong with my networking configuration in
VirtualBox, but I have a couple of questions:

  1. As I entered the server url as 192.168.56.101:8080... and this
    connected fine, shouldn't then form downloader use this url rather
    than 'odkaggregate'? I don´t quite understand where either
    ODKCollect
  • or Aggregate is getting the url odkaggregate from (just from the
    guest machine?)
  1. What url can I use in my guest machine browser to simulate
    downloading the form - something like:
    http://192.168.56.101:8080/ODKAggregate/formdownloader?id=123
  • I´d just like to know what the url is to download a form
  1. As the download was a failure, shouldn't the Downloading Forms
    Results show an error rather than a success message? Is there
    somewhere I should report this as a bug?

Sorry for the long message - any help much appreciated :slight_smile:

Cheers,
Alex

--
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
http://www.OpenDataKit.org
University of Washington
mitchellsundt@gmail.com

we've had a number of issues where people don't understand what the
hostname is used for. we will add some some text to the installer that
explains that the hostname is the ip that the phone and browser will
use to connect to aggregate. or something like that :slight_smile:

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

··· On Wed, Jul 27, 2011 at 09:46, Mitch Sundt wrote: > The installer takes your configuration information and builds: > WEB-INF/lib/ODKAggregate-settings.jar > > Within that jar, the configurable settings are in: > jdbc.properties (for the datastore configuration) > security.properties (for the server name, ports and security configuration) > > The xml files are selected based upon the deployment type (GAE, MySQL, > PostgreSQL). > > The server name is coded into the configuration so that you can configure > Aggregate to construct URLs correctly if you are running behind a proxy > server, a load balancer, or using a CNAME. > > Mitch > > On Wed, Jul 27, 2011 at 3:35 AM, Alex Little wrote: >> >> I rebuilt the ODKAggregator war from the installer program (this time >> using the IP instead of the machine name), now the forms are >> successfully downloaded and I can go through the surveys in ODKCollect >> in the emulator and view the data submitted in ODK Aggregate. Though >> still interested to know if there's better way to change the domain >> name/IP rather than rebuilding the whole war? >> cheers, >> A >> >> On Jul 27, 11:54 am, Alex Little wrote: >> > BTW... from the form list I can see it's giving the domain name I >> > entered at installation rather than the current address: >> > >> > E.g. callinghttp://192.168.56.101:8080/ODKAggregate/formListgives >> > me: >> > >> > >> > Alex test >> > Alex test >> > >> > >> > If this list returned >> > >> > >> > Alex test >> > Alex test >> > >> > >> > then I think it will work. >> > >> > Cheers, >> > Alex >> > >> > On Jul 27, 11:50 am, Alex Little wrote: >> > >> > > Thanks for the quick reply Yaw. I've just submitted the issue with the >> > > full stack trace (http://code.google.com/p/opendatakit/issues/detail? >> > > id=273) Just let me know if any further info is needed here to >> > > replicate (I realise it's possibly not a common configuration!- I >> > > just prefer to trying out software on a virtual machine). >> > >> > > Thanks for the info about the URLs. >> > >> > > Is it possible to change the fully qualified domain name in Aggregate >> > > now that it's already set up? I assume there's a setting for this >> > > somewhere? I had a look in the ODKAggregate war file that was >> > > produced, but I didn't see anything, I thought perhaps if I changed >> > > this to the IP address I'd like to use then it may work? >> > >> > > Cheers, >> > > Alex >> > >> > > On Jul 27, 11:10 am, Yaw Anokwa wrote: >> > >> > > > hi alex, >> > >> > > > can you file the download issue >> > > > athttp://code.google.com/p/opendatakit/issues/listwiththestack trace >> > > > attached? and if the information below helps, add it to the bug as >> > > > well.. >> > >> > > > i believe aggregate uses whatever fully qualified name you give it >> > > > in >> > > > the installer as the root of whatever url. so try enabling the >> > > > anonymous user in aggregate. then if you connect >> > > > tohttp://192.168.56.101:8080/formList, it should give you the manifest >> > > > of files it would download. in that manifest, it should be something >> > > > likehttp://192.168.56.101:8080/formXML?formId=My_Form. >> > >> > > > it may also be helpful connecting the emulator to 10.0.2.2:8080, >> > > > that's the ip the emulator sees as localhost, but i have no clue >> > > > what >> > > > that will actually do on your setup... >> > >> > > > yaw >> > >> > > > On Wed, Jul 27, 2011 at 01:00, Alex Little wrote: >> > > > > Hi all, >> > >> > > > > I installed the latest version of ODK Aggregate on a (Ubuntu) >> > > > > VirtualBox machine and all appears to be running fine (in both the >> > > > > host machine and the guest machine). However I´m having issues >> > > > > downloading forms from this server when I run ODKCollect on the >> > > > > Android emulator. Note that I´m running the emulator on the guest >> > > > > machine - the same guest that ODK Aggregate server is running - >> > > > > not on >> > > > > the host machine (though I did try this first). >> > >> > > > > In ODKCollect I enter the server url (http://192.168.56.101:8080/ >> > > > > ODKAggregate/) and username/password, then go to the manage form >> > > > > page. >> > > > > ODKCollect connects to the Aggregate server fine and shows me a >> > > > > list >> > > > > of the forms I have created - so far so good! >> > >> > > > > However, when I select the forms for download, I get the message >> > > > > that >> > > > > the downloading of forms was successful (message: "Downloading >> > > > > Forms >> > > > > Result, Alex test: SUCCESS"), but when I view the list of >> > > > > downloaded >> > > > > forms nothing is displayed. I checked the Android log and it shows >> > > > > an >> > > > > error: >> > >> > > > > "java.net.UnknownHostException: odkaggregate" >> > >> > > > > odkaggregate is the host name of my guest machine - so I realise >> > > > > that >> > > > > I must have something wrong with my networking configuration in >> > > > > VirtualBox, but I have a couple of questions: >> > >> > > > > 1) As I entered the server url as 192.168.56.101:8080... and this >> > > > > connected fine, shouldn't then form downloader use this url rather >> > > > > than 'odkaggregate'? I don´t quite understand where either >> > > > > ODKCollect >> > > > > - or Aggregate is getting the url odkaggregate from (just from the >> > > > > guest machine?) >> > > > > 2) What url can I use in my guest machine browser to simulate >> > > > > downloading the form - something >> > > > > like:http://192.168.56.101:8080/ODKAggregate/formdownloader?id=123 >> > > > > - I´d just like to know what the url is to download a form >> > > > > 3) As the download was a failure, shouldn't the Downloading Forms >> > > > > Results show an error rather than a success message? Is there >> > > > > somewhere I should report this as a bug? >> > >> > > > > Sorry for the long message - any help much appreciated :-) >> > >> > > > > Cheers, >> > > > > Alex >> > >> > > > > -- >> > > > > 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 > http://www.OpenDataKit.org > University of Washington > mitchellsundt@gmail.com > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Thanks for the info Mitch,
Editing the properties file will be easier than rebuilding the whole
war - though I guess I shouldn't need to be doing it too often (it's
just while I'm playing around!)

Cheers,
Alex

··· On Jul 27, 6:46 pm, Mitch Sundt wrote: > The installer takes your configuration information and builds: > WEB-INF/lib/ODKAggregate-settings.jar > > Within that jar, the configurable settings are in: > jdbc.properties (for the datastore configuration) > security.properties (for the server name, ports and security configuration) > > The xml files are selected based upon the deployment type (GAE, MySQL, > PostgreSQL). > > The server name is coded into the configuration so that you can configure > Aggregate to construct URLs correctly if you are running behind a proxy > server, a load balancer, or using a CNAME. > > Mitch > > > > > > > > > > On Wed, Jul 27, 2011 at 3:35 AM, Alex Little wrote: > > I rebuilt the ODKAggregator war from the installer program (this time > > using the IP instead of the machine name), now the forms are > > successfully downloaded and I can go through the surveys in ODKCollect > > in the emulator and view the data submitted in ODK Aggregate. Though > > still interested to know if there's better way to change the domain > > name/IP rather than rebuilding the whole war? > > cheers, > > A > > > On Jul 27, 11:54 am, Alex Little wrote: > > > BTW... from the form list I can see it's giving the domain name I > > > entered at installation rather than the current address: > > > > E.g. callinghttp://192.168.56.101:8080/ODKAggregate/formListgives > > > me: > > > > > > > Alex test > > > Alex test > > > > > > > If this list returned > > > > > > > Alex test > > > Alex test > > > > > > > then I think it will work. > > > > Cheers, > > > Alex > > > > On Jul 27, 11:50 am, Alex Little wrote: > > > > > Thanks for the quick reply Yaw. I've just submitted the issue with the > > > > full stack trace (http://code.google.com/p/opendatakit/issues/detail? > > > > id=273) Just let me know if any further info is needed here to > > > > replicate (I realise it's possibly not a common configuration!- I > > > > just prefer to trying out software on a virtual machine). > > > > > Thanks for the info about the URLs. > > > > > Is it possible to change the fully qualified domain name in Aggregate > > > > now that it's already set up? I assume there's a setting for this > > > > somewhere? I had a look in the ODKAggregate war file that was > > > > produced, but I didn't see anything, I thought perhaps if I changed > > > > this to the IP address I'd like to use then it may work? > > > > > Cheers, > > > > Alex > > > > > On Jul 27, 11:10 am, Yaw Anokwa wrote: > > > > > > hi alex, > > > > > > can you file the download issue athttp:// > > code.google.com/p/opendatakit/issues/listwiththestack trace > > > > > attached? and if the information below helps, add it to the bug as > > > > > well.. > > > > > > i believe aggregate uses whatever fully qualified name you give it in > > > > > the installer as the root of whatever url. so try enabling the > > > > > anonymous user in aggregate. then if you connect tohttp:// > > 192.168.56.101:8080/formList, it should give you the manifest > > > > > of files it would download. in that manifest, it should be something > > > > > likehttp://192.168.56.101:8080/formXML?formId=My_Form. > > > > > > it may also be helpful connecting the emulator to 10.0.2.2:8080, > > > > > that's the ip the emulator sees as localhost, but i have no clue what > > > > > that will actually do on your setup... > > > > > > yaw > > > > > > On Wed, Jul 27, 2011 at 01:00, Alex Little wrote: > > > > > > Hi all, > > > > > > > I installed the latest version of ODK Aggregate on a (Ubuntu) > > > > > > VirtualBox machine and all appears to be running fine (in both the > > > > > > host machine and the guest machine). However I´m having issues > > > > > > downloading forms from this server when I run ODKCollect on the > > > > > > Android emulator. Note that I´m running the emulator on the guest > > > > > > machine - the same guest that ODK Aggregate server is running - not > > on > > > > > > the host machine (though I did try this first). > > > > > > > In ODKCollect I enter the server url (http://192.168.56.101:8080/ > > > > > > ODKAggregate/) and username/password, then go to the manage form > > page. > > > > > > ODKCollect connects to the Aggregate server fine and shows me a > > list > > > > > > of the forms I have created - so far so good! > > > > > > > However, when I select the forms for download, I get the message > > that > > > > > > the downloading of forms was successful (message: "Downloading > > Forms > > > > > > Result, Alex test: SUCCESS"), but when I view the list of > > downloaded > > > > > > forms nothing is displayed. I checked the Android log and it shows > > an > > > > > > error: > > > > > > > "java.net.UnknownHostException: odkaggregate" > > > > > > > odkaggregate is the host name of my guest machine - so I realise > > that > > > > > > I must have something wrong with my networking configuration in > > > > > > VirtualBox, but I have a couple of questions: > > > > > > > 1) As I entered the server url as 192.168.56.101:8080... and this > > > > > > connected fine, shouldn't then form downloader use this url rather > > > > > > than 'odkaggregate'? I don´t quite understand where either > > ODKCollect > > > > > > - or Aggregate is getting the url odkaggregate from (just from the > > > > > > guest machine?) > > > > > > 2) What url can I use in my guest machine browser to simulate > > > > > > downloading the form - something like: > >http://192.168.56.101:8080/ODKAggregate/formdownloader?id=123 > > > > > > - I´d just like to know what the url is to download a form > > > > > > 3) As the download was a failure, shouldn't the Downloading Forms > > > > > > Results show an error rather than a success message? Is there > > > > > > somewhere I should report this as a bug? > > > > > > > Sorry for the long message - any help much appreciated :-) > > > > > > > Cheers, > > > > > > Alex > > > > > > > -- > > > > > > 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 Engineerhttp://www.OpenDataKit.org > University of Washington > mitchellsu...@gmail.com