mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-12-24 14:04:29 +01:00
Update notes for 2019-02-14
This commit is contained in:
parent
e2a80e1f33
commit
0d16f7c888
@ -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: -->
|
||||
|
@ -42,7 +42,7 @@ sys 0m1.979s
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2019-02/" />
|
||||
<meta property="article:published_time" content="2019-02-01T21:37:30+02:00"/>
|
||||
<meta property="article:modified_time" content="2019-02-13T18:06:47+02:00"/>
|
||||
<meta property="article:modified_time" content="2019-02-14T02:03:32+02:00"/>
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="February, 2019"/>
|
||||
@ -89,9 +89,9 @@ sys 0m1.979s
|
||||
"@type": "BlogPosting",
|
||||
"headline": "February, 2019",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2019-02/",
|
||||
"wordCount": "3367",
|
||||
"wordCount": "3579",
|
||||
"datePublished": "2019-02-01T21:37:30+02:00",
|
||||
"dateModified": "2019-02-13T18:06:47+02:00",
|
||||
"dateModified": "2019-02-14T02:03:32+02:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -856,6 +856,42 @@ $ dspace user --add --givenname Thierry --surname Lewyllie --email blah@cta.int
|
||||
|
||||
<ul>
|
||||
<li>Totally works… awesome!</li>
|
||||
<li>Then I tried with rootless containers by creating the subuid and subgid mappings for aorth:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ 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
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Which totally works, but Podman’s rootless support doesn’t work with port mappings yet…</li>
|
||||
<li>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:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code># 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
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>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:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>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
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>The issue last month was address space, which is now set as <code>LimitAS=infinity</code> in <code>tomcat7.service</code>…</li>
|
||||
<li>I re-ran the Ansible playbook to make sure all configs etc were the, then rebooted the server</li>
|
||||
</ul>
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2019-02/</loc>
|
||||
<lastmod>2019-02-13T18:06:47+02:00</lastmod>
|
||||
<lastmod>2019-02-14T02:03:32+02:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
@ -209,7 +209,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2019-02-13T18:06:47+02:00</lastmod>
|
||||
<lastmod>2019-02-14T02:03:32+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
@ -220,7 +220,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||
<lastmod>2019-02-13T18:06:47+02:00</lastmod>
|
||||
<lastmod>2019-02-14T02:03:32+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
@ -232,13 +232,13 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||
<lastmod>2019-02-13T18:06:47+02:00</lastmod>
|
||||
<lastmod>2019-02-14T02:03:32+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
||||
<lastmod>2019-02-13T18:06:47+02:00</lastmod>
|
||||
<lastmod>2019-02-14T02:03:32+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user