Re: [dspace-tech] Cleaning the .bak

2017-10-25 Thread Creel, James Silas
Hi Olivier,

These are perfectly safe to remove, assuming you have no need to revert to a 
prior deployment.  The ant installer backs up your previous deployment in case 
something breaks and you want to roll back.

Regards,

James

On 10/25/17, 4:36 AM, "dspace-tech@googlegroups.com on behalf of Olivier" 
 wrote:

Hello,

I am in desperate need to cleanup some space on my DSpace drive.

I have a serie of directories called webapps.bak-date-time that take a
total of 7GB, the last one having a date of Nov 2015. I want to know how
safe it is to remove them?

I am using DSpace 4.2

Thanks in advance,

Olivier
-- 

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech]

2017-02-06 Thread Creel, James Silas
Dear Haimanot,

Check in dspace-api/src/main/resources/Messages.properties

A good way to track down files is with the find command.  For example, to 
search the current directory for “messages.properties” case insensitive you 
could use:

find . -iname messages.properties

Best of luck,

James


From:  on behalf of Haimanot Birhanu 

Date: Monday, February 6, 2017 at 6:57 AM
To: DSpace Technical Support 
Subject: [dspace-tech]

Dear all,
I have managed to install dspace 6.0 jspui page on ubuntu 16.04 but unable to 
find Messages.properties in dspace installation directory? any help is 
appreciated.
Kind regards,
Haimanot,
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] When i went for ant fresh_install problem, i got these error messages:

2016-12-22 Thread Creel, James Silas
Dear Haimanot,

The first things to check is your dspace.cfg.  If the community list is not 
showing, this is a sure sign that the database does not contain those 
communities – no solr indexing is required for the hierarchy to show.  So get 
your db admin to check the database at the address of the db.url parameter and 
see that the communities are in the community table.  Otherwise, you might be 
using the wrong database instance or have problems with a migration.

Once you are pointing DSpace to the right database, if the community/collection 
hierarchy and the items appear but the bitstreams are not downloadable, that 
means that the database contains the data you intended but the assetstore is 
missing the files that the database is pointing to.  For this, check the 
assetstore.dir parameter in dspace.cfg and navigate there on the filesystem to 
see that the assets are indeed present.  If not, you’ll need to make a symlink 
or change the parameter.

All my best, and please follow up if you have any more specific concerns.  I 
would also mention that it is good to expand the stack traces when you get 
those error pages to provide more detail.

James


From: > on 
behalf of Haimanot Birhanu 
>
Date: Tuesday, December 20, 2016 at 203
To: Luiz dos Santos >
Cc: DSpace Technical Support 
>
Subject: Re: [dspace-tech] When i went for ant fresh_install problem, i got 
these error messages:

Dear All,

I'm trying to move dspace to another server and i installed the same version of 
dspace on the new machine and try to copy dspace backup files but it seems the 
data migration is ok but the community lists are not there and the items are 
not down loadable. for more I have attached the screen-shots.

Any help is appreciated,

On Wed, Oct 5, 2016 at 12:17 PM, Luiz dos Santos 
> wrote:
You should create the database, use the command below.

createuser --username=postgres --no-superuser --pwprompt dspace


crê eatedb --username=postgres --owner=dspace --encoding=UNICODE dspace

 Wednesday, October 5, 2016, Haimanot Birhanu 
> wrote:
 Error:
 [java]  - org.postgresql.util.PSQLException: FATAL: database "dspace" does 
not exist



--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.


--
Luiz Claudio Santos
http://luizclaudiosantos.me/



--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, 

Re: [dspace-tech] request for help

2016-12-01 Thread Creel, James Silas
Dear Haimanot Birhanu,

Check the wiki documentation here:
https://wiki.duraspace.org/display/DSDOC3x/Discovery

It should tell you all you need to know on this issue.

James

From:  on behalf of Haimanot Birhanu 

Date: Thursday, December 1, 2016 at 6:31 AM
To: "dspace-tech@googlegroups.com" 
Subject: [dspace-tech] request for help

How to Enable Discovery in dspace 3.1
Haimanot,
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] ant fresh_install error

2016-10-14 Thread Creel, James Silas
Dear Haimanot Birhanu,

It looks like the installer is trying to insert a duplicate row of the 
application/octet-stream which has short description “Unknown” in the bistream 
format registry database table.

If you want to do a fresh install, try using an empty database.  You could drop 
the database and re-create it and run the fresh install again.

Best Regards,

James

From:  on behalf of Haimanot Birhanu 

Date: Friday, October 14, 2016 at 7:07 AM
To: DSpace Technical Support 
Subject: [dspace-tech] ant fresh_install error

ERROR: duplicate key value violates unique constraint 
"bitstreamformatregistry_short_description_key" Detail: Key 
(short_description)=(Unknown) already exists.
Java returned: 1

