{"id":1558,"date":"2022-06-08T22:32:01","date_gmt":"2022-06-08T20:32:01","guid":{"rendered":"https:\/\/hobbykeller.spdns.de\/?p=1558"},"modified":"2022-06-08T22:32:01","modified_gmt":"2022-06-08T20:32:01","slug":"migration-of-a-mayan-instance-from-ubuntu-20-04-virtualbox-to-ubuntu-22-04-server","status":"publish","type":"post","link":"https:\/\/hobbykeller.spdns.de\/?p=1558","title":{"rendered":"Migration of a Mayan Instance from Ubuntu 20.04 VirtualBox to Ubuntu 22.04 Server"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1. Installation of Mayan on Ubuntu 22.04 Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First thing we have to do is to put a naked installation of Mayan on the new Ubuntu 22.04 Server. Installation steps are well described in the official Mayan documentation. These instructions refer to Debian 11 though, and there are some minor hurdles to take to make Mayan work on Ubuntu 22.04.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Modify apt package installations<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Need Python packages for version 3.8, not default 3.10<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The first problem to be solved is that Ubuntu 22.04 ships with Python 3.10 installed whereas we need Python 3.8 or pip will later fall when installing the <code>mayan-edms<\/code> PyPI package.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore we activate the <code>deadsnakes<\/code> PPA as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo add-apt-repository ppa:deadsnakes\/ppa<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For any Python <code>apt<\/code> package that is installed in step 1, we will (later) install a Python 3.8 package instead: <code>pyhton3-dev<\/code> becomes <code>python3.8-dev<\/code> and <code>pyhton3-venv<\/code> becomes <code>python3.8-venv<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">libldap<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>libldap-2.4-2<\/code> is not available under Ubuntu 22.04, but its more recent version 2.5-0 is. We therefore tell apt to install <code>libldap-2.5-0<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The complete command to install packages in step 1 therefore is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install --yes ca-certificates fonts-arphic-uming \\\nfonts-arphic-ukai fonts-unfonts-core gcc gnupg1 graphviz libfuse2 \\\nlibarchive-zip-perl libimage-exiftool-perl libmagic1 \\\nlibreoffice-calc-nogui libreoffice-draw-nogui libreoffice-impress-nogui \\\nlibreoffice-math-nogui libreoffice-writer-nogui libfile-mimeinfo-perl \\\nlibldap-2.5-0 libldap-dev libpq-dev libpq5 libsasl2-dev libsasl2-2 \\\npoppler-utils postgresql python3.8-dev python3.8-venv rabbitmq-server \\\nredis-server sane-utils supervisor tesseract-ocr<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Create Python venv<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Naturally, after installing Python 3.8 in the previous section, we have to make sure that our virtual environment is also based on Python 3.8 and not on the 3.10 version that Ubuntu provides by default. We therefore modify the creation command for the virtual environment in step 4 as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo python3.8 -m venv \/opt\/mayan-edms\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Installation of Mayan on Ubuntu 22.04 Server First thing we have to do is to put a naked installation of Mayan on the new Ubuntu 22.04 Server. Installation steps<span class=\"more-button\"><a href=\"https:\/\/hobbykeller.spdns.de\/?p=1558\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Migration of a Mayan Instance from Ubuntu 20.04 VirtualBox to Ubuntu 22.04 Server<\/span><\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[289,132,335],"class_list":["post-1558","post","type-post","status-publish","format-standard","hentry","category-linux","tag-mayan-edms","tag-python","tag-ubuntu-22-04"],"_links":{"self":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/1558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1558"}],"version-history":[{"count":1,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/1558\/revisions"}],"predecessor-version":[{"id":1559,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/1558\/revisions\/1559"}],"wp:attachment":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}