250 lines
5.9 KiB
Plaintext
250 lines
5.9 KiB
Plaintext
Version 3.3.4
|
|
=============
|
|
|
|
Released: December 09, 2019
|
|
|
|
|
|
Changes
|
|
-------
|
|
|
|
|
|
Celery
|
|
^^^^^^
|
|
|
|
Switched from ``librabbitmq`` to ``py-amqp``. This library is used to connect
|
|
to RabbitMQ and be used as the message broker for the background tasks.
|
|
Although the official documentation still lists ``librabbitmq``, maintainers
|
|
are recommending users to move to ``py-amqp``.
|
|
|
|
|
|
Converter
|
|
^^^^^^^^^
|
|
|
|
Fixed the label display of the transformations. The way the
|
|
BaseTransformationType metaclass is passed was updated to work on Python 3.
|
|
|
|
|
|
Development
|
|
^^^^^^^^^^^
|
|
|
|
Updated devpi-server version to 5.3.1.
|
|
|
|
Added targets to run staging containers using RabbitMQ as broker.
|
|
|
|
Fix docker-runtest-all makefile target.
|
|
|
|
|
|
Frontend
|
|
^^^^^^^^
|
|
|
|
Changed the ``gunicorn`` worker class to synchronous. This change was made in
|
|
the Docker image and is now the worker class for the direct deployment too.
|
|
Update the ``supervisord`` config file to activate this change. This solves
|
|
spurious HTTP timeout errors caused by Celery's new Redis interface not
|
|
working with threaded serverlets.
|
|
|
|
|
|
File metadata
|
|
^^^^^^^^^^^^^
|
|
|
|
Add locking to the file metadata document processing task.
|
|
|
|
|
|
Settings
|
|
^^^^^^^^
|
|
|
|
The setting override colums was changed from text to a check mark widget.
|
|
This makes it clear when a setting is being overridden by an environment
|
|
variable.
|
|
|
|
Added icons to the smart settings links.
|
|
|
|
Fixed the evaluation priority of the bootstrap settings. This issue was
|
|
causing environment variables to be ignored in favor of config file values on
|
|
Docker images.
|
|
|
|
|
|
User interface
|
|
^^^^^^^^^^^^^^
|
|
|
|
Darken content area when opening the mobile menu.
|
|
|
|
|
|
Other
|
|
^^^^^
|
|
|
|
Don't set SourceColumn to the attribute name when no help text is defined.
|
|
|
|
|
|
Removals
|
|
--------
|
|
|
|
- None
|
|
|
|
|
|
Upgrading process
|
|
-----------------
|
|
|
|
#. Stop supervisord::
|
|
|
|
sudo systemctl stop supervisor
|
|
|
|
|
|
Upgrading from Mayan EDMS 3.2.x
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
#. Install the Python 3 development OS package:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo apt-get install python3-dev
|
|
|
|
|
|
#. Update the virtualenv to use Python 3:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan virtualenv --clear /opt/mayan-edms -p /usr/bin/python3
|
|
|
|
|
|
#. Create a home directory for the Mayan EDMS system user:
|
|
|
|
.. code-block:: bash
|
|
|
|
mkdir /home/mayan
|
|
|
|
|
|
#. Grant ownership to the Mayan EDMS system user:
|
|
|
|
.. code-block:: bash
|
|
|
|
chown mayan:mayan /home/mayan
|
|
|
|
#. Reinstall the Python client for PostgreSQL and Redis:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan |MAYAN_PIP_BIN| install --no-use-pep517 psycopg2==|PYTHON_PSYCOPG2_VERSION| redis==|PYTHON_REDIS_VERSION|
|
|
|
|
.. note::
|
|
|
|
Platforms with the ARM CPU might also need additional requirements:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan |MAYAN_PIP_BIN| install --no-use-pep517 psutil==|PYTHON_PSUTIL_VERSION|
|
|
|
|
|
|
#. Reinstall the Python client for RabbitMQ if you are using RabbitMQ as a broker:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan |MAYAN_PIP_BIN| install --no-use-pep517 amqp==|PYTHON_AMQP_VERSION|
|
|
|
|
|
|
Upgrade steps from any previous version of Mayan EDMS
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
#. Remove deprecated requirements:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan curl |SOURCE_CODE_REPOSITORY|raw/master/removals.txt -o /tmp/removals.txt \
|
|
&& sudo -u mayan |MAYAN_PIP_BIN| uninstall -y -r /tmp/removals.txt
|
|
|
|
|
|
#. Update the Mayan EDMS Python package:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan |MAYAN_PIP_BIN| install mayan-edms==3.3.4
|
|
|
|
the requirements will also be updated automatically.
|
|
|
|
|
|
#. Make a backup of your supervisord file:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo cp |MAYAN_SUPERVISOR_CONF| |MAYAN_SUPERVISOR_CONF|.bck
|
|
|
|
|
|
#. Update the supervisord configuration file. Replace the environment
|
|
variables values show here with your respective settings. This step will refresh
|
|
the supervisord configuration file with the new queues and the latest
|
|
recommended layout:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
|
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
|
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \
|
|
|MAYAN_BIN| platformtemplate supervisord | sudo sh -c "cat > |MAYAN_SUPERVISOR_CONF|"
|
|
|
|
or:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan MAYAN_DATABASES=\"{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}\" \
|
|
MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \
|
|
|MAYAN_BIN| platformtemplate supervisord | sudo sh -c "cat > |MAYAN_SUPERVISOR_CONF|"
|
|
|
|
|
|
#. Edit the supervisord configuration file and update any setting specific to your installation:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo vi |MAYAN_SUPERVISOR_CONF|
|
|
|
|
|
|
#. Migrate existing database schema with:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
|
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
|
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \
|
|
|MAYAN_BIN| performupgrade
|
|
|
|
or:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}" \
|
|
MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \
|
|
|MAYAN_BIN| performupgrade
|
|
|
|
|
|
#. Add new static media:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo -u mayan MAYAN_MEDIA_ROOT=|MAYAN_MEDIA_ROOT| \
|
|
|MAYAN_BIN| preparestatic --noinput
|
|
|
|
|
|
#. Start supervisord:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo systemctl start supervisor
|
|
|
|
|
|
The upgrade procedure is now complete.
|
|
|
|
|
|
Backward incompatible changes
|
|
-----------------------------
|
|
|
|
- None
|
|
|
|
|
|
Bugs fixed or issues closed
|
|
---------------------------
|
|
|
|
- :gitlab-issue:`699` 3.3.3 - TypeError: can't pickle memoryview objects
|
|
- :gitlab-issue:`702` [Docker] Issue after upgrading to 3.3.3
|
|
|
|
|
|
.. _PyPI: https://pypi.python.org/pypi/mayan-edms/
|