Glad you had your issue sorted out. It's hard to convince an old fashion 
guy not to go the manual way to avoid rebuilding the backend.


On Friday, January 20, 2023 at 5:01:10 PM UTC+3 domi...@wp.pl wrote:

> Thanks for advise, but I found (in my opinion) easier solution, just run 
> this 3 commands:
> /dspace/bin/dspace generate-sitemaps
> /dspace/bin/dspace oai clean-cache
> /dspace/bin/dspace oai import
> After that just restart tomcat and everything should works. I hope this 
> solution will help someone with familiar problem.
> piątek, 20 stycznia 2023 o 14:36:49 UTC+1 alo...@gmail.com napisał(a):
>
>> Hello Dominik,
>>
>> Try this it should take care of the issue you have.
>>
>> a) su - postgres
>> b) Dump the databse in text format ( pg_dump -c dspace > 
>> dspace-migrated.sql )
>> c) cp dspace-migrated.sql dspace-orig.sql <--- Always keep a backup of 
>> the original version of the database to revert to if you have to.
>> c) Edit dspace-migrated.sql and search for bb.ds.edu.com and replace it 
>> with aa.ds.edu.com using ( sed, awk, perl, vi or any text editor you 
>> feel comfortable with "notepad++ 
>> <https://notepad-plus-plus.org/downloads/> for instance in Windows" ).
>> d) Restore it ( cat  dspace-migrated.sql   | psql -d dspace  )
>>
>> https://groups.google.com/g/dspace-tech/c/KLJ3moDpVp4/m/q2U_-h36BgAJ
>>
>> Hope it help you.
>> On Friday, January 20, 2023 at 2:28:41 PM UTC+3 domi...@wp.pl wrote:
>>
>>> Hello everyone,
>>> Yesterday I decided to change dspace url for example: from  *bb.ds.edu.com 
>>> <http://bb.ds.edu.com>* to *aa.ds.edu.com <http://aa.ds.edu.com>. *For 
>>> now I changed url in local.cfg, apache dspace.conf and config.prod.yml, 
>>> after that I run mvn package, ant update and yarn build:prod. Everything 
>>> works fine except OAI-PMH, I changed repository name in local.cfg but it's 
>>> not updated  also repository identifier is wrong (shows old link) and every 
>>> link in this page redirect to to old url, except that everything works if I 
>>> manualy change link for example:  from *bb.ds.edu.com 
>>> <http://bb.ds.edu.com>* :8080/server/oai/openaire?verb=ListSets to  
>>> *aa.ds.edu.com 
>>> <http://aa.ds.edu.com>* :8080/server/oai/openaire?verb=ListSets
>>> Does anyone know how to fix it?
>>> Best regards,
>>> Dominik
>>
>>

-- 
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/566c94ca-01f3-4512-9f71-4ff4d6310984n%40googlegroups.com.

Reply via email to