[dspace-tech] User Registrstion and SMTP

2017-08-23 Thread Dharshana Gamage
Hi,

I'm new to both DSPACE and ubuntu. Please advice me as to how I can make 
the users register or is there anyway I can add users manually.

DSPACE is currently run in a localhost

I want to connect my gmail account for SMTP which I did by editing 
/home/dspace/config/dspace.cfg 

I gave  smtp.gmail.com as smtp
and my Username and the password
And I removed the # on the 3 lines to have SSL with port

When I try to register in DSPACE it says a mail is sent. but that is just 
it, AI dont receive any mails from dspace

PLEASE HELP! As I'm struggling to get this working.

-- 
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] Re: DSpace cleanup script not working (hibernate exception)

2017-08-23 Thread Eduardo Speroni
Upon deeper inspection, it seems it deletes the first record (partially?) 
and then starts deleting the other, but then deletes the bitstream and 
dspaceobject of the first record (?). At this point it tries to delete the 
mostrecentchecksum and detects another thread doing an operation, which 
causes the exception (that's what I think it's happening).

2017-08-23 11:28:55,399 DEBUG org.dspace.storage.bitstore.
BitstreamStorageServiceImpl @ bitstore.about is empty, so file is not 
present
2017-08-23 11:28:55,399 DEBUG org.dspace.storage.bitstore.
BitstreamStorageServiceImpl @ deleting record
2017-08-23 11:28:55,420 DEBUG org.hibernate.hql.internal.ast.
QueryTranslatorImpl @ parse() - HQL: delete from org.dspace.checker.
MostRecentChecksum WHERE bitstream=:bitstream
2017-08-23 11:28:55,725 DEBUG org.hibernate.SQL @ delete from 
public.most_recent_checksum 
where bitstream_id=?
2017-08-23 11:28:55,729 DEBUG org.hibernate.hql.internal.ast.
QueryTranslatorImpl @ parse() - HQL: delete from org.dspace.checker.
ChecksumHistory where bitstream=:bitstream
2017-08-23 11:28:55,909 DEBUG org.hibernate.SQL @ delete from 
public.checksum_history 
where bitstream_id=?
2017-08-23 11:28:55,927 DEBUG org.dspace.storage.bitstore.
BitstreamStorageServiceImpl @ bitstore.about is empty, so file is not 
present
2017-08-23 11:28:55,927 DEBUG org.dspace.storage.bitstore.
BitstreamStorageServiceImpl @ deleting record
2017-08-23 11:28:56,059 DEBUG org.hibernate.SQL @ delete from public.bitstream 
where uuid=?
2017-08-23 11:28:56,066 DEBUG org.hibernate.SQL @ delete from 
public.dspaceobject 
where uuid=?

According to the code, it commits every 100 items (or when completed). The 
actual file is deleted before the database operations, hence both files are 
not present. Maybe this is a bug and should go to the DSpace Jira?


On Wednesday, August 23, 2017 at 11:41:25 AM UTC-3, Eduardo Speroni wrote:
>
> When I try to execute the cleanup script on DSpace 6.1 (tomcat 8), this is 
> the result:
>
> $/opt/dspace/bin/dspace cleanup -v
>  - Deleting bitstream information (ID: d9b9635b-8be3-4c0f-81ab-
> 380b1839282e)
>  - Deleting bitstream record from database (ID: d9b9635b-8be3-4c0f-81ab-
> 380b1839282e)
>  - Deleting bitstream information (ID: 96ebf52d-673b-4556-a973-
> 9f25315d930f)
>
> dspace.log:
>
> 2017-08-23 11:34:56,219 ERROR org.hibernate.AssertionFailure @ HHH99: 
> an assertion failure occured (this may indicate a bug in Hibernate, but is 
> more likely due to unsafe use of the session): org.hibernate.
> AssertionFailure: possible nonthreadsafe access to session
> 2017-08-23 11:34:56,223 FATAL org.dspace.storage.bitstore.Cleanup @ Caught 
> exception:
> org.hibernate.AssertionFailure: possible nonthreadsafe access to session
> at org.hibernate.action.internal.EntityDeleteAction.execute(
> EntityDeleteAction.java:112)
> at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:
> 395)
> at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue
> .java:387)
> at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue
> .java:310)
> at org.hibernate.event.internal.AbstractFlushingEventListener.
> performExecutions(AbstractFlushingEventListener.java:349)
> at org.hibernate.event.internal.DefaultAutoFlushEventListener.
> onAutoFlush(DefaultAutoFlushEventListener.java:67)
> at org.hibernate.internal.SessionImpl.autoFlushIfRequired(
> SessionImpl.java:1166)
> at org.hibernate.internal.SessionImpl.executeUpdate(SessionImpl.
> java:1246)
> at org.hibernate.internal.QueryImpl.executeUpdate(QueryImpl.java:
> 116)
> at org.dspace.checker.dao.impl.MostRecentChecksumDAOImpl.
> deleteByBitstream(MostRecentChecksumDAOImpl.java:102)
> at org.dspace.checker.MostRecentChecksumServiceImpl.
> deleteByBitstream(MostRecentChecksumServiceImpl.java:163)
> at org.dspace.checker.ChecksumHistoryServiceImpl.deleteByBitstream
> (ChecksumHistoryServiceImpl.java:108)
> at org.dspace.storage.bitstore.BitstreamStorageServiceImpl.cleanup
> (BitstreamStorageServiceImpl.java:250)
> at org.dspace.storage.bitstore.Cleanup.main(Cleanup.java:79)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.dspace.app.launcher.ScriptLauncher.runOneCommand(
> ScriptLauncher.java:229)
>
> at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java
> :81)
>
>
> Additional DEBUG logs:
>
> 2017-08-23 11:28:56,055 DEBUG org.hibernate.internal.util.EntityPrinter @ 
> More..
> 2017-08-23 11:28:56,059 DEBUG org.hibernate.SQL @ delete from 
> public.bitstream 
> where uuid=?
> 2017-08-23 11:28:56,066 DEBUG org.hibernate.SQL @ delete from 
> 

