From 45b86583f57a7f63c8aca98ebdf913fbc5b4625d Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 1 Jul 2018 18:05:01 +0300 Subject: [PATCH] Update notes for 2018-07-01 --- content/posts/2018-07.md | 31 ++++- docs/2018-07/index.html | 263 +++++++++++++++++++++++++++++++++++++ docs/categories/index.html | 13 +- docs/index.html | 13 +- docs/index.xml | 13 +- docs/posts/index.html | 13 +- docs/posts/index.xml | 13 +- docs/sitemap.xml | 10 +- docs/tags/index.html | 13 +- docs/tags/notes/index.html | 13 +- docs/tags/notes/index.xml | 13 +- 11 files changed, 309 insertions(+), 99 deletions(-) create mode 100644 docs/2018-07/index.html diff --git a/content/posts/2018-07.md b/content/posts/2018-07.md index fa14b51ad..ecd3a35bb 100644 --- a/content/posts/2018-07.md +++ b/content/posts/2018-07.md @@ -7,26 +7,45 @@ tags: ["Notes"] ## 2018-07-01 -- Test the DSpace 5.8 upgrade on DSpace Test -- First take a backup of the current database: +- I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case: ``` $ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace ``` -- During the `mvn package` stage I kept getting issues with java running out of memory: +- During the `mvn package` stage on the 5.8 branch I kept getting issues with java running out of memory: ``` There is insufficient memory for the Java Runtime Environment to continue. ``` -- So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM): + + +- As the machine only has 8GB of RAM, I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process: ``` $ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m" -$ mvn package... +$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=dspacetest.cgiar.org -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package ``` - +- Then I stopped the Tomcat 7 service, ran the ant update, and manually ran the old and ignored SQL migrations: + +``` +$ sudo su - postgres +$ psql dspace +... +dspace=# begin; +BEGIN +dspace=# \i Atmire-DSpace-5.8-Schema-Migration.sql +DELETE 0 +UPDATE 1 +DELETE 1 +dspace=# commit +dspace=# \q +$ exit +$ dspace database migrate ignored +``` + +- After that I started Tomcat 7 and DSpace seems to be working, now I need to tell our colleagues to try stuff and report issues they have diff --git a/docs/2018-07/index.html b/docs/2018-07/index.html new file mode 100644 index 000000000..62733482b --- /dev/null +++ b/docs/2018-07/index.html @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + July, 2018 | CGSpace Notes + + + + + + + + + + + + + + + + + +
+
+ +
+
+ + + +
+
+

CGSpace Notes

+

Documenting day-to-day work on the CGSpace repository.

+
+
+ + + +
+
+
+ + + + +
+
+

July, 2018

+ +
+

2018-07-01

+ +
    +
  • I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:
  • +
+ +
$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
+
+ +
    +
  • During the mvn package stage on the 5.8 branch I kept getting issues with java running out of memory:
  • +
+ +
There is insufficient memory for the Java Runtime Environment to continue.
+
+ +

+ +
    +
  • As the machine only has 8GB of RAM, I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process:
  • +
+ +
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
+$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=dspacetest.cgiar.org -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package
+
+ +
    +
  • Then I stopped the Tomcat 7 service, ran the ant update, and manually ran the old and ignored SQL migrations:
  • +
+ +
$ sudo su - postgres
+$ psql dspace
+...
+dspace=# begin;
+BEGIN
+dspace=# \i Atmire-DSpace-5.8-Schema-Migration.sql
+DELETE 0
+UPDATE 1
+DELETE 1
+dspace=# commit
+dspace=# \q
+$ exit
+$ dspace database migrate ignored
+
+ +
    +
  • After that I started Tomcat 7 and DSpace seems to be working, now I need to tell our colleagues to try stuff and report issues they have
  • +
+ + + + + + + +
+ + + +
+ + + + +
+
+ + + + + + + + + diff --git a/docs/categories/index.html b/docs/categories/index.html index 8e7481a4a..e2828235c 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -112,28 +112,19 @@

2018-07-01

$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
 
There is insufficient memory for the Java Runtime Environment to continue.
 
- - -
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
-$ mvn package...
-
-

Read more → diff --git a/docs/index.html b/docs/index.html index ba2141ff1..06b65a39f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -113,28 +113,19 @@

