ODK 2.0 upload form to Aggregate

I've got my Aggregate up and have the ODK Application Designer running. In Designer the form I created is working well. I cannot get a form to upload properly via the Form Management tab or by sending the forms to the Android device and the selecting Reset App Server.

Every time I use ODK Sync and select Sync Now I get this:
There were failures. Status: NETWORK_ERRO

Some things to verify:

Under Site Admin / Preferences:

  1. Have you enabled (checked) "ODK Tables Syncronization Functionality"

  2. The ODK 2.0 Application Name needs to be the subdirectory (under
    /sdcard/opendatakit) that you are using on the device. I.e., 'survey' if
    using survey by itself, or 'tables' if you are launching and using tables
    by itself, or a subdirectory of your own choosing if you are using a widget
    shortcut to launch into the tools and have placed your configuration and
    data into some other subdirectory.

Under Site Admin / Permissions

(after you have enabled ODK Tables Synchronization Functionality)

There will be 2 new permissions, "Synchronize Tables" and "Administer
Tables".

When you are trying to upload configuration onto the server (Reset App
Server), you need to grant whatever user you are using on the Android
device the "Administer Tables" permission. Without it, but with
"Synchronize Tables" permission, you will only be able to sync
configuration on the server down to your device (overwriting and deleting
any configuration you began with on the device).

Note that if you are not granting anonymous access to your server, the Sync
protocol currently relies on Google accounts. You need to add the google
(e.g., Gmail) account configured on your device to Aggregate and grant that
account the above permissions. Remember to Save Changes to get the changes
to take effect.

··· On Fri, Oct 30, 2015 at 4:27 PM, wrote:

I've got my Aggregate up and have the ODK Application Designer running. In
Designer the form I created is working well. I cannot get a form to upload
properly via the Form Management tab or by sending the forms to the Android
device and the selecting Reset App Server.

Every time I use ODK Sync and select Sync Now I get this:
There were failures. Status: NETWORK_ERRO

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

Mitch,

I have followed your advise above and still can't upload a fourth using the inbuilt aggregate form loader note push the form from the device (using a Google account, that is listed on the aggregate).

I am using v1.4.7 of the aggregate and noticed a note on one of the ODK Surgery pages saying it only worked with v1.4.5. Could this be my problem? I just assumed that since v1.4.7 had the check box for ODK Tables Synchronization Functionality that it would work as well as v1.4.5.

Thank you

The protocol has not changed between 1.4.5 and 1.4.7, so 1.4.7 should work.

First, grant the anonymous user "Administer Tables" permissions.

And try "Reset App Server".

What happens?

This should push the configuration on the device up to ODK Aggregate.

If it does not work, verify that the URL on the device is precisely the URL
of the server. I.e., that https:// is used, and that there are no leading
or trailing spaces.

Verify that if you enter this URL in the device's browser that you get to
the ODK Aggregate server web page.

··· ------------- Once you have this working with the anonymous user, you should be able to secure your server and use Gmail (Google) accounts for authentication and access.

On Sun, Nov 1, 2015 at 9:02 AM, Che Geiser chegeiser@gmail.com wrote:

Mitch,

I have followed your advise above and still can't upload a fourth using
the inbuilt aggregate form loader note push the form from the device
(using a Google account, that is listed on the aggregate).

I am using v1.4.7 of the aggregate and noticed a note on one of the ODK
Surgery pages saying it only worked with v1.4.5. Could this be my problem?
I just assumed that since v1.4.7 had the check box for ODK Tables
Synchronization Functionality that it would work as well as v1.4.5.

Thank you

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

And note that, just like with the ODK 1.0 submissions tab, you should
navigate off of the ODK 2.0 web pages and back onto them to see changes /
updates to those pages. The web pages will eventually refresh and display
new information, but they do so infrequently.

··· On Mon, Nov 2, 2015 at 10:48 AM, Mitch Sundt wrote:

The protocol has not changed between 1.4.5 and 1.4.7, so 1.4.7 should work.

First, grant the anonymous user "Administer Tables" permissions.

And try "Reset App Server".

What happens?

This should push the configuration on the device up to ODK Aggregate.

If it does not work, verify that the URL on the device is precisely the
URL of the server. I.e., that https:// is used, and that there are no
leading or trailing spaces.

Verify that if you enter this URL in the device's browser that you get to
the ODK Aggregate server web page.