[dspace-tech] DSpace cleanup script not working (hibernate exception)

2017-08-23 Thread Eduardo Speroni
When I try to execute the cleanup script on DSpace 6.1 (tomcat 8), this is 
the result:

$/opt/dspace/bin/dspace cleanup -v
 - Deleting bitstream information (ID: d9b9635b-8be3-4c0f-81ab-380b1839282e)
 - Deleting bitstream record from database (ID: d9b9635b-8be3-4c0f-81ab-
380b1839282e)
 - Deleting bitstream information (ID: 96ebf52d-673b-4556-a973-9f25315d930f)

dspace.log:

2017-08-23 11:34:56,219 ERROR org.hibernate.AssertionFailure @ HHH99: 
an assertion failure occured (this may indicate a bug in Hibernate, but is 
more likely due to unsafe use of the session): org.hibernate.
AssertionFailure: possible nonthreadsafe access to session
2017-08-23 11:34:56,223 FATAL org.dspace.storage.bitstore.Cleanup @ Caught 
exception:
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at org.hibernate.action.internal.EntityDeleteAction.execute(
EntityDeleteAction.java:112)
at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:395
)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.
java:387)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.
java:310)
at org.hibernate.event.internal.AbstractFlushingEventListener.
performExecutions(AbstractFlushingEventListener.java:349)
at org.hibernate.event.internal.DefaultAutoFlushEventListener.
onAutoFlush(DefaultAutoFlushEventListener.java:67)
at org.hibernate.internal.SessionImpl.autoFlushIfRequired(
SessionImpl.java:1166)
at org.hibernate.internal.SessionImpl.executeUpdate(SessionImpl.java
:1246)
at org.hibernate.internal.QueryImpl.executeUpdate(QueryImpl.java:116
)
at org.dspace.checker.dao.impl.MostRecentChecksumDAOImpl.
deleteByBitstream(MostRecentChecksumDAOImpl.java:102)
at org.dspace.checker.MostRecentChecksumServiceImpl.
deleteByBitstream(MostRecentChecksumServiceImpl.java:163)
at org.dspace.checker.ChecksumHistoryServiceImpl.deleteByBitstream(
ChecksumHistoryServiceImpl.java:108)
at org.dspace.storage.bitstore.BitstreamStorageServiceImpl.cleanup(
BitstreamStorageServiceImpl.java:250)
at org.dspace.storage.bitstore.Cleanup.main(Cleanup.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(
ScriptLauncher.java:229)

at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:
81)


Additional DEBUG logs:

2017-08-23 11:28:56,055 DEBUG org.hibernate.internal.util.EntityPrinter @ 
More..
2017-08-23 11:28:56,059 DEBUG org.hibernate.SQL @ delete from public.bitstream 
where uuid=?
2017-08-23 11:28:56,066 DEBUG org.hibernate.SQL @ delete from 
public.dspaceobject 
where uuid=?
2017-08-23 11:28:56,070 ERROR org.hibernate.AssertionFailure @ HHH99: 
an assertion failure occured (this may indicate a bug in Hibernate, but is 
more likely due to unsafe use of the session): org.hibernate.
AssertionFailure: possible nonthreadsafe access to session

 
Java information:

$java -version
java version "1.7.0_131"
OpenJDK Runtime Environment (IcedTea 2.6.9) (7u131-2.6.9-2~deb8u1)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)



Anyone has any idea on how to solve this? Thanks!

-- 
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] Error instalation Dspace 6.1 Oracle

2017-08-23 Thread christian criollo

Hi all

today I installed the version 61. dspace all is ok until that I start the 
service tomcat, when I check l in the logs it shown me this error

