Re: [dspace-tech] Re: Change password of existing user on terminal or backend
On Mon, Aug 21, 2023 at 02:59:08PM -0700, DSpace Technical Support wrote: > Hi Lewatle, > > It appears to me that the "--modify" option for that "./dspace user" > command doesn't support "--password". See the docs > here: > https://wiki.lyrasis.org/display/DSDOC7x/Managing+User+Accounts#ManagingUserAccounts-Tomodifyanaccount: > > I think the only way to modify a password via the backend would likely be > via the REST API. Here's the endpoint where you could do > so: https://github.com/DSpace/RestContract/blob/main/epersons.md#add > > Tim > > On Monday, August 21, 2023 at 7:22:46 AM UTC-5 joem...@gmail.com wrote: > > > Dear All, > > > > I would like to change or update password for user over command mode, I > > have tried this line of code from bin directory, ./dspace user --modify -m > > e...@example.com --password 202308000 please update where possible. 'dspace user' has no '--password' option. 'bin/dspace user --modify --newPassword should prompt for a new password: mwood@mhw ~/dspaces/earchive7.4 $ bin/dspace user -M -h usage: user --modify [options] -c,--requireCertificateif 'true', an X.509 certificate will be required for login -C,--canLogIn 'true' if the user can log in -g,--givenname the person's actual first or personal name -h,--help explain --modify options -i,--newEmail new email address -I,--newNetid new network ID -l,--language the person's preferred language -M,--modify modify an EPerson -m,--email the user's email address, empty for none -n,--netid network ID associated with the person, empty for none -s,--surname the person's actual last or family name -t,--telephone telephone number, empty for none -w,--newPassword prompt for new password If this does not work, please report it as a bug. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZOTAhgX5k_FZQTen%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Request assistance for Shibboleth integration with NGINX or DSpace integration with Apache
On Mon, Aug 21, 2023 at 06:18:58PM +0530, Namrata Dobariya wrote: > Please assist us in integrating Shibboleth with NGINX and DSapce with > Apache servers. We moved our old repository from DSpace 6.3 to the new > DSpace 7. When DSpace 7 was installed, it was integrated with the NGINX > server, as it supports the new Angular-based UI interface. > > Shibboleth, on the other hand, was integrated with the Apache server with > DSpace 6.3. Hence, it has been stuck at the last stage of the shibboleth > integration in DSpace 7 because both of them use different servers. > > We would greatly appreciate your guidance and assistance in resolving this > matter. Alternatively, if you have relevant manuals or resources detailing > the integration of Shibboleth with NGINX or DSpace with Apache, kindly > provide them to us. I have no useful experience with Nginx, but I find that asking Google for "shibboleth nginx" returned many promising hits. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZOO5dfgfekfYrIS0%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: pm2 restarts
I'm actually relying on PM2 restarts to help manage seemingly limitless memory growth. Front end processes were driving us hard into swap until the OOM killer would harvest Tomcat, then a couple of minutes later Monit would start it again. The memory limit restart seemed to be ineffective, so I added an hourly Cron restart that seems to keep memory demand in check. It's rather crude, though. I think it isn't waiting for any sort of "quiet point", as I originally supposed it might. I'd appreciate any experience with the interplay of the cache settings and PM2 process memory limits. Regardless of that, I think that dspace-angular needs some graceful-shutdown code to close the HTTP listener neatly at the end of a response. I'm looking into doing this with 'http-terminator'. It should handle automatic restarts by PM2, manual restarts by the sysadmin for whatever reason, and normal system shutdown. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZOO4ablAJXJ_VbFA%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Issue with Two Dspace servers with common NAS for bitstore (assetstore)
On Sun, Aug 06, 2023 at 09:14:50PM -0700, Ravi Bhat wrote: > I have installed Solr cloud successfully but I am not able to understand > where to copy Dspace Solr files. Tried to copy them to the data location as > well as to cloud/solr location but Solr doesn't recognize them. Any idea > where to place Dspace Solr files in Solr cloud scenario? SolrCloud works differently. You cannot simply copy an empty core into a Cloud instance; collection configurations are installed in Zookeeper, which will distribute them to all of its dependent Solr instances. I would start reading at https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html#collections-and-cores and get some practice with a non-production cloud first. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZOODmvNNwK0NViuQ%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] pm2 start dspace-ui.json from root user?
On Fri, Aug 11, 2023 at 03:02:42AM -0700, Karol wrote: > I wonder if it is safe to run angular from root? Shouldn't a dedicated user > be created like in apache2 www-data? Does anyone have any good practices on > how to run angular safely? Or maybe running pm2 from root is ok? I always prefer to run a service in its own account, unless it *requires* root. I created a user 'scholarworks' (since our repository is named "ScholarWorks") and configured the PM2 startup script to run PM2 as that user. Details will depend on your OS -- here we use Gentoo Linux, which uses OpenRC for startup, so I have a configuration script for this in '/etc/conf.d/'. One minor unpleasant result is that, if I want to interact with that PM2 instance, I have to 'su' to its account. Not a big deal, just an annoyance that I have to remember. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZNZD1Rj-NRc9k3_6%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Dspace 7 Email configuration - Not showing subject
On Mon, Aug 07, 2023 at 08:10:38AM -0700, Olayiwola Lawal wrote: > I am currently facing same issue having upgraded to 7.6 > > I believe it's a bug discussed https://github.com/DSpace/DSpace/issues/8921 > and > we may have to wait till the next update for fix. This was fixed for 7_x in https://github.com/DSpace/DSpace/pull/8952 and will be in 7.6.1 whenever that drops. You could merge it into your local version now. > On Monday, 7 August 2023 at 16:03:24 UTC+1 Agustín Alfieri wrote: > > > Hello, > > > > I'm trying to configure the different emails sent automatically by the > > system but I'm unable to get the subject of the email working. > > > > This happens with all the emails. For example, here's the code for > > *[dspace]/config/emails/register*: > > > > # E-mail sent to DSpace users when they register for an account > > ## > > ## Parameters: {0} is expanded to a special registration URL > > ## > > ## See org.dspace.core.Email for information on the format of this file. > > ## > > *#set($subject = "This will be the Subject: of the message")* > > #set($phone = ${config.get('mail.message.helpdesk.telephone')}) > > Para completar el proceso de registro de su cuenta, por favor haga clic en > > el siguiente enlace: > > ${params[0]} > > RepHipUNR - Repositorio Hipermedial UNR - http://rephip.unr.edu.ar > > > > > > And here's the email. As you can see, there's no subject. > > [image: email.png] > > > > Is this a bug or am I setting something wrong? > > > > Thanks, > > Agustín. > > > > > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/682fd246-52fe-42c4-98f0-3d4001f2dd6an%40googlegroups.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZNET7CdgVLSokoSR%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Issue with Two Dspace servers with common NAS for bitstore (assetstore)
On Sun, Jul 30, 2023 at 10:32:43AM -0700, Ravi Bhat wrote: > Hi Mark, > Thanks for the suggestion but still the same problem. > > I have tried below > 1. Single solr service but still same problem, but I need solr also in HA > mode Again, not something I have attempted. If you need HA Solr then read up on "Solr Cloud". Your cores become "collections" replicated across several Solr instances. (This is orthogonal to "sharding": each core in a collection can hold replicas of all records.) When you have this working, I'm sure we would appreciate hearing the details and your experience. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZMvVJ8e2h446AAX1%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Issue with Two Dspace servers with common NAS for bitstore (assetstore)
On Tue, Jul 25, 2023 at 10:14:10PM +0530, Ravi Konila wrote: > I have successfully installed two Dspace 7.6 servers with a common NAS > storage connected to both the servers used for bitstore/assetstore. > Both the servers works fine individually with the shared storage. But > items/community/collection created in one is not visible in other one. > Please note that, both the servers use same Postgresql 15 server/db. > > The Dspace configurations are identical (dspace and dspace-ui). Both can > communicate successfully to common Dspace database. > > Could anyone please clarify, if someone has done & configured load balancing > or HA between two Dspace servers using shared storage (NAS). > Please guide me to take this forward. I have not attempted this. But I think that the two instances must also share a single Solr instance. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZL_-Up8nbPO-9J_1%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Collection number and name mapping
On Tue, Jul 25, 2023 at 12:27:21PM -0400, Benneth Obilor wrote: > Thank you Mark. Don't thank me too soon: I forgot to filter out other types of objects. Try this instead: SELECT v.dspace_object_id AS "Collection number", v.text_value AS "Collection Name" FROM metadatavalue AS v JOIN metadatafieldregistry AS f USING(metadata_field_id) JOIN metadataschemaregistry AS s USING(metadata_schema_id) JOIN collection AS c ON c.uuid = v.dspace_object_id WHERE s.short_id = 'dc' AND f.element = 'title' AND f.qualifier IS NULL; > On Tue, Jul 25, 2023 at 11:49 AM Mark H. Wood wrote: > > > On Tue, Jul 25, 2023 at 05:48:38AM -0700, Benneth wrote: > > > Please which table in dspace postgreqsl can i find the mapping of all > > > collection names and their numbers. > > > > > > ie Collection number Collection Name > > > - - > > >- - > > >- - > > > > Collection names are metadata and are stored in the 'metadatavalue' > > table. > > > > First, you need to find the 'metadata_field_id' for the field 'dc.title' > > in your repository. (It can differ between repo.s.) I've bundled it > > all together: > > > > SELECT v.dspace_object_id AS "Collection number", > > v.text_value AS "Collection Name" > > FROM metadatavalue AS v > >JOIN metadatafieldregistry AS f USING(metadata_field_id) > >JOIN metadataschemaregistry AS s USING(metadata_schema_id) > > WHERE s.short_id = 'dc' > >AND f.element = 'title' AND f.qualifier IS NULL; > > > > -- > > Mark H. Wood > > Lead Technology Analyst > > > > University Library > > Indiana University - Purdue University Indianapolis > > 755 W. Michigan Street > > Indianapolis, IN 46202 > > 317-274-0749 > > www.ulib.iupui.edu > > > > -- > > All messages to this mailing list should adhere to the Code of Conduct: > > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > > --- > > 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 view this discussion on the web visit > > https://groups.google.com/d/msgid/dspace-tech/ZL_vBrmKUfFptZtz%40IUPUI.Edu > > . > > > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/CAEA0NYnW4OtstOq7FRwjA02B9tX-_gJyAmU1Zj1EFLuch-BgPQ%40mail.gmail.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZL_7g4QcpcrNu3C5%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Collection number and name mapping
On Tue, Jul 25, 2023 at 05:48:38AM -0700, Benneth wrote: > Please which table in dspace postgreqsl can i find the mapping of all > collection names and their numbers. > > ie Collection number Collection Name > - - >- - >- - Collection names are metadata and are stored in the 'metadatavalue' table. First, you need to find the 'metadata_field_id' for the field 'dc.title' in your repository. (It can differ between repo.s.) I've bundled it all together: SELECT v.dspace_object_id AS "Collection number", v.text_value AS "Collection Name" FROM metadatavalue AS v JOIN metadatafieldregistry AS f USING(metadata_field_id) JOIN metadataschemaregistry AS s USING(metadata_schema_id) WHERE s.short_id = 'dc' AND f.element = 'title' AND f.qualifier IS NULL; -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZL_vBrmKUfFptZtz%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: DSpace collection export maximum size
On Mon, Jul 24, 2023 at 10:55:03PM -0400, Benneth Obilor wrote: > Thanks Tim. your inputs have been very useful. Please, when I try executing > any CLI in dspace, I. get an error message " > > command not found". > > > prd bin]$ dspace -h > > -bash: dspace: command not found Unless that directory (bin) is part of your shell's PATH, it won't be searched for commands. Try './dspace -h'. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZL_pGT5JD50Xeayi%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] yarn merge-i18n doesn't merge *deletions* from en.json5 file?
On Tue, Jul 11, 2023 at 04:46:49PM -0700, Amy Ball Wicklund wrote: > Using the theme override approach, if I remove some of my custom text from > my theme's en.json5 file and run the yarn merge-i18n command, the deletion > doesn't propagate to the dist directory. New or changed custom text gets > merged, but it seems the only way to undo custom text and revert back to > the default text is to make the change manually in my theme AND in the > production/dist file. > > Is this behavior intentional, by design? I think it's an unfortunate limitation of the current approach to customizing message texts. Where would the merge script get the original text, once it's been replaced in the stock catalog? I would like to replace the current approach with this: both the *unaltered* stock catalogs and the custom catalogs are built into the frontend, and localization code would consult an ordered list of catalogs until the key is found. I haven't yet had time to work out how to do this using the available facilities. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZK6ePpd1naOjCbAl%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Shibboleth on DSpace 7.2 won't work for unknown reasons
On Fri, Jun 30, 2023 at 01:11:28AM -0700, Matthias Letsch wrote: > Thank you for your reply. > > I have the OIDs delivered by the IDP which are the following: > > urn:oid:1.3.6.1.4.1.5923.1.1.1.6 > urn:oid:2.5.4.42 > urn:oid:2.5.4.4 > urn:oid:0.9.2342.19200300.100.1.3 > urn:oid:2.16.840.1.113730.3.1.241 > > So this is what I put into attribute-map.xml: > > > > > > > > And this is on the other side in > [dspace-backend]/config/modules/authentication-shibboleth.cfg: > > authentication-shibboleth.netid-header = SHIB-NETID > authentication-shibboleth.email-header = SHIB-MAIL > (...) > authentication-shibboleth.firstname-header = SHIB-GIVENNAME > authentication-shibboleth.lastname-header = SHIB-SURNAME > > If I have the attributePrefix="_AJP" in shibboleth2.xml, nothing at all > arrives at DSpace from the login attempt. (403) That should be "AJP_" not "_AJP". See https://httpd.apache.org/docs/2.4/mod/mod_proxy_ajp.html#env > If I delete it, at least there is a 401 "authentication failed" and > dspace.log throws the error mentioned above. > > I added 'allowedRequestAttributesPattern='SHIB-.*' to the AJP connector in > tomcat9/conf/server.xml > > The inherited result is still the same. To make matters worse, now this > morning after these minimal changes in the Shib XML files and in > server.xml, for some reason the following came up when I tried to reload > the page: > > Service Unavailable > > The server is temporarily unable to service your request due to maintenance > downtime or capacity problems. Please try again later. > > Apache/2.4.38 (Debian) Server at ... Port 443 > > After resetting to the state before these changes the service runs normally > again (still without Shibboleth of course).Is it possible that it is > somehow due to the module? I don't know exactly, because our DSpace was > originally installed by an external company, but I guess that at the moment > only mod_proxy is used for the communication between Apache and Tomcat. > > Kind regards, > Matthias > Mark H. Wood schrieb am Donnerstag, 29. Juni 2023 um 15:57:26 UTC+2: > > > On Thu, Jun 29, 2023 at 03:10:32AM -0700, Matthias Letsch wrote: > > > This has at least resulted in the 403 becoming a 401 and DSpace noticing > > > something about the login attempt, which I consider positive progress. > > > > > > However, DSpace now complains in the logs that it cannot find the > > required > > > attributes: > > > > > > 2023-06-29 11:58:35,693 ERROR unknown unknown > > > org.dspace.authenticate.ShibAuthentication @ Shibboleth authentication > > was > > > not able to find a NetId, Email, or Tomcat Remote user for which to > > > indentify a user from. > > > 2023-06-29 11:58:35,707 ERROR unknown unknown > > > org.dspace.authenticate.ShibAuthentication @ Unable to register new > > eperson > > > because we are unable to find an email address along with first and last > > > name for the user. > > > NetId Header: 'SHIB-NETID'='null' (Optional) > > > Email Header: 'SHIB-MAIL'='null' > > > First Name Header: 'SHIB-GIVENNAME'='null' > > > Last Name Header: 'SHIB-SURNAME'='null' > > > 2023-06-29 11:58:35,709 INFO unknown unknown > > > org.dspace.app.rest.security.EPersonRestAuthenticationProvider @ > > > anonymous::failed_login:email=null, result=4 > > > 2023-06-29 11:58:35,719 ERROR unknown unknown > > > org.dspace.app.rest.security.StatelessLoginFilter @ Authentication > > failed > > > (status:401) > > > org.springframework.security.authentication.BadCredentialsException: > > Login > > > failed > > > > > > So I guess I need to modify the attribute-map.xml accordingly to match > > the > > > expected attributes under > > > [dspace]/config/modules/authentication-shibboleth.cfg. > > > > > > The documentation at > > > > > https://wiki.lyrasis.org/display/DSDOC7x/Authentication+Plugins#AuthenticationPlugins-ShibbolethAuthentication > > > > > provides a template for attribute-map with the attributes that seem to > > > match at first glance. > > > > > > But unfortunately that alone does not change anything for us. Do you > > > possibly know more about this? > > > > You need to know the OIDs used by your Shibboleth IDP to label the > > attributes that you want. These may vary from site to site. > > attribute-map.xml maps them to names SHIB-NETID and the rest. If you
Re: [dspace-tech] Re: Shibboleth on DSpace 7.2 won't work for unknown reasons
On Thu, Jun 29, 2023 at 03:10:32AM -0700, Matthias Letsch wrote: > This has at least resulted in the 403 becoming a 401 and DSpace noticing > something about the login attempt, which I consider positive progress. > > However, DSpace now complains in the logs that it cannot find the required > attributes: > > 2023-06-29 11:58:35,693 ERROR unknown unknown > org.dspace.authenticate.ShibAuthentication @ Shibboleth authentication was > not able to find a NetId, Email, or Tomcat Remote user for which to > indentify a user from. > 2023-06-29 11:58:35,707 ERROR unknown unknown > org.dspace.authenticate.ShibAuthentication @ Unable to register new eperson > because we are unable to find an email address along with first and last > name for the user. > NetId Header: 'SHIB-NETID'='null' (Optional) > Email Header: 'SHIB-MAIL'='null' > First Name Header: 'SHIB-GIVENNAME'='null' > Last Name Header: 'SHIB-SURNAME'='null' > 2023-06-29 11:58:35,709 INFO unknown unknown > org.dspace.app.rest.security.EPersonRestAuthenticationProvider @ > anonymous::failed_login:email=null, result=4 > 2023-06-29 11:58:35,719 ERROR unknown unknown > org.dspace.app.rest.security.StatelessLoginFilter @ Authentication failed > (status:401) > org.springframework.security.authentication.BadCredentialsException: Login > failed > > So I guess I need to modify the attribute-map.xml accordingly to match the > expected attributes under > [dspace]/config/modules/authentication-shibboleth.cfg. > > The documentation at > https://wiki.lyrasis.org/display/DSDOC7x/Authentication+Plugins#AuthenticationPlugins-ShibbolethAuthentication > > provides a template for attribute-map with the attributes that seem to > match at first glance. > > But unfortunately that alone does not change anything for us. Do you > possibly know more about this? You need to know the OIDs used by your Shibboleth IDP to label the attributes that you want. These may vary from site to site. attribute-map.xml maps them to names SHIB-NETID and the rest. If you don't give the right OIDs, nothing will be mapped into the request. You also need to know (or set) the request attributes that DSpace expects. That's the other side of the mapping. Here we are using attributePrefix='AJP_' and it works. We do not set ShibUseHeaders. Tomcat will strip the prefix and pass the attributes through in the Request. But Tomcat must be configured to accept more than the default set of attributes: the AJP connector must have 'allowedRequestAttributesPattern='SHIB-.*' to let them through. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZJ2Nwy4fJH_UE1jD%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Dspace 7 angular on production
On Wed, Jun 28, 2023 at 01:54:31AM -0700, Adrien Quentin wrote: > I would like to know if the dspace angular UI could be served by simple > http server ( as nginx or apache http). As the angular is compiled, why > node is needed ? The TypeScript code is "compiled" to Javascript. It needs a Javascript engine to execute. Node wraps some useful features around the V8 Javascript engine. Yes, for a browser session the code is all sent to the browser and executes there. But to support search engines, dspace-angular also needs to be able to render pages itself. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZJw4JXZchVbTu-1Q%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] If I can use Dspace to run a senarionof sharing data sets.
On Sun, Jun 25, 2023 at 04:50:21AM -0700, Alireza Mosavi Jarrahi wrote: > I am wondering if Dspace might be the right tool for my purposes. Can > someone tell me if the following scenario is supported by Dsapce: > > Person A has authored a data set, which he/she cannot easily disclose. > Person A uploads the data set to Dspace, but as a private data set that > others can only see the meta-data about. I think this can be done by setting public access on the "Item" (metadata and a group of files) and no access on the attached files ("Bitstream"s). > Now Person B is interested in working with the data. He/she contacts Person > A via a web-form in Dspace, requesting data access. Person A can now decide > whether or not Person B should get access to the data set. If approved, > Person B can access the full data on Dspace for a defined period. Dspace > logs the entire interaction between the two Persons. https://wiki.lyrasis.org/display/DSDOC7x/Request+a+Copy This works by emailing a copy to the requester (if approved). I do not know what is logged by the copy request code. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZJmZLyJTFUQBjFCE%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Problem with Internationalization (i18n)
On Fri, Jun 16, 2023 at 12:24:18AM -0700, Maksim Donchenko wrote: > Hi to all. I added a new translation language to /src/assets/i18n using > this guide: > https://wiki.lyrasis.org/pages/viewpage.action?pageId=117735441. Everything > was localized well, except for the Cookie notification. I have attached a > screenshot of the problem below. Maybe someone has encountered something > similar and can help? I use Dspace 7.4. There is another layer of mapping for cookie messages. The keys that Klaro should be looking up are named in 'src/app/shared/cookies/klaro-configuration.ts'. The first thing I would check is whether this file's mapping corresponds to the keys in your 'uk' message catalog. However: this is the second time today that I've seen a message from someone having trouble specifically with translating cookie messages. There may be a deeper problem. And all that I really know about Klaro is that it seems to take care of cookie management. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZIxXTmmCIaamzHZm%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: DSpace 7.5 Problem with the cleanup operation
On Mon, Jun 12, 2023 at 10:58:26PM -0700, Technologiczny Informator wrote: > I reported this problem at the end of December last year, but no one > responded. That's why I'm writing again, because the problem has not > disappeared after updating to DSpace 7.5. > Not only that ... I had the opportunity to update to version 7.5 on a > completely different database than mine. Her assetstore folder is over 170 > GB. The owner of this DSpace wanted to split the database into two separate > instances. This is what happened and in each of them a large number of > items had to be removed (over 24,000 in one of them). After this operation, > I wanted to clean the database with the cleanup option, but the effect so > far - I only post the error message this time:: > > Caused by: org.postgresql.util.PSQLException: ERROR: update or delete on > table "bitstream" violates foreign key constraint > "bundle_primary_bitstream_id_fkey" on table "bundle" > Detail: Key (uuid)=(02caead4-de93-4011-8105-0e6921f286d8) is still > referenced from table "bundle". I get those sometimes. Here are the notes that I made for myself about manually resolving the situation: DSpace 6+: \set a BITSTREAM-UUID SELECT uuid AS b FROM bundle WHERE primary_bitstream_id = :'a'; \gset SELECT * FROM bundle2bitstream WHERE bundle_id = :'b'; -- Is bitstream A in bundle B? Yes: problem? SELECT deleted FROM bitstream WHERE uuid = :'a'; -- Deleted? No: problem? UPDATE bundle SET primary_bitstream_id = null WHERE uuid = :'b'; where BITSTREAM-UUID is replaced by the actual UUID. I type the first '\set' in by hand and paste the UUID; after that I just copy/paste each command and watch for errors, including those noted in the comments. This procedure isn't *quite* right yet to be scripted, but it works for me. I sometimes find that there are multiple bitstreams with this problem. Unfortunately, the cleanup tool exits after the first one (aborting its single transaction, alas!), so sometimes I need to run cleanup several times, fixing one bitstream at a time. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZIhkFddYd80nYY-i%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Edit News-Dspace 7.5
On Thu, Jun 08, 2023 at 12:38:05AM -0700, anjufe...@gmail.com wrote: > Hi all > How to edit the News in Dspace 7.5 News is hard-coded in 'src/app/home-page/home-news/home-news.component.html'. Edit that template and re-build. Yes, that is unpleasant. How to do it better is under discussion. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZIHARqLiyjTgFYYk%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Migration Help from 6.3 to 7.5
On Thu, Jun 01, 2023 at 10:40:44PM -0300, Michel Montenegro wrote: > Where can I find documentation that shows how to migrate from 6.3 to 7.5 or > how we can migrate? > > All documentation I found was out of date or apparently incomplete. The official upgrade documentation is at: https://wiki.lyrasis.org/display/DSDOC7x/Upgrading+DSpace If that is incorrect or incomplete, please tell us about the specific problem(s) you found. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZHn7eYw0me8tLAx1%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 7.5 - SAFBuilder is not importing the data
On Wed, May 31, 2023 at 04:15:49PM +0530, Bhavesh Patel wrote: > I would like to inform you that we are unable to import the bulk data using > SAFBuilder utility in the latest version of DSpace 7.5. Does anyone face > this kind of issue in the latest version 7.5 ? We don't know what kind of issue this is, until you tell us what happens. Did SAFBuilder fail? what were the messages? Did import of the SAF bundle fail? what were the messages? what does the log say? -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZHdbuaRplk8XAknC%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: dspace-7.5. angular-ui gives no response
On Tue, May 23, 2023 at 12:06:07AM -0700, Christiane Baier wrote: > Before I posted my problem here I tried everything as as outlined in > https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-FrontendInstallation > > It is not working without pm2. > > */dspace-ui-deploy*$ node ./dist/server/main.js > > Building *production* app config > > Overriding app config with /dspace-ui-deploy/config/config.yml > > Overriding app config with /dspace-ui-deploy/config/config.prod.yml > > Angular *config.json* file generated correctly at > */dspace-ui-deploy/dist/browser/assets/config.json* > > > Environment extended with app config > > > dspace-angular > > Version: 7.5.0 > > Environment: Production > > > [HPM] Proxy created: / -> https:///server/sitemaps > > [08:20:25 GMT+0200 (Mitteleuropäische Sommerzeit)] Listening at > http://localhost:4000/ > > If I do: > > wget -v http://localhost:4000 > > --2023-05-23 08:33:09-- http://localhost:4000/ > > Auflösen des Hostnamens localhost (localhost) … ::1, 127.0.0.1 > > Verbindungsaufbau zu localhost (localhost)|::1|:4000 … fehlgeschlagen: > Verbindungsaufbau abgelehnt. > > Verbindungsaufbau zu localhost (localhost)|127.0.0.1|:4000 … verbunden. > > HTTP-Anforderung gesendet, auf Antwort wird gewartet … > > Then nothing happens. And I mean nothing. I can see the connection in > netstat > tcp0 0 localhost:4000 localhost:46794 > VERBUNDEN dspace 784425 44998/node > > And I don't get an answer where I started wget. And I am patient. After > more then 15 minutes I get > > GET / - - ms - - > on the console where I started node > an other 15 minutes: > > Lesefehler (Die Wartezeit für die Verbindung ist abgelaufen) beim Vorspann > (header). > > Erneuter Versuch. The problem may be due to the single-threaded nature of Node in combination with Apache HTTPD default proxy behavior. I think that HTTPD will try to open multiple connections to Node and keep them open, but Node serves them serially. So HTTPD has several connections open and tries to use them, but Node is waiting for the first connection to be torn down before serving another one. This is a proxy configuration that I have for my development environment, which runs an Apache proxy in front of Node without PM2: SetEnv proxy-nokeepalive 1 SetEnv proxy-initial-not-pooled 1 ProxyPassMatch "^/(scholarworks7.5/ws)$" \ ws://localhost:4075/scholarworks7.5/$1 ProxyPass "/scholarworks7.5/" \ "http://localhost:4075/scholarworks7.5/; \ disablereuse=On \ max=1 ProxyPassReverse "/scholarworks7.5/" \ "http://localhost:4075/scholarworks7.5/; Executive summary: open one connection to Node at a time and tear it down after use. I have Node running on port 4075 because I sometimes have multiple versions running concurrently and need to spread them across different ports. I may not need *all* of those non-default settings, but for now I don't want to experiment further with a working configuration. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZGzXsDs8tijSo1kD%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] [DSpace Angular] Adding new modules & routes to RouterModule from a theme
On Thu, Apr 13, 2023 at 01:58:51PM -0700, Abel Gómez wrote: > I've been working on a theme and customization for DSpace 7, and I've > stumbled upon a problem I'm not really sure whether it's solvable or not. > > I'd like to add some additional routes and modules to serve some additional > sections in the DSpace site (mostly static HTML) but keeping the look and > feel of my custom theme, and keeping the breadcrumbs and navigation > features if possible. After inspecting the code, I've figured out the way > to do it by modifying the "base app" (e.g., AppRoutingModule, and adding > the needed modules under src/app/...), but I'd like to keep my > modifications as modular and isolated as possible. > > Is there any way to achieve the same by modifying only my custom theme in > "src/themes/mytheme", and without changing the "base code" of DSpace > angular in "src/app"? I haven't found a way to completely eliminate hacks to the stock routing module, but I did manage a static "About Us" page that exists within our local theme and requires only a reference in 'src/app/app-routing.module.ts': src/app/app-routing.module.ts index d426b041c..2d5b27797 100644 @@ -41,9 +41,12 @@ import { ServerCheckGuard } from './core/server-check/server-check.guard'; import { MenuResolver } from './menu.resolver'; import { ThemedPageErrorComponent } from './page-error/themed-page-error.component'; +import { AboutComponent } from '../themes/scholarworks/app/static/about/about-page.component'; + @NgModule({ imports: [ RouterModule.forRoot([ + { path: 'about', component: AboutComponent }, { path: INTERNAL_SERVER_ERROR, component: ThemedPageInternalServerErrorComponent }, { path: ERROR_PAGE , component: ThemedPageErrorComponent }, { AboutComponent consists of an empty class, an empty stylesheet, and a single 'div' providing a basic description of the repo. plus links to further reading and a 'mailto:'. The close coupling between stock and theme led me to leave this commit message: Add a link and an About page. This required adding the route in the main routing module, pointing into our theme. That is a nasty hack and should be fixed when I find out how to put the route into our theme's module. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZDlTGrfjaT777yLP%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Set up Dspace 7.2
On Wed, Apr 12, 2023 at 08:19:16AM -0700, LSBU wrote: > Hello, I would like to know some parameters for my Dspace 7.2: That is quite outdated now. You should consider upgrading to 7.5 at your earliest convenience. > 1- How to create a user group on the terminal ? That is not implemented. > 2- how to add a user on the terminal ? 'bin/dspace user --add --help' will show you the options. 'bin/dspace user --help' will show you other things you can do with user accounts from the command line. The 'user' command is documented at https://wiki.lyrasis.org/display/DSDOC7x/Managing+User+Accounts The command line tools are summarized at https://wiki.lyrasis.org/display/DSDOC7x/Command+Line+Operations > 3- how to import users from the terminal ? You can make a script of 'add' commands and run it with 'bin/dspace read'. > 4- what are the services to start after restarting the server to make > Dspace functional ? You will need your Servlet container (usually Tomcat), Solr, and the DBMS (usually PostgreSQL). If you have registered with the Handle Service then you will also want to run the local Handle resolver. > 5- how to automate these services so that they start automatically at > server startup ? That depends on your operating system. What are you running? > 6- how to improve response times if we perform a search from the portal.5 ? I don't understand "portal.5". > 7- What are the data and configuration files to backup so that in case of a > problem, we can restore our database? You need to back up the assetstore directories and a dump of the database. The DBMS has tools to dump and restore databases, and this is how you should back them up. It is nearly impossible to get a consistent backup of most database products' content by saving their raw files. The assetstore can be backed up as-is. You will also want to back up 'config/' and its subdirectories. You should also consider https://wiki.lyrasis.org/display/DSDOC7x/AIP+Backup+and+Restore -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZDfs9i1Q6l1o%2BIMh%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Installation Dspace 7.5
On Wed, Apr 12, 2023 at 07:05:20AM -0700, LSBU wrote: > Hello, I recently discovered DSpace and would like to have the installation > manual for DSpace 7.5 on Ubuntu 22 https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZDa9tQX3kOaquSHB%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Disk partitioning for DSpace 7
On Tue, Apr 11, 2023 at 08:56:07AM -0700, Andrew K wrote: > What is the optimum disk partitioning for DSpace 7? "Optimum" will be strongly dependent on (a) your OS and (b) how much you are storing in your repository. > I use a VDS, so the space is important. The aim is to have the system > partition 20-30GB and keep everything else on another partition, including > logs (they are very important AFAIK).. That seems sensible. I don't think anyone is going to have a "best way" for you, but here's what I've done. o I like to keep the Solr cores and the database each on its own volume. That way /var can fill up with log files and not stop DSpace. (These days, the DBMS is on a separate host, and I'd like to move Solr to yet another since they tend to become busy at the same time.) o I invented a configuration parameter 'dspace.var' and use it throughout the configuration, wherever DSpace is configured to store volatile files such as exported materials and the assetstore. Code and configuration are installed on the /opt volume and the rest is mounted on /var/lib/dspace. This last is again a separate volume. I've installed Monit to keep Tomcat, Solr and PostgreSQL running, monitor availability, restart anything that gets wedged, and email me if there's anything it can't handle. I also have the critical storage volumes monitored in case one comes close to filling up. I strongly recommend using a logical volume layer on top of a very simple physical partitioning scheme, so that you can add physical volumes online and portion them out as needed when logical volumes fill up. Usually I'll set up physical partitions "/" and "/boot", and make all the rest a single LVM PV partition, leaving some uncommitted storage in case I need to expand an LV more quickly than our corporate virtual-machine infrastructure can respond to my request. If I need to add physical storage, I can join it to the existing volume group, add slices to LVs as needed, and expand the LVs' filesystems into the new extents, all without interrupting service. (You don't need to understand *all* of that on Day 1, but getting the basics done at installation will make life so much nicer as the repository grows.) I need to say that usually on a new host I'll take a wild guess about how much storage will be needed for each of these various functions, then adjust when I see how the system is really operating. Some of my guesses have been quite over-generous. It's much harder to shrink a volume than to expand one, even on LVM. These days I'd probably request just as much physical storage, but leave more of it uncommitted and watch growth more closely. In the end, only a running system can tell you *precisely* what it needs to function adequately and reliably. Provide yourself with good system management tools and the ability to readily add capacity if you need it. Always give your systems a thorough inspection for capacity as annual budget time approaches. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZDamTro5sdb7pxf6%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Edit home page of DSpace Angular
On Tue, Apr 11, 2023 at 04:30:36PM +0530, SFIT Library wrote: > How to edit the home page of DSpace Angular? I see the following message on > my home page: > DSpace 7 > > DSpace is the world leading open source repository platform that enables > organisations to: > >- easily ingest documents, audio, video, datasets and their >corresponding Dublin Core metadata >- open up this content to local and global audiences, thanks to the >OAI-PMH interface and Google Scholar optimizations >- issue permanent urls and trustworthy identifiers, including optional >integrations with handle.net and DataCite DOI > > Join an international community of leading institutions using DSpace > <https://wiki.lyrasis.org/display/DSPACE/DSpace+Positioning>. > > The test user accounts below have their password set to the name of this > software in lowercase. > >- Demo Site Administrator = dspacedemo+ad...@gmail.com >- Demo Community Administrator = dspacedemo+commad...@gmail.com >- Demo Collection Administrator = dspacedemo+collad...@gmail.com >- Demo Submitter = dspacedemo+sub...@gmail.com That text is in 'src/app/home-page/home-news/home-news.component.html'. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZDVOGGLLif4fmTr4%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Cover Pages with 7.x?
.UnsupportedOperationException > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > ... 61 more > > Caused by: java.lang.UnsupportedOperationException > > at java.util.AbstractList.add(AbstractList.java:153) ~[?:?] > > at java.util.AbstractList.add(AbstractList.java:111) ~[?:?] > > at > > org.dspace.disseminate.CitationDocumentServiceImpl.afterPropertiesSet(CitationDocumentServiceImpl.java:163) > > > > ~[dspace-api-7.5.jar:7.5] > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > at > > org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656) > > > > ~[spring-beans-5.3.20.jar:5.3.20] > > ... 61 more > > > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/e6546232-8ac6-4ef7-a6ea-629b4174add0n%40googlegroups.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZC19CLHI6WgCjURa%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 6.4 : Metadata based permission
On Fri, Mar 24, 2023 at 11:52:42AM -0700, Arunendra MB wrote: > I have never used Curation task earlier. But is it possible, from the Admin > UI-> Curation Task to execute what you have suggested?If so, a bit more > information would help. > Because I am not a Java programmer. The task that I postulated does not exist. Someone would have to write it. Once the task exists, it could be run from the UI (or the command line). But it might be better to attach it to a workflow so that it runs automatically on new submissions to specific collections. > On Friday, March 24, 2023 at 7:29:47 PM UTC+5:30 Mark H. Wood wrote: > > > On Fri, Mar 24, 2023 at 01:35:08AM -0700, Arunendra MB wrote: > > > There are multiple collections: Collection A,B,C..., each having its own > > > sets of metadata but only one metadata M in common. > > > The requirement is to give access permission to users based on the value > > of > > > M, i.e, if M=m1, then users U1 will have access to items having m1, if > > > M=m2, the users of group U2 will have access to items having m2 in their > > > metadata. > > > > > > Since, there is no way to create sub-collections m1,m2,m3, how can this > > be > > > purpose achieved? > > > > DSpace isn't going to look at your metadata to determine access > > rights. Rights are granted using 'ResourcePolicy's. You need to assign > > different policy sets to the items having M=m1, M=m2, M=m3. This can > > be done: > > > > o manually during ingestion, if the collections have workflow enabled. > > o manually by an administrator after submission is complete. > > o during batch ingestion with SAF, by specifying PERMISSIONS in > > the 'contents' file. (This applies to bitstreams but not, IIRC, to > > the item as a whole.) > > o using a tool (such as a curation task) to examine items in the > > collection and adjust their policy sets based on the value of M. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZCGdahcgGHvvurEZ%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 6.4 : Metadata based permission
On Fri, Mar 24, 2023 at 01:35:08AM -0700, Arunendra MB wrote: > There are multiple collections: Collection A,B,C..., each having its own > sets of metadata but only one metadata M in common. > The requirement is to give access permission to users based on the value of > M, i.e, if M=m1, then users U1 will have access to items having m1, if > M=m2, the users of group U2 will have access to items having m2 in their > metadata. > > Since, there is no way to create sub-collections m1,m2,m3, how can this be > purpose achieved? DSpace isn't going to look at your metadata to determine access rights. Rights are granted using 'ResourcePolicy's. You need to assign different policy sets to the items having M=m1, M=m2, M=m3. This can be done: o manually during ingestion, if the collections have workflow enabled. o manually by an administrator after submission is complete. o during batch ingestion with SAF, by specifying PERMISSIONS in the 'contents' file. (This applies to bitstreams but not, IIRC, to the item as a whole.) o using a tool (such as a curation task) to examine items in the collection and adjust their policy sets based on the value of M. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZB2s0KGo%2BD1oI96y%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] error index-discovery
On Wed, Mar 22, 2023 at 11:18:04AM -0700, 'Matías Javier Saavedra Gajardo' via DSpace Technical Support wrote: > I was in the process of migrating from dspace 4 to dspace 7, but when it > came to indexing the database it gave me the following error. > > org.apache.commons.cli.ParseException: Unable to create a new DSpace > Context: null > at org.dspace.discovery.IndexClient.setup(IndexClient.java:157) > at org.dspace.scripts.DSpaceRunnable.parse(DSpaceRunnable.java:86) > at > org.dspace.scripts.DSpaceRunnable.initialize(DSpaceRunnable.java:75) > at > org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:148) > at > org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:131) > at > org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98) > > this was produced by using the following command sudo /dspace/bin/dspace > index-discovery -b I would look backward in the log for a previous problem with connecting to the database. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZBxpa3FncVdMDJu2%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: DSpace 7.5 intermittent errors with patch operations
* Update the policies of an Item's THUMBNAIL Bitstreams as needed. + */ +static private class ItemConsumer +implements Consumer { +/** + * Add parent policies to THUMBNAIL Bitstreams if missing. + * + * @param item Update bitstream policies for this Item. + */ +@Override +public void accept(Item item) { +for (Bundle bundle : item.getBundles("THUMBNAIL")) { +for (Bitstream bitstream : bundle.getBitstreams()) { +List bitstreamPolicies += bitstream.getResourcePolicies(); +if (bitstreamPolicies.isEmpty()) { +List bundlePolicies += bundle.getResourcePolicies(); +if (bundlePolicies.isEmpty()) { +List itemPolicies += item.getResourcePolicies(); +if (itemPolicies.isEmpty()) { +// do nothing +} else { +copyPolicies(itemPolicies, bitstream); +} +} else { +copyPolicies(bundlePolicies, bitstream); +} +} +} +} +} + +/** + * Copy a list of policies to a Bitstream. Only copy custom and + * inherited policies. + * + * @param parentPolicies the policies to be copied. + * @param bitstream the Bitstream to receive new policies. + */ +private static void copyPolicies(List parentPolicies, +Bitstream bitstream) { +for (ResourcePolicy parentPolicy : parentPolicies) { +try { +if (ResourcePolicy.TYPE_CUSTOM.equals(parentPolicy.getRpType()) +|| ResourcePolicy.TYPE_INHERITED.equals(parentPolicy.getRpType())) { +ResourcePolicy newPolicy = resourcePolicyService.clone( +context, parentPolicy); +newPolicy.setdSpaceObject(bitstream); +newPolicy.setRpType(ResourcePolicy.TYPE_INHERITED); +resourcePolicyService.update(context, newPolicy); +} +} catch (SQLException | AuthorizeException e) { +System.err.format("Failed to copy policy %d to Bitstream %s: %s%n", +parentPolicy.getID(), bitstream.getID().toString(), +e.getMessage()); +} +} +try { +context.commit(); +} catch (SQLException e) { +System.err.format("Failed to commit updates to Bitstream %s: %s%n", +bitstream.getID().toString(), e.getMessage()); +} +} +} +} diff --git a/dspace/modules/additions/src/main/java/org/dspace/core/ContextHelper.java b/dspace/modules/additions/src/main/java/org/dspace/core/ContextHelper.java new file mode 100644 index 00..fde3df16a0 --- /dev/null +++ b/dspace/modules/additions/src/main/java/org/dspace/core/ContextHelper.java @@ -0,0 +1,38 @@ +/* + * Copyright 2023 Indiana University. + */ +package org.dspace.core; + +import java.sql.SQLException; +import javax.persistence.FlushModeType; + +import org.hibernate.Session; + +/** + * Cheat methods to expose package-private DSpace {@link Context} internals + * without hacking Context. + * + * @author mwood + */ +public class ContextHelper { +/** + * Get an additional JPA {@link Session} from a DSpace {@link Context}, + * set default-read-only. + * Be sure to {@code close()} the Session when finished -- Context does not + * track it. + * + * @param context the DSpace session to provide database context. + * @return a new read-only JPA {@link Session}. + * @throws SQLException passed through. + */ +static public Session getReadOnlySession(Context context) +throws SQLException { +DBConnection connection = context.getDBConnection(); +Session newSession = connection.getSession() +.getSessionFactory() +.openSession(); +newSession.setDefaultReadOnly(true); +newSession.setFlushMode(FlushModeType.COMMIT); +return newSession; +} +} In hope of seeing a proper fix for the transaction lifetime conflict, I've filed an Issue for consideration relative to DSpace 8: https://github.com/DSpace/DSpace/issues/8731 -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of
Re: [dspace-tech] Re: OCID Authentication and groups
On Wed, Mar 22, 2023 at 06:57:18PM -0700, Gabriela wrote: > I tried to to assign a fixed set of groups to *all* OIDC-authenticated > sessions. A few minutes of work, became hours, and I am going around in > circles. Any guidance would be very much appreciated. I don't have any way to test this, but it compiles: diff --git a/dspace-api/src/main/java/org/dspace/authenticate/OidcAuthenticationBean.java b/dspace-api/src/main/java/org/dspace/authenticate/OidcAuthenticationBean.java index 8a4ac190c8..53d47fac05 100644 --- a/dspace-api/src/main/java/org/dspace/authenticate/OidcAuthenticationBean.java +++ b/dspace-api/src/main/java/org/dspace/authenticate/OidcAuthenticationBean.java @@ -16,6 +16,8 @@ import static org.apache.commons.lang3.StringUtils.isBlank; import java.io.UnsupportedEncodingException; import java.sql.SQLException; +import java.util.ArrayList; +import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; @@ -23,13 +25,16 @@ import java.util.Map.Entry; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; import org.dspace.authenticate.oidc.OidcClient; import org.dspace.authenticate.oidc.model.OidcTokenResponseDTO; import org.dspace.core.Context; +import org.dspace.core.LogHelper; import org.dspace.eperson.EPerson; import org.dspace.eperson.Group; import org.dspace.eperson.service.EPersonService; +import org.dspace.eperson.service.GroupService; import org.dspace.services.ConfigurationService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -64,6 +69,9 @@ public class OidcAuthenticationBean implements AuthenticationMethod { @Autowired private EPersonService ePersonService; +@Autowired +private GroupService groupService; + @Override public boolean allowSetPassword(Context context, HttpServletRequest request, String username) throws SQLException { return false; @@ -84,8 +92,36 @@ public class OidcAuthenticationBean implements AuthenticationMethod { } @Override -public List getSpecialGroups(Context context, HttpServletRequest request) throws SQLException { -return List.of(); +public List getSpecialGroups(Context context, HttpServletRequest request) +throws SQLException { +if (request == null) { +return Collections.EMPTY_LIST; +} + +List groups = new ArrayList<>(); +StringBuilder groupIDs = new StringBuilder(); +for (String name : configurationService.getArrayProperty( +"authentication-oidc.login.specialgroup", +ArrayUtils.EMPTY_STRING_ARRAY)) { +Group group = groupService.findByName(context, name); +if (null != group) { +groups.add(group); +if (groupIDs.length() > 0) { +groupIDs.append(", "); +} +groupIDs.append(group.getID()); +} else { +LOGGER.warn(LogHelper.getHeader(context, "authenticated", +"Unknown special group {} not granted"), name); +} +} + +if (groupIDs.length() > 0) { +LOGGER.debug(LogHelper.getHeader(context, "authenticated", +"special_groups={}"), groupIDs.toString()); +} + +return groups; } @Override diff --git a/dspace/config/modules/authentication-oidc.cfg b/dspace/config/modules/authentication-oidc.cfg index bbb8489a77..4349df87f2 100644 --- a/dspace/config/modules/authentication-oidc.cfg +++ b/dspace/config/modules/authentication-oidc.cfg @@ -45,4 +45,8 @@ authentication-oidc.user-info.email = email authentication-oidc.user-info.first-name = given_name #Specify the attribute present in the user info json related to the user's last name -authentication-oidc.user-info.last-name = family_name \ No newline at end of file +authentication-oidc.user-info.last-name = family_name + +# Any session which is authenticated using OIDC will be granted membership in +# these groups. +#authentication-oidc.login.specialgroup = groupname -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZBxVYbuB0YVJYtCA%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: DSpace 7.5 intermittent errors with patch operations
Interesting. It sounds to me like there are two problems here, with a common source: o a (potentially) gigantic transaction is built up over a sequence of operations which should be unrelated; o a (potentially) gigantic queue of events which should be unrelated is built up within the curation run's Context. It sounds to me as though none of the tasks in the run is committing its work. The default curation scope is OPEN, so Curator is not committing. The event handler in question commits its own work, and in so doing, the first time it is called by the dispatcher, inadvertently commits all of the *other* curation work that should have been committed already. I can find no documentation for this, but it appears that event handlers should not commit work. The design of Context seems to depend on this. If true, we should document this requirement thoroughly. ++ It seems to me that a task designed to be run in OPEN scope must commit its own work. There is, however, a problem with this: Context contains only one Session. A bulk operation needs to keep a transaction open while it consumes the sequence of entities on which it is to operate, and also to be able to commit work (closing a transaction) whenever it modifies one of those entities. I suppose that one could work around this by draining the sequence into a List and then reloading them one at a time for processing, but how inefficient that is! -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZBshlJKj9oObgZOi%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Is it possible to update jQuery in xmlui in dspace 5?
On Mon, Mar 20, 2023 at 12:02:35PM -0700, cpgr...@gmail.com wrote: > We have been notified by campus network authorities that our dspace server > is vulnerable because it is running outdated versions of jQuery. We are in > the process of creating a new dspace 7 server to replace this server, but > that will not happen in the short time that we have been given to fix this > vulnerability. > > How can we quickly upgrade jQuery on our server? Where can I find > instructions on updating the jQuery software in our xmlui in our instance > of dspace 5? Can our built process be modified to bring in more up to date > jQuery packages? > > EOL/Obsolete Software: jQuery 1.x and 2.x Detected > >- > >EOL Software:jQuery Version 1.x or 2.x Detected. >jquery/jquery-1.4.4.min.js I don't know how much work is required to update to jQuery v3. Updating across two major releases might break a number of things. You'll find jQuery (and jQuery UI, which might need updating too) in various places. There is a copy of jQuery in 'dspace-xmlui/src/main/webapp/static/js' and another in 'dspace-oai/src/main/webapp/static/js'. Some XMLUI themes have their own copies (of various versions) typically at 'dspace-xmlui/src/main/webapp/themes/THEMENAME/lib`. You will also need to look for references to specific paths in the 'sitemap.xmap' for your theme, and update them to the new version. Replacing the '.js' file and updating the sitemap are the *minimum* that this task will require. If the newer version(s) break any of DSpace's usage, you'll need to fix those breakages. Reading the release notes for jQuery* v2 and v3 may help to focus on possible problems, but there will be a certain amount of "try updating the files and see what breaks." I can say that I've had very little trouble upgrading jQuery UI *within* major release 1, which may or may not be representative. I'm sorry that I don't have better news for you. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZBnHUlvzLoakK/uZ%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: OCID Authentication and groups
On Tue, Mar 21, 2023 at 10:08:13AM -0400, Mark H. Wood wrote: > On Mon, Mar 20, 2023 at 09:27:49PM -0700, Gabriela wrote: > > Am I missing something or there is no way to automatically add new users > > (created with OIDC Authentication) to a group ? I feel a need to address a common misconception. No part of DSpace adds new users to a group. DSpace optionally adds groups to a new *session* when the user uses a particular authentication method configured to do so. The user's recorded membership is unaltered, and you won't ever find those group memberships in the 'epersongroup2eperson' table. I should also ask you how you want the group assignment to work. Do you want to use OIDC-mediated user roles to control which groups are assigned to a session, or do you want to assign a fixed set of groups to *all* OIDC-authenticated sessions? The latter should be a few minutes' work; the former requires a bit more. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZBm%2BoxYdXzJHD0o/%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: OCID Authentication and groups
On Mon, Mar 20, 2023 at 09:27:49PM -0700, Gabriela wrote: > Am I missing something or there is no way to automatically add new users > (created with OIDC Authentication) to a group ? It seems that you are not missing anything: the OIDC authenticator code always returns an empty list of "special groups." It should be a very small matter to implement a simple static list of special groups, but no one has done so. See also: https://github.com/DSpace/DSpace/issues/8406 https://github.com/DSpace/DSpace/issues/8405 concerning the more complex problem of mapping OIDC roles to DSpace groups. > On Monday, March 20, 2023 at 3:10:07 PM UTC-6 Gabriela wrote: > > > Hello, > > > > We successfully enabled the OIDC Authentication but I do not see a way to > > automatically assign new accounts created with OIDC Authentication to a > > group. > > > > Gabriela > > > > > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/0577ce8e-0188-4eea-ac0b-95abdb83c444n%40googlegroups.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZBm6TWDwBc9Rs1xQ%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Creating Submission Workflows
On Thu, Feb 23, 2023 at 08:30:46PM +, Cameron, Jacob wrote: > Does this also apply to a community, not just an item? We have some > communities that are also added for some reason. The code in SubmissionConfigReader looks up a DSpaceObject by Handle and specifically casts it to Collection. The Handle of a Community should cause another ClassCastException. Neither Item nor Community is a kind of Collection -- that is what ClassCastException is saying. I can see that it would be handy if collections could inherit submission mappings from their enclosing communities -- we have 89 collections mapped to 14 submission flows -- but it doesn't work that way. The 'name-map' element's attribute is named 'collection-handle' for a reason: the code only accepts the Handle of a Collection here. It will throw an exception if any other Handle is given (or ignore the faulty mapping if you apply the patch). > -Original Message- > From: Mark H. Wood,UL 0115A,+1 317 274 0749, On Behalf Of > Mark H. Wood > Sent: February 23, 2023 6:41 AM > To: dspace-tech@googlegroups.com > Subject: Re: [dspace-tech] Creating Submission Workflows > > On Thu, Feb 23, 2023 at 08:29:49AM -0500, Mark H. Wood wrote: > > On Wed, Feb 22, 2023 at 05:55:05PM +, Cameron, Jacob wrote: > > > Hello, > > > > > > DSpace 7.4, Tomcat 9.6, Postgres 13. > > > > > > I've created 5 new workflows. 4 of the 5 work fine. The 5th one seems > > > to throw an error in the DSpace log. It's setup the same as the other > > > new workflows. > > > > > > It gives me a "You have not the privilege to make a new submission." > > > error. However, everything is named properly and showing up the way I > > > would expect. I've verified things, checked things over, and even tried > > > using the traditional input form with no changes and it still throws the > > > error. > > > > > > The error in the dspace.log is: > > > > > > 2023-02-22 09:45:17,632 INFO 586a38e2-042e-4f50-b051-1c80b6adff77 > > > e1fe0995-92e8-4ab3-a934-ae60dea3bb91 > > > org.dspace.content.WorkspaceItemServiceImpl @ > > > library.ireposit...@uleth.ca::create_workspace_item:workspace_item_i > > > d=8975item_id=d1cc3391-444a-4b8e-a022-3ea108640ebbcollection_id=3493 > > > 47e2-4e50-43f1-9bec-df5f77b1972f > > > 2023-02-22 09:45:17,883 ERROR 586a38e2-042e-4f50-b051-1c80b6adff77 > > > e1fe0995-92e8-4ab3-a934-ae60dea3bb91 > > > org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ > > > An exception has occurred (status:500) > > > java.lang.ClassCastException: class org.dspace.content.Item cannot > > > be cast to class org.dspace.content.Collection > > > (org.dspace.content.Item and org.dspace.content.Collection are in > > > unnamed module of loader > > > org.apache.catalina.loader.ParallelWebappClassLoader @25cc7470) > > > > This happened to me as well. You have mapped that submission-name to > > the Handle of an Item, not a Collection, in 'config/item-submission.xml'. > > A patch that causes SubmissionConfigReader to reject the unusable mapping > with a log message, instead of crashing: > > diff --git > a/dspace-api/src/main/java/org/dspace/app/util/SubmissionConfigReader.java > b/dspace-api/src/main/java/org/dspace/app/util/SubmissionConfigReader.java > index 2120848358..35399fba4e 100644 > --- a/dspace-api/src/main/java/org/dspace/app/util/SubmissionConfigReader.java > +++ b/dspace-api/src/main/java/org/dspace/app/util/SubmissionConfigReade > +++ r.java > @@ -22,6 +22,7 @@ import org.apache.commons.lang3.StringUtils; > import org.apache.logging.log4j.Logger; import > org.dspace.content.Collection; import org.dspace.content.DSpaceObject; > +import org.dspace.core.Constants; > import org.dspace.core.Context; > import org.dspace.handle.factory.HandleServiceFactory; > import org.dspace.services.factory.DSpaceServicesFactory; > @@ -628,7 +629,12 @@ public class SubmissionConfigReader { > DSpaceObject result = > HandleServiceFactory.getInstance().getHandleService() > > .resolveToObject(context, handle); > if (result != null) { > -results.add((Collection) result); > + if (!(result instanceof Collection)) { > +log.error("{} is a {}, not a Collection", > +handle, > Constants.typeText[result.getType()]); > +} else { > +results.add((Colle
Re: [dspace-tech] DSpace 7.x Best practice for creating custom themes?
On Wed, Feb 22, 2023 at 03:20:59PM -0800, darryl@usask.ca wrote: > Any recommendations or best practices tips on creating and managing custom > themes? > > The UI customization page lists a number of methods -- edit the existing > DSpace or custom theme, make a copy of the DSpace or custom theme, create > an entirely new theme from scratch, or possibly "extend" the existing > DSpace/custom theme -- but I'm wondering if anyone has practical > experience/tips now that we're 5 major revisions into the 7.x release. > i.e. how are you managing the inclusion of any fixes to those core > DSpace/custom themes into your own theme as new versions of the DSpace UI > are released? Creating a copy of one of the existing themes seems like it > would make the job of incorporating fixes harder. > > I've been toying with the idea of creating a branch from the current > release (from the dspace-7.5 tag for example) and then just making changes > in the "custom" theme directory. When 7.6 is released, I should > (hopefully) be able to just merge the dspace-7.6 tag into my working branch > and easily get all the fixes that were made to the custom theme. I've yet > to put that to the test though. > > How are the rest of you dealing with themes and version upgrades? I won't call it "best" until I've tried upgrading, but what I've been doing is to extend the 'dspace' theme, copying the components that I want to modify and creating new ones as needed. The thought of being able to use 'git' to help merge changes is an attractive one. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y/duTcKlSvgX8PSC%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Creating Submission Workflows
On Thu, Feb 23, 2023 at 08:29:49AM -0500, Mark H. Wood wrote: > On Wed, Feb 22, 2023 at 05:55:05PM +, Cameron, Jacob wrote: > > Hello, > > > > DSpace 7.4, Tomcat 9.6, Postgres 13. > > > > I've created 5 new workflows. 4 of the 5 work fine. The 5th one seems to > > throw an error in the DSpace log. It's setup the same as the other new > > workflows. > > > > It gives me a "You have not the privilege to make a new submission." error. > > However, everything is named properly and showing up the way I would > > expect. I've verified things, checked things over, and even tried using > > the traditional input form with no changes and it still throws the error. > > > > The error in the dspace.log is: > > > > 2023-02-22 09:45:17,632 INFO 586a38e2-042e-4f50-b051-1c80b6adff77 > > e1fe0995-92e8-4ab3-a934-ae60dea3bb91 > > org.dspace.content.WorkspaceItemServiceImpl @ > > library.ireposit...@uleth.ca::create_workspace_item:workspace_item_id=8975item_id=d1cc3391-444a-4b8e-a022-3ea108640ebbcollection_id=349347e2-4e50-43f1-9bec-df5f77b1972f > > 2023-02-22 09:45:17,883 ERROR 586a38e2-042e-4f50-b051-1c80b6adff77 > > e1fe0995-92e8-4ab3-a934-ae60dea3bb91 > > org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An > > exception has occurred (status:500) > > java.lang.ClassCastException: class org.dspace.content.Item cannot be cast > > to class org.dspace.content.Collection (org.dspace.content.Item and > > org.dspace.content.Collection are in unnamed module of loader > > org.apache.catalina.loader.ParallelWebappClassLoader @25cc7470) > > This happened to me as well. You have mapped that submission-name to > the Handle of an Item, not a Collection, in 'config/item-submission.xml'. A patch that causes SubmissionConfigReader to reject the unusable mapping with a log message, instead of crashing: diff --git a/dspace-api/src/main/java/org/dspace/app/util/SubmissionConfigReader.java b/dspace-api/src/main/java/org/dspace/app/util/SubmissionConfigReader.java index 2120848358..35399fba4e 100644 --- a/dspace-api/src/main/java/org/dspace/app/util/SubmissionConfigReader.java +++ b/dspace-api/src/main/java/org/dspace/app/util/SubmissionConfigReader.java @@ -22,6 +22,7 @@ import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.Logger; import org.dspace.content.Collection; import org.dspace.content.DSpaceObject; +import org.dspace.core.Constants; import org.dspace.core.Context; import org.dspace.handle.factory.HandleServiceFactory; import org.dspace.services.factory.DSpaceServicesFactory; @@ -628,7 +629,12 @@ public class SubmissionConfigReader { DSpaceObject result = HandleServiceFactory.getInstance().getHandleService() .resolveToObject(context, handle); if (result != null) { -results.add((Collection) result); +if (!(result instanceof Collection)) { +log.error("{} is a {}, not a Collection", +handle, Constants.typeText[result.getType()]); + } else { +results.add((Collection) result); +} } } } -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y/ds85yhkkcKiVl7%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Creating Submission Workflows
On Wed, Feb 22, 2023 at 05:55:05PM +, Cameron, Jacob wrote: > Hello, > > DSpace 7.4, Tomcat 9.6, Postgres 13. > > I've created 5 new workflows. 4 of the 5 work fine. The 5th one seems to > throw an error in the DSpace log. It's setup the same as the other new > workflows. > > It gives me a "You have not the privilege to make a new submission." error. > However, everything is named properly and showing up the way I would expect. > I've verified things, checked things over, and even tried using the > traditional input form with no changes and it still throws the error. > > The error in the dspace.log is: > > 2023-02-22 09:45:17,632 INFO 586a38e2-042e-4f50-b051-1c80b6adff77 > e1fe0995-92e8-4ab3-a934-ae60dea3bb91 > org.dspace.content.WorkspaceItemServiceImpl @ > library.ireposit...@uleth.ca::create_workspace_item:workspace_item_id=8975item_id=d1cc3391-444a-4b8e-a022-3ea108640ebbcollection_id=349347e2-4e50-43f1-9bec-df5f77b1972f > 2023-02-22 09:45:17,883 ERROR 586a38e2-042e-4f50-b051-1c80b6adff77 > e1fe0995-92e8-4ab3-a934-ae60dea3bb91 > org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An > exception has occurred (status:500) > java.lang.ClassCastException: class org.dspace.content.Item cannot be cast to > class org.dspace.content.Collection (org.dspace.content.Item and > org.dspace.content.Collection are in unnamed module of loader > org.apache.catalina.loader.ParallelWebappClassLoader @25cc7470) This happened to me as well. You have mapped that submission-name to the Handle of an Item, not a Collection, in 'config/item-submission.xml'. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y/dqTcg6Mg1mGn2/%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Migrating sharded SOLR statistics to DSPACE 7.4
On Thu, Feb 16, 2023 at 09:41:25AM +0200, Sean Carte wrote: > On the Slack tech-support channel, Nicholas Woodward reported that he had > recreated the cores 'by copying the new statistics core into a new Solr > configset, e.g. statistics-2022, for each previous year and changing the > schema name in schema.xml. Then after restarting Solr I was able to import > all of the old stats CSV files.' > > I was about to try this, when I realised I'd made a mistake and imported > all my sharded statistics into the main core. I'm actually fine with that, > unless someone here tells me that that was a terrible thing to do. That's actually what the upgrade procedure ought to do, because sharding was not included when working out the separation of Solr from the DSpace build (which was required by changes in the packaging of currently supported Solr versions). There may be a way to make it work, but the tools that currently come with DSpace will not help. Sharding is awaiting some discussion: o Does sharding actually help? o Consider that we are abusing a feature which was meant for evenly spreading load across multiple hosts. o This could be done much more simply and organically, without involving DSpace code at all, using Time Routed Aliases, but TRA requires Solr Cloud, which runs a bit differently. Is the benefit of sharding (whatever that actually is) worth the trouble to set up a (possibly degenerate) Cloud? -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y%2B4yumTAeppYow0T%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 5.X: Switching auth method from LDAP to Shibboleth
On Fri, Feb 10, 2023 at 03:06:53AM -0800, Evelthon Prodromou wrote: > Shibboleth SP is configured properly and attributes are released. > > The problem is with Epersons that were previously created with LDAP > authentication. When the same user attempts to authenticate via Shibboleth > a failure occurs and the following error is logged: > > ERROR org.dspace.authenticate.ShibAuthentication @ The identified EPerson > based upon Shibboleth email header, 'mail'='u...@domain.com', is locked to > another netid: 'a_username'. This might be a possible hacking attempt to > steal another > users credentials. If the user's netid has changed you will need to > manually change it to the correct value or unset it in the database. > > What is the proper way for Identity Scheme Migration (LDAP to Shibboleth)? I'm only guessing here, but it appears that the Shibboleth attribute that you are using for netid has different values for the same account than the LDAP attribute that you have been using. Does your IDP offer another attribute which tracks the LDAP service's attribute? -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y%2BZFlcOhy6pQJUbK%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Dspace 7 and PostgreSQL version
On Wed, Feb 08, 2023 at 01:47:18PM +0100, emilio lorenzo wrote: > in the Dspace 7 SW pre-requisites > https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-PostgreSQL11.x,12.xor13.x(withpgcryptoinstalled) > > it is mentioned that the last PostgreSQL supported version is > PostgreSQL 13.x. Is there any reason for not supporting version 14? > Is there any experiences of using PostgreSQL 14.x? I know of no reason. Here we run production DSpace 5 and 6 instances with PostgreSQL v14, and I use v14 for test and development with DSpace 7. I'll be trying out PostgreSQL v15 with DSpace when it's stabilized on Gentoo, and I will be very much surprised if there are any incompatibilities. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y%2BO10PQ8bOatywtf%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] New Line in I18n Message Json
On Tue, Feb 07, 2023 at 06:43:40AM -0800, Simon Eiberger wrote: > Hello, > Is it possible to insert a line break in a message text in the JSON files > in the I18n folder? I've tried different types of \ and \n but so far > without success. I would guess that the newline is being discarded by the rules of HTML rendering. You could try using an HTML "br" element. If it works, please tell us. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y%2BO0GZ5NrVu45Cvf%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Issue with database migration 6.3 to 7.4
On Thu, Feb 02, 2023 at 10:54:25PM +, Cameron, Jacob wrote: > I’m wondering if I need to upgrade from 9.6 to 13 in Postgres before it’ll > fix it. I’m sure I had to do that when I went from 1.8.3 to 6 originally. I > could be wrong. That was along time ago. But I have something about that in > old notes from that upgrade. Seeing that PostgreSQL v9 is EOL and v10 has had its last release, upgrading is probably a good idea anyway. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y90LSI0MgYgafwup%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] SOLR import from Dspace 5 to Dspace 7
On Wed, Feb 01, 2023 at 06:11:42AM -0800, mad...@udel.edu wrote: > Hi All, > > I've recebtly exported my SOLR stats in a dspace 5 instance, into .csv > files. I've tried to import the stats into a Dspace 7.3 instance. I've used > this command: > > bin/dspace stats-log-importer -s -v -i usagestats_999.csv > > I get the following error: > > Writing to solr server at: server > Processing file: usagestats_999.csv > Line:Sun Nov 13 02:02:35 EST > 2022,view_bitstream,97341,2022-11-13T02:02:35,anonymous,52.7.141.1 > Exception: Cannot invoke > "com.maxmind.geoip2.DatabaseReader.city(java.net.InetAddress)" because > "org.dspace.statistics.util.StatisticsImporter.geoipLookup" is null > java.lang.NullPointerException: Cannot invoke > "com.maxmind.geoip2.DatabaseReader.city(java.net.InetAddress)" because > "org.dspace.statistics.util.StatisticsImporter.geoipLookup" is null > at > org.dspace.statistics.util.StatisticsImporter.load(StatisticsImporter.java:290) > at > org.dspace.statistics.util.StatisticsImporter.main(StatisticsImporter.java:516) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:568) > at > org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:277) > at > org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133) > at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98) > > With the old Dspace 5 instance, we did start out using the GeoCity > database, but in the new Dspace 7 instance we are using the free > dbip-city-lite database. I am just guessing, but perhaps the 'usage-statistics.dbfile' configuration property is undefined or incorrect. Does it *log* an error saying that the geo database file is missing or could not be loaded? Another possibility is that the process loading the stat.s lacks sufficient permission to open the geo database. In these conditions the importer will complain but still attempt to proceed, though apparently it should fail-fast. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y9qIM7CPWiNudwOi%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Statistics ip lists obsolete and update script not working
On Mon, Jan 23, 2023 at 04:17:07PM +0100, Claudia Jürgen wrote: > I did not have time to look into it. Most of the ip list are not free > anymore, so I wonder how we can clean up the statistics, like replacing > them with a new source of lists and then flag the bots and remove them. There is a PR for a new source: https://github.com/DSpace/DSpace/pull/2892 -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y86teHjn6qpdcCZ6%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Statistics ip lists obsolete and update script not working
This seems to have been fixed in https://github.com/DSpace/DSpace/issues/8528 The code relies on Ant's 'get' task to do the downloading. It appears that we have been playing fast and loose with Ant's infrastructure, and a shortcut that used to work now fails. This single use drags all of Ant into the DSpace runtime. Maybe we should be using Commons HttpComponents, which is found in a number of places in DSpace, instead? -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y86fSNKsLabNDW8s%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] High traffic / DDoS / fail2ban
On Thu, Jan 19, 2023 at 11:50:03AM +0100, Florian Wille wrote: > my DSpace (6.3) Site usually gets around 10k/h requests. This is handled > quite well. But sometimes there are multiple > bots/crawlers/spiders/indexers/harvester/whatevers throwing each up to > 15k/h request at me at the same time and that on top of my 10k/h > standart traffic. This my DSpace cannot handle and it becomes > unresponsive, making the site seem offline to my users. > I performance tuned my Apache and Postgres to handle more > request/connections and gave the system plenty ram/cpu but DSpace gives > up, I think, it's the hibernate layer breaking down. > > I was thinking of using fail2ban to get a lid on exessive requesting. > Anyone experience with that, or are there some best practice guides for > fail2ban with DSpace? I don't wanna block/drop legit harvesters/indexers... > > Also I came across mod_apache_rate_limit. Would that do any good for my > case? Well, do you want to ban the spiders, or just slow them to a reasonable rate? If it were my site, unless I could identify some genuinely abusive clients, I'd go with rate limiting. There might be a case for banning some clients and slowing others. I'd probably choose something made for rate limiting, if I went that route, rather than pressing fail2ban into this sort of service. I do see that a number of others have used fail2ban in this way. But I haven't yet made the time to explore these options in depth. What we do here is to keep an eye on response time with 'monit'. If monit thinks DSpace is sick or has died, it kills and restarts Tomcat. That is kind of drastic but it does shed an excessive load. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y8lFKCnPecQe2qcv%40IUPUI.Edu. smime.p7s Description: S/MIME cryptographic signature
Re: [dspace-tech] Modifying Themes DSpace 7.4
On Fri, Jan 06, 2023 at 07:51:49AM -0500, Sarah Butash wrote: > Thanks for this info! So, I'll want to use an IDE vs working in Linux it > seems? I don't think it's necessary but it is useful and doesn't hurt. I should mention that I think I don't work with DSpace 7 in quite the same way that most do right now. From the first, I've been building and copying the front end as if for production use. So I don't know a lot about the *typical* development environment. I use NetBeans for developing both back end and front end, but I never run either from there; I have a few scripts that copy things to the right places, and I'll usually have at least one terminal window running as root to do restarts and monitor logs. Rather than using 'pm2' as most? do, I've written initscripts to directly run the the backend and frontend services just as most OS-provided daemons are run. So, someone else may be your best bet for detailed advice on how most sites develop and run DSpace 7. > On Fri, Jan 6, 2023 at 7:40 AM Mark H. Wood wrote: > > > On Thu, Jan 05, 2023 at 09:56:54AM -0500, Sarah Butash wrote: > > > Hello, > > > > > > We will soon be modifying the theme in our DSpace 7.4 environment. In > > > DSpace 5.11, I could make a theme/UI change, bounce the tomcat server and > > > the change would be in our live environment. I'm looking for the way to > > > make changes in this way for 7.4. We work on a Linux server without an > > > IDE. For DSpace 7.4, I notice that in the Getting Started Demo, the > > > presenter keeps recompiling to commit UI changes (header, footer, etc). > > He > > > mentions running a yarn:start command. What is that compiling? The whole > > > DSpace instance? the UI? > > > > To change a theme (or any part of the UI), you need to rebuild the > > front end (dspace-angular), because part of that process compresses > > and packs up the code into bundles that can be sent to the browser to > > run there. Then you need to restart the NodeJS instance that serves > > it out. The back end isn't affected by changes to the UI and can be > > left running. > > > > I *have* seen that at least some UI changes will be taken up without > > restarting, if I just copy the rebuilt front end 'dist' tree to the > > place from which it's run, but I don't know when I can trust this so I > > usually restart it anyway. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y7g2dvMHE2CM7Y5E%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Modifying Themes DSpace 7.4
On Thu, Jan 05, 2023 at 09:56:54AM -0500, Sarah Butash wrote: > Hello, > > We will soon be modifying the theme in our DSpace 7.4 environment. In > DSpace 5.11, I could make a theme/UI change, bounce the tomcat server and > the change would be in our live environment. I'm looking for the way to > make changes in this way for 7.4. We work on a Linux server without an > IDE. For DSpace 7.4, I notice that in the Getting Started Demo, the > presenter keeps recompiling to commit UI changes (header, footer, etc). He > mentions running a yarn:start command. What is that compiling? The whole > DSpace instance? the UI? To change a theme (or any part of the UI), you need to rebuild the front end (dspace-angular), because part of that process compresses and packs up the code into bundles that can be sent to the browser to run there. Then you need to restart the NodeJS instance that serves it out. The back end isn't affected by changes to the UI and can be left running. I *have* seen that at least some UI changes will be taken up without restarting, if I just copy the rebuilt front end 'dist' tree to the place from which it's run, but I don't know when I can trust this so I usually restart it anyway. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y7gWnXxLkinWJt9O%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace beta version
On Wed, Jan 04, 2023 at 01:43:18AM -0800, Vimal Kumar V. wrote: > Dear Friends, > May I know, where we can find DSpace beta version, 7.5 to try? DSpace 7.5 is still in development. You can clone the repository with 'git' (view it at https://github.com/DSpace/DSpace) and build from the 'main' branch if you want the current development version. We try to keep the 'main' branch always in a runnable state, but it may be unstable or broken in some areas. Problem reports are always welcome, as are patches. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y7V%2BKoDwcAHQ/kWi%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] edit email content
On Tue, Jan 03, 2023 at 08:44:56AM -0800, Jorge Alberto Bonilla Castaneda wrote: > Hello,, recently I managed to configure the sending of emails by dspace > 7.4, in the registration of a user and password change, however I want to > modify the content of said emails sent, how can I do that? The email template files are in 'config/emails'. Edit as needed. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y7RcSrHUuc9jqQRn%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Guidlines for Installing Dspace 7 on Ubuntu 22.04
On Tue, Nov 22, 2022 at 04:05:24AM -0800, Nadeem Sohail wrote: > I want to install Dspace 7.2.1 or 7.3 on Ubuntu 22.04 cloud server. Any one > may send the Guidlines for instaltion. in PDF or Doc file. I will be relay > thanfull to you. https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y3zTBnjdBybyknyI%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Kill java processes (dspace/webapps/oai)
On Wed, Nov 09, 2022 at 12:20:35PM -0800, José Luis Silva wrote: > Hello community, I have a version 6.3 of dspace. > > I checked the running processes and saw four 'java' processes exceeding > %CPU, we increased the server CPU and memory to 10 vCPU and 18 GB RAM. This > has no effect, the same processes are running above the threshold. > > I tried 'kill -9' to kill these processes with their PID, but they > immediately ran again. I see two separate issues here. 1. *Possible* runaway processes. These could simply be doing work that takes a lot of CPU for a significant amount of time, but would eventually complete. The first thing to do is to find out what application is running in each, then find out what that application is doing. Check the appropriate log files to see if there is a problem. 2. Killed processes are automatically re-created. This sounds like those applications are running under a process monitor that is configured to keep them running. There are many of these -- for example, here we use 'monit' to start and restart daemons such as Tomcat and Solr. If this is how those processes of yours are run, then you'll need to find out what is monitoring them and use that to control their states. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y2z5LhSlFauImiS8%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Filter media running for 4 days is it normal process?
On Mon, Nov 07, 2022 at 05:40:25AM -0800, Lewatle Johannes Phaladi wrote: > I have shared your respond with my colleagues to see if we can have > solution. Is there anyway to run filter-media on community or collection. > > maybe by breaking that index can make it complete the task. 'bin/dspace filter-media -h' shows that it can be run on individual items, but I see no option to process a single community or collection. You could make lists of item IDs in each collection and create scripts for 'bin/dspace read': filter-media -i 12345/1 filter-media -i 12345/2 ... This should be faster than running each item separately. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y2kUXx%2Bii3CTvEnU%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Filter media running for 4 days is it normal process?
On Fri, Nov 04, 2022 at 04:22:25AM -0700, Lewatle Johannes Phaladi wrote: > I have run ./dspace filter-media for the past 4 days, it is still running, > I am asking if this is how long it should run. our DSpace repository have > +- 35 000 items. That depends on many factors, but it does seem a bit long. Is the CPU very busy? Is the machine doing much swapping? Or perhaps the command doesn't have enough heap and is spending most of its time garbage-collecting. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y2UK06QCyaTHRbPI%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: DSpace 5.4 - tomcat stuck at org.apache.catalina.startup.Catalina start after edit of robots.txt file
ContainerBase.addChildInternal(ContainerBase.java:903) > >at > >org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) > >at > >org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) > >at > > > > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679) > >at > > > > org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966) > >at > >java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > >at java.util.concurrent.FutureTask.run(FutureTask.java:266) > >at > > > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > >at > > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > >at java.lang.Thread.run(Thread.java:750) > > > >Nov 03, 2022 2:21:54 PM org.apache.catalina.startup.HostConfig > >deployDescriptor > >INFO: Deployment of configuration descriptor > >/etc/tomcat/Catalina/localhost/xmlui.xml has finished in 97 ms > >Nov 03, 2022 2:21:54 PM org.apache.coyote.AbstractProtocol start > >INFO: Starting ProtocolHandler ["http-bio-8080"] > >Nov 03, 2022 2:21:54 PM org.apache.coyote.AbstractProtocol start > >INFO: Starting ProtocolHandler ["ajp-bio-8009"] > >Nov 03, 2022 2:21:54 PM org.apache.catalina.startup.Catalina start > >INFO: Server startup in 609 ms > >- The files in /etc/tomcat/Catalina/localhost haven't been modified > >since 2015. > >- The files in /opt/projects/dspace/webapps/xmlui/static/ have owner > >and group "tomcat" and the files in /etc/tomcat/Catalina/localhost have > >owner and group "dspace". > >- As far as I know, this part of the configuration hasn't changed for > >years. > >- Oracle and Oracle listener are up and running, but not showing any > >connections from DSpace. > >- I've rebooted the server, but the problem persists. > > > > Our DSpace 5.4 instance is dead in the water, but the only think I changed > > before stopping and restarting tomcat was the robots.txt file (which is now > > back to the original). > > > > Any help will be appriciated. > > > > Thanks, Kerry > > > > > > > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/a91aa2fa-2bd2-4f1d-9ddf-f491b99ee07bn%40googlegroups.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y2UEDT6xO5cVsJ20%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Is it advised to comment out ehcache updateCheck
On Tue, Nov 01, 2022 at 07:16:33AM -0700, 'Tim Donohue' via DSpace Technical Support wrote: > Hi Sarah, > > The context of your question is unclear. But, I wanted to note that this > configuration has been fully removed from DSpace 7 (as of 7.3, > see https://github.com/DSpace/DSpace/pull/8146). So, that > "dspace-services/src/main/resources/caching/ehcache-config.xml" file no > longer exists in DSpace 7. > > It's unclear what version of DSpace you are referring to. I was personally > unaware that this configuration caused any issues in older versions of > DSpace, but it appears that at least Alan Orth (and maybe others) found > that setting "updateCheck=false" helped. So, I cannot make a > recommendation here as to whether to change that setting or not in older > DSpace releases... but maybe others can provide more specific advise. DSpace was patched on 2018-04-08 to disable the update check. See https://github.com/DSpace/DSpace/pull/1940 I recall that the messages were annoying and the check slowed startup a bit. > On Monday, October 31, 2022 at 6:40:20 AM UTC-5 sbu...@oakland.edu wrote: > > > Hello, > > > > In this update from Alan > > https://alanorth.github.io/cgspace-notes/2017-09/#2017-09-12, it is > > suggested that setting this updateCheck="false" resolves an issue of > > frequent calls to terracotta (we are seeing this issue). Is it still > > advisable to make this change? > > > > Thanks! > > Sarah -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y2JORAajwSb%2B2J1B%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Change column name on a full item page on DSpace 7
On Tue, Oct 25, 2022 at 08:40:42PM +, Fitchett, Deborah wrote: > To (tentatively) answer your question, while I haven’t yet worked with DSpace > 7, at least up to DSpace 5 I’m not aware of these names being customisable in > the full item view. I’ve always thought of it as a “for librarians and other > geeky folk” view so we focus on making the simple item view as user-friendly > as we want for the public, and leave the full item view using the technical > names for the metadata fields. That is my view as well. I've always thought that the item detail view is intended to get behind the submission forms -- which are designed for people whose primary focus is something other than characterizing library holdings -- and let librarians work with an item in the form in which DSpace actually holds it. The metadata field registry contains only schema, element, qualifier and "scope note" (which *describes* the field) so there is no place from which to get "friendly" names for all fields. The same metadata field might have different labels in the submission interface depending on which collection is to receive the submission. And I think that the submission label might be just clutter to most of the people who want the full view. I think that many users of the full view would be justly unhappy if the precise field names were *replaced* with vague labels. Metadata fields have specific definitions in standards documents, identified by the names given therein. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y1kw0u1C/cQ4URVo%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Eternal error when i try to add a new user in the page jspui
On Tue, Oct 25, 2022 at 11:05:52AM +0200, Smail GUELLAL wrote: > I was installed Dspace 6.3 sous ubuntu 20.04, the installationwas > sucessfully, but when i want add a new user(in page jspui - > http://localhost:8080/jspui-), it give this error: > > Internal System Error > > The system has experienced an internal error. Please try to do what you > were doing again, and if the problem persists, please contact us so we can > fix the problem. > > Leave a message for the DSpace at My University administrators. > <http://172.16.1.43:8080/jspui/feedback> > > Go to the DSpace home page <http://172.16.1.43:8080/jspui/> Please notice that this message says nothing about what actually happened. That information will probably be in '[dspace]/log/dspace.log'. Please post any relevant log messages. Without that information, nobody can help you. You may find the troubleshooting guide helpful: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error In particular, see "Finding the Error Message in your Log Files". Thank you for including the software versions in your report. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y1fPU/o6vGHlwCT/%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Apache Commons Text vulnerability
On Thu, Oct 20, 2022 at 01:51:26AM -0700, oriol@udl.cat wrote: > There has been discovered a vulnerability affecting versions 1.5 to 1.9 of > Apache Commons Text: > https://nvd.nist.gov/vuln/detail/CVE-2022-42889 > > I've seen DSpace 7 uses the 1.9 version of this library: > https://github.com/DSpace/DSpace/blob/main/dspace-api/pom.xml#L850 > > It is recommended to update to 1.10, but I haven't tested it yet myself. > Just wanted to make sure everyone who is using DSpace 7 in production is > aware of this. Thank you. A patch has been developed, but currently it is believed that this issue does not affect DSpace. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y1E4WaigD6Fsdcll%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] How to update from Dspace 6 to 7
On Fri, Oct 14, 2022 at 11:39:56AM +0300, walakira Jibril Derrick wrote: > Good morning Team any one to help with the steps for upgrading to dspace 7 https://wiki.lyrasis.org/display/DSDOC7x/Upgrading+DSpace -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y0lGh5cEFbm1WPsu%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] External Database Setup
On Wed, Oct 12, 2022 at 11:56:51AM -0700, Henry Atsu Agbodza wrote: > Hello all, > i need help on configuration settings for an external postgreqsl server. > My architecture is : > Dspace 6 = Application Server > Postgresql = Another Server (External) > Assetstore = Another Server (NFS) > > I have done the connection for the NFS in local.cfg and dspace.cfg > succesfully. > For the external postgreqsl server, my settings in local.cfg and dspace.cfg > is db.url = jdbc:postgresql://xxx.xx.xxx.xx:5432/dspace > > But when i run *sudo ant fresh_install,* > *it fails at the Database connection point.* Please show us the messages which indicate this failure. Here we run several DSpace instances on two different hosts using a single DBMS on a third host, so what you are trying to do should work when properly configured. One thing I would check is whether the DBMS is rejecting the connection from a different host because it is not permitted by the *DBMS* configuration. The error report from 'ant' and the DBMS log file should show whether this is the case. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y0gQiPVjks%2Bfh4yg%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Index fail message after upgrading from Dspace 6.2 to 7.3
/www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > >> --- > >> 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 view this discussion on the web visit > >> https://groups.google.com/d/msgid/dspace-tech/e34f93ed-6923-4643-85e1-1d741c75eeffn%40googlegroups.com > >> > >> <https://groups.google.com/d/msgid/dspace-tech/e34f93ed-6923-4643-85e1-1d741c75eeffn%40googlegroups.com?utm_medium=email_source=footer> > >> . > >> > > > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/5dc28b99-0037-459a-8b1c-b1a15c5f1477n%40googlegroups.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y0a0SjKIiWjhtKi9%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] error
On Tue, Oct 11, 2022 at 05:04:44AM -0700, Smail GUELLAL wrote: > Hi and thank's for your answer, but can you help me how to solve this > probleme i am a beginer in Dspace I thought I had. 1. Note the precise time that the error message occurs. 2. Examine '[DSpace]/log/dspace.log'. See what WARN or ERROR messages are recorded at that time, and any others that are between them or which seem related to them. You should find something which describes the actual problem. 3a. If the actual problem is now obvious, fix it. 3b. If it is not clear how you should fix the problem, write to us again, including the log messages that seem to be related to the problem. No one can solve an unknown problem. The message on the browser does not contain enough information to know what the problem is. The log file should. The document that I mentioned ("Please read") will help you to gather the necessary information and to understand common problems. You did well to include the software versions in your message, and the precise way that you triggered the error. That is the beginning of a good error report. The relevant log entries will complete it. > Le lundi 10 octobre 2022 à 16:00:04 UTC+2, Mark H. Wood a écrit : > > > On Mon, Oct 10, 2022 at 02:00:22AM -0700, Smail GUELLAL wrote: > > > Hello everyone! > > > I installed Dspace 6.3 successfully, the java version is jdk java 1.8.0 > > , > > > postgres 14 and tomcat9, but when I type the following link > > > https://localhost:8080/jspui it shows me the error message next > > Internal > > > System Error > > > The system has experienced an internal error. Please try to do what you > > > were doing again, and if the problem persists, please contact us so we > > can > > > fix the problem. > > > > > > Leave a message for the DSpace at My University administrators. > > > > > > Go to the DSpace home page > > > > > > my question is how to solve this problem? > > > to have a clear idea please consult the attached image > > > > The part which says "please contact us" means that your end user > > should contact *you*. > > > > The first thing to do with an "internal error" report is to examine > > the log files at the time of the error to see what actually happened. > > An internal error could be any of several hundred things. The log > > should contain much more information about what was happening at the > > time of the error. > > > > Please read > > https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error > > It may be all that you need to solve the problem. > > > > If, after that, you still need help, please bring as much information > > about the failure as you can get from your log files and observation > > of the problem. We'll be happy to assist you. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y0askIO1jXD3hxGV%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] error
On Mon, Oct 10, 2022 at 02:00:22AM -0700, Smail GUELLAL wrote: > Hello everyone! > I installed Dspace 6.3 successfully, the java version is jdk java 1.8.0 , > postgres 14 and tomcat9, but when I type the following link > https://localhost:8080/jspui it shows me the error message next Internal > System Error > The system has experienced an internal error. Please try to do what you > were doing again, and if the problem persists, please contact us so we can > fix the problem. > > Leave a message for the DSpace at My University administrators. > > Go to the DSpace home page > > my question is how to solve this problem? > to have a clear idea please consult the attached image The part which says "please contact us" means that your end user should contact *you*. The first thing to do with an "internal error" report is to examine the log files at the time of the error to see what actually happened. An internal error could be any of several hundred things. The log should contain much more information about what was happening at the time of the error. Please read https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error It may be all that you need to solve the problem. If, after that, you still need help, please bring as much information about the failure as you can get from your log files and observation of the problem. We'll be happy to assist you. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Y0QlC4v67N8WbdjU%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Importing/Registering item links as bitstream in Dspace 7.3
On Sat, Oct 01, 2022 at 12:47:48AM -0700, M P wrote: > I am having difficulty incorporating our thesis holdings into DSpace when > harvesting from our existing Koha ILS catalogue. I am a little unsure > about the best way to go about it, as it seems DSpace has several different > ways of incorporating items. > > Here is what we have: > >1. All theses catalogued in Koha >2. Thesis holdings are converted to DublinCore and available via OAI-PMH >(https://library.sats.ac.za/cgi-bin/koha/oai.pl?verb=ListSets) >3. DSpace successfully harvests the data from the above OAI server >4. Items appear as they should in each of the configured collections ( > > https://research.sats.ac.za/communities/5a2b008a-e0ec-4470-81a2-3f2c8d1277c0) >5. The URL to the actual thesis shows up in DSpace as dc.identifier in >the Full Item Page. These urls refer to the PDF of the actual thesis >stored in S3. (e.g. > > https://research.sats.ac.za/items/cb8ff81c-3a33-450f-a9a5-39101afeda70/full) > > MY QUESTION: > What is the best way to incorporate the stored thesis PDF into Dspace? Do I > harvest with ORE, do I "register", do I import? I am unclear on how these > differ and what the end result would be. I would like for the link to the > thesis to show on the primary item page and for the thesis to be indexed by > solr so we can take advantage of the full-text indexing. Furthermore, if > the url to the thesis is already available via the metadata, why can't > Dspace simply incorporate that as part of the harvest process? Just brainstorming: I've never tried ORE so I can't comment on that, except to say that it sounds like the simplest approach if it works for you. To import an item, you need to make up a complete ingestion packet with metadata and content, and provide it to DSpace. This sounds duplicative, if you have already harvested the metadata. Registration is usually used with very large files which are already available on the server. Otherwise it is like import. It just avoids the copying of content into the assetstore. Having your content in an S3 store raises an intriguing possibility that I don't think is fully implemented. DSpace does have code to talk to S3, but I don't think this was ever incorporated into the registration code. Whether there is any value in this idea depends on your interest in creating some glue code and whether you want DSpace to have an independent copy of the content. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Yzr0793eoijffXWC%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Handle-server cannot start
On Tue, Sep 27, 2022 at 03:20:04AM -0700, Gabriella Harangi wrote: > I've tried to start the handle server on our production server, which is a > fresh 7.3 install, and it doesn't work, it throws the same exception as > mentioned above. Then I've tried it on our test server, which is also a > dspace 7.3, but upgraded from dspace 7.2. The handle server doesn't start > there either (same exception). I've also tried it in docker with no success. > Always got the same error: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/eclipse/jetty/servlet/ServletContextHandler > > Please, give me any suggestion, how can I fix the handle server. It seems that the JAR which contains this class is not installed by 7.3. That class is found in the 'jetty-servlet' artifact. I think that if you add 'jetty-servlet-9.4.44.v20210927.jar' to the 'lib' directory, this problem will be fixed. You can find it here: https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-servlet/9.4.44.v20210927/jetty-servlet-9.4.44.v20210927.jar It may already be in your local repository (~/.m2/repository). I haven't figured out why the JAR is not installed. I can't find it in my development/test instances. The 'log/handle-server.log' is probably the best place to be looking for clues, should there be further problems. > Mark H. Wood a következőt írta (2022. szeptember 26., hétfő, 16:55:18 > UTC+2): > > > On Mon, Sep 26, 2022 at 03:43:40AM -0700, Fatih Güneş wrote: > > > Hello Tim, > > > We did some updates. Now I get no error message about Jetty-server. But > > > handle-server still does not start. Below is a part from dspace.log. > > > > > > 2022-09-26 13:31:47,687 WARN unknown unknown > > > org.dspace.servicemanager.DSpaceServiceManager @ Unable to locate bean > > by > > > name or id=dsprop. Will try to look up bean by type next. > > > > I think this is not related to the problem. The command line tool has > > two ways of discovering which commands exist. It first tries the new > > "script"s, apparently using the command's name itself. If not found > > that way, it looks the command up in the older 'launcher.xml' which > > maps it to the implementing class. > > > > So the ServiceManager will always log this warning for a command which > > is defined in launcher.xml. > > > > If the real issue is logged, it is probably after this entry. > > > > -- > > Mark H. Wood > > Lead Technology Analyst > > > > University Library > > Indiana University - Purdue University Indianapolis > > 755 W. Michigan Street > > Indianapolis, IN 46202 > > 317-274-0749 <(317)%20274-0749> > > www.ulib.iupui.edu > > > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/c9602b1f-5639-4e39-8e8f-06e889a079d9n%40googlegroups.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YzL4BzWvI8G%2BqQ2D%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] dspace 7.x and support for node js v18
On Tue, Sep 27, 2022 at 01:16:59AM -0700, Allan Pickett wrote: > > Would anyone know if there are plans to add support for nodejs v18 as part > of the maintenance for DSpace 7 as nodejs v16 will be end of life next > year? And in which sub release this support be aiming for? If you just want to be able to build and run it on node 18, this works for me: diff --git a/package.json b/package.json index 33e337121..aee1a4083 100644 --- a/package.json +++ b/package.json @@ -172,7 +172,7 @@ "eslint": "^8.2.0", "eslint-plugin-deprecation": "^1.3.2", "eslint-plugin-import": "^2.25.4", -"eslint-plugin-jsdoc": "^38.0.6", +"eslint-plugin-jsdoc": "^39.3.6", "eslint-plugin-unused-imports": "^2.0.0", "express-static-gzip": "^2.1.5", "fork-ts-checker-webpack-plugin": "^6.0.3", @@ -209,7 +209,7 @@ "ts-loader": "^5.2.0", "ts-node": "^8.10.2", "typescript": "~4.5.5", -"webpack": "^5.69.1", +"webpack": "^5.74.0", "webpack-bundle-analyzer": "^4.4.0", "webpack-cli": "^4.2.0", "webpack-dev-server": "^4.5.0" I will bring up the question of *official support*. > Knowing this would help enormously with scheduling our project. > > Should I log an enhancement request for this? Yes, that would be helpful. > Can see that nodejs end of life is soon, with security updates to finish on > 11 Sep 2023. > Details here - https://nodejs.org/ar/blog/announcements/nodejs16-eol/ -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YzLtnDQCv5U2X7QY%40IUPUI.Edu. signature.asc Description: PGP signature
[dspace-tech] Re: [dspace-community] Question about Dspace 6.X
On Tue, Sep 27, 2022 at 09:47:16AM +0530, Rupinder Singh wrote: > 1. is it mandatory to create a system user named 'dspace' ? if it's related > to some permissions issue to /build or /dspace folder, why can't we grant > permissions to the existing user and do our work with just that? I just > cant understand this step. The 'dspace' user is not necessary. What is necessary is that Tomcat has read/write access to DSpace's installed files and directories. I think that this user was invented for the case that you are installing Tomcat from source, solely to run DSpace, so it needs an account to run it. I always install Tomcat from the distro's package manager, and that process creates an account to run it. So I use that account (typically something like 'tomcat') to own the installed DSpace files. > 2. I don't remember setting any particular password for postgres sql, > because while running 'psql' commands, it asks for password for postgres > user. and I don't have that. do I need to reset the default password to > something of my choice, to perform backup /restore and other tasks on > postgres CLI. (I'm asking because, MySQL has this kind of mechanism). You can backup and restore *the DSpace database* using the password that you have configured as 'db.password'. But that won't give you access to the system tables which should also be backed up. Yes, you need to have control of PostgreSQL. It should be running in its own account. If you can 'su' to that account, then you can use 'psql' without knowing any passwords. If you don't have the password for the PostgreSQL superuser's OS account, but you do have the root password, you can do this in two stages: 1. 'su' and give the root password. You are now root, and can 'su' to any other account without a password. 2. 'su postgres'. You are now the DBMS superuser. You can set a password on the OS account, if you wish. You can use 'psql' to access any database in the cluster, without a password. You can set the password for the DBMS superuser role. (The OS user might have a different name in your system. 'postgres' is what the Gentoo Linux package for PostgreSQL installs.) -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YzLo7K6mJ9JigxJw%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Handle-server cannot start
On Mon, Sep 26, 2022 at 03:43:40AM -0700, Fatih Güneş wrote: > Hello Tim, > We did some updates. Now I get no error message about Jetty-server. But > handle-server still does not start. Below is a part from dspace.log. > > 2022-09-26 13:31:47,687 WARN unknown unknown > org.dspace.servicemanager.DSpaceServiceManager @ Unable to locate bean by > name or id=dsprop. Will try to look up bean by type next. I think this is not related to the problem. The command line tool has two ways of discovering which commands exist. It first tries the new "script"s, apparently using the command's name itself. If not found that way, it looks the command up in the older 'launcher.xml' which maps it to the implementing class. So the ServiceManager will always log this warning for a command which is defined in launcher.xml. If the real issue is logged, it is probably after this entry. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YzG9UsyBW/rVWbIZ%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Flyway migrations quirky
On Mon, Sep 26, 2022 at 06:51:03AM -0700, Stephen Brush wrote: > When starting the application via Tomcat Flyway migrations don't fire -- > but the schema validation does which prevents the application from running. > > Migrations are run successfully when running commands from "/bin/dspace" in > the deployment folder. > > Is this the expected behaviour? Has anyone else come across this? I have seen it on occasion, but not consistently. I don't know what causes it. I've also seen cases which seemed to have built the database tables, but the Administrator group is missing. And I just the other day ran into one where the tables were built but there was no Site, which crashed rather early in startup. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YzG7m5MLVjBhRBHa%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Changing the create Collection and create Community pages programmatically
On Thu, Sep 15, 2022 at 04:27:59PM -0700, Pierre Roozmon wrote: > Hi Tim, > > I'm trying to programmatically add new fields for the create Community and > create Collection pages in DSpace v7.x. I've determined how to use various > dynamic controls (e.g. DynamicSelect, DynamicTextArea, etc) to create > different types of input fields. > > Meanwhile, I can use the xml files to modify and add fields in the create > Item page (i.e Edit Submission). This is well-documented, though I've had > difficulty with some style issues. For excmpale, I could move the Upload > step to the top of the page, but I couldn't make it sticky. > > The Confluence DSpace documentation suggests that "input-forms.xml" was > integrated into "submision-forms.xml" in v7.x, but this doesn't seem to be > the case. This led to the conclusion that we need to make changes to create > Community and create Collection programmatically. I believe that input-forms.xml was split up. Some of the information went into item-submission.xml and the rest into submission-forms.xml. But I don't believe that any of this is connected with the create-Community and create-Collection pages. I think that what follows is not helpful for what I understand that you are trying to do. > Hence I'm trying to determine how the xml files "item-submission.xml" and > "submission-forms.xml" are parsed by the code and converted into HTML. I > believe that this will explain how the submission fields are defined for > Items via xml and thus how they can be modified programmatically for > Collections and Communities, The submission configuration is converted into logical structures by dspace-api. These are provided to the UI, which uses them to generate HTML (in the case of dspace-angular -- another front-end could use the same information quite differently, which is why it is done this way.) > Can you please point me to where this parsing occurs? It seems to me that > this would provide the key to understanding how all of these fields are > converted into HTML, either dynamically via .ts files or statically via xml > files. item-submission.xml is read in dspace-api/app/util/SubmissionConfigReader. submission-forms.xml is read in dspace-api/app/util/DCInputsReader. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YyRsQFt8iFPsY/oF%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 7.x issues with classloader and customisations in additions-7.x.jar
On Mon, Sep 12, 2022 at 05:56:42AM -0700, Agustina Martinez wrote: > I am consistently experiencing issues with the order of JARs by the > classloader in all of the 7.x versions that we have tested: 7.2.1 and 7.3. > > additions-7.x.jar no longer is loaded first, and this causing for any > customised class that we have to not being used when running DSpace. > > It was my understanding that this was fixed since DSpace 6.x and for DSpace > 5.x there is the documentation for a workaround > here: https://wiki.lyrasis.org/display/DSDOC5x/Advanced+Customisation > (under the Additions module section) I don't see why that wouldn't work for 7.x as well. IIRC the fix in 6.x was to unpack the JAR into 'WEB-INF/classes'. That should work too. This should be happening automatically, but if not, you can just do it manually until the problem is understood and fixed. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Yx9Yzosft0FOGA3t%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] New user registration stopped working
On Thu, Sep 08, 2022 at 01:22:12AM -0700, Наукова бібліотека ПНУ ім. В. Стефаника wrote: > New user registration stopped working. Gives the message: "Internal system > error" in DSpace. Previously registered users can log into their account. > What could be the problem and how to fix it? That message really should say "Ask your DSpace administrator to look in the log files for this problem." Do you see anything relevant in 'log/dspace.log' at the time of the error? It is always helpful to include the version of DSpace that you are using. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YxsjKnW5Dt6IIg8b%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Dspace issue 7
On Wed, Aug 31, 2022 at 09:17:32PM -0700, Shankar Nadoor wrote: > How to changes front page info.. and header pages https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization especially: https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization#UserInterfaceCustomization-CustomizeLogoinHeader https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization#UserInterfaceCustomization-CustomizeHomePageNews -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YxCj1E0q3ZYnk80S%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Not able to upload file in Dspace 7.3
"file upload failed" doesn't tell us much at all. HOW did it fail? o Did you get an error message? what did it say? Please quote the whole message precisely. o Did it do something, but not what you expected? What did it do? -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Yw4H2e8Qn51S6Qoh%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Batch Import (.zip) Error
On Thu, Aug 25, 2022 at 02:16:05AM -0700, Kiran Dhakal wrote: > Dear Shamprasad and rest of the community, > > I am getting the same error while trying to import collection from one > instance of ver 6 to another instance of ver 6. Did you find any solutions > to this? Or does anybody have any idea on how to solve this issue? There may be more information in 'logs/dspace.log'. > On Wednesday, 21 June 2017 at 19:33:43 UTC+7 pu...@igidr.ac.in wrote: > > > Dear All, > > > > I tried to import a collection from one instance of DSpace (ver 5.2) to > > another (ver 6), but it is showing the following error. > > > > Notice Import failed Can't create an Identifier! > > > > You may please help to resolve this issue. > > > > Thanks, > > > > Shamprasad Pujar > > Deputy Librarian > > IGIDR, Mumbai, India > > > > > > > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/182ec149-1c9f-4a36-946f-f4f22ddce74en%40googlegroups.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Ywdo%2Bjf73VeN2TaP%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: DSpace 7.3, multiple custom themes
On Wed, Aug 24, 2022 at 07:38:22AM -0500, 'Bill Tantzen' via DSpace Technical Support wrote: > Thanks Mark! > So, just to be clear, you have two distinct themes with two different > UntypedItemComponents (I was able to implement and override one in my > default theme, it's the second one in a different theme that fails...)? I > just wanted to make sure I am not going down a dead end street! Not yet, but I do have one custom theme with its own UntypedItemComponent and I do get that one, not the stock one. > I thought I did give it the listableObjectComponent special treatment, but > I will check again... I no doubt missed something if you were successful. > ~~Bill > > On Wed, Aug 24, 2022 at 6:34 AM Mark H. Wood wrote: > > > On Tue, Aug 23, 2022 at 02:42:03PM -0500, 'Bill Tantzen' via DSpace > > Technical Support wrote: > > > OK, here is some further info: The correct ItemPageComponent is being > > > selected correctly, but the UntypedItemComponent is the piece that is > > > incorrect. > > > > > > UntypedItemComponent is NOT in the custom theme directory, so maybe it is > > > not themeable? > > > > > > Has anybody fooled around with this? My goal is to have differently > > themed > > > item pages depending on a per-collection or per-community basis... > > > Specifically, different metadata, and it looks like UntypedItemComponent > > is > > > where this magic happens. > > > > I ran into this as well. One thing that is special is that > > UntypedItemComponent is decorated '@listableObjectComponent' so it is > > made theme-able in a different way. Look for 'listableObject' in > > https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization > > for more information. > > > > I wish I could just tell you what worked, but I spent days floundering > > around in the code and the memories are blurred. > > > > > On Tue, Aug 23, 2022 at 12:07 PM Bill Tantzen wrote: > > > > > > > I'm experimenting with creating custom themes for a couple of > > communities > > > > and collections. I have a default theme with all the components in > > > > 'custom', along with a theme for a specific community, and one for a > > > > specific collection. My theme config is like so: > > > > > > > > themes: > > > > - name: 'community_a' > > > > extends: 'default' > > > > handle: 'x/183663' > > > > > > > > - name: 'collection_a' > > > > extends: 'default' > > > > handle: 'x/166578' > > > > > > > > - name: 'default' > > > > > > > > In my 'community_a' theme, I have a community-page component > > > > In my 'collection_a' theme, I have a collection-page component and an > > > > item-page component. The default theme has all themeable components. > > > > > > > > The problem I am having is that regardless of which community or > > > > collection to which an item belongs, it is themed by the item-page > > > > component in the 'collection_a' theme (the first one it encounters). > > > > > > > > My understanding was that items in collection_a are themed by the > > > > component I override there, and that the default theme takes care of > > > > everything else. > > > > > > > > Am I misunderstanding something, have I misconfigured something, or is > > > > this a bug? Anybody else out there experimenting with multiple themes? > > > > > > > > Thanks for any advice! > > > > ~~Bill > > > > -- > > > > Human wheels spin round and round > > > > While the clock keeps the pace... -- John Mellencamp > > > > > > > > Bill TantzenUniversity of Minnesota Libraries > > > > 612-626-9949 (U of M)612-325-1777 (cell) > > > > > > > > > > > > > -- > > > Human wheels spin round and round > > > While the clock keeps the pace... -- John Mellencamp > > > ____ > > > Bill TantzenUniversity of Minnesota Libraries > > > 612-626-9949 (U of M)612-325-1777 (cell) > > > > > > -- > > > All messages to this mailing list should adhere to the Code of Conduct: > > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > > > --- > > > You received this messa
Re: [dspace-tech] Re: DSpace 7.3, multiple custom themes
On Tue, Aug 23, 2022 at 02:42:03PM -0500, 'Bill Tantzen' via DSpace Technical Support wrote: > OK, here is some further info: The correct ItemPageComponent is being > selected correctly, but the UntypedItemComponent is the piece that is > incorrect. > > UntypedItemComponent is NOT in the custom theme directory, so maybe it is > not themeable? > > Has anybody fooled around with this? My goal is to have differently themed > item pages depending on a per-collection or per-community basis... > Specifically, different metadata, and it looks like UntypedItemComponent is > where this magic happens. I ran into this as well. One thing that is special is that UntypedItemComponent is decorated '@listableObjectComponent' so it is made theme-able in a different way. Look for 'listableObject' in https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization for more information. I wish I could just tell you what worked, but I spent days floundering around in the code and the memories are blurred. > On Tue, Aug 23, 2022 at 12:07 PM Bill Tantzen wrote: > > > I'm experimenting with creating custom themes for a couple of communities > > and collections. I have a default theme with all the components in > > 'custom', along with a theme for a specific community, and one for a > > specific collection. My theme config is like so: > > > > themes: > > - name: 'community_a' > > extends: 'default' > > handle: 'x/183663' > > > > - name: 'collection_a' > > extends: 'default' > > handle: 'x/166578' > > > > - name: 'default' > > > > In my 'community_a' theme, I have a community-page component > > In my 'collection_a' theme, I have a collection-page component and an > > item-page component. The default theme has all themeable components. > > > > The problem I am having is that regardless of which community or > > collection to which an item belongs, it is themed by the item-page > > component in the 'collection_a' theme (the first one it encounters). > > > > My understanding was that items in collection_a are themed by the > > component I override there, and that the default theme takes care of > > everything else. > > > > Am I misunderstanding something, have I misconfigured something, or is > > this a bug? Anybody else out there experimenting with multiple themes? > > > > Thanks for any advice! > > ~~Bill > > -- > > Human wheels spin round and round > > While the clock keeps the pace... -- John Mellencamp > > > > Bill TantzenUniversity of Minnesota Libraries > > 612-626-9949 (U of M)612-325-1777 (cell) > > > > > -- > Human wheels spin round and round > While the clock keeps the pace... -- John Mellencamp > > Bill TantzenUniversity of Minnesota Libraries > 612-626-9949 (U of M)612-325-1777 (cell) > > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx > --- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/dspace-tech/CADgrb7FjrmSz%3DjnzficmzXJUVMkkYSJ0kZP2HDFj06MZR258HQ%40mail.gmail.com. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YwYM2iHG7GGcIXDr%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] opensaml::SecurityPolicyException at Shibboleth authentication
On Tue, Aug 23, 2022 at 09:00:07AM -0700, Joshua Kim wrote: > After updating my Centos 8 system and DSpace 7.3 (frontend and backend), I > got this error on DSpace 7.3. > > opensaml::SecurityPolicyException at > (https://xx.udel.edu/Shibboleth.sso/SAML2/POST) > > Message rejected, was issued in the future. > > Can someone help me out? The first thing I would do is check that your DSpace host system has the correct time (or, at least, has the same time as the Shibboleth host). Many authentication services depend on well-synchronized clocks on all hosts. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YwYKN/PahILsFehY%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Correct permissions prior to using Maven and Ant while installing Dspace 6.3
On Mon, Aug 22, 2022 at 08:18:43PM -0700, Night Librarian wrote: > I have a tiny question. I want to run the installation as a tomcat user, > instead of dspace, as described in this conversation. Howerver, when I try > to run on Ubuntu 20.4: > > sudo su - tomcat > > I get: > > "This account is currently not available." > > > Do I need to be a superuser to run mvn and ant? And if not, can I switch > to just "tomcat" user like this? > > su tomcat > > Because when I try, I am prompted for password, which I don't have, > probably because I didn't create a "tomcat" account manually, so I end up > with: > > su: Authentication failure > > How can I run install as a tomcat user? "This account is currently not available." -- you'll probably find that the user 'tomcat' has '/sbin/nologin' for its shell. That's where this message comes from. You can override that by specifying the shell to use: sudo su - tomcat -s /bin/sh You'll probably find that the encrypted password for 'tomcat' is "!" which means "don't accept *any* password". So you need 'sudo' or being superuser to 'su' to 'tomcat'. The account effectively has a password that can never be known or guessed, because nothing will ever encrypt to "!". -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YwTISLgJz0HOeW0r%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] dspace 7 default license
On Wed, Aug 10, 2022 at 07:13:32AM -0500, 'Bill Tantzen' via DSpace Technical Support wrote: > Right, and I really don't want markup in a txt file... Well, we could devise a really *simple* language. It could be as simple as: o leading whitespace means indent; o one or more consecutive empty lines means a paragraph break. But, to fit into a page that must be pourable into a viewport of any width, the text must be *rendered*, not just flung out as-is. Right now I think we're getting what happens when you stick arbitrary character content with no markup inside a . It works, but we lose too much structure. You could work around this a bit by altering the page template so that the license text is surrounded by , but that will only work well at one size because it depends on the text being already formatted to fit the screen's width. There are similar difficulties with abstracts and the like, for which there is an issue on file. I don't think that the same solution will work for all of these. I just point out a general problem. > On Wed, Aug 10, 2022 at 7:08 AM Mark H. Wood wrote: > > > On Tue, Aug 09, 2022 at 02:20:02PM -0500, 'Bill Tantzen' via DSpace > > Technical Support wrote: > > > In DSpace 7.3, the displayed license text does not respect the line > > breaks > > > and extra whitespace in default.license (as it did in v5.10). > > > > > > Is this a theming issue? Is there a way to reintroduce the line breaks > > for > > > readability? > > > > I sympathize. We're going to have that same issue here. > > > > It's going to be a bit tricky, though. To fit a variety of display > > widths, the text really should be filled. To do this *and* permit > > arbitrary breaks, indents and the like requires some kind of embedded > > markup. > > > > And have we given sufficient thought to the accessibility of the > > license text? If it's just a single ragged rectangle then this is > > fairly easy. Structured text is more difficult. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YvOqDQfATlFdpg6V%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] dspace 7 default license
On Tue, Aug 09, 2022 at 02:20:02PM -0500, 'Bill Tantzen' via DSpace Technical Support wrote: > In DSpace 7.3, the displayed license text does not respect the line breaks > and extra whitespace in default.license (as it did in v5.10). > > Is this a theming issue? Is there a way to reintroduce the line breaks for > readability? I sympathize. We're going to have that same issue here. It's going to be a bit tricky, though. To fit a variety of display widths, the text really should be filled. To do this *and* permit arbitrary breaks, indents and the like requires some kind of embedded markup. And have we given sufficient thought to the accessibility of the license text? If it's just a single ragged rectangle then this is fairly easy. Structured text is more difficult. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YvOfvD4WeWscFXH8%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 7 item theming
On Tue, Aug 02, 2022 at 09:34:40AM -0500, 'Bill Tantzen' via DSpace Technical Support wrote: > Mark, > I'll give it a try -- my understanding was that only things from the custom > theme were themeable (and item-page/simple/item-types/untyped-item/ is not > in themes/custom/item-page). But I'll find out! I should've said that I'm doing something similar with a custom untyped-item in a theme and it works. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YupkR0oJ2YUjHTO0%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 7 item theming
On Mon, Aug 01, 2022 at 12:43:46PM -0500, 'Bill Tantzen' via DSpace Technical Support wrote: > This seems like a pretty basic problem, but I have not been able to find a > solution. If documentation exists, please point it out to me! > > I would like to add / remove / re-order the metadata on the simple item > view page for a custom theme. I have discovered > src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html > however I don't want to make global changes; I have a pair of custom > themes, and I would like different item views in the different themes. > > Is there a way to accomplish this? That is one of the theme-able components, so you can copy the whole component into your themes and reorganize the copies as needed. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YukdmlN7wzL1%2BRH9%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: DSpace 7.2 behind a F5 internal firewall with wildcard certificate
On Fri, Jul 08, 2022 at 11:24:37AM +0200, Sean Carte wrote: > Ah, but wait, I remembered the chain of events that led to me installing > the cert, whose chain is broken: > > The F5 firewall seems to provide certification through its wildcard > certificate. So if you visit our current DSpace-CRIS 5 repository at > https://openscholar.dut.ac.za/ and check the connection security for that > site, you will see that it is verified by Sectigo Ltd. However, on that > server, I'm using a self-signed certificate. (It used to be LetsEncrypt > before the F5.) > > /etc/apache2/sites-enabled/default-ssl.conf > SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt > SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key > > That didn't work for DSpace 7 (I forget the exact error, but I suspect it > was the verification error). So I requested the certificate from the IT > admin, and installed that. > > But it seems as though that doesn't even get seen by openssl s_client ... > > For comparison, if I run > openssl s_client -connect openscholar.dut.ac.za:443 > > I get a similar error: Verification error: unable to verify the first > certificate. > > I'm really out of my depth here and not sure who or where to seek help. All > I know is that I can get this working unless it's behind the F5. But then, > in that case, I'm using LetsEncrypt. Your wildcard certificate for *.dut.ac.za is signed by "C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Organization Validation Secure Server CA" but that cert. is not in your client's trust store. It's not in the trusted certificates bundle on my workstation, either. Google has a lot of hits on "sectigo root certificate not trusted" which may shed some light. You may need help from Sectigo customer support. Or there may be some reason why that particular cert. is no longer trusted. Or it may be an intermediate authority whose cert. should be sent out with the server cert. to complete the trust chain to the root. In that case, you may need to get a copy of that cert. and install it in the F5's trust store (once you're sure that *you* trust it). A client must be able to construct a path from the certificate presented by the site, through that cert.'s issuer cert. ("i:" in the certificate chain) via *its* issuer, etc. until it reaches a root certificate that it already trusts. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Ysguzgx1FU%2BATiUl%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: DSpace 7.0 Custom Themes (also posted in developers forum)
On Wed, Jun 29, 2022 at 10:27:47AM -0300, Javier Barcena wrote: > Good morning, I'm working with dspace 7.3, I created a theme based on > custom but I can't compile it with yarn run build:prod. What happens when you try? One of the build tools should be telling you why it failed. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Yr2HeVjy7BPvbGRs%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace-Cris 7 Create Collection error
On Sun, Jun 26, 2022 at 02:05:56PM -0700, Eldridge van der Westhuizen wrote: > Creating a new collection gives the following error on frontend: > *Server Error:* > An exception has occurred > > And backend dspace.log information: > > 2022-06-26 21:01:13,575* ERROR *11ce67ba-e8ee-47cb-8f2a-736c3e2f90c3 > a26c4f14-a839-4166-a640-2a3d3cd91e69 > org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An > exception has occurred (status:500) > java.lang.RuntimeException: Unable to create new Collection under parent > Community cc2b2803-48d7-4a23-89ba-99e4577f9031 ... > *Caused by: java.sql.SQLException: bad_dublin_core > schema=cris.submission.definition-correction. Metadata field does not > exist!* It looks like you are running DSpace-CRIS but don't have the CRIS-related metadata schema installed. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Yrmmx1xt%2B6MJb55y%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Unable to submit an item
On Tue, Jun 21, 2022 at 03:02:22PM -0700, Tianyi Gu wrote: > I had a new DSpace 7.2.1 instance installed. Everything went well at > beginning, until I modified the local.cfg file, DIM2DataCite.xsl and > identifier-service.xml, according to the guide > <https://wiki.lyrasis.org/display/DSDOC7x/DOI+Digital+Object+Identifier>. > > When I submit an new item, I would get an error as below: > An error occurred > An exception has occurred Thank you for attaching the error traces. The first error is difficult to track down, but it appears that in 'local.cfg' you may have invented an event consumer "harvester" without defining 'event.consumer.harvester.class'. The second error seems to be associated with 'DIM2DataCite.xsl'. I would check that carefully, perhaps even validate it against its schema. 'diff' or 'diff -u' between the stock 'DIM2DataCite.xsl' and your modified one may help you to find the problem. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YrMLsAJWpE%2BV4XUL%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 7 SSL - ui and backend on one domain name
On Tue, Jun 21, 2022 at 11:48:02AM -0500, 'Bill Tantzen' via DSpace Technical Support wrote: > It looks as if your setup is similar to mine, but your apache directives > are a bit different from the ones suggested in the installation docs ( > https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace) for both the > frontend and the backend -- can you comment on your tweaks? Let's see: o because I have several distinct instances of DSpace deployed on the box, and this one is named "dspace-v7". o "ProxyPass ajp://[::1]:8509/dspace-v7" because I am running several versions of Tomcat on the box, and that particular instance is listening for AJP on 8509 rather than the normal 8009. o The front-end stuff is all because I'm running the front-end raw rather than in PM2. I needed to ensure that HTTPD doesn't try to pool connections to it. I should review these settings to see if I really need them all. o I have separate ProxyPass and ProxyPassReverse, rather than tucking it all into the second , because the single-argument form doesn't take options. > On Tue, Jun 21, 2022 at 9:47 AM Mark H. Wood wrote: > > # DSpace v7 demo back-end > > > > ProxyPass ajp://[::1]:8509/dspace-v7/ > > > > > > # DSpace v7 demo front-end > > > > SetEnvproxy-nokeepalive 1 > > SetEnvproxy-initial-not-pooled 1 > > > > ProxyPass "/" "http://localhost:4000/; disablereuse=On max=1 > > ProxyPassReverse "/""http://localhost:4000/; -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YrH%2BioBEUWzEv6VO%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] DSpace 7 SSL - ui and backend on one domain name
On Tue, Jun 21, 2022 at 06:43:40AM -0700, Karol Sokalski wrote: > I am in the process of installing DSpace 7 as a production. (Debian 11, > apache2, tomcat9) > I have a problem with SSL ( I have a trusted SSL certificate). > Unfortunately I cannot run the backend and frontend on the same domain > name. > > Everything works when I create 2 vhosts with two different domain names: > frontend.test.pl and backend.test.pl in apache and certificates for them. > But when I try to do everything in one vhost and one domain name e.g. > dspace.test.pl, it won't work for me, because in apache vhost you can add > only one proxy-pass.e.g. That's incorrect. You can have any number of reverse proxies. > ServerName dspace.test.pl > > ProxyRequests On > DSpace backend > ProxyPass /server http://localhost:8080/server > ProxyPassReverse /server http://localhost:8080/server > RequestHeader set X-Forwarded-Proto https > > DSpace FRONTEND > ProxyPass / http://localhost:4000/ > ProxyPassReverse / http://localhost:4000/ That should work, BUT "ProxyRequests On" is for a forward proxy and very likely should be "Off". Here's our local demo. We're using AJP rather than HTTP to proxy the back-end, but in essence it's a lot like yours: # DSpace v7 demo back-end ProxyPass ajp://[::1]:8509/dspace-v7/ # DSpace v7 demo front-end SetEnvproxy-nokeepalive 1 SetEnvproxy-initial-not-pooled 1 ProxyPass "/" "http://localhost:4000/; disablereuse=On max=1 ProxyPassReverse "/""http://localhost:4000/; How does your configuration "not work"? What errors do you see? What behavior? Is there anything relevant in the backend log? the frontend log? the browser console? -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YrHaAcBEoRyxsiu2%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: SOLR error update dspace 5.2 -> 6.3 -> 7.0 ,
On Mon, Jun 13, 2022 at 03:18:43PM -0700, Jorge Alberto Bonilla Castaneda wrote: > I understand, in the same way I thank you very much for your help, could > you tell me where that solr log would be? The precise answer depends on how you have installed and configured Solr, and how it is started. Since you ask the question, you probably haven't changed the default, which ought to be in 'server/logs' beneath the directory in which you unpacked Solr. You can find the default logging configuration in 'server/resources/log4j2.xml' I'm sorry that I can't consult my own instance of Solr for a precise answer. I've made quite a bit of custom configuration here to make Solr deploy itself in conformance to the Linux Filesystem Hierarchy Standard and OpenRC, so the log files are where I configured them to go, not the stock location. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YqiZWrrF1qnItE0T%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Error index-discovery
On Tue, May 24, 2022 at 04:26:37AM -0700, Sergio Luis Alegr??a wrote: > I migrate from 5.3 to 6.3. > The database migrate commando run everything ok. > I can access to my Dspace installation. > > But when I run *dspace index-discovery -b *throw the next error: > > > > *2022-05-24 10:58:41,980 ERROR org.dspace.discovery.SolrServiceImpl @ Error > while writing item to discovery index: 11086/804 message:Error while > creating field > 'search.resourceid{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast,required, > > required=true}' from value > '01353d2a-229f-4d24-b0ee-5885669e6e29'org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: > > Error while creating field > 'search.resourceid{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast,required, > > required=true}' from value '01353d2a-229f-4d24-b0ee-5885669e6e29'* > > In solr log throw the next error. > Caused by: java.lang.NumberFormatException: For input string: > "c06eb490-7034-46d5-ad20-bd6fd8873786" at > java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) > > Seems like something is wrong with key values when the schema change (by > migration) from id (integer) to uuid (string) in items tables maybe? Since Solr is saying that 'search.resourceid' is of type 'sint', it appears that your Solr schema for the 'search' core was not updated. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Yo4SLnT6tOvaVNrG%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] ant fresh_install fails
On Wed, May 04, 2022 at 02:33:53PM -0700, Fru Emmanuel wrote: > I am following the steps to installing dspace but I run into an issue when > I run *ant fresh_install* > > Here's the output I get > > [image: ant_install.PNG] "Directory /dspace/bin creation was not successful for an unknown reason" I would check the ownership and permissions of /dspace, relative to the user account which is running 'ant', to see if it is a permissions issue. Or it's just possible that the volume on which /dspace resides is entirely full. Just check all of the usual reasons why a file cannot be created. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YnO25/VQVVFuPyiN%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Re: Access PostgreSQL apache
On Tue, Mar 29, 2022 at 09:26:07PM -0700, Phillip jan wrote: > I have successfully setup a reverse proxy on both apache/tomcat and both > port 80 and 443 loads the REST API. I have already got my SSL certificate > from certbot and I've configured a virtualhost that listens on 443However, > admin login works only if i use a virtualhost that is running on port 80 > but not when I login on a virtualhost that is running on port 443 (with > ssl). Basically, I can only login to my REST API only if it is on HTTP but > not when it is on HTTPS. > > I checked my access logs and it returns: > > 127.0.0.1 - - [time/date] "POST /server/api/authn/login HTTP/1.1" 403 501 > "https://[domainname]server/login.html; "Mozilla/5.0 (X11; Linux x86_64) > AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 Safari/537.36" > > > Additional Info: > > my /etc/hosts looks like, > > 127.0.0.1[domain name] > 127.0.0.1localhost > private IPV4[domain name] HTTP 403 means that the server is configured to refuse access to that path by that host on that port. Your HTTP and HTTPS configurations do not have the same access rules set. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YkQ%2BuHGTVl74c%2BdD%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] Database space used
On Tue, Mar 22, 2022 at 08:05:13AM -0400, Sarah Butash wrote: > I've been asked to report the amount of space used for our DSpace data. I > can report the size of the volume allocated for the database, but this > doesn't give me the actual data used space. We are on DSpace 5.10 on a > linux server. https://makandracards.com/makandra/37935-postgresql-show-size-of-all-databases gives a query that will show you the sizes of *all* databases in the cluster. It shouldn't be too hard to alter it to select just the database you want, and to report in other units. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YjsKsHViqcr3VYaG%40IUPUI.Edu. signature.asc Description: PGP signature
Re: [dspace-tech] High availability in DSpace
On Thu, Mar 10, 2022 at 01:50:25PM +0100, Almudena V. wrote: > We are starting with DSpace but before going much further we would like to > know if you have encountered problems implementing high availability in > DSpace, as it is something that we are going to need to have. > Do you have any experience about it? Although high > is not provided by Dspace but by tomcat/apache/PostgreSQL cluster, I would > like to know if you have encountered any problems, due to some feature of > dspace, or in particular with version 7.2. Don't forget Solr! For HA you may want to consider setting up Solr Cloud. But I don't know how well that will play with the Solr client type that DSpace uses. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YitCSLBS5JEYBiI4%40IUPUI.Edu. signature.asc Description: PGP signature