Skip to content

Commit

Permalink
Merge branch 'main' into fix/remove_sqlite3-related_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf401 authored Oct 24, 2023
2 parents 19337d7 + da26301 commit 71fa295
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 40 deletions.
25 changes: 16 additions & 9 deletions appendix/troubleshooting/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Step 1: Verify Elasticsearch is running
# check elasticsearch status
$ systemctl status elasticsearch
.. note::
.. note::

This should output something like the following, make sure it says
``Active: active (running)``:

Expand All @@ -54,7 +54,7 @@ Step 1: Verify Elasticsearch is running
$ systemctl status elasticsearch
.. warning::

| If this fails, your Elasticsearch installation is probably broken.
| Try completely purging and reinstalling Elasticsearch according
to :doc:`/install/elasticsearch`
Expand All @@ -66,29 +66,36 @@ Step 2: Verify the ingest-attachment plugin is installed correctly
# list installed elasticsearch plugins
$ /usr/share/elasticsearch/bin/elasticsearch-plugin list
.. note::
.. note::
The output should include ``ingest-attachment``.

Otherwise, try reinstalling the ``ingest-attachment`` plugin and check
again:

.. code-block:: sh
$ /usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-attachment
$ /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
$ systemctl restart elasticsearch
$ /usr/share/elasticsearch/bin/elasticsearch-plugin list
Step 3: Verify Zammad can access Elasticsearch and rebuild the indexes
Step 3: Verify Zammad can access Elasticsearch and rebuild the indexes
.. code-block:: sh
# force zammad to drop and rebuild the elasticsearch indexes
$ zammad run rake zammad:searchindex:rebuild
.. note::

Optionally, you can specify a number of CPU cores which are used for rebuilding
the searchindex, as in the following example with 8 cores:

.. code-block:: sh
$ zammad run rake zammad:searchindex:rebuild[8]
.. note::

This should start rebuilding the indexes and output it's progress:

.. code-block:: sh
Expand All @@ -111,7 +118,7 @@ Step 3: Verify Zammad can access Elasticsearch and rebuild the indexes
back to the console.
.. warning::

| If this fails or throws an error, there might be something else
wrong with your installation.
| Make sure you followed the complete Elasticsearch set up and
Expand Down
12 changes: 9 additions & 3 deletions install/includes/nodejs/debian.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.. code-block:: sh
# see https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
# for detailed installation instructions.
$ apt install -y ca-certificates curl gnupg
$ mkdir -p /etc/apt/keyrings
$ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
$ NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
$ apt update
$ apt install curl
$ curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
$ apt install nodejs
$ apt install nodejs -y
12 changes: 9 additions & 3 deletions install/includes/nodejs/ubuntu.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.. code-block:: sh
# see https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
# for detailed installation instructions.
$ apt install -y ca-certificates curl gnupg
$ mkdir -p /etc/apt/keyrings
$ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
$ NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
$ apt update
$ apt install curl
$ curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
$ apt install nodejs
$ apt install nodejs -y
47 changes: 23 additions & 24 deletions install/source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Install from source

.. note::

The source installation is the most difficult installation type of Zammad.
If you're not too experienced with Linux and all that, you may want to use
The source installation is the most difficult installation type of Zammad.
If you're not too experienced with Linux and all that, you may want to use
another installation type:

* :doc:`/install/package`
* :doc:`/install/docker-compose`

| **Administrative note**
| Please note that we only use ``sudo`` after direct user changes.
| Please note that we only use ``sudo`` after direct user changes.
In all other situations you can expect ``root`` being in charge.
.. hint::
Expand All @@ -30,7 +30,7 @@ Prerequisites
Software dependencies
---------------------

Please ensure that you already provided mentioned
Please ensure that you already provided mentioned
:doc:`Software requirements </prerequisites/software>`.

Add user
Expand All @@ -49,7 +49,7 @@ Step 1: Get the source

.. note::

Not all distributions ship ``wget`` and ``tar`` by default, you may need to
Not all distributions ship ``wget`` and ``tar`` by default, you may need to
install it manually.

.. include:: /install/source/include-get-the-source.rst
Expand All @@ -60,7 +60,7 @@ Step 2: Install dependencies
----------------------------

..
About this section: The RVM installation part uses definition list instead
About this section: The RVM installation part uses definition list instead
of field lists intentionally. It's supposed to safe width for better readability.
.. note::
Expand All @@ -69,8 +69,8 @@ Step 2: Install dependencies
detailed instructions.


Zammad requires specific ruby versions. Adapt the commands below if you install
older versions. A list of required versions can be found on the
Zammad requires specific ruby versions. Adapt the commands below if you install
older versions. A list of required versions can be found on the
:doc:`Software requirements </prerequisites/software>` page.