2018-07-01

$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
 
There is insufficient memory for the Java Runtime Environment to continue.
 
- - -
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
-$ mvn package...
-
-

Read more → diff --git a/docs/index.xml b/docs/index.xml index f6860ff50..c7426bf56 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -20,28 +20,19 @@ <h2 id="2018-07-01">2018-07-01</h2> <ul> -<li>Test the DSpace 5.8 upgrade on DSpace Test</li> -<li>First take a backup of the current database:</li> +<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li> </ul> <pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace </code></pre> <ul> -<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li> +<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li> </ul> <pre><code>There is insufficient memory for the Java Runtime Environment to continue. </code></pre> -<ul> -<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li> -</ul> - -<pre><code>$ export JAVA_OPTS=&quot;-Dfile.encoding=UTF-8 -Xmx1024m&quot; -$ mvn package... -</code></pre> - <p></p> diff --git a/docs/posts/index.html b/docs/posts/index.html index f44405f16..dbb49f9da 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -113,28 +113,19 @@

2018-07-01

$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
 
There is insufficient memory for the Java Runtime Environment to continue.
 
- - -
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
-$ mvn package...
-
-

Read more → diff --git a/docs/posts/index.xml b/docs/posts/index.xml index 3fb2b3500..5e1cd49dc 100644 --- a/docs/posts/index.xml +++ b/docs/posts/index.xml @@ -20,28 +20,19 @@ <h2 id="2018-07-01">2018-07-01</h2> <ul> -<li>Test the DSpace 5.8 upgrade on DSpace Test</li> -<li>First take a backup of the current database:</li> +<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li> </ul> <pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace </code></pre> <ul> -<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li> +<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li> </ul> <pre><code>There is insufficient memory for the Java Runtime Environment to continue. </code></pre> -<ul> -<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li> -</ul> - -<pre><code>$ export JAVA_OPTS=&quot;-Dfile.encoding=UTF-8 -Xmx1024m&quot; -$ mvn package... -</code></pre> - <p></p> diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 05ae9c2a7..c4cb1b702 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-07/ - 2018-07-01T12:56:54+03:00 + 2018-07-01T14:34:56+03:00 @@ -174,7 +174,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-07-01T12:56:54+03:00 + 2018-07-01T14:34:56+03:00 0 @@ -185,7 +185,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-07-01T12:56:54+03:00 + 2018-07-01T14:34:56+03:00 0 @@ -197,13 +197,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2018-07-01T12:56:54+03:00 + 2018-07-01T14:34:56+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-07-01T12:56:54+03:00 + 2018-07-01T14:34:56+03:00 0 diff --git a/docs/tags/index.html b/docs/tags/index.html index 759e171e6..0db5a810c 100644 --- a/docs/tags/index.html +++ b/docs/tags/index.html @@ -113,28 +113,19 @@

2018-07-01

$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
 
There is insufficient memory for the Java Runtime Environment to continue.
 
- - -
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
-$ mvn package...
-
-

Read more → diff --git a/docs/tags/notes/index.html b/docs/tags/notes/index.html index c6dd8656a..46ed777ae 100644 --- a/docs/tags/notes/index.html +++ b/docs/tags/notes/index.html @@ -98,28 +98,19 @@

2018-07-01

$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
 
There is insufficient memory for the Java Runtime Environment to continue.
 
- - -
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
-$ mvn package...
-
-

Read more → diff --git a/docs/tags/notes/index.xml b/docs/tags/notes/index.xml index 7076fdfa1..0683579cb 100644 --- a/docs/tags/notes/index.xml +++ b/docs/tags/notes/index.xml @@ -20,28 +20,19 @@ <h2 id="2018-07-01">2018-07-01</h2> <ul> -<li>Test the DSpace 5.8 upgrade on DSpace Test</li> -<li>First take a backup of the current database:</li> +<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li> </ul> <pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace </code></pre> <ul> -<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li> +<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li> </ul> <pre><code>There is insufficient memory for the Java Runtime Environment to continue. </code></pre> -<ul> -<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li> -</ul> - -<pre><code>$ export JAVA_OPTS=&quot;-Dfile.encoding=UTF-8 -Xmx1024m&quot; -$ mvn package... -</code></pre> - <p></p>