Hi William,
You're using ODK Aggregate 1.0. Since this now requires authentication by
default, you need to go to the Management / Permissions tab and check the
"Data Collector" permissions for the "anonymousUser" to allow anonymous data
submissions from ODK Voice into your Aggregate server.
Note that Beta 4 will be coming out shortly and it has fixed a number of
significant bugs. Also, migrating across betas requires a complete wipe of
the database. Betas are not recommended for production use.
Mitch
···
On Tue, Aug 23, 2011 at 12:39 PM, wmonterrey wrote:Hello everyone,
Does someone know where to find instructions to connect ODK voice to
ODK aggregate?I have installed Voice and Aggregate in the same server, changed the
URL in the Global constants in voice but i keep getting an error. See
belowI couldn't find the steps to do this, will someone show me the way to
do it?Thanks in advance
William Aviles
2011-08-23 10:16:16,312 DEBUG SingleClientConnManager:195 - Get
connection for route HttpRoute[{}->http://localhost:8080]
2011-08-23 10:16:16,313 DEBUG ClientParamsStack:215 -
'http.connection.timeout': 50000
2011-08-23 10:16:16,314 DEBUG ClientParamsStack:215 -
'http.socket.timeout': 50000
2011-08-23 10:16:16,314 DEBUG RequestAddCookies:131 - CookieSpec
selected: best-match
2011-08-23 10:16:16,315 DEBUG DefaultRequestDirector:445 - Attempt 1
to execute request
2011-08-23 10:16:16,315 DEBUG DefaultClientConnection:244 - Sending
request: POST /ODKAggregate/submission HTTP/1.1
2011-08-23 10:16:16,316 DEBUG wire:78 - >> "POST /ODKAggregate/
submission HTTP/1.1[EOL]"
2011-08-23 10:16:16,316 DEBUG wire:78 - >> "Transfer-Encoding:
chunked[EOL]"
2011-08-23 10:16:16,316 DEBUG wire:78 - >> "Content-Type: multipart/
form-data; boundary=oCZ_jU4SCZ94BM2bbqpIzUSr-FI-jrZ[EOL]"
2011-08-23 10:16:16,317 DEBUG wire:78 - >> "Host: localhost:8080[EOL]"
2011-08-23 10:16:16,317 DEBUG wire:78 - >> "Connection: Keep-
Alive[EOL]"
2011-08-23 10:16:16,317 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:16:16,317 DEBUG headers:248 - >> POST /ODKAggregate/
submission HTTP/1.1
2011-08-23 10:16:16,318 DEBUG headers:251 - >> Transfer-Encoding:
chunked
2011-08-23 10:16:16,318 DEBUG headers:251 - >> Content-Type: multipart/
form-data; boundary=oCZ_jU4SCZ94BM2bbqpIzUSr-FI-jrZ
2011-08-23 10:16:16,318 DEBUG headers:251 - >> Host: localhost:8080
2011-08-23 10:16:16,318 DEBUG headers:251 - >> Connection: Keep-Alive
2011-08-23 10:16:16,332 DEBUG wire:78 - >> "113[EOL]"
2011-08-23 10:16:16,333 DEBUG wire:64 - >> "--oCZ_jU4SCZ94BM2bbqpIzUSr-
FI-jrZ[\r][\n]"
2011-08-23 10:16:16,333 DEBUG wire:64 - >> "Content-Disposition: form-
data; name="xml_submission_file"; filename="text/xml"[\r][\n]"
2011-08-23 10:16:16,334 DEBUG wire:64 - >> "Content-Type: application/
octet-stream[\r][\n]"
2011-08-23 10:16:16,334 DEBUG wire:64 - >> "Content-Transfer-Encoding:
binary[\r][\n]"
2011-08-23 10:16:16,334 DEBUG wire:64 - >> "[\r][\n]"
2011-08-23 10:16:16,361 DEBUG wire:78 - >> "<?xml version='1.0' ?134"
2011-08-23 10:16:16,361 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:16:16,362 DEBUG wire:78 - >> "27[EOL]"
2011-08-23 10:16:16,362 DEBUG wire:64 - >> "[\r][\n]"
2011-08-23 10:16:16,362 DEBUG wire:64 - >> "--oCZ_jU4SCZ94BM2bbqpIzUSr-
FI-jrZ--[\r][\n]"
2011-08-23 10:16:16,363 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:16:16,363 DEBUG wire:78 - >> "0[EOL]"
2011-08-23 10:16:16,363 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:16:16,419 DEBUG wire:78 - << "HTTP/1.1 302 Moved
Temporarily[EOL]"
2011-08-23 10:16:16,419 DEBUG wire:78 - << "Server: Apache-Coyote/
1.1[EOL]"
2011-08-23 10:16:16,420 DEBUG wire:78 - << "Set-Cookie:
JSESSIONID=D29C998F9A9CCF5497F49017D2D7C26C; Path=/ODKAggregate[EOL]"
2011-08-23 10:16:16,420 DEBUG wire:78 - << "Location:http://localhost:8080/ODKAggregate/openid_login.html;jsessionid=D29C998F9A9CCF5497F49017D2D7C26C[EOL]
"
2011-08-23 10:16:16,420 DEBUG wire:78 - << "Content-Length: 0[EOL]"
2011-08-23 10:16:16,421 DEBUG wire:78 - << "Date: Tue, 23 Aug 2011
16:16:16 GMT[EOL]"
2011-08-23 10:16:16,421 DEBUG wire:78 - << "[EOL]"
2011-08-23 10:16:16,421 DEBUG DefaultClientConnection:229 - Receiving
response: HTTP/1.1 302 Moved Temporarily
2011-08-23 10:16:16,421 DEBUG headers:232 - << HTTP/1.1 302 Moved
Temporarily
2011-08-23 10:16:16,422 DEBUG headers:235 - << Server: Apache-Coyote/
1.1
2011-08-23 10:16:16,422 DEBUG headers:235 - << Set-Cookie:
JSESSIONID=D29C998F9A9CCF5497F49017D2D7C26C; Path=/ODKAggregate
2011-08-23 10:16:16,422 DEBUG headers:235 - << Location:http://localhost:8080/ODKAggregate/openid_login.html;jsessionid=D29C998F9A9CCF5497F49017D2D7C26C
2011-08-23 10:16:16,422 DEBUG headers:235 - << Content-Length: 0
2011-08-23 10:16:16,423 DEBUG headers:235 - << Date: Tue, 23 Aug 2011
16:16:16 GMT
2011-08-23 10:16:16,444 DEBUG ResponseProcessCookies:121 - Cookie
accepted: "[version: 0][name: JSESSIONID][value:
D29C998F9A9CCF5497F49017D2D7C26C][domain: localhost][path: /
ODKAggregate][expiry: null]".
2011-08-23 10:16:16,444 DEBUG DefaultRequestDirector:504 - Connection
can be kept alive indefinitely
2011-08-23 10:16:16,444 DEBUG ClientParamsStack:215 -
'http.protocol.handle-redirects': false
2011-08-23 10:16:16,445 INFO InstanceUploader:152 - Response code:302
2011-08-23 10:16:16,445 WARN FormVxmlRenderer:806 - Instance upload
to server at http://localhost:8080/ODKAggregate/submission failed.
Will try again in 60000 ms.
2011-08-23 10:16:16,445 INFO FormVxmlRenderer:808 - Queued backup
InstanceUploaderThread
2011-08-23 10:17:16,445 INFO FormVxmlRenderer:802 - About to upload
instance to http://localhost:8080/ODKAggregate/submission
2011-08-23 10:17:16,459 DEBUG SingleClientConnManager:195 - Get
connection for route HttpRoute[{}->http://localhost:8080]
2011-08-23 10:17:16,460 DEBUG ClientParamsStack:215 -
'http.connection.timeout': 50000
2011-08-23 10:17:16,461 DEBUG ClientParamsStack:215 -
'http.socket.timeout': 50000
2011-08-23 10:17:16,462 DEBUG RequestAddCookies:131 - CookieSpec
selected: best-match
2011-08-23 10:17:16,462 DEBUG DefaultRequestDirector:445 - Attempt 1
to execute request
2011-08-23 10:17:16,463 DEBUG DefaultClientConnection:244 - Sending
request: POST /ODKAggregate/submission HTTP/1.1
2011-08-23 10:17:16,463 DEBUG wire:78 - >> "POST /ODKAggregate/
submission HTTP/1.1[EOL]"
2011-08-23 10:17:16,464 DEBUG wire:78 - >> "Transfer-Encoding:
chunked[EOL]"
2011-08-23 10:17:16,464 DEBUG wire:78 - >> "Content-Type: multipart/
form-data; boundary=lGesT4ekTv6b1RRpLOVhBquPN92kid2bUC[EOL]"
2011-08-23 10:17:16,464 DEBUG wire:78 - >> "Host: localhost:8080[EOL]"
2011-08-23 10:17:16,465 DEBUG wire:78 - >> "Connection: Keep-
Alive[EOL]"
2011-08-23 10:17:16,465 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:17:16,466 DEBUG headers:248 - >> POST /ODKAggregate/
submission HTTP/1.1
2011-08-23 10:17:16,466 DEBUG headers:251 - >> Transfer-Encoding:
chunked
2011-08-23 10:17:16,466 DEBUG headers:251 - >> Content-Type: multipart/
form-data; boundary=lGesT4ekTv6b1RRpLOVhBquPN92kid2bUC
2011-08-23 10:17:16,467 DEBUG headers:251 - >> Host: localhost:8080
2011-08-23 10:17:16,467 DEBUG headers:251 - >> Connection: Keep-Alive
2011-08-23 10:17:16,468 DEBUG wire:78 - >> "116[EOL]"
2011-08-23 10:17:16,469 DEBUG wire:64 - >> "--
lGesT4ekTv6b1RRpLOVhBquPN92kid2bUC[\r][\n]"
2011-08-23 10:17:16,469 DEBUG wire:64 - >> "Content-Disposition: form-
data; name="xml_submission_file"; filename="text/xml"[\r][\n]"
2011-08-23 10:17:16,469 DEBUG wire:64 - >> "Content-Type: application/
octet-stream[\r][\n]"
2011-08-23 10:17:16,470 DEBUG wire:64 - >> "Content-Transfer-Encoding:
binary[\r][\n]"
2011-08-23 10:17:16,470 DEBUG wire:64 - >> "[\r][\n]"
2011-08-23 10:17:16,471 DEBUG wire:78 - >> "<?xml version='1.0' ?134"
2011-08-23 10:17:16,473 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:17:16,474 DEBUG wire:78 - >> "2a[EOL]"
2011-08-23 10:17:16,475 DEBUG wire:64 - >> "[\r][\n]"
2011-08-23 10:17:16,475 DEBUG wire:64 - >> "--
lGesT4ekTv6b1RRpLOVhBquPN92kid2bUC--[\r][\n]"
2011-08-23 10:17:16,476 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:17:16,476 DEBUG wire:78 - >> "0[EOL]"
2011-08-23 10:17:16,477 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:17:16,478 DEBUG wire:78 - << "HTTP/1.1 302 Moved
Temporarily[EOL]"
2011-08-23 10:17:16,478 DEBUG wire:78 - << "Server: Apache-Coyote/
1.1[EOL]"
2011-08-23 10:17:16,479 DEBUG wire:78 - << "Set-Cookie:
JSESSIONID=ADDFB2050EB6105669C336AA0A3C09F5; Path=/ODKAggregate[EOL]"
2011-08-23 10:17:16,479 DEBUG wire:78 - << "Location:http://localhost:8080/ODKAggregate/openid_login.html;jsessionid=ADDFB2050EB6105669C336AA0A3C09F5[EOL]
"
2011-08-23 10:17:16,479 DEBUG wire:78 - << "Content-Length: 0[EOL]"
2011-08-23 10:17:16,480 DEBUG wire:78 - << "Date: Tue, 23 Aug 2011
16:17:16 GMT[EOL]"
2011-08-23 10:17:16,480 DEBUG wire:78 - << "[EOL]"
2011-08-23 10:17:16,481 DEBUG DefaultClientConnection:229 - Receiving
response: HTTP/1.1 302 Moved Temporarily
2011-08-23 10:17:16,481 DEBUG headers:232 - << HTTP/1.1 302 Moved
Temporarily
2011-08-23 10:17:16,481 DEBUG headers:235 - << Server: Apache-Coyote/
1.1
2011-08-23 10:17:16,482 DEBUG headers:235 - << Set-Cookie:
JSESSIONID=ADDFB2050EB6105669C336AA0A3C09F5; Path=/ODKAggregate
2011-08-23 10:17:16,482 DEBUG headers:235 - << Location:http://localhost:8080/ODKAggregate/openid_login.html;jsessionid=ADDFB2050EB6105669C336AA0A3C09F5
2011-08-23 10:17:16,482 DEBUG headers:235 - << Content-Length: 0
2011-08-23 10:17:16,483 DEBUG headers:235 - << Date: Tue, 23 Aug 2011
16:17:16 GMT
2011-08-23 10:17:16,483 DEBUG ResponseProcessCookies:121 - Cookie
accepted: "[version: 0][name: JSESSIONID][value:
ADDFB2050EB6105669C336AA0A3C09F5][domain: localhost][path: /
ODKAggregate][expiry: null]".
2011-08-23 10:17:16,484 DEBUG DefaultRequestDirector:504 - Connection
can be kept alive indefinitely
2011-08-23 10:17:16,484 DEBUG ClientParamsStack:215 -
'http.protocol.handle-redirects': false
2011-08-23 10:17:16,484 INFO InstanceUploader:152 - Response code:302
2011-08-23 10:17:16,485 WARN FormVxmlRenderer:806 - Instance upload
to server at http://localhost:8080/ODKAggregate/submission failed.
Will try again in 120000 ms.
2011-08-23 10:17:16,485 INFO FormVxmlRenderer:808 - Queued backup
InstanceUploaderThread
RUNNING WATCHDOG TASK IN TOMCAT
Checking persistent results
Done checking persistent results
Checking miscellaneous tasks
Done checking miscellaneous tasks
2011-08-23 10:19:16,485 INFO FormVxmlRenderer:802 - About to upload
instance to http://localhost:8080/ODKAggregate/submission
2011-08-23 10:19:16,497 DEBUG SingleClientConnManager:195 - Get
connection for route HttpRoute[{}->http://localhost:8080]
2011-08-23 10:19:16,498 DEBUG ClientParamsStack:215 -
'http.connection.timeout': 50000
2011-08-23 10:19:16,499 DEBUG ClientParamsStack:215 -
'http.socket.timeout': 50000
2011-08-23 10:19:16,499 DEBUG RequestAddCookies:131 - CookieSpec
selected: best-match
2011-08-23 10:19:16,500 DEBUG DefaultRequestDirector:445 - Attempt 1
to execute request
2011-08-23 10:19:16,500 DEBUG DefaultClientConnection:244 - Sending
request: POST /ODKAggregate/submission HTTP/1.1
2011-08-23 10:19:16,500 DEBUG wire:78 - >> "POST /ODKAggregate/
submission HTTP/1.1[EOL]"
2011-08-23 10:19:16,500 DEBUG wire:78 - >> "Transfer-Encoding:
chunked[EOL]"
2011-08-23 10:19:16,501 DEBUG wire:78 - >> "Content-Type: multipart/
form-data; boundary=QiL1C9rOoBNtQFMZ3DmxwGhVEu1YG6UCSM[EOL]"
2011-08-23 10:19:16,501 DEBUG wire:78 - >> "Host: localhost:8080[EOL]"
2011-08-23 10:19:16,501 DEBUG wire:78 - >> "Connection: Keep-
Alive[EOL]"
2011-08-23 10:19:16,502 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:19:16,502 DEBUG headers:248 - >> POST /ODKAggregate/
submission HTTP/1.1
2011-08-23 10:19:16,502 DEBUG headers:251 - >> Transfer-Encoding:
chunked
2011-08-23 10:19:16,502 DEBUG headers:251 - >> Content-Type: multipart/
form-data; boundary=QiL1C9rOoBNtQFMZ3DmxwGhVEu1YG6UCSM
2011-08-23 10:19:16,503 DEBUG headers:251 - >> Host: localhost:8080
2011-08-23 10:19:16,503 DEBUG headers:251 - >> Connection: Keep-Alive
2011-08-23 10:19:16,504 DEBUG wire:78 - >> "116[EOL]"
2011-08-23 10:19:16,504 DEBUG wire:64 - >> "--
QiL1C9rOoBNtQFMZ3DmxwGhVEu1YG6UCSM[\r][\n]"
2011-08-23 10:19:16,505 DEBUG wire:64 - >> "Content-Disposition: form-
data; name="xml_submission_file"; filename="text/xml"[\r][\n]"
2011-08-23 10:19:16,505 DEBUG wire:64 - >> "Content-Type: application/
octet-stream[\r][\n]"
2011-08-23 10:19:16,505 DEBUG wire:64 - >> "Content-Transfer-Encoding:
binary[\r][\n]"
2011-08-23 10:19:16,506 DEBUG wire:64 - >> "[\r][\n]"
2011-08-23 10:19:16,506 DEBUG wire:78 - >> "<?xml version='1.0' ?134"
2011-08-23 10:19:16,506 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:19:16,507 DEBUG wire:78 - >> "2a[EOL]"
2011-08-23 10:19:16,507 DEBUG wire:64 - >> "[\r][\n]"
2011-08-23 10:19:16,508 DEBUG wire:64 - >> "--
QiL1C9rOoBNtQFMZ3DmxwGhVEu1YG6UCSM--[\r][\n]"
2011-08-23 10:19:16,508 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:19:16,508 DEBUG wire:78 - >> "0[EOL]"
2011-08-23 10:19:16,508 DEBUG wire:78 - >> "[EOL]"
2011-08-23 10:19:16,509 DEBUG wire:78 - << "HTTP/1.1 302 Moved
Temporarily[EOL]"
2011-08-23 10:19:16,509 DEBUG wire:78 - << "Server: Apache-Coyote/
1.1[EOL]"
2011-08-23 10:19:16,510 DEBUG wire:78 - << "Set-Cookie:
JSESSIONID=F2CF1D83FA7368D4A2C0821BFDD87CC7; Path=/ODKAggregate[EOL]"
2011-08-23 10:19:16,510 DEBUG wire:78 - << "Location:http://localhost:8080/ODKAggregate/openid_login.html;jsessionid=F2CF1D83FA7368D4A2C0821BFDD87CC7[EOL]
"
2011-08-23 10:19:16,510 DEBUG wire:78 - << "Content-Length: 0[EOL]"
2011-08-23 10:19:16,510 DEBUG wire:78 - << "Date: Tue, 23 Aug 2011
16:19:16 GMT[EOL]"
2011-08-23 10:19:16,511 DEBUG wire:78 - << "[EOL]"
2011-08-23 10:19:16,511 DEBUG DefaultClientConnection:229 - Receiving
response: HTTP/1.1 302 Moved Temporarily
2011-08-23 10:19:16,511 DEBUG headers:232 - << HTTP/1.1 302 Moved
Temporarily
2011-08-23 10:19:16,512 DEBUG headers:235 - << Server: Apache-Coyote/
1.1
2011-08-23 10:19:16,512 DEBUG headers:235 - << Set-Cookie:
JSESSIONID=F2CF1D83FA7368D4A2C0821BFDD87CC7; Path=/ODKAggregate
2011-08-23 10:19:16,512 DEBUG headers:235 - << Location:http://localhost:8080/ODKAggregate/openid_login.html;jsessionid=F2CF1D83FA7368D4A2C0821BFDD87CC7
2011-08-23 10:19:16,512 DEBUG headers:235 - << Content-Length: 0
2011-08-23 10:19:16,512 DEBUG headers:235 - << Date: Tue, 23 Aug 2011
16:19:16 GMT
2011-08-23 10:19:16,513 DEBUG ResponseProcessCookies:121 - Cookie
accepted: "[version: 0][name: JSESSIONID][value:
F2CF1D83FA7368D4A2C0821BFDD87CC7][domain: localhost][path: /
ODKAggregate][expiry: null]".
2011-08-23 10:19:16,513 DEBUG DefaultRequestDirector:504 - Connection
can be kept alive indefinitely
2011-08-23 10:19:16,514 DEBUG ClientParamsStack:215 -
'http.protocol.handle-redirects': false
2011-08-23 10:19:16,514 INFO InstanceUploader:152 - Response code:302
2011-08-23 10:19:16,514 WARN FormVxmlRenderer:806 - Instance upload
to server at http://localhost:8080/ODKAggregate/submission failed.
Will try again in 240000 ms.
2011-08-23 10:19:16,514 INFO FormVxmlRenderer:808 - Queued backup
InstanceUploaderThread--
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