anyone who have the experience and help me?

Haimanot,
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] REST item creation and dc.provenance

2016-09-28 Thread Creel, James Silas
Hi Everybody,

We have an application where our librarians can curate and publish items to our 
DSpace 5.4 repository with the REST API.  The push is accomplished with a 
sequence of requests, first to create the item, then several more requests to 
upload some files and set the bundles and permissions of them.

We’re finding that the dc.provenance metadatum is created only on the initial 
item creation and so reports that there are 0 bitstreams.  We never were able 
to get the REST API to work with a single request for multiple-file 
multiple-bundle items with permissions, so we had to take this sequenced 
approach.  Obviously, we would like dc.provenance generated after the item has 
been completely assembled.  It looks like a bit of development work, then – 
does it make sense to implement a transactional approach to the REST calls or 
to rework the API to take a much more complicated package in a single request?

I welcome any thoughts or suggestions.

Thanks,

James Creel

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Setting a ResourcePolicy via REST API?

2016-08-08 Thread Creel, James Silas
Dear Holly,

We have had success updating the bitstream policies at the bitstream endpoint 
rather than the policy endpoint.  You can just embed the policy JSON in the 
bistream JSON as for example:

{"id":235,"name":"dissertation_0.pdf.txt","handle":null,"type":"bitstream","link":"/rest/bitstreams/235","expand":["parent","policies","all"],"bundleName":"TEXT","description":"ocr_text","format":"Text","mimeType":"text/plain","sizeBytes":43,"parentObject":null,"retrieveLink":"/bitstreams/235/retrieve","checkSum":{"value":"2b0144d81300a4a8c4f2a2a891280a84","checkSumAlgorithm":"MD5"},"sequenceId":-1,"policies":[{"action":"READ","groupId":"5","rpType":"TYPE_CUSTOM"}]}

That worked on my localhost at the /rest/bitstreams/{bitstream id} endpoint.

Best of luck,

James



From:  on behalf of Holly Becker 

Date: Thursday, August 4, 2016 at 3:58 PM
To: DSpace Technical Support 
Subject: [dspace-tech] Re: Setting a ResourcePolicy via REST API?

Hi,

That endpoint gives me item information, but doesn't include anything about 
bitstreams or policies.  Can you clarify your suggestion?

Thanks,
-Holly

On Tuesday, July 12, 2016 at 7:38:40 AM UTC-7, Evgeni Dimitrov wrote:
I think with curl you should do something like this:

curl -X GET -H "Content-Type: application/json" -H "rest-dspace-token: 
d4020530-ce01-471d-a474-5fb0cea04661" 
http://localhost:8080/rest/items/2


On Tuesday, July 12, 2016 at 1:46:18 AM UTC+3, Holly Becker wrote:
Hello all,

I'm trying to post bitstream policies to the REST API, and having trouble 
finding what the correct format for the ResourcePolicy is.  The documentation 
[1] says a ResourcePolicy is  
[{"id":317127,"action":"READ","epersonId":-1,"groupId":0,"resourceId":47166,"resourceType":"bitstream","rpDescription":null,"rpName":null,"rpType":"TYPE_INHERITED","startDate":null,"endDate":null}]
  This looks like the policies returned by /rest/bitstreams/?expand=policies  
However, when I post that policy or policies that look similar I get a 500 
server error [3] on a local install of DSpace 5.

On 
demo.dspace.org
 none of the bitstreams have policies, even when I add one in the GUI, and I 
get a 500 when querying 
https://demo.dspace.org/rest/bitstreams/?expand=policies
 When posting a policy, I get different behavior on 
demo.dspace.org.
  It gives a 400 error, but the same exception. [2]

Can someone point me towards more detailed documentation, or provide an 
explanation of what a ResourcePolicy is supposed to look like?  Is there a 
better or different way to set bitstream policies through the REST API or 
SWORD2 API?

Thanks,
-Holly Becker
Archivematica developer

[1] 
https://wiki.duraspace.org/display/DSDOC5x/REST+API

[2] To reproduce
curl -X POST 
https://demo.dspace.org/rest/bitstreams/ea41e143-0b2c-447a-a46d-681282c6ff9a/policy
 --data 
'[{"id":317127,"action":"READ","epersonId":-1,"groupId":0,"resourceId":47166,"resourceType":"bitstream","rpDescription":null,"rpName":null,"rpType":"TYPE_INHERITED","startDate":null,"endDate":null}]'
 -u 'dspacedemo+ad...@gmail.com:dspace' -H 'Content-type: application/json' -k
Response:
Can not deserialize instance of org.dspace.rest.common.ResourcePolicy out of 
START_ARRAY token
 at [Source: 
org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@43a44ac9;
 line: 1, column: 1]

Or (in Python2, requires 'requests'