Skip to content

Troubleshooting

ERR_CONNECTION_REFUSED

bash
ss -tulpn | grep -E ':(80|443)\b' || true
nginx -T | sed -n '/server_name HOST_OR_IP/,/}/p'
sudo firewall-cmd --add-service=http --permanent && sudo firewall-cmd --reload

502 op /api/v1

bash
sudo setsebool -P httpd_can_network_connect on
sudo firewall-cmd --add-port=3000/tcp --permanent && sudo firewall-cmd --reload
ss -tulpn | grep ':3000' || true

404 op /api/v1

nginx
# Strip
location /api/v1/ { proxy_pass http://BACKEND_HOST:3000/; }
# Niet strip
# location /api/v1/ { proxy_pass http://BACKEND_HOST:3000; }

White screen maar 200/OK

nginx
location ^~ /admin/_nuxt/  { proxy_pass http://127.0.0.1:3002/_nuxt/; }
location ^~ /admin/assets/ { proxy_pass http://127.0.0.1:3002/assets/; }

Ansible handler “not found”

yaml
- name: Validate nginx config
  listen: 'Validate and reload nginx'
  command: nginx -t
  register: proxy_nginx_test
  changed_when: false
  failed_when: proxy_nginx_test.rc != 0
  notify: 'Reload nginx'

- name: Reload nginx
  listen: 'Reload nginx'
  service:
    name: nginx
    state: reloaded

Fire Management System Documentation