# \[Aggregate\] Error: Problem persisting data or accessing data

**URL:** <https://forum.getodk.org/t/aggregate-error-problem-persisting-data-or-accessing-data/3472>\
**Category:** Support\
**Created:** [August 4, 2014, 2:57pm UTC](https://forum.getodk.org/t/aggregate-error-problem-persisting-data-or-accessing-data/3472 "2014-08-04T14:57:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@Michael](https://forum.getodk.org/u/Michael)\
**Post date:** [August 4, 2014, 2:57pm UTC](https://forum.getodk.org/t/aggregate-error-problem-persisting-data-or-accessing-data/3472/1 "2014-08-04T14:57:37Z")

</div>

Dear ODK community,

I am facing difficulties in exporting datasets from Aggregate. As I was looking for solutions for days and nobody could help me so far, I was wondering whether the ODK community might have some ideas. The situation is as follows:

First of all, when I start my virtual machine and launch and log in into Aggregate, I get the error message

"Error: Problem persisting data or accessing data (org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [SELECT "\_URI", "\_CREATOR\_URI\_USER", "\_CREATION\_DATE", "\_LAST\_UPDATE\_URI\_USER", "\_LAST\_UPDATE\_DATE", "URI\_MD5\_FORM\_ID", "AURI\_SERVICE", "EXT\_SERVICE\_TYPE", "EXTERNAL\_SERVICE\_OPTION", "IS\_EXTERNAL\_SERVICE\_PREPARED", "OPERATIONAL\_STATUS", "ESTABLISHMENT\_DATETIME", "UPLOAD\_COMPLETED", "LAST\_UPLOAD\_PERSISTENCE\_CURSOR", "LAST\_UPLOAD\_KEY", "LAST\_STREAMING\_PERSISTENCE\_CURSOR", "LAST\_STREAMING\_KEY", "FORM\_ID" FROM "aggregate"."\_form\_service\_cursor" WHERE "URI\_MD5\_FORM\_ID" = ? ORDER BY "URI\_MD5\_FORM\_ID" ASC ;]; SQL state [XX002]; error code [0]; ERROR: index "\_form\_service\_cursor\_umfi" contains unexpected zero page at block 0  
Hint: Please REINDEX it.; nested exception is org.postgresql.util.PSQLException: ERROR: index "\_form\_service\_cursor\_umfi" contains unexpected zero page at block 0  
Hint: Please REINDEX it.)"

followed by the pop up

"Unable to retrieve users from server: Unable to retrieve granted authorities of USER\_IS\_ANONYMOUS"

Now, I have various forms and datasets (both uploaded via WiFi as well via USB-cable), but every time I try to export them as a csv, I get the error message

"Error: Problem persisting data or accessing data"

It seems that there's no way to download the data from Aggregate. As I also got an error message from the VMware player ("Binary translation is incompatible with long mode on this platform"), I thought that might have been the problem. After having changed the VT-option (Virtualization Technology) in the BIOS, the VM runs smoothly, but I'm still not able to export data from Aggregate.  
I therefore don't have any ideas anymore where to look for the problem, particularly because apparently my setup is the same like other computers, where it works without any problem. Do you guys have an idea what this issue might be about?

Thanks in advance,

Michael

---

<div class="post-metadata">

**Author:** ![Mitch\_S](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@Mitch\_S](https://forum.getodk.org/u/Mitch_S)\
**Post date:** [August 4, 2014, 5:35pm UTC](https://forum.getodk.org/t/aggregate-error-problem-persisting-data-or-accessing-data/3472/2 "2014-08-04T17:35:12Z")

</div>

Hint: Please REINDEX it.; nested exception is org.postgresql.util.  
PSQLException: ERROR: index "\_form\_service\_cursor\_umfi" contains unexpected  
zero page at block 0  
Hint: Please REINDEX it.)"

Doesn't the error message spell out exactly what you need to do?

NOTE: This is not an ODK Aggregate error message -- this is simply what the  
database layer reported back to ODK Aggregate, and what it then reported on  
to you.

If you don't understand what you need to do to reindex the table, you will  
need to hire a PostgreSQL Database Administrator to assist you.

Mitch

> **···**
>
> On Mon, Aug 4, 2014 at 7:57 AM, Michael wrote:
> 
> > Dear ODK community,
> > 
> > I am facing difficulties in exporting datasets from Aggregate. As I was  
> > looking for solutions for days and nobody could help me so far, I was  
> > wondering whether the ODK community might have some ideas. The situation is  
> > as follows:
> > 
> > First of all, when I start my virtual machine and launch and log in into  
> > Aggregate, I get the error message
> > 
> > "Error: Problem persisting data or accessing data  
> > (org.springframework.jdbc.UncategorizedSQLException:  
> > PreparedStatementCallback; uncategorized SQLException for SQL [SELECT  
> > "\_URI", "\_CREATOR\_URI\_USER", "\_CREATION\_DATE", "\_LAST\_UPDATE\_URI\_USER",  
> > "\_LAST\_UPDATE\_DATE", "URI\_MD5\_FORM\_ID", "AURI\_SERVICE", "EXT\_SERVICE\_TYPE",  
> > "EXTERNAL\_SERVICE\_OPTION", "IS\_EXTERNAL\_SERVICE\_PREPARED",  
> > "OPERATIONAL\_STATUS", "ESTABLISHMENT\_DATETIME", "UPLOAD\_COMPLETED",  
> > "LAST\_UPLOAD\_PERSISTENCE\_CURSOR", "LAST\_UPLOAD\_KEY",  
> > "LAST\_STREAMING\_PERSISTENCE\_CURSOR", "LAST\_STREAMING\_KEY", "FORM\_ID" FROM  
> > "aggregate"."\_form\_service\_cursor" WHERE "URI\_MD5\_FORM\_ID" = ? ORDER BY  
> > "URI\_MD5\_FORM\_ID" ASC ;]; SQL state [XX002]; error code [0]; ERROR: index  
> > "\_form\_service\_cursor\_umfi" contains unexpected zero page at block 0  
> > Hint: Please REINDEX it.; nested exception is  
> > org.postgresql.util.PSQLException: ERROR: index "\_form\_service\_cursor\_umfi"  
> > contains unexpected zero page at block 0  
> > Hint: Please REINDEX it.)"
> > 
> > followed by the pop up
> > 
> > "Unable to retrieve users from server: Unable to retrieve granted  
> > authorities of USER\_IS\_ANONYMOUS"
> > 
> > Now, I have various forms and datasets (both uploaded via WiFi as well via  
> > USB-cable), but every time I try to export them as a csv, I get the error  
> > message
> > 
> > "Error: Problem persisting data or accessing data"
> > 
> > It seems that there's no way to download the data from Aggregate. As I  
> > also got an error message from the VMware player ("Binary translation is  
> > incompatible with long mode on this platform"), I thought that might have  
> > been the problem. After having changed the VT-option (Virtualization  
> > Technology) in the BIOS, the VM runs smoothly, but I'm still not able to  
> > export data from Aggregate.  
> > I therefore don't have any ideas anymore where to look for the problem,  
> > particularly because apparently my setup is the same like other computers,  
> > where it works without any problem. Do you guys have an idea what this  
> > issue might be about?
> > 
> > Thanks in advance,
> > 
> > Michael
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](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](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Mitch Sundt  
> Software Engineer  
> University of Washington  
> [mitchellsundt@gmail.com](mailto:mitchellsundt@gmail.com)

---

<div class="post-metadata">

**Author:** ![Michael](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@Michael](https://forum.getodk.org/u/Michael)\
**Post date:** [August 7, 2014, 5:31am UTC](https://forum.getodk.org/t/aggregate-error-problem-persisting-data-or-accessing-data/3472/3 "2014-08-07T05:31:31Z")

</div>

Dear Mitch, dear Yaw,

thanks a lot for your advice. As I'm just working with ODK, I will try to  
find the one who set the database up.

Thanks again and best regards,

Michael

---

<div class="post-metadata">

**Author:** ![Michael](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@Michael](https://forum.getodk.org/u/Michael)\
**Post date:** [August 6, 2014, 5:20am UTC](https://forum.getodk.org/t/aggregate-error-problem-persisting-data-or-accessing-data/3472/4 "2014-08-06T05:20:31Z")

</div>

> Hint: Please REINDEX it.; nested exception is org.postgresql.util.  
> PSQLException: ERROR: index "\_form\_service\_cursor\_umfi" contains  
> unexpected zero page at block 0  
> Hint: Please REINDEX it.)"
> 
> Doesn't the error message spell out exactly what you need to do?
> 
> NOTE: This is not an ODK Aggregate error message -- this is simply what  
> the database layer reported back to ODK Aggregate, and what it then  
> reported on to you.

If you don't understand what you need to do to reindex the table, you will

> need to hire a PostgreSQL Database Administrator to assist you.

Hello Mitch,

thanks for your feedback. I understand that's an SQL error, but indeed I  
don't understand how to reindex the table. As you suggest to hire a  
professional database admin, I assume there's not 'simple' option to  
reindex the table?

Best,

Michael

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 6, 2014, 1:42pm UTC](https://forum.getodk.org/t/aggregate-error-problem-persisting-data-or-accessing-data/3472/5 "2014-08-06T13:42:37Z")

</div>

Michael,

I don't use PostgreSQL myself, but you can search online for examples  
of how to log into the database. Then from there, you'll have to run  
'reindex \_form\_service\_cursor\_umfi'

You might also try logging in with one of these tools.  
[https://wiki.postgresql.org/wiki/Community\_Guide\_to\_PostgreSQL\_GUI\_Tools](https://wiki.postgresql.org/wiki/Community_Guide_to_PostgreSQL_GUI_Tools)

Yaw

> **···**
>
> -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.
> 
> On Tue, Aug 5, 2014 at 10:20 PM, Michael [malkiefaraway@gmail.com](mailto:malkiefaraway@gmail.com) wrote:
> 
> > > Hint: Please REINDEX it.; nested exception is org.postgresql.util.  
> > > PSQLException: ERROR: index "\_form\_service\_cursor\_umfi" contains  
> > > unexpected zero page at block 0  
> > > Hint: Please REINDEX it.)"
> > > 
> > > Doesn't the error message spell out exactly what you need to do?
> > > 
> > > NOTE: This is not an ODK Aggregate error message -- this is simply what  
> > > the database layer reported back to ODK Aggregate, and what it then reported  
> > > on to you.
> > > 
> > > If you don't understand what you need to do to reindex the table, you will  
> > > need to hire a PostgreSQL Database Administrator to assist you.
> > 
> > Hello Mitch,
> > 
> > thanks for your feedback. I understand that's an SQL error, but indeed I  
> > don't understand how to reindex the table. As you suggest to hire a  
> > professional database admin, I assume there's not 'simple' option to reindex  
> > the table?
> > 
> > Best,
> > 
> > Michael
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](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](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Mitch\_S](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@Mitch\_S](https://forum.getodk.org/u/Mitch_S)\
**Post date:** [August 6, 2014, 5:06pm UTC](https://forum.getodk.org/t/aggregate-error-problem-persisting-data-or-accessing-data/3472/6 "2014-08-06T17:06:07Z")

</div>

For everyone on the list -- if you are setting up your own server and  
database, and do not know how to manage the database, you are playing with  
fire.

For PostgreSQL, some of the maintenance activities are covered here

> **[Routine Database Maintenance Tasks](https://www.postgresql.org/docs/9.2/maintenance.html)**

For MySQL, you should be doing regular backups of the database. We use the  
InnoDB storage engine (not ISAM). I can't find a good summary of  
maintenance tasks for just that.

In any case, at the very least, I hope you are doing routine back-ups of  
your server so that when the database crashes, you have something to  
restore back to.

If you value your data, and have internet access, the costs of Google  
AppEngine are very minimal for the vastly higher degree of crash-protection  
it affords.

Other groups, such as SurveyCTO and FormHub provide servers and supply  
their own database management expertise for groups who do not possess it.

> **···**
>
> On Wed, Aug 6, 2014 at 6:42 AM, Yaw Anokwa wrote:
> 
> > Michael,
> > 
> > I don't use PostgreSQL myself, but you can search online for examples  
> > of how to log into the database. Then from there, you'll have to run  
> > 'reindex \_form\_service\_cursor\_umfi'
> > 
> > You might also try logging in with one of these tools.  
> > [https://wiki.postgresql.org/wiki/Community\_Guide\_to\_PostgreSQL\_GUI\_Tools](https://wiki.postgresql.org/wiki/Community_Guide_to_PostgreSQL_GUI_Tools)
> > 
> > ## Yaw
> > 
> > Need ODK services? [http://nafundi.com](http://nafundi.com) provides form design, server  
> > setup, professional support, and software development for ODK.
> > 
> > On Tue, Aug 5, 2014 at 10:20 PM, Michael [malkiefaraway@gmail.com](mailto:malkiefaraway@gmail.com) wrote:
> > 
> > > > Hint: Please REINDEX it.; nested exception is org.postgresql.util.  
> > > > PSQLException: ERROR: index "\_form\_service\_cursor\_umfi" contains  
> > > > unexpected zero page at block 0  
> > > > Hint: Please REINDEX it.)"
> > > > 
> > > > Doesn't the error message spell out exactly what you need to do?
> > > > 
> > > > NOTE: This is not an ODK Aggregate error message -- this is simply what  
> > > > the database layer reported back to ODK Aggregate, and what it then  
> > > > reported  
> > > > on to you.
> > > > 
> > > > If you don't understand what you need to do to reindex the table, you  
> > > > will  
> > > > need to hire a PostgreSQL Database Administrator to assist you.
> > > 
> > > Hello Mitch,
> > > 
> > > thanks for your feedback. I understand that's an SQL error, but indeed I  
> > > don't understand how to reindex the table. As you suggest to hire a  
> > > professional database admin, I assume there's not 'simple' option to  
> > > reindex  
> > > the table?
> > > 
> > > Best,
> > > 
> > > Michael
> > > 
> > > ## --
> > > 
> > > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > > Options: [http://groups.google.com/group/opendatakit?hl=en](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](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](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](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Mitch Sundt  
> Software Engineer  
> University of Washington  
> [mitchellsundt@gmail.com](mailto:mitchellsundt@gmail.com)
