Namespace upstream sync error
Author: lokitorinCreated Sep 18, 2026Updated Sep 18, 2026
Labelsbug
When first deploying sites with namespace sync, if sites point to upstream that added with same sync (site with upstream section only), sync will error with: my_remote: my_site.local - /api/sites/my_site.local responded with 500: { "scope": "nginx", "code": 50000, "message": "nginx error: {0}", "params": [ "nginx [emerg] host not found in upstream "my_upstream" in /etc/nginx/sites-enabled/my_site.local" ]}
Steps to reproduce the behavior:
- Create empty namespace.
- Create 2 sites: one with upstream only, another points to that upstream.
- Add both sites to namespace and turn on.
- Assign remote to namespace and sync manually.
It was intended to sync all together at same time, or at right order (also tried to order sites by name them lexicographically before sync)
Info:
- Server OS: docker image from dockerhub
- Server Arch: amd64
- Nginx UI Version: 2.6.0
- Your Browser: Microsoft Edge 130.0
Fixing by just sync once again, but makes me wonder if it can lead to uncontrollable post-sync behavior in manual sync mode.
Source: 0xJacky/nginx-ui