mohan-nishit / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

ODKCollect reports forms downloaded successfully even when the aren't #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
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 (full stack trace below):

"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

What is the expected output? What do you see instead?
I would expect to see an error message rather than a success message as it 
don;t actually download the forms.

What version of the product are you using? On what operating system?
ODkCollect 1.1.7RC1 and ODKAggregate (latest version as at 2011-07-26) on 
Ubuntu 10.04 running on VirtualBox

Please provide any additional information below.

full stack trace from my android log:
 java.net.UnknownHostException: odkaggregate
     at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
     at java.net.InetAddress.getAllByName(InetAddress.java:256)
     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
     at org.odk.collect.android.tasks.DownloadFormsTask.downloadFile(DownloadFormsTask.java:262)
     at org.odk.collect.android.tasks.DownloadFormsTask.downloadXform(DownloadFormsTask.java:200)
     at org.odk.collect.android.tasks.DownloadFormsTask.doInBackground(DownloadFormsTask.java:96)
     at org.odk.collect.android.tasks.DownloadFormsTask.doInBackground(DownloadFormsTask.java:1)
     at android.os.AsyncTask$2.call(AsyncTask.java:185)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
     at java.lang.Thread.run(Thread.java:1019)
 java.net.UnknownHostException: odkaggregate
     at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
     at java.net.InetAddress.getAllByName(InetAddress.java:256)
     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
     at org.odk.collect.android.tasks.DownloadFormsTask.downloadFile(DownloadFormsTask.java:262)
     at org.odk.collect.android.tasks.DownloadFormsTask.downloadXform(DownloadFormsTask.java:200)
     at org.odk.collect.android.tasks.DownloadFormsTask.doInBackground(DownloadFormsTask.java:96)
     at org.odk.collect.android.tasks.DownloadFormsTask.doInBackground(DownloadFormsTask.java:1)
     at android.os.AsyncTask$2.call(AsyncTask.java:185)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
     at java.lang.Thread.run(Thread.java:1019)
 java.net.UnknownHostException: odkaggregate
     at java.net.InetAddress.lookupHostByName(InetAddress.java:497)
     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
     at java.net.InetAddress.getAllByName(InetAddress.java:256)
     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
     at org.odk.collect.android.tasks.DownloadFormsTask.downloadFile(DownloadFormsTask.java:262)
     at org.odk.collect.android.tasks.DownloadFormsTask.downloadXform(DownloadFormsTask.java:200)
     at org.odk.collect.android.tasks.DownloadFormsTask.doInBackground(DownloadFormsTask.java:96)
     at org.odk.collect.android.tasks.DownloadFormsTask.doInBackground(DownloadFormsTask.java:1)
     at android.os.AsyncTask$2.call(AsyncTask.java:185)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
     at java.lang.Thread.run(Thread.java:1019)
 java.net.UnknownHostException: odkaggregate
     at java.net.InetAddress.lookupHostByName(InetAddress.java:497)
     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
     at java.net.InetAddress.getAllByName(InetAddress.java:256)
     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
     at org.odk.collect.android.tasks.DownloadFormsTask.downloadFile(DownloadFormsTask.java:262)
     at org.odk.collect.android.tasks.DownloadFormsTask.downloadXform(DownloadFormsTask.java:200)
     at org.odk.collect.android.tasks.DownloadFormsTask.doInBackground(DownloadFormsTask.java:96)
     at org.odk.collect.android.tasks.DownloadFormsTask.doInBackground(DownloadFormsTask.java:1)
     at android.os.AsyncTask$2.call(AsyncTask.java:185)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
     at java.lang.Thread.run(Thread.java:1019)

Original issue reported on code.google.com by AlextLit...@gmail.com on 27 Jul 2011 at 9:43

GoogleCodeExporter commented 9 years ago

Original comment by wbrune...@gmail.com on 27 Jul 2011 at 7:33

GoogleCodeExporter commented 9 years ago

Original comment by wbrune...@gmail.com on 27 Jul 2011 at 7:34

GoogleCodeExporter commented 9 years ago
There were several issues here on both sides that have been fixed.  On 
Aggregate's side, the hostname must be fully-qualified and you cannot get the 
list of available forms unless you have a valid fully-qualified hostname.  You 
also cannot login without a proper fully-qualitifed hostname being configured.

Original comment by mitchellsundt@gmail.com on 30 Jan 2012 at 11:24