# Status Code 422 on tickets after update to newest Version 4

**URL:** https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550
**Category:** Technical assistance
**Created:** [April 3, 2021, 8:01pm UTC](https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550 "2021-04-03T20:01:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pluggz](https://community.zammad.org/letter_avatar_proxy/v4/letter/p/d2c977/32.png) [@pluggz](https://community.zammad.org/u/pluggz)
#### Post date: [April 3, 2021, 8:01pm UTC](https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550/1 "2021-04-03T20:01:38Z")

</div>

Hello at all,

I updated my Zammad from 3.6 to the newest Version 4. After the update I cannot access any ticket which are in my list. Also when I create a new one, I cannot access. I get the following error:

## Status Code: 422. {“error”:“PG::UndefinedTable: ERROR: relation “mentions” does not exist\nLINE 8: WHERE a.attrelid = ‘“mentions”’::regclass\n ^\n: SELECT a.attname, formattype(a.atttypid, a.atttypmod),\n pggetexpr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,\n c.collname, coldescription(a.attrelid, a.attnum) AS comment\n FROM pgattribute a\n LEFT JOIN pgattrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum\n LEFT JOIN pgtype t ON a.atttypid = t.oid\n LEFT JOIN pgcollation c ON a.attcollation = c.oid AND a.attcollation \u003c\u003e t.typcollation\n WHERE a.attrelid = ‘“mentions”’::regclass\n AND a.attnum \u003e 0 AND NOT a.attisdropped\n ORDER BY a.attnum\n”}

- Used Zammad version: newst
- Used Zammad installation source: (source, package, …) ?
- Operating system: Ubuntu 20.04
- Browser + version: every tested

Would be good if anyone could help me out, thanks a lot.

Cheers, Daniel

---

<div class="post-metadata">

### Author: ![ChrisKon](https://community.zammad.org/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@ChrisKon](https://community.zammad.org/u/ChrisKon)
#### Post date: [April 6, 2021, 6:51am UTC](https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550/2 "2021-04-06T06:51:54Z")

</div>

I have the same Problem.

What should we do?

---

<div class="post-metadata">

### Author: ![pluggz](https://community.zammad.org/letter_avatar_proxy/v4/letter/p/d2c977/32.png) [@pluggz](https://community.zammad.org/u/pluggz)
#### Post date: [April 6, 2021, 8:54am UTC](https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550/3 "2021-04-06T08:54:33Z")

</div>

Hey,

well, in my case it was because I didn´t configure elasticsearch. So if you also did not, please refer to the documentation and configure it. Afterwards ssh into server and `apt reinstall zammad`  
That should work.

Cheers, Daniel

---

<div class="post-metadata">

### Author: ![ChrisKon](https://community.zammad.org/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@ChrisKon](https://community.zammad.org/u/ChrisKon)
#### Post date: [April 6, 2021, 9:26am UTC](https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550/4 "2021-04-06T09:26:04Z")

</div>

Hi Daniel,

I did configure elasticSearch, but what do you mean by apt reinstall zammad in console?  
This Command is not known?

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [April 6, 2021, 9:44am UTC](https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550/5 "2021-04-06T09:44:39Z")

</div>

This has nothing to do with Elasticsearch but the upgrade not run completely.  
This should have been indicated during the update process (this is why we never recommend to do that unattended).

Running `zammad run rake db:migrate` followed by a service restart should do the trick.

---

<div class="post-metadata">

### Author: ![ChrisKon](https://community.zammad.org/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@ChrisKon](https://community.zammad.org/u/ChrisKon)
#### Post date: [April 6, 2021, 9:48am UTC](https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550/6 "2021-04-06T09:48:38Z")

</div>

this should do it, Tickets are running again 🙂

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [August 4, 2021, 9:48am UTC](https://community.zammad.org/t/status-code-422-on-tickets-after-update-to-newest-version-4/6550/7 "2021-08-04T09:48:53Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
