Hello Jaware,

You welcome & glad it worked for you. My comment is based on the excellent 
Dspace documentation led by Tim & the working force with him. The steps 
above is a summarized translation of Dspace documentation specific to 
Ubuntu Linux users. It's my little contribution to the community trying to 
save anyone's time.

Regards.
On Monday, February 7, 2022 at 10:09:45 AM UTC+3 Jaware wrote:

> Dear AlMutairi,
> Fantastic explanation.It works based on your comment
>
> Thanks again,
>
> Best,Jaware
>
>
> On Sat, Feb 5, 2022 at 2:22 PM Mohammad S. AlMutairi <[email protected]> 
> wrote:
>
>> Hello everyone,
>>
>> I need to confirm this to the community. Whenever this error 
>> 'error.top-level-communities' do show up on the front page ( should be 
>> added to the common installation issues wiki ) Solr is either not installed 
>> or misconfigured. To resolve it on the Ubuntu Linux servers just follow the 
>> steps you see below.
>>
>> 1) mkdir /build
>> 2) cd /build
>> 3) wget https://downloads.apache.org/lucene/solr/8.11.1/solr-8.11.1.tgz
>> 4) tar xzf solr-8.11.1.tgz solr-8.11.1/bin/install_solr_service.sh 
>> --strip-components=2
>> 5) perl -i -pe 's/SOLR_USER=solr/SOLR_USER=tomcat/;' 
>> /build/install_solr_service.sh
>> 6) systemctl disable tomcat9
>> 7)  systemctl stop tomcat9.service
>> 8) usermod -d /home/tomcat -s /bin/bash tomcat
>> 9) mkhomedir_helper tomcat
>> 10) passwd tomcat
>> 11) bash ./install_solr_service.sh solr-8.11.1.tgz -f
>> 12) echo SOLR_OPTS=\"\$SOLR_OPTS 
>> -Dsolr.allowPaths=/opt/dspace/solr/statistics,/opt/dspace/temp/solr-data\" 
>> >> /etc/default/solr.in.sh
>> 13) cp -r /opt/dspace/solr/* /var/solr/data/ # Do this step after 
>> installing dspace backend (REST API server). You need to change /opt/dspace 
>> to the folder you installed dspace backend into.
>> 14) chown -R tomcat:tomcat /opt/sol*
>> 15) chown -R tomcat:tomcat /var/solr/data/
>> 16) systemctl enable solr
>> 17) systemctl restart solr
>> 18) systemctl enable tomcat9
>> 19) systemctl start tomcat9.service
>>
>> You need to make sure the tomcat user can write to DSpace installation 
>> folder. On Ubuntu it can be done by adding ReadWritePaths=/opt/dspace/ 
>> (change 
>> the folder name if it differs) in systemd tomcat startup script in the 
>> [service] section.
>>
>> "Question 1 should  solr be owned by tomcat user?"
>> Easiest path the answer is yes.
>>
>> "Question 2.who owns dspace angular(front page) tomcat or solr."
>> It can be any other user. www-data user is a good candidate on Ubuntu but 
>> it can be any other user you find safe to use. If you do that you must run 
>> the frontend with that user and make it the owner of the angular folder 
>> (/opt/dspace-angular).
>>
>>
>> On Friday, February 4, 2022 at 6:29:45 PM UTC+3 Tim Donohue wrote:
>>
>>> Hi Jaware,
>>>
>>> In order to understand where the error is coming from, you should first 
>>> follow our "Troubleshoot an error" guide for DSpace 7.  This will guide you 
>>> through how to find detailed error messages in the User Interface and in 
>>> the backend: 
>>> https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)
>>>
>>> Once you have found a more detailed error message, you should check if 
>>> it's one of the common installation issues listed at: 
>>> https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-CommonInstallationIssues
>>>   
>>>  Chances are you are likely hitting one of these common issues, in which 
>>> case the steps to resolve it are listed on that wiki page.
>>>
>>> If you find an error that isn't one of those common issues, feel free to 
>>> send it to this list and we can provide better advice then.
>>>
>>> Tim
>>> On Friday, February 4, 2022 at 6:55:23 AM UTC-6 Jaware wrote:
>>>
>>>> Dear All, I'm trying local installation of DSpace 7.1 on Ubuntu 20.04 
>>>> server over my laptop.
>>>>  Below is the output while making yarn start.
>>>>  
>>>>      $ node dist/server
>>>>      [HPM] Proxy created: /  -> http://localhost:8080/server/sitemaps
>>>>      [14:05:33 GMT+0300 (East Africa Time)] Listening at 
>>>> http://localhost:4000/
>>>>  
>>>>  I can access both the backend(http://localhost:8080/server) and front 
>>>> end (http://localhost:4000) smoothly.
>>>>  How ever I was looking 'error.top-level-communities' on the front page 
>>>>     
>>>>      
>>>>   So far I was doing as following actions
>>>>   
>>>>   1.Deploy the web application and set permission for tomcat user .
>>>>
>>>>  - dspace@dspace:~$ cd /var/lib/tomcat9/webapps/
>>>>
>>>>  - dspace@dspace:/var/lib/tomcat9/webapps$ sudo ln -s 
>>>>  /home/mydspace/webapps/server server
>>>>  
>>>>  - dspace@dspace:~$ sudo chown -R tomcat:tomcat /home/mydspace/
>>>>  
>>>>  
>>>>      
>>>>  2.Copy solr cores and set permission for solr user
>>>>
>>>> -dspace@dspace:~$ sudo cp -r /home/mydspace/solr/* 
>>>> /opt/solr-8.11.1/server/solr/configsets/
>>>>
>>>> -dspace@dspace:~$ sudo cp -r /home/mydspace/solr/* 
>>>> /opt/solr/server/solr/configsets/        
>>>>
>>>> -dspace@dspace:~$ sudo chown -R solr:solr 
>>>> /opt/solr/server/solr/configsets/    
>>>>      
>>>>  3.  Modify the front-end file (environment.common.ts) as follow
>>>>  
>>>>    
>>>>    ui: {
>>>>     ssl: false,
>>>>     host: 'localhost',
>>>>     port: 4000,
>>>>     // NOTE: Space is capitalized because 'namespace' is a reserved 
>>>> string in TypeScript
>>>>     nameSpace: '/',
>>>>     // The rateLimiter settings limit each IP to a "max" of 500 
>>>> requests per "windowMs" (1 minute).
>>>>     rateLimiter: {
>>>>       windowMs: 1 * 60 * 1000,   // 1 minute
>>>>       max: 500 // limit each IP to 500 requests per windowMs
>>>>     }
>>>>   },
>>>>   // The REST API server settings.
>>>>   // NOTE: these must be "synced" with the 'dspace.server.url' setting 
>>>> in your backend's local.cfg.
>>>>   rest: {
>>>>     ssl: false,
>>>>     host: 'localhost',
>>>>     port: 8080,
>>>>     // NOTE: Space is capitalized because 'namespace' is a reserved 
>>>> string in TypeScript
>>>>     nameSpace: '/server',
>>>>   },
>>>>      
>>>>      
>>>>  Question 1 should  solr be owned by tomcat user? and 
>>>>  Question 2.who owns dspace angular(front page) tomcat or solr
>>>>  
>>>>  Can some one help me please,
>>>>  
>>>>  Best,Jaware     
>>>>      
>>>>  
>>>>  
>>>>  
>>>>  
>>>>
>>> -- 
>> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dspace-tech/3e9d0d0d-f05f-454f-97e9-4986052906f1n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/dspace-tech/3e9d0d0d-f05f-454f-97e9-4986052906f1n%40googlegroups.com?utm_medium=email&utm_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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/dae80a55-b7ac-4295-aa67-d357e7ce89e1n%40googlegroups.com.

Reply via email to