Hi,
I executed the following HTTP request on the Dataverse 4.0 application to initiate dataset migration:
http://<hostname>/api/batch/migrate?path=/usr/local/......../dataverse/4.2.4/scripts/migration/ddi&key=a760d70c-2729-......f4c569a9
but I received the following error message:
{"status":"ERROR","message":"Please provide a key query parameter (?key=XXX) or via the HTTP header X-Dataverse-key"}
What
does that mean? Am I using wrong parameters?
a760d70c-2729-......f4c569a9 is the Admin API Token.
Ofuuzo
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/26a52db0-2d19-4bc2-9bfd-c74df80e3bcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I just ran my BatchIT* integration test and my query parameters look like this:
/api/batch/migrate/?dv=dv8c09f494&key=57ade659-3f64-4c10-bdc7-77c861e11805&path=/Users/pdurbin/NetBeansProjects/dataverse/scripts/issues/907/batchImportDv&createDV=trueDo you have spaces in your "path" perhaps? If you're using curl you'll need to put the whole URL in quotes, even if you don't have spaces in your path.I'm not really the expert on this batch migrate API endpoint ... I'd suggest emailing sup...@dataverse.org ... this issue seems to be related:
Migration: Complete scripts and documentation, then verify migration steps for use by others - https://github.com/IQSS/dataverse/issues/2462
http://guides.dataverse.org/en/4.2.4/installation/upgrading.html has this to say about migrating from DVN 3.x to Dataverse 4:
"Upgrading from DVN 3.x is actually a migration due to the many changes. Migration scripts have been checked into the source tree but as of this writing it is expected that people will require assistance running them. Please reach out per the Introduction section."I hope this helps!Phil
On Wed, Mar 16, 2016 at 8:20 AM, <ofu...@gmail.com> wrote:
Hi,
I executed the following HTTP request on the Dataverse 4.0 application to initiate dataset migration:
http://<hostname>/api/batch/migrate?path=/usr/local/......../dataverse/4.2.4/scripts/migration/ddi&key=a760d70c-2729-......f4c569a9
but I received the following error message:
{"status":"ERROR","message":"Please provide a key query parameter (?key=XXX) or via the HTTP header X-Dataverse-key"}
What does that mean? Am I using wrong parameters?
a760d70c-2729-......f4c569a9 is the Admin API Token.
Ofuuzo
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/26a52db0-2d19-4bc2-9bfd-c74df80e3bcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/26a52db0-2d19-4bc2-9bfd-c74df80e3bcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/346ae719-1839-4dda-a072-3d6e114f62b3%40googlegroups.com.
{"status":"OK"}
curl -X GET --header "X-Dataverse-key: <Dataverse
Admin API Key>" "http://<hostname>/api/batch/migrate?path=<parent
directory of DDI files>"
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/26a52db0-2d19-4bc2-9bfd-c74df80e3bcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/346ae719-1839-4dda-a072-3d6e114f62b3%40googlegroups.com.
./versions_source_ "http://<DVN 3.6 HOSTNAME>/dvn/ddi" "<YOUR NAME SPACE>"
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/901ed9c7-0777-4334-b12d-e464e70e053d%40googlegroups.com.