No WebGUI white blank page

  • Greetings all,


    I need help, have a problem with my WebGUI, its just a white blank page. I'm not sure what I did wrong with it.
    Connecting through ssh working fine, I'm not sure why, but I still can open transmissionbt from port 9091.
    I used to use omv admin page from port 8888, but it always give me blank page. Btw I'm using Chrome with Incognito mode.
    Tried on other computer with different browser not also not working. I've also read some posts related about this topics. i.e 502 Bad Gateway after 1.x -> 2.0.10 upgrade and some others.


    Reconfiguring WebGUI with omv-firstaid to port 8888 also not working. port 80 gives me "Welcome to nginx on Debian!" message


    But I got this error message when I change to port 80:


    Code
    Updating web administration settings. Please wait ...
    {"response":null,"error":{"code":4000,"message":"Failed to execute command 'export LANG=C; nginx -t 2>&1': nginx: [emerg] a duplicate default server for [::]:80 in \/etc\/nginx\/sites-enabled\/openmediavault-webgui:30\nnginx: configuration file \/etc\/nginx\/nginx.conf test failed","trace":"exception 'OMVException' with message 'Failed to execute command 'export LANG=C; nginx -t 2>&1': nginx: [emerg] a duplicate default server for [::]:80 in \/etc\/nginx\/sites-enabled\/openmediavault-webgui:30\nnginx: configuration file \/etc\/nginx\/nginx.conf test failed' in \/usr\/share\/openmediavault\/engined\/module\/webserver.inc:41\nStack trace:\n#0 \/usr\/share\/openmediavault\/engined\/rpc\/config.inc(180): OMVModuleNginxAbstract->applyConfig()\n#1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)\n#2 \/usr\/share\/php\/openmediavault\/rpcservice.inc(125): call_user_func_array(Array, Array)\n#3 \/usr\/share\/php\/openmediavault\/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)\n#4 \/usr\/sbin\/omv-engined(500): OMVRpc::exec('Config', 'applyChanges', Array, Array, 1)\n#5 {main}"}}
    Failed to execute RPC (service=Config, method=applyChanges)


    Heres my system info:

    Code
    uname --all
    Linux gundala 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4~bpo70+1 (2016-03-07) x86_64 GNU/Linux


    Reason i'm using bpo was because VirtualBox, and i'm using Stone burner 2.2.2


    Heres what i have done


    Code
    omv-update
    sudo apt-get -f install
    omv-mkconf omvextrasorg aptclean
    omv-mkconf nginx
    omv-mkconf php5-fpm
    service nginx restart
    service php5-fpm restart


    content of /etc/default/openmediavault



    Really looking forward for help, thanks.

    • Offizieller Beitrag

    Upgrade to OMV 2.2.3 (use omv-update). There was an executable flag issue with 2.2.2.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Here what i got for ls -la /etc/nginx/sites-enabled


    Code
    total 8
    drwxr-xr-x 2 root root 4096 Mar 30 20:47 .
    drwxr-xr-x 7 root root 4096 Mar 30 17:53 ..
    lrwxrwxrwx 1 root root   34 Mar 17 11:16 default -> /etc/nginx/sites-available/default
    lrwxrwxrwx 1 root root   48 Mar 30 20:47 openmediavault-webgui -> /etc/nginx/sites-available/openmediavault-webgui


    and theres no 2.2.3 update

    • Offizieller Beitrag

    The 2.2.3 update hasn't been released yet and wouldn't fix your issue.


    rm /etc/nginx/sites-enable/default
    service nginx restart

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • default file removed, nginx restared but still blank page.


    I also reconfigure WebGUI with omv-firstaid to port 80. The error messages i got before now gone.
    Tried to access it from port 80, still blank page

    • Offizieller Beitrag

    Did you clear your browser cache? Post the output of the following:


    wget http://localhost/
    head -n 5 index.html

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!


  • head -n 5 index.html return no output

    • Offizieller Beitrag

    Try:

    Code
    omv-mkconf nginx
    omv-mkconf php5fpm
    service nginx restart
    service php5-fpm restart

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I tested wget http://localhost/ and head -n 5 index.html on running VM.


    Result:


    HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
    <style type="text/css">
    body {background-color: #ffffff; color: #000000;}
    body, td, th, h1, h2 {font-family: sans-serif;}


    What did I do wrong? Could i messed up my sites/available and sites/enable?


    Any suggestion to recover nginx configuration from VM?

    • Offizieller Beitrag

    Your site file is there. omv-mkconf nginx re-creates the config. No idea what you did. Try: apt-get install --reinstall openmediavault

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Recreating the config with omv-mkconf nginx and apt-get install --reinstall openmediavault doesn't help.


    I tried 502 Bad Gateway after 1.x -> 2.0.10 upgrade


    Not sure why my /etc/nginx/fastcgi_params missing fastcgi_param SCRIPT_FILENAME $request_filename; line.
    By adding that line and service nginx restart now WebGUI working again.


    Thank a lot for the help and suggestions.

    • Offizieller Beitrag

    Maybe an nginx upgrade caused this. I think omv-mkconf should create/check the fastcgi_params. I will file a bug report.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • If I recall it correctly I had a similar situation the other day and found that nginx was updated from the backports repo. So I had nginx version 1.6 instead of the "normal 1.2". I fixed it by downgrading to 1.2 (apt-get install nginx/wheezy nginx-full/wheezy).
    As you fixed your problem with changing the fastcgi config would you do me a favour and check your nginx version? Maybe I could have fixed my setup the same way ... ;)

    OMV 2.x - Kralizec // Hardware: HP Microserver N54L, 4GB RAM, 2x3TB WD Red - RAID 1, Sandisk SSD 60GB for system

    • Offizieller Beitrag

    @SlashOpt was correct :) Not sure why it installed the backports version though.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • So, the "only" problem is that the fastcgi_params directive is missing if ones uses the version from backports. Good to know ... ;)

    OMV 2.x - Kralizec // Hardware: HP Microserver N54L, 4GB RAM, 2x3TB WD Red - RAID 1, Sandisk SSD 60GB for system

Jetzt mitmachen!

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