# Nginx fails to start

**URL:** https://community.zammad.org/t/nginx-fails-to-start/5872
**Category:** Technical assistance
**Created:** [December 14, 2020, 2:36pm UTC](https://community.zammad.org/t/nginx-fails-to-start/5872 "2020-12-14T14:36:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jmerwin210](https://community.zammad.org/user_avatar/community.zammad.org/jmerwin210/32/3605_2.png) [@jmerwin210](https://community.zammad.org/u/jmerwin210)
#### Post date: [December 14, 2020, 2:36pm UTC](https://community.zammad.org/t/nginx-fails-to-start/5872/1 "2020-12-14T14:36:06Z")

</div>

### Infos:

- Used Zammad version: latest
- Used Zammad installation source: installed via APT
- Operating system: Ubuntu 18.04
- Browser + version: Chrome 87

### Expected behavior:

- nginx service should start

### Actual behavior:

- root@help:/etc/nginx# systemctl status nginx.service  
● nginx.service - A high performance web server and a reverse proxy server  
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Mon 2020-12-14 14:24:06 UTC; 3min 18s ago  
Docs: man:nginx(8)  
Process: 2168 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master\_process on; (code=exited, status=1/FAILURE)

Dec 14 14:24:06 help systemd[1]: Starting A high performance web server and a reverse proxy server…  
Dec 14 14:24:06 help nginx[2168]: nginx: [emerg] duplicate upstream “zammad-railsserver” in /etc/nginx/sites-enabled/zammad.conf.save:5  
Dec 14 14:24:06 help nginx[2168]: nginx: configuration file /etc/nginx/nginx.conf test failed  
Dec 14 14:24:06 help systemd[1]: nginx.service: Control process exited, code=exited status=1  
Dec 14 14:24:06 help systemd[1]: nginx.service: Failed with result ‘exit-code’.  
Dec 14 14:24:06 help systemd[1]: Failed to start A high performance web server and a reverse proxy server.

### Steps to reproduce the behavior:

- 

Everything was working just fine, then noticed I didn’t have the ability to create new tickets. Rebooted the webserver and nginx has failed to start.

---

<div class="post-metadata">

### Author: ![olafbuitelaar](https://community.zammad.org/user_avatar/community.zammad.org/olafbuitelaar/32/4769_2.png) [@olafbuitelaar](https://community.zammad.org/u/olafbuitelaar)
#### Post date: [December 14, 2020, 2:46pm UTC](https://community.zammad.org/t/nginx-fails-to-start/5872/2 "2020-12-14T14:46:06Z")

</div>

> [@jmerwin210](#):
>
> nginx: [emerg] duplicate upstream “zammad-railsserver” in /etc/nginx/sites-enabled/zammad.conf.save:5

From this message it seems you have configured zammad-railsserver twice. maybe you have 2 files there;  
/etc/nginx/sites-enabled/zammad.conf  
and  
/etc/nginx/sites-enabled/zammad.conf.save  
both containing the same configuration

---

<div class="post-metadata">

### Author: ![jmerwin210](https://community.zammad.org/user_avatar/community.zammad.org/jmerwin210/32/3605_2.png) [@jmerwin210](https://community.zammad.org/u/jmerwin210)
#### Post date: [December 14, 2020, 2:50pm UTC](https://community.zammad.org/t/nginx-fails-to-start/5872/3 "2020-12-14T14:50:09Z")

</div>

removing that file and restarting nginx worked, but I have lost the ability to create new tickets for users. The chat is gone from the left hand side, the overview is gone, the dashboard is gone.

---

<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: [December 30, 2020, 9:36am UTC](https://community.zammad.org/t/nginx-fails-to-start/5872/4 "2020-12-30T09:36:05Z")

</div>

A default nginx configuration for Zammad should look like something like this:

> <https://github.com/zammad/zammad/blob/develop/contrib/nginx/zammad_ssl.conf>

Possibly there’s directives missing that cause specific things not to be shipped and thus miss.

---

<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: [April 29, 2021, 9:36am UTC](https://community.zammad.org/t/nginx-fails-to-start/5872/5 "2021-04-29T09:36:07Z")

</div>

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