Re: [Dspace-tech] Migrate Bitstream Store

2013-09-15 Thread helix84
On Sat, Sep 14, 2013 at 12:33 AM, Carlos Walter Blandon Alvarez
 wrote:
> Can we mount remote Windows Server partition with Samba to connect both 
> servers?

Sure you can. Just make sure the directories have correct permissions
so that Tomcat can read, create and delete files and directories
there.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] How to purge/remove old thumbnails?

2013-09-15 Thread helix84
Hi Alcides,

you could do something like the following SQL query. Please note that I
didn't actually test it, it's just to give you the idea.

SELECT bistream_id, nameFROM bitstreamWHERE name LIKE '%.jpg'AND
rtrim(name, '.jpg') NOT IN (SELECT name FROM bitstream);


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] High CPU usage

2013-09-15 Thread helix84
Hi Elvi,

I can't tell you why your Tomcat is using 100% CPU, but I'm fairly sure
that NullPointerException is not directly related to that.

To find out the problem, you should use a Java profiler and find which
function Tomcat spends most time in.

One other potential source of this could be that you gave Tomcat too little
memory and it spends a lot of time doing garbage collection.

For other tips, also try a google search for "tomcat 100% cpu".


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] (no subject)

2013-09-15 Thread helix84
On Fri, Sep 13, 2013 at 10:27 PM, Ordway, Ryan L
 wrote:
> We are running DSpace 3 for Oregon State's ScholarsArchive. I am looking into 
> the feasibility of running multiple app nodes to help improve performance. Is 
> anyone else already running in a clustered DSpace configuration?

Hi Ryan,

I don't think you can run the DSpace application itself in a clustered
configuration (homogenous clusters).

That, however, doesn't mean that DSpace can't benefit from a
multi-node configuration. There are several parts that can be moved
onto separate nodes:

1) the database server (that might in turn be clustered, but that will
most likely *not* speed things up)
2) Solr server (may be also clustered, this might provide the most
benefit from clustering). Do separate the statistics core (which is
write-heavy) from the search and oai cores; or use ElasticSearch-based
statistics instead.
3) a frontend HTTP server to serve static resources (especially bistreams)
4) use a separate syslog server to store logs

As always, measure the performance benefits of each individual change you make.

If you need additional details or if you're not sure what the benefits
of each point are, feel free to ask.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] LDAP auto-registration -- what am I missing?

2013-09-15 Thread helix84
On Fri, Sep 13, 2013 at 9:56 PM, Andrew Reid  wrote:
>   The fact that the authentication succeeds makes me think I'm
> not too far off.  I don't think I've typo'd any of the field
> names on either side.  Is there some subtlety in the permissions
> that I'm missing?  Does this work for other people?

Hi Andrew,

yes, that sounds like a permissions "problem" on the side of your LDAP
server. I'd say that once your user successfully authenticates, he's
not allowed to read his own attributes (name, surname, ...) and thus
DSpace stores null.

Do try to log in using some LDAP client (e.g. ldapsearch or a GUI
client like Apache Directory Studio) using the same user's credentials
and see if you can read the values of his attributes.

>   I'm not doing heirarchical authentication, should I be?

If you can verify that the problem is what I say it is, you can fix it
on the LDAP server side by giving all users permission to read their
attributes (at least those that DSpace needs).

While you could have one special LDAP account that has read
permissions to all the other accounts and use it to retrieve the
attribute values, this is not how the code in DSpace currently works.
Even if you enable hierarchical auth (which you otherwise don't need -
because the authentication itself works for you), DSpace will still
use the actual user's account to retrieve its attributes, not the
search.user account.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Question about mod_jk, x-forwarded-for and IP-based authentication

2013-09-15 Thread helix84
Hi Elvi,

you're right that you need to configure your Apache to send the
X-Forwarded-For headers. Assuming that works on the Apache side, there
is one more modification you need to make on the DSpace side to make
DSpace look at the IP address in X-Forwarded-For rather than the
actual IP address (which in your case is always Apache's IP). You need
to set this in dspace.cfg:

useProxies = true

That should make not only IPAuthentication recognize the IP from
X-Forwarded-For, but also other parts of DSpace such as statistics.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] DSpace 3.2 index-init errors

2013-09-15 Thread helix84
On Thu, Sep 12, 2013 at 11:52 PM, damanzano  wrote:
> 2013-09-12 09:40:21,897 DEBUG org.dspace.storage.rdbms.DatabaseManager @
> Running query "SELECT bitstream.*,bundle2bitstream.bitstream_order FROM
> bitstream, bundle2bitstream WHERE bundle2bitstream.bitstream_
> id=bitstream.bitstream_id AND bundle2bitstream.bundle_id= ? ORDER BY
> sequence_is ASC"  with parameters: 178
> 2013-09-12 09:40:21,898 ERROR org.dspace.search.DSIndexer @ ORA-00904:
> "SEQUENCE_IS": invalid identifier
>
> java.sql.SQLSyntaxErrorException: ORA-00904: "SEQUENCE_IS": invalid
> identifier


Hi Damanzano,

you have a typo in your source code. On this line you somehow changed
sequence_id to sequence_is. You must change it back, rebuild, redeploy
and restart DSpace.

https://github.com/DSpace/DSpace/blob/dspace-3.2/dspace-api/src/main/java/org/dspace/content/Bundle.java#L78


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Apache/Tomcat/DSpace munging jquery files

2013-09-15 Thread helix84
Hi Owen,

try taking a look at the xmlui.theme.enableConcatenation and
xmlui.theme.enableMinification properties in dspace.cfg. Turning them
off might help (that may require some edits to your XMLUI theme) as a
workaround. However, if you do find the actual source of the problem,
please report a bug in our Jira.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette