Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3998 rsync download #4134

Merged
merged 120 commits into from
Sep 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
5984039
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
sekmiller Jul 20, 2017
6c9c146
#3348 add rsyncWorkflow boolean
sekmiller Jul 24, 2017
d50db6f
#3348 - replace check string with Enum string val.
sekmiller Jul 24, 2017
5c4cfa7
Added new Data Access tab to file pg. [ref #3348]
mheppler Jul 24, 2017
281fb9a
Added help-info msg to upload section of create dataset pg. Added ren…
mheppler Jul 25, 2017
2be0ebe
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
sekmiller Jul 27, 2017
c6730e3
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
sekmiller Jul 27, 2017
3ba645a
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
sekmiller Aug 1, 2017
213bbd8
#3348 Add booleans for rsync upload and download
sekmiller Aug 2, 2017
62e48db
Fixed render logic on dataset and file pgs related to recent Rsync se…
mheppler Aug 2, 2017
c6e74d3
Added placeholder Upload Files popup to dataset pg for rsync upload i…
mheppler Aug 3, 2017
0da21a2
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
sekmiller Aug 3, 2017
195615f
Moved text to bundle for Upload Files popup to dataset pg for rsync u…
mheppler Aug 3, 2017
656addd
Overwrite Bootstrap code styling from pink/red to gray/blue backgroun…
mheppler Aug 7, 2017
081f700
Rsync Upload section added to Dataset + File Management pg of User Gu…
mheppler Aug 8, 2017
36c8d1e
#3348 - add functionality to File upload popup
sekmiller Aug 8, 2017
79267f6
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
sekmiller Aug 8, 2017
0bc9d5f
Additional placeholder Rsync Upload instructions added to Dataset + F…
mheppler Aug 8, 2017
2b607a1
Cleaned up rsync Upload Files popup msg's on dataset pg. [ref #3348]
mheppler Aug 10, 2017
d60bc51
rsync upload docs - rough draft [#3348]
dlmurphy Aug 10, 2017
f83fb72
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
mheppler Aug 11, 2017
662a9c3
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
mheppler Aug 11, 2017
74dfb40
Doc updates from feedback [#3348]
dlmurphy Aug 11, 2017
a16a650
stop hard-coding `upload6.bash` as script name #3348
pdurbin Aug 16, 2017
47efa31
user separate superuser account to act as DCM #3348
pdurbin Aug 16, 2017
7410cc9
add mime type for Dataverse Package #3348
pdurbin Aug 16, 2017
0441dd3
Minor doc revisions to improve references to contributing and contact…
mheppler Aug 16, 2017
222ff56
Added new custom icon for the Dataverse Package file type. [ref #3348]
mheppler Aug 17, 2017
4d8dbe5
Added FontCustom info to Tools pg of Developer Guide. [ref #3348]
mheppler Aug 17, 2017
b083d58
Some code for #3348 - dataset locks, status messages on the dataset p…
landreev Aug 21, 2017
1f45de1
locking the dataset when the rsync script is downloaded;
landreev Aug 22, 2017
b57bd8d
Added a standard JH.addMessage() to the page, triggered by the user h…
landreev Aug 22, 2017
ef7b106
Revised "upload in progress" msg txt for rsync. [ref #3348]
mheppler Aug 23, 2017
4df625a
Fixed alignment of file type icon for Dataverse Package. [ref #3348]
mheppler Aug 23, 2017
a55c1ef
Removed unused code for the "upload in progress" messages. (#3348)
landreev Aug 23, 2017
3a64f89
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
landreev Aug 23, 2017
5606f4d
Added rsyncDownload render logic to Metrics block on dataverse pg. [r…
mheppler Aug 23, 2017
0bbe097
Documentation updates #3348
dlmurphy Aug 23, 2017
c48a102
Doc edits based on demoing [ref: #3348]
dlmurphy Aug 25, 2017
d217c64
better wording about not being able to upload more files #3348
pdurbin Aug 28, 2017
4eae2e6
always show "Upload Files" button as active with plus #3348
pdurbin Aug 28, 2017
a5d305f
#3348 change DownloadRsync Script to Button format
sekmiller Aug 28, 2017
0423e10
Added steps to set up DCM mock #3348
Aug 28, 2017
01a1798
rsync download guide - first draft [ref: #3998]
dlmurphy Aug 28, 2017
1a456c7
Added the special case for deleting a package file to the DeleteDataf…
landreev Aug 29, 2017
a169d38
Fixed styling of Download Script button and inline code sample text i…
mheppler Aug 29, 2017
5bef5fd
Removed debug render logic in previous commit in rsync File Upload po…
mheppler Aug 29, 2017
3fd5f3e
#3348 modify subject line for FileSystem Import
sekmiller Aug 29, 2017
cc8f610
Fixed graphic outline icon for Dataverse Package file type in Chrome.…
mheppler Aug 29, 2017
05b04a9
The new text for the dcm upload info message (#3348)
landreev Aug 29, 2017
5d71197
#3348 Add test for existence of the target file directory
sekmiller Aug 29, 2017
2fb039e
explain how to put file in place when using DCM mock #3348
pdurbin Aug 29, 2017
5045c80
#3348 Check Job Exit Status in After Job Method
sekmiller Aug 30, 2017
73fb0fe
#3348 add TODO for additional failure notifications
sekmiller Aug 30, 2017
5e4ed66
#3348 Check for null exit status.
sekmiller Aug 30, 2017
26b895c
Revert "#3348 Check for null exit status."
matthew-a-dunlap Aug 31, 2017
4cd1b65
Added DownloadMethods setting, and checks to go with it #3998
rbhatta99 Sep 1, 2017
1c7be3a
Render logic for hiding guestbooks #3998
rbhatta99 Sep 1, 2017
16d63e9
added render logic to hide download button on filestable in the datas…
rbhatta99 Sep 1, 2017
f734364
Hide download button files page when rsync #3998
matthew-a-dunlap Sep 4, 2017
dcff31a
Text change #3348
matthew-a-dunlap Sep 4, 2017
3299252
Undo Accidentally revert #3348
matthew-a-dunlap Sep 4, 2017
70c9025
placeholders for dataaccess links #3998
rbhatta99 Sep 5, 2017
b3dde1f
styling of links and tooltips #3998
rbhatta99 Sep 5, 2017
49822e6
added data access links to dataset page and file page. Styling on dat…
rbhatta99 Sep 5, 2017
1d0e4aa
Merge branch 'develop' into 3348-RSync-FileUpload-Workflow
landreev Sep 7, 2017
620b1ee
Added the 4th type of lock ("reason") - one dedicated to DCM uploads …
landreev Sep 7, 2017
8a9b67e
stripped some code from datasetpage that's no longer necessary.
landreev Sep 7, 2017
cd8a537
removed the extra info message; fixed the typo in localhost ip addres…
landreev Sep 7, 2017
a6e2f2b
Fix for the duplicate notifications, when the dataset gets returned t…
landreev Sep 7, 2017
e43c5f9
a quick doc fix, #3348
landreev Sep 7, 2017
4d65715
fixed the problem with closing the rsync popup via the 'x' checkbox. …
landreev Sep 8, 2017
b3a6a33
removed some dead, commented-out code. #3348
landreev Sep 8, 2017
3b70512
Merge branch '3348-RSync-FileUpload-Workflow' into 3998-rsync-download
mheppler Sep 8, 2017
308d340
Minor layout cleanup of the Data Access info on the dataset and file …
mheppler Sep 8, 2017
b8b5069
Added User Guide link to help text for Data Access info on the datase…
mheppler Sep 8, 2017
b1c5fa3
Moved Data Access info for dataset and file pgs to new include fragme…
mheppler Sep 11, 2017
a9c0d56
Added render logic to hide Guestbook options for both view and edit m…
mheppler Sep 11, 2017
ce0e97c
re-fix #3443 (`:ExcludeEmailFromExport`), add privacy section #3348
pdurbin Sep 11, 2017
cc574e1
File missing from previous commit: Added render logic to hide Guestbo…
mheppler Sep 11, 2017
b1887c9
Added rsync Download section to Finding and Using Data pg in User Gui…
mheppler Sep 12, 2017
8ddef8e
download doc move, misc edits to find/use data page
dlmurphy Sep 12, 2017
d4776b7
make rsync sites and local access dynamic #3998
pdurbin Sep 12, 2017
840c7a2
fix "Cannot lock a dataset for a null user" on native file add #3348
pdurbin Sep 12, 2017
4a2e0a6
Swapped out heavy dataTable for a ui:repeat component in Data Access …
mheppler Sep 12, 2017
7b396cc
Merge branch '3348-RSync-FileUpload-Workflow' into 3998-rsync-downloa…
pdurbin Sep 12, 2017
eb7f310
add leafDirectoryOnly boolean to method that returns data dir #3998
pdurbin Sep 13, 2017
b8fb1fe
better docs for leafDirectoryOnly boolean, clean up #3998
pdurbin Sep 13, 2017
c4b3e66
Data Access messaging edits [ref: #3998]
dlmurphy Sep 14, 2017
f3b8e30
Removed html from email strings, reformatted #3998
matthew-a-dunlap Sep 15, 2017
2e6a836
fixed the upload file button not getting disables when dataset is loc…
rbhatta99 Sep 19, 2017
059fbbd
#3998 disable "submit for review" when dataset is locked
sekmiller Sep 19, 2017
b745e16
file versions table gets loaded regardless of downloadMethods setting…
rbhatta99 Sep 19, 2017
58e77b1
#3998 Do not render file replace option for rsync files
sekmiller Sep 19, 2017
dca212f
Added logic to delete subdirectories of package files when the packag…
rbhatta99 Sep 19, 2017
0b3f8b0
Merge branch '3998-rsync-download' of github.com:IQSS/dataverse into …
rbhatta99 Sep 19, 2017
513a88e
added exception logging messages #3998
rbhatta99 Sep 19, 2017
3b35baa
Workflow dataset publication email only at end of workflow #3998
matthew-a-dunlap Sep 19, 2017
de41594
Moved note about access to draft dataset files into new msg with rend…
mheppler Sep 20, 2017
d618bc3
Reverted change to custom message block include to fix trailing hyphe…
mheppler Sep 20, 2017
a8a7ef2
Upload Files instructions - clarified phrasing [#3998]
dlmurphy Sep 20, 2017
196c8c3
split the "rsync upload in progress" into the "summary" and "details"…
landreev Sep 20, 2017
0fb4cc8
#3998 prevent file upload via api when rsync is upload method
sekmiller Sep 20, 2017
2f62cf2
Fixed the "rss blink" in Chrome, when the dataset gets unlocked and t…
landreev Sep 20, 2017
9f461a8
changed upload button behavior #3998
rbhatta99 Sep 20, 2017
58c7382
Merge branch '3998-rsync-download' of github.com:IQSS/dataverse into …
rbhatta99 Sep 20, 2017
2ac2745
Clean up publish notifications #4141 #3998
matthew-a-dunlap Sep 20, 2017
5238166
#3998 don't allow package files to be deleted from published datasets.
sekmiller Sep 21, 2017
48733f9
#3998 disable file upload for rsync datasets
sekmiller Sep 21, 2017
8b29051
#3998 back out "prevent delete" of published package files
sekmiller Sep 21, 2017
9524044
fixed null exceptions when a script is not available #3998
rbhatta99 Sep 21, 2017
b8e3103
Merge branch '3998-rsync-download' of github.com:IQSS/dataverse into …
rbhatta99 Sep 21, 2017
4599ace
don't show data access info on draft #3998
pdurbin Sep 21, 2017
59799e9
Added differentiated success messages for bulk files delete (trying a…
landreev Sep 21, 2017
1ed9675
Fix "uploaded and verified" notification format #3998
matthew-a-dunlap Sep 21, 2017
afa818e
Did some extra cleanup of the dataset page; removed some code duplica…
landreev Sep 21, 2017
badf0ea
Removed accidental role-added notification #3998
matthew-a-dunlap Sep 22, 2017
55a20cd
solving merge conflicts 3998
rbhatta99 Sep 25, 2017
d740c3c
resolve conflicts #3998
rbhatta99 Sep 25, 2017
07b0d38
Merge branch 'develop' into 3998-rsync-download
rbhatta99 Sep 25, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 9 additions & 6 deletions doc/sphinx-guides/source/_static/fontcustom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@

@font-face {
font-family: "fontcustom";
src: url("./fontcustom/fontcustom_0cdeefae934823416d24b6c2132ac702.eot");
src: url("./fontcustom/fontcustom_0cdeefae934823416d24b6c2132ac702.eot?#iefix") format("embedded-opentype"),
url("./fontcustom/fontcustom_0cdeefae934823416d24b6c2132ac702.woff") format("woff"),
url("./fontcustom/fontcustom_0cdeefae934823416d24b6c2132ac702.ttf") format("truetype"),
url("./fontcustom/fontcustom_0cdeefae934823416d24b6c2132ac702.svg#fontcustom") format("svg");
src: url("./fontcustom/fontcustom_fb6bd74e6004cae7db6ffae62177daaf.eot");
src: url("./fontcustom/fontcustom_fb6bd74e6004cae7db6ffae62177daaf.eot?#iefix") format("embedded-opentype"),
url("./fontcustom/fontcustom_fb6bd74e6004cae7db6ffae62177daaf.woff2") format("woff2"),
url("./fontcustom/fontcustom_fb6bd74e6004cae7db6ffae62177daaf.woff") format("woff"),
url("./fontcustom/fontcustom_fb6bd74e6004cae7db6ffae62177daaf.ttf") format("truetype"),
url("./fontcustom/fontcustom_fb6bd74e6004cae7db6ffae62177daaf.svg#fontcustom") format("svg");
font-weight: normal;
font-style: normal;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: "fontcustom";
src: url("./fontcustom/fontcustom_0cdeefae934823416d24b6c2132ac702.svg#fontcustom") format("svg");
src: url("./fontcustom/fontcustom_fb6bd74e6004cae7db6ffae62177daaf.svg#fontcustom") format("svg");
}
}

Expand All @@ -34,6 +35,7 @@
.icon-image:before,
.icon-network:before,
.icon-other:before,
.icon-package:before,
.icon-tabular:before,
.icon-unlock:before,
.icon-video:before {
Expand Down Expand Up @@ -62,6 +64,7 @@
.icon-image:before { content: "\f103"; }
.icon-network:before { content: "\f10c"; }
.icon-other:before { content: "\f10d"; }
.icon-package:before { content: "\f10f"; }
.icon-tabular:before { content: "\f108"; }
.icon-unlock:before { content: "\f10e"; }
.icon-video:before { content: "\f109"; }
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions doc/sphinx-guides/source/_static/icon-template.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,9 @@ Sample output appears below.
"createdTime":"2000-01-01 00:00:00.0",
"lastLoginTime":"2017-07-03 12:22:35.926",
"lastApiUseTime":"2017-07-03 12:55:57.186"
},
**... 22 more user documents ...**
}

// ... 22 more user documents ...
]
}
}
Expand Down
66 changes: 66 additions & 0 deletions doc/sphinx-guides/source/developers/big-data-support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,52 @@ Here's the syntax for sending the JSON.

``curl -H "X-Dataverse-key: $API_TOKEN" -X POST -H 'Content-type: application/json' --upload-file checksumValidationSuccess.json $DV_BASE_URL/api/datasets/:persistentId/dataCaptureModule/checksumValidation?persistentId=$PERSISTENT_ID``


Steps to set up a DCM mock for Development
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Install Flask.


Download and run the mock. You will be cloning the https://github.com/sbgrid/data-capture-module repo.

- ``git clone git://github.com/sbgrid/data-capture-module.git``
- ``cd data-capture-module/api``
- ``./dev_mock.sh``

If you see an error about not having Flask installed, install it as explained below.

On Mac, you can install Flask with:

- ``mkvirtualenv mockdcm``
- ``pip install -r requirements-mock.txt``

On Ubuntu/Debian, you can install Flask with:

- ``sudo apt install python-pip`` (will install python as well)
- ``pip install flask``

Once you have Flask installed, try running the dev mock script again:

- ``./dev_mock.sh``

This should spin up the DCM mock on port 5000.

Add Dataverse settings to use mock (same as using DCM, noted above):

- ``curl http://localhost:8080/api/admin/settings/:DataCaptureModuleUrl -X PUT -d "http://localhost:5000"``
- ``curl http://localhost:8080/api/admin/settings/:UploadMethods -X PUT -d "dcm/rsync+ssh"``

At this point you should be able to download a placeholder rsync script. Dataverse is then waiting for new from the DCM about if checksum validation has succeeded or not. First, you have to put files in place, which is usually the job of the DCM. You should substitute "X1METO" for the "identifier" of the dataset you create. You must also use the proper path for where you store files in your dev environment.

- ``mkdir /usr/local/glassfish4/glassfish/domains/domain1/files/10.5072/FK2/X1METO``
- ``mkdir /usr/local/glassfish4/glassfish/domains/domain1/files/10.5072/FK2/X1METO/X1METO``
- ``cd /usr/local/glassfish4/glassfish/domains/domain1/files/10.5072/FK2/X1METO/X1METO``
- ``echo "hello" > file1.txt``
- ``shasum file1.txt > files.sha``

Now the files are in place and you need to send JSON to Dataverse with a success or failure message as described above. Make a copy of ``doc/sphinx-guides/source/_static/installation/files/root/big-data-support/checksumValidationSuccess.json`` and put the identifier in place such as "X1METO" under "uploadFolder"). Then use curl as described above to send the JSON.

Troubleshooting
~~~~~~~~~~~~~~~

Expand All @@ -61,6 +107,9 @@ The following low level command should only be used when troubleshooting the "im
Repository Storage Abstraction Layer (RSAL)
-------------------------------------------

Configuring the RSAL Mock
~~~~~~~~~~~~~~~~~~~~~~~~~

Info for configuring the RSAL Mock: https://github.com/sbgrid/rsal/tree/master/mocks

Also, to configure Dataverse to use the new workflow you must do the following:
Expand Down Expand Up @@ -94,3 +143,20 @@ Edit internal-httpSR-workflow.json and replace url and rollbackUrl to be the url
8. When finished testing, unset the workflow:

``curl -X DELETE http://localhost:8080/api/admin/workflows/default/PrePublishDataset``

Configuring download via rsync
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In order to see the rsync URLs, you must run this command:

``curl -X PUT -d 'rsal/rsync' http://localhost:8080/api/admin/settings/:DownloadMethods``

TODO: Document these in the Installation Guide once they're final.

To specify replication sites that appear in rsync URLs:

``curl http://localhost:8080/api/admin/settings/:ReplicationSites -X PUT -d "dv.sbgrid.org:Harvard Medical School:USA,sbgrid.icm.uu.se:Uppsala University:Sweden,sbgrid.ncpss.org:Institut Pasteur de Montevideo:Uruguay,sbgrid.ncpss.org:Shanghai Institutes for Biological Sciences:China"``

In the GUI, this is called "Local Access". It's where you can compute on files on your cluster.

``curl http://localhost:8080/api/admin/settings/:LocalDataAccessPath -X PUT -d "/programs/datagrid"``
7 changes: 7 additions & 0 deletions doc/sphinx-guides/source/developers/tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ MSV
validating ddi.xml
the document is valid.

FontCustom
++++++++++

The custom file type icons were created with the help of `FontCustom <https://github.com/FontCustom/fontcustom>`. Their README provides installation instructions as well as directions for producing your own vector-based icon font.

Here is a vector-based SVG file to start with as a template: :download:`icon-template.svg <../_static/icon-template.svg>`

----

Previous: :doc:`making-releases` | Next: :doc:`unf/index`
27 changes: 15 additions & 12 deletions doc/sphinx-guides/source/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Forcing HTTPS

To avoid having your users send credentials in the clear, it's strongly recommended to force all web traffic to go through HTTPS (port 443) rather than HTTP (port 80). The ease with which one can install a valid SSL cert into Apache compared with the same operation in Glassfish might be a compelling enough reason to front Glassfish with Apache. In addition, Apache can be configured to rewrite HTTP to HTTPS with rules such as those found at https://wiki.apache.org/httpd/RewriteHTTPToHTTPS or in the section on :doc:`shibboleth`.

Privacy Considerations
++++++++++++++++++++++

Out of the box, Dataverse will list email addresses of the "contacts" for datasets when users visit a dataset page and click the "Export Metadata" button. If you prefer to exclude email addresses of dataset contacts from metadata export, set :ref:`:ExcludeEmailFromExport <:ExcludeEmailFromExport>` to true.

Additional Recommendations
++++++++++++++++++++++++++
Run Glassfish as a User Other Than Root
+++++++++++++++++++++++++++++++++++++++

Expand Down Expand Up @@ -294,7 +301,7 @@ Once you have acquired the keys, they need to be added to``credentials``. The fo
| ``aws_access_key_id = <insert key, no brackets>``
| ``aws_secret_access_key = <insert secret key, no brackets>``

Place this file ina a folder named ``.aws`` under the home directory for the user running your dataverse installation.
Place this file in a folder named ``.aws`` under the home directory for the user running your dataverse installation.

Setup aws via command line tools
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -775,6 +782,9 @@ Specify a URL where users can read your API Terms of Use.

``curl -X PUT -d http://best-practices.dataverse.org/harvard-policies/harvard-api-tou.html http://localhost:8080/api/admin/settings/:ApiTermsOfUse``


.. _:ExcludeEmailFromExport:

:ExcludeEmailFromExport
+++++++++++++++++++++++

Expand Down Expand Up @@ -1175,20 +1185,13 @@ This setting is experimental and to be used with the Data Capture Module (DCM).
:DownloadMethods
++++++++++++++++

This setting is experimental and related to Repository Storage Abstraction Layer (RSAL). As of this writing it has no effect.
This setting is experimental and related to Repository Storage Abstraction Layer (RSAL).

``curl -X PUT -d 'rsal/rsync' http://localhost:8080/api/admin/settings/:DownloadMethods``

:GuestbookResponsesPageDisplayLimit
+++++++++++++++++++++++++++++++++++

Limit on how many guestbook entries to display on the guestbook-responses page. By default, only the 5000 most recent entries will be shown. Use the standard settings API in order to change the limit. For example, to set it to 10,000, make the following API call:

``curl -X PUT -d 10000 http://localhost:8080/api/admin/settings/:GuestbookResponsesPageDisplayLimit``

:CustomDatasetSummaryFields
+++++++++++++++++++++++++

You can replace the default dataset metadata fields that are displayed above files table on the dataset page with a custom list separated by commas using the curl command below.

``curl http://localhost:8080/api/admin/settings/:CustomDatasetSummaryFields -X PUT -d 'producer,subtitle,alternativeTitle'``

You have to put the datasetFieldType name attribute in the :CustomDatasetSummaryFields setting for this to work.
``curl -X PUT -d 10000 http://localhost:8080/api/admin/settings/:GuestbookResponsesPageDisplayLimit``
20 changes: 10 additions & 10 deletions doc/sphinx-guides/source/installation/installation-main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Logging In
Out of the box, Glassfish runs on port 8080 and 8181 rather than 80 and 443, respectively, so visiting http://localhost:8080 (substituting your hostname) should bring up a login page. See the :doc:`shibboleth` page for more on ports, but for now, let's confirm we can log in by using port 8080. Poke a temporary hole in your firewall, if needed.

Superuser Account
+++++++++++++++++
^^^^^^^^^^^^^^^^^

We'll use the superuser account created by the installer to make sure you can log into Dataverse. For more on the difference between being a superuser and having the "Admin" role, read about configuring the root dataverse in the :doc:`config` section.

Expand All @@ -106,12 +106,12 @@ Troubleshooting
If the following doesn't apply, please get in touch as explained in the :doc:`intro`. You may be asked to provide ``glassfish4/glassfish/domains/domain1/logs/server.log`` for debugging.

Dataset Cannot Be Published
+++++++++++++++++++++++++++
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check to make sure you used a fully qualified domain name when installing Dataverse. You can change the ``dataverse.fqdn`` JVM option after the fact per the :doc:`config` section.

Problems Sending Email
++++++++++++++++++++++
^^^^^^^^^^^^^^^^^^^^^^

If your Dataverse installation is not sending system emails, you may need to provide authentication for your mail host. First, double check the SMTP server being used with this Glassfish asadmin command:

Expand All @@ -124,7 +124,7 @@ If the command returns a host you don't want to use, you can modify your notifyM
If your mail host requires a username/password for access, continue to the next section.

Mail Host Configuration & Authentication
++++++++++++++++++++++++++++++++++++++++
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you need to alter your mail host address, user, or provide a password to connect with, these settings are easily changed in the Glassfish admin console.

Expand Down Expand Up @@ -166,7 +166,7 @@ mail.smtp.socketFactory.class javax.net.ssl.SSLSocketFactory
Be sure you save the changes made here and then restart your Glassfish server to test it out.

UnknownHostException While Deploying
++++++++++++++++++++++++++++++++++++
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you are seeing "Caused by: java.net.UnknownHostException: myhost: Name or service not known" in server.log and your hostname is "myhost" the problem is likely that "myhost" doesn't appear in ``/etc/hosts``. See also http://stackoverflow.com/questions/21817809/glassfish-exception-during-deployment-project-with-stateful-ejb/21850873#21850873

Expand All @@ -176,7 +176,7 @@ Fresh Reinstall
Early on when you're installing Dataverse, you may think, "I just want to blow away what I've installed and start over." That's fine. You don't have to uninstall the various components like Glassfish, PostgreSQL and Solr, but you should be conscious of how to clear out their data.

Drop database
+++++++++++++
^^^^^^^^^^^^^

In order to drop the database, you have to stop Glassfish, which will have open connections. Before you stop Glassfish, you may as well undeploy the war file. First, find the name like this:

Expand All @@ -195,22 +195,22 @@ With Glassfish down, you should now be able to drop your database and recreate i
``psql -U dvnapp -c 'DROP DATABASE "dvndb"' template1``

Clear Solr
++++++++++
^^^^^^^^^^

The database is fresh and new but Solr has stale data it in. Clear it out with this command:

``curl http://localhost:8983/solr/update/json?commit=true -H "Content-type: application/json" -X POST -d "{\"delete\": { \"query\":\"*:*\"}}"``


Deleting uploaded files
+++++++++++++++++++++++
Deleting Uploaded Files
^^^^^^^^^^^^^^^^^^^^^^^

The path below will depend on the value for ``dataverse.files.directory`` as described in the :doc:`config` section:

``rm -rf /usr/local/glassfish4/glassfish/domains/domain1/files``

Rerun Installer
+++++++++++++++
^^^^^^^^^^^^^^^

With all the data cleared out, you should be ready to rerun the installer per above.

Expand Down