Once you have this working with the anonymous user, you should be able to
secure your server and use Gmail (Google) accounts for authentication and
access.

On Sun, Nov 1, 2015 at 9:02 AM, Che Geiser chegeiser@gmail.com wrote:

Mitch,

I have followed your advise above and still can't upload a fourth using
the inbuilt aggregate form loader note push the form from the device
(using a Google account, that is listed on the aggregate).

I am using v1.4.7 of the aggregate and noticed a note on one of the ODK
Surgery pages saying it only worked with v1.4.5. Could this be my problem?
I just assumed that since v1.4.7 had the check box for ODK Tables
Synchronization Functionality that it would work as well as v1.4.5.

Thank you

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

Mitch,

I've granted Administer Tables permissions to anonymous users. I've also
followed the directions here
https://opendatakit.org/use/2_0_tools/odk-aggregate-extensions-2-0-rev126/#Server_Setup
to set up a user (gmail account type) with permissions for Synchronize
Tables, Administer Tables, and Site Administrator rights. When I use ODK
Tables to Reset the App Server I get the error:
Sync Progress State
ERROR
Sync Progress Message
There were failures. Status: NETWORK_ERROR
Reason: overall results
This phone has both cellular data active and has a solid wifi connection.

I have verified that the URL on the device is precisely the URL on the
server - I've copied and pasted from ODK Tables setup to a browser on the
device and it does take me to my aggregate. I can't see how to set up ODK
Tables as an anonymous user - when I select the cloud the account defaults
to the Gmail account I have set on the phone and I can't change that to an
anonymous user. That Gmail account however is configured in ODK Aggregate
and has permissions for Synchronize Tables, Administer Tables, and Site
Administrator.

I also tried setting up the Google API Credentials to see if that would get
this working - no luck.

Any further suggestions?

Thank you,
Che

I got it figured out! on the Aggregate preferences page the default falue
for the ODK 2.0 App Name was survey. It needed to be changed to tables.

Glad you got it figured out. Here are other things for other people to
check...

··· ----------------------

If the server is configured to grant the anonymous user "Administer Tables"
permissions, then the sync interactions will proceed without an
authentication (login) challenge -- therefore, the gmail account you have
configured on the device will never be verified because the server will
never ask for verification.

To confirm:

  • You are launching ODK Sync directly from the Applications list or via
    the ODK Tables application.
  • on your server, on Site Admin / Preferences, the ODK 2.0 Application
    Name is tables
  • if your server is not using a public DNS name, verify that you have
    disabled Cellular Data connections on your device (that the device will
    only use WiFi for data). The device's browser may have a preference or
    restriction to use WiFi for its interactions, whereas ODK Sync does not do
    anything internally to impose a bias or preference for WiFi.

The appName is the name of the directory under /sdcard/opendatakit that you
are syncing with the server. The server will only sync against that
directory. You can set up desktop shortcuts to have ODK Survey or ODK
Tables launch in alternative directories, and from there, launch ODK Sync
under those alternative directories. If you do that, you then need to
change the ODK 2.0 Application Name that ODK Aggregate is configured to
accept.

On Fri, Nov 6, 2015 at 9:59 AM, Che Geiser chegeiser@gmail.com wrote:

Mitch,

I've granted Administer Tables permissions to anonymous users. I've also
followed the directions here
https://opendatakit.org/use/2_0_tools/odk-aggregate-extensions-2-0-rev126/#Server_Setup
to set up a user (gmail account type) with permissions for Synchronize
Tables, Administer Tables, and Site Administrator rights. When I use ODK
Tables to Reset the App Server I get the error:
Sync Progress State
ERROR
Sync Progress Message
There were failures. Status: NETWORK_ERROR
Reason: overall results
This phone has both cellular data active and has a solid wifi connection.

I have verified that the URL on the device is precisely the URL on the
server - I've copied and pasted from ODK Tables setup to a browser on the
device and it does take me to my aggregate. I can't see how to set up ODK
Tables as an anonymous user - when I select the cloud the account defaults
to the Gmail account I have set on the phone and I can't change that to an
anonymous user. That Gmail account however is configured in ODK Aggregate
and has permissions for Synchronize Tables, Administer Tables, and Site
Administrator.

I also tried setting up the Google API Credentials to see if that would
get this working - no luck.

Any further suggestions?

Thank you,
Che

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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