Zammad ticketing/helpdesk on Nethserver available

Thank you

1 Like

Also Happy Birthday. Hope you are doing well and staying safe.

1 Like

@mrmarkuz

Happy Birthday Markus!

GrĂŒsse aus der sonnigen Schweiz.
Andy

2 Likes

Happy Birthday!

Elasticsearch:
I have reinstalled zammad a few times, so some steps might be missing, but based on the docs at
https://docs.zammad.org/en/latest/install-elasticsearch.html I have set it up this way:

/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
ln -s /etc/elasticsearch /usr/share/elasticsearch/config
sysctl -w vm.max_map_count=262144
systemctl start elasticsearch
systemctl enable elasticsearch
su zammad
zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"
zammad run rails r "Setting.set('es_index', Socket.gethostname.downcase + '_zammad')"
zammad run rails r "Setting.set('es_attachment_ignore', [ '.png', '.jpg', '.jpeg', '.mpeg', '.mpg', '.mov', '.bin', '.exe', '.box', '.mbox' ] )"
zammad run rails r "Setting.set('es_attachment_max_size_in_mb', 50)"
zammad run rake searchindex:rebuild
2 Likes

@CptCharlesG yap, those instructions work.

1 Like

I am facing challenges with my zammad installation, where ldap users are not able to login.
the error i get is invalid csrf token

HAs anyone experienced similar challenges, and seen how to fix?

image

Hi I had that issue, Check for this line proxy_set_header X-Forwarded-Proto $scheme; and change to proxy_set_header X-Forwarded-Proto https; this was in nginx config.

1 Like

wheere does that need to be changed from.

checked /etc/nginx/conf.d/zammad.conf
but is almost empy
or here
/etc/httpd/conf.d/zamamd.conf

Is this a new install? Have you tried clearing your cache in your browser, are you using the Apache virtual hosts? If so have a look for a similar line there, Sorry the only install I have is the original install I did with the help of @mrmarkuz it hasn’t broken since then.

been using it for a week or so.

Okay as I think mine is vastly different, I won’t ask you to change anything else and wait for the main man @mrmarkuz to reply. Sorry.

Hi Markus,

I installed Elasticsearch and Zammad according to your instructions.

I build the Index of Elasticsearch with:

# zammad run rake searchindex:rebuild

All is working fine. Elastichsearch is working perfectly.

I received an email that elasticsearch x86_64 7.6.2.1 was available.

I updated with:

# yum update -y --enablerepo=mrmarkuz

# systemctl daemon-reload

Zammad and Elasticsearch are working correctly.

I rebooted to make sure all was right. Zammad is working correctly but not Elasticsearch.

Elasticsearch didn’t start correctely - connection refused

Stoped elasticsearch.service and started it - il started without error but didn’t work in Zammad.
It reminds me of the same problem with SME-9.2 - it was the ssl, if you try too soon after a boot, it was refusing connection - you had to disable something in ssl but don’t remerber what,

QUESTION:
What is the proper way to update?

Thank you in advance,

Michel-André

Did you try signal-event nethserver-zammad-update after elasticsearch update?

I have to recheck the zammad elasticsearch connection and update the module accordingly. I’ll keep you updated.

1 Like

Hi Markus,

Thank you for your response.

I forgot that one.

While Googling for a cause of refusing the connection I saw that I have to install ingest-attachment but it didn’t resolve the issue


/usr/share/elasticsearch/bin/elasticsearch-plugin  install ingest-attachment

I will start again and let you know the results,

1 Like

@mrmarkuz can you help with this above?

1 Like

Hi Nitram,

Try to install:

yum -y install https://mrmarkuz.goip.de/mirror/devtest/nethserver-zammad-1.0.0-5.ns7.noarch.rpm

It worked for me, but I don’t use LDAP.

Michel-André

1 Like

@michelandre is that a different version

Hi again Markus,

You are absolutely right again.

The command


# signal-event nethserver-zammad-update


 resolved the problem.

To make sure all was OK, I rebooted and Elasticsearch refuse to load correctly.

# systemctl stop elasticsearch.service

# systemctl start elasticsearch.service

Then everything seems to be OK.

Michel-André

1 Like

Hi Nitram,

I think that it is only a module of Zammad.

Michel-André

PS: Not sure if it is only a module,

yum -y install https://mrmarkuz.goip.de/mirror/devtest/nethserver-zammad-1.0.0-5.ns7.noarch.rpm

...

Résumé de la transaction

============================================================================================

Installation 1 Paquet (+30 Paquets en dépendance)

Taille totale : 46 M

Taille totale des téléchargements : 46 M

Taille d'installation : 160 M

...

**Installé :**

**nethserver-zammad.noarch 0:1.0.0-5.ns7**

Dépendances installées :

atk.x86_64 0:2.28.1-1.el7

copy-jdk-configs.noarch 0:3.3-10.el7_5

gdk-pixbuf2.x86_64 0:2.36.12-3.el7

giflib.x86_64 0:4.1.6-9.el7

gtk-update-icon-cache.x86_64 0:3.22.30-3.el7

gtk2.x86_64 0:2.24.31-1.el7

hicolor-icon-theme.noarch 0:0.12-7.el7

jasper-libs.x86_64 0:1.900.1-33.el7

**java-1.8.0-openjdk.x86_64** 1:1.8.0.222.b10-0.el7_6

**java-1.8.0-openjdk-headless.x86_64** 1:1.8.0.222.b10-0.el7_6

**javapackages-tools.noarch** 0:3.4.1-11.el7

jbigkit-libs.x86_64 0:2.0-11.el7

libICE.x86_64 0:1.0.9-9.el7

libSM.x86_64 0:1.2.2-2.el7

libXcomposite.x86_64 0:0.4.4-4.1.el7

libXi.x86_64 0:1.7.9-1.el7

libXrandr.x86_64 0:1.5.1-2.el7

libXtst.x86_64 0:1.2.3-1.el7

libtiff.x86_64 0:4.0.3-27.el7_3

lksctp-tools.x86_64 0:1.0.17-2.el7

**nethserver-postgresql.noarch** 0:1.1.0-1.ns7

pcsc-lite-libs.x86_64 0:1.8.8-8.el7

**postgresql.x86_64** 0:9.2.24-1.el7_5

**postgresql-libs.x86_64** 0:9.2.24-1.el7_5

**postgresql-server.x86_64** 0:9.2.24-1.el7_5

**python-javapackages.noarch** 0:3.4.1-11.el7

**python-lxml.x86_64** 0:3.2.1-4.el7

ttmkfdir.x86_64 0:3.0.9-42.el7

tzdata-java.noarch 0:2019b-1.el7

xorg-x11-fonts-Type1.noarch 0:7.5-9.el7

Terminé !

[root@tchana ~]#

You installed the repo version and one post above is the test version including the csrf fix.

Please test it, if it works I’ll push it to the repo.

Next step: Integrate elasticsearch.