502 Bad Gateway when I try to access webgui with domain after I turned on ssl and force ssl option

  • Hello


    In OMV 4, after I turned on ssl and force ssl option on webgui, I got 502 Bad Gateway when I access to webgui with domain.(It's okay when I access webgui with ip address)


    How can I solve this problem?



    Code: /var/log/nginx/openmediavault-webgui_error.log
    ......
    
    
    2018/02/12 09:28:21 [error] 17040#17040: *45 FastCGI sent in stderr: "PHP message: PHP Warning:  DOMDocument::load(/etc/openmediavault/config.xml): failed to open stream: Permission denied in /usr/share/php/openmediavault/config/databasebackend.inc on line 114" while reading response header from upstream, client: 127.0.0.1, server: openmediavault-webgui, request: "HEAD / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "127.0.0.1"
    • Offizieller Beitrag

    The file /etc/openmediavault/config.xml has not the correct privileges.


    Bash
    chmod 660 /etc/openmediavault/config.xml
    chown :openmediavault-config /etc/openmediavault/config.xml
  • having same "502: Bad Gateway" problem. Fresh install of 3.0.9.4 .
    ran the following commands:


    root@openmediavault:~# systemctl status php5-fpm.service


    root@openmediavault:~# systemctl status nginx.service

    This fresh install was the end result as i was attempting to fix a stoneburner install that had a full OS drive and was showing this error. Should i just jump to 4? seems OMV may be having a problem with php5-fpm. Any suggestions appreciated.

    OMV: OMV 6 - Intel I7-4770 @ 3.4 GHz - 16 GB DDR3 1600 - 31.8 TB MDADM RAID 6


    Desktop:
    Win 10 Pro - AMD RYZEN 5 3600X @4.2 - 32 GB DDR 4 3600 - 4 TB NVME

    Win 10 Pro - I7-4770k @ 4.3 GHz - 16 GB DDR 3 1600 Samsung 960 Evo 500 (X2) Raid-0

  • ok, i downloaded 4.0.14 and installed . . . when it boots, the CLI shows as 3.0.97. should it be that way? but the 502 error still persists when i try to access WebGUI

    OMV: OMV 6 - Intel I7-4770 @ 3.4 GHz - 16 GB DDR3 1600 - 31.8 TB MDADM RAID 6


    Desktop:
    Win 10 Pro - AMD RYZEN 5 3600X @4.2 - 32 GB DDR 4 3600 - 4 TB NVME

    Win 10 Pro - I7-4770k @ 4.3 GHz - 16 GB DDR 3 1600 Samsung 960 Evo 500 (X2) Raid-0


  • [cat /var/log/nginx/openmediavault-webgui_error.log] produces several lines of the following



    Code
    2018/03/06 08:59:45 [crit] 25437#0: *1 connect() to unix:/var/run/php5-fpm-openmediavault-webgui.sock failed (2: No such file or directory) while connecting to upstream, client: ::ffff:127.0.0.1, server: openmediavault-webgui, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-openmediavault-webgui.sock:", host: "127.0.0.1:443"

    OMV: OMV 6 - Intel I7-4770 @ 3.4 GHz - 16 GB DDR3 1600 - 31.8 TB MDADM RAID 6


    Desktop:
    Win 10 Pro - AMD RYZEN 5 3600X @4.2 - 32 GB DDR 4 3600 - 4 TB NVME

    Win 10 Pro - I7-4770k @ 4.3 GHz - 16 GB DDR 3 1600 Samsung 960 Evo 500 (X2) Raid-0

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!