.. include:: /install/includes/postgres-installation.rst
Expand Down Expand Up @@ -98,7 +98,7 @@ older versions. A list of required versions can be found on the

Install Ruby Environment
.. include:: source/include-rvm-install-ruby.rst

.. tab:: Debian

Install Node.js
Expand All @@ -111,7 +111,7 @@ older versions. A list of required versions can be found on the
libxslt1-dev libyaml-0-2 autoconf automake libreadline-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev\
pkg-config libffi-dev libimlib2-dev gawk
$ gpg --keyserver keyserver.ubuntu.com --recv-keys\
$ gpg --keyserver keyserver.ubuntu.com --recv-keys\
409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$ curl -L https://get.rvm.io | bash -s stable
Expand All @@ -133,7 +133,7 @@ older versions. A list of required versions can be found on the
$ yum install patch autoconf automake bison bzip2 gcc-c++ libffi-devel libtool make patch readline-devel ruby\
zlib-devel glibc-headers glibc-devel openssl-devel git imlib2 imlib2-devel
$ gpg --keyserver keyserver.ubuntu.com --recv-keys\
$ gpg --keyserver keyserver.ubuntu.com --recv-keys\
409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$ curl -L https://get.rvm.io | bash -s stable
Expand All @@ -154,7 +154,7 @@ older versions. A list of required versions can be found on the
$ zypper install patch autoconf automake bison bzip2 gcc-c++ libffi-devel libtool make patch readline-devel\
zlib-devel glibc-devel openssl-devel git imlib2 imlib2-devel gdbm-devel libyaml-devel
$ gpg --keyserver keyserver.ubuntu.com --recv-keys\
$ gpg --keyserver keyserver.ubuntu.com --recv-keys\
409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$ curl -L https://get.rvm.io | bash -s stable
Expand All @@ -166,15 +166,15 @@ older versions. A list of required versions can be found on the

.. tab:: other

Other systems than above mentioned are out of scope of this documentation.
Please check the `rvm documentation <https://rvm.io/rvm/install>`_ on how
to install rvm on your system.
Other systems than above mentioned are out of scope of this documentation.
Please check the `rvm documentation <https://rvm.io/rvm/install>`_ on how
to install rvm on your system.

Please also ensure to install ``nodejs``.

After that install the specific required ruby version.

| After installing bundler, rake and rails we'll need to install all required gems.
| After installing bundler, rake and rails we'll need to install all required gems.
| The command depends on the database server you are using.
.. include:: /install/includes/postgres-dependencies.rst
Expand All @@ -189,8 +189,8 @@ Step 3: Configure database settings
$ cp config/database/database.yml config/database.yml
$ vi config/database.yml
Here's a sample configuration to give you an idea on how your configuration
file could look like. Please also have a look at
Here's a sample configuration to give you an idea on how your configuration
file could look like. Please also have a look at
:doc:`/appendix/configure-database-server` for deeper details.

.. code-block:: yaml
Expand All @@ -199,19 +199,18 @@ file could look like. Please also have a look at
adapter: postgresql
database: zammad
pool: 50
timeout: 5000
encoding: utf8
username: zammad
password: changeme
.. hint::
.. hint::

You can remove the ``password`` line if you enable socket based
You can remove the ``password`` line if you enable socket based
authentication!

.. hint::
.. hint::

If you want to use an existing database server that's not on the same
If you want to use an existing database server that's not on the same
machine, you can also use ``host`` and ``port`` to set that up.

.. include:: /install/source/include-chmod-database-yml.rst
Expand Down Expand Up @@ -277,7 +276,7 @@ You can start all services by hand or use systemd to start / stop Zammad.
.. tab:: the manual way

.. warning::
.. warning::

This method is not suitable for production use - you should avoid it.

Expand Down
2 changes: 1 addition & 1 deletion install/source/include-rvm-install-ruby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
$ rvm install ruby-3.1.3
# Install bundler, rake and rails
$ rvm use 3.1.3
$ rvm use ruby-3.1.3
$ gem install bundler rake rails
7 changes: 7 additions & 0 deletions install/update.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ use:
$ zammad run rake zammad:searchindex:rebuild
Optionally, you can specify a number of CPU cores which are used for rebuilding
the searchindex, as in the following example with 8 cores:

.. code-block:: sh
$ zammad run rake zammad:searchindex:rebuild[8]
.. hint:: **🤓 Zammad 5.2 comes with changes**

As of Zammad 5.2 the reindex command has changed!
Expand Down

0 comments on commit 71fa295

Please sign in to comment.