mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2019-02-14
This commit is contained in:
@ -614,5 +614,38 @@ $ dspace user --add --givenname Thierry --surname Lewyllie --email blah@cta.int
|
||||
```
|
||||
|
||||
- Totally works... awesome!
|
||||
- Then I tried with rootless containers by creating the subuid and subgid mappings for aorth:
|
||||
|
||||
```
|
||||
$ sudo touch /etc/subuid /etc/subgid
|
||||
$ usermod --add-subuids 10000-75535 aorth
|
||||
$ usermod --add-subgids 10000-75535 aorth
|
||||
$ sudo sysctl kernel.unprivileged_userns_clone=1
|
||||
$ podman pull postgres:9.6-alpine
|
||||
$ podman run --name dspacedb -v /home/aorth/.local/lib/containers/volumes/dspacedb_data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.6-alpine
|
||||
```
|
||||
|
||||
- Which totally works, but Podman's rootless support doesn't work with port mappings yet...
|
||||
- Deploy the Tomcat-7-from-tarball branch on CGSpace (linode18), but first stop the Ubuntu Tomcat 7 and do some basic prep before running the Ansible playbook:
|
||||
|
||||
```
|
||||
# systemctl stop tomcat7
|
||||
# apt remove tomcat7 tomcat7-admin
|
||||
# useradd -m -r -s /bin/bash dspace
|
||||
# mv /usr/share/tomcat7/.m2 /home/dspace
|
||||
# mv /usr/share/tomcat7/src /home/dspace
|
||||
# chown -R dspace:dspace /home/dspace
|
||||
# chown -R dspace:dspace /home/cgspace.cgiar.org
|
||||
# dpkg -P tomcat7-admin tomcat7-common
|
||||
```
|
||||
|
||||
- After running the playbook CGSpace came back up, but I had an issue with some Solr cores not being loaded (similar to last month) and this was in the Solr log:
|
||||
|
||||
```
|
||||
2019-02-14 18:17:31,304 ERROR org.apache.solr.core.SolrCore @ org.apache.solr.common.SolrException: Error CREATEing SolrCore 'statistics-2018': Unable to create core [statistics-2018] Caused by: Lock obtain timed out: NativeFSLock@/home/cgspace.cgiar.org/solr/statistics-2018/data/index/write.lock
|
||||
```
|
||||
|
||||
- The issue last month was address space, which is now set as `LimitAS=infinity` in `tomcat7.service`...
|
||||
- I re-ran the Ansible playbook to make sure all configs etc were the, then rebooted the server
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user