2017-08-22 14:40:07,569 FATAL org.dspace.core.Context @ Cannot obtain the 
bean which provides a database connection. Check previous entries in the 
dspace.log to find why the db failed to initialize. The schema validator 
returned: Wrong column type in BIBDIGITALMIGR.METADATAVALUE for column 
text_value. Found: varchar2, expected: clob

thanks for the help

-- 
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] City/Country usage statistics display no data in DSpace 5.5 / XMLUI

2017-08-23 Thread Evelthon Prodromou


Hello all,


I seem to be unable to display usage statistics (views) by city, country in 
Mirage2. I am wondering if this some bug of some sort or if I am missing 
something.  I had a quick look on the SOLR side. Did a countryCode query on 
the statistics core and results are there. Any hint would be appreciated.



Thanks,


Evelthon

-- 
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: Understanding "author confidence" in dspace 5.6

2017-08-23 Thread Scott Renton
One more quick question on this- the user really doesn't want the icon
showing on the full item display page. I know I can amend the CSS to ensure
it doesn't show, but is there a cleaner way just to turn the whole
authority/confidence functionality off- I can't see an obvious way in
dspace.cfg? They would actually be happier with that.

Cheers
Scott



On Tue, Aug 22, 2017 at 10:04 AM, Scott Renton  wrote:

> Thanks Andrea, that gives me a lot more to go on. I see 600s and -1s, and
> inevitably a big migration from v4, where nothing wasn't -1 has just taken
> place. The user will probably be able to tell me a lot more about what to
> go on. Thanks for opening my eyes though- I've been working with the
> metadatavalue table for years, and really never noticed the confidence
> column.
>
> Cheers
> Scott
>
> On Mon, Aug 21, 2017 at 11:01 AM, Bollini Andrea <
> andrea.boll...@4science.it> wrote:
>
>> Hi Scott,
>>
>> I'm pretty sure that the UI hints don't reflect what is stored in the
>> database.
>>
>> You should check the metadatavalue table, I expect that the confidence
>> column is -1 (not used) for the values in the first screenshot as they
>> don't have an authority and it should have some different value for the
>> second screenshot.
>>
>> In the ideal case you should see a 600 value for the second screenshot,
>> this mean that the association between Bray, George and the authority entry
>> has been done by an user in an interactive process (submission, edit item,
>> etc.) versus an automatic association during batch ingest or other
>> automated task.
>>
>> The x in the UI in the second screen should allow you to clean the
>> authority value to "detach" the item from the linked authority entry.
>>
>> There are some explanation of the confidence value in the javadoc here:
>>
>> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/
>> main/java/org/dspace/content/authority/Choices.java#L26
>>
>> and in the original documentation of the authority framework
>>
>> https://wiki.duraspace.org/display/DSPACE/Authority+Control+
>> of+Metadata+Values#AuthorityControlofMetadataValues-Confidence
>>
>> Hope this move you a bit forward in the understanding of the authority
>> framework.
>>
>> Andrea
>>
>> Il 21/08/2017 10:55, Scott Renton ha scritto:
>>
>> Thanks Andrea- fairly central to the post!
>>
>> Updated now- cheers.
>> Scott
>>
>>
>>
>> On Friday, August 18, 2017 at 4:36:34 PM UTC+1, Bollini Andrea wrote:
>>>
>>> Hi Scott,
>>>
>>> I don't see screenshots attached to your email, both the latest one than
>>> the original one.
>>>
>>> Andrea
>>>
>>>
>>>
>>> Il 18/08/2017 16:56, Scott Renton ha scritto:
>>>
>>> Hi folks, just trying again in case no-one saw this first time round.
>>>
>>> Cheers
>>> Scott
>>>
>>> On Wednesday, August 9, 2017 at 1:40:49 PM UTC+1, Scott Renton wrote:

 Hi folks

 Just trying to get to grips with how Author Confidence is controlled in
 dspace 5.

 Attaching two screenshots. One has some authors with no obvious ORCID
 or ID attached to them,

 1 has "thumbs up" icons and the tooltip “This authority value has been
 confirmed as accurate by an interactive user”. Nobody to our knowledge has
 done anything to said users to generate that.

 Meanwhile 2 has a “Cross” icon (for deletion?) and the tooltip
 “Confidence was never recorded for this value”, even though it
 interestingly has a value!

 I can't find much in the way of documentation about it, but I think if
 I knew how the data was behaving to generate these it would be a big help
 for debugging.

 Cheers
 Scott

>>> --
>>> 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...@googlegroups.com.
>>> To post to this group, send email to dspac...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/dspace-tech
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout
>>> 
>>> .
>>>
>>>
>>> --
>>> Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato non
>>> infetto.
>>> Clicca qui per segnalarlo come spam.
>>> 
>>>
>>>
>>> --
>>> Andrea Bollini
>>> Chief Technology and Innovation Officer
>>>
>>> 4Science,  www.4science.it 
>>> 
>>> office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
>>> mobile: +39 333 934 1808 <+39%20333%20934%201808>
>>> skype: a.bollini
>>> linkedin: