No WebGUI white blank page

    • OMV 2.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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:

      Source Code

      1. Updating web administration settings. Please wait ...
      2. {"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}"}}
      3. Failed to execute RPC (service=Config, method=applyChanges)


      Heres my system info:

      Source Code

      1. uname --all
      2. 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

      Source Code

      1. omv-update
      2. sudo apt-get -f install
      3. omv-mkconf omvextrasorg aptclean
      4. omv-mkconf nginx
      5. omv-mkconf php5-fpm
      6. service nginx restart
      7. service php5-fpm restart


      content of /etc/default/openmediavault

      Source Code

      1. # Default values
      2. OMV_CONFIG_FILE="/etc/openmediavault/config.xml"
      3. OMV_CONFIG_TEMPLATE_FILE="/usr/share/openmediavault/templates/config.xml"
      4. OMV_PRODUCTINFO_FILE="/usr/share/openmediavault/productinfo.xml"
      5. OMV_SCRIPTS_DIR="/usr/share/openmediavault/scripts"
      6. OMV_I18N_LOCALE_DIR="/usr/share/openmediavault/locale"
      7. OMV_MOUNT_DIR="/media"
      8. OMV_NFSD_EXPORT_DIR="/export"
      9. OMV_CACHE_DIR="/var/cache/openmediavault"
      10. OMV_LOG_DIR="/var/log/openmediavault"
      11. OMV_SSL_CERTIFICATE_DIR="/etc/ssl"
      12. OMV_SSL_CERTIFICATE_PREFIX="openmediavault-"
      13. OMV_SSH_KEYS_DIR="/var/lib/openmediavault/ssh/keys"
      14. OMV_SSH_KEY_PREFIX="openmediavault-"
      15. OMV_DPKGARCHIVE_DIR="/var/cache/openmediavault/archives"
      16. OMV_DOCUMENTROOT_DIR="/var/www/openmediavault"
      17. OMV_CRONSCRIPTS_DIR="/var/lib/openmediavault/cron.d"
      18. OMV_CONFIGIMPORT_SCRIPTS_DIR="/usr/share/openmediavault/configimport"
      19. OMV_MKCONF_SCRIPTS_DIR="/usr/share/openmediavault/mkconf"
      20. OMV_ENGINED_DIR="/usr/share/openmediavault/engined"
      21. OMV_ENGINED_SO_ADDRESS="/var/lib/openmediavault/engined.sock"
      22. OMV_ENGINED_SO_SNDTIMEO=10
      23. OMV_ENGINED_SO_RCVTIMEO=180
      24. OMV_ENGINED_DIRTY_MODULES_FILE="/var/lib/openmediavault/dirtymodules.json"
      25. OMV_INITSYSTEM_SCRIPTS_DIR="/usr/share/openmediavault/initsystem"
      26. OMV_INITSYSTEM_FILE="/var/lib/openmediavault/initsystem.req"
      27. OMV_USERMGMT_DEFAULT_GROUP="users"
      28. OMV_RRDGRAPH_DIR="/var/lib/openmediavault/rrd"
      29. OMV_RRDGRAPH_ERROR_IMAGE="/usr/share/openmediavault/icons/rrd_graph_error_64.png"
      30. OMV_WEBGUI_FILE_OWNERGROUP_NAME="openmediavault"
      31. OMV_DEBUG_SCRIPT="NO"
      32. OMV_DEBUG_PHP="NO"
      33. OMV_DEBUG_EXTJS="NO"
      Display All


      Really looking forward for help, thanks.
    • Here what i got for ls -la /etc/nginx/sites-enabled

      Source Code

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


      and theres no 2.2.3 update
    • 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 4.0.5 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.0.2
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Source Code

      1. ​--2016-04-05 09:30:58-- http://localhost/
      2. Resolving localhost (localhost)... 127.0.0.1
      3. Connecting to localhost (localhost)|127.0.0.1|:80... connected.
      4. HTTP request sent, awaiting response... 200 OK
      5. Length: unspecified [text/html]
      6. Saving to: `index.html'
      7. [ <=> ] 0 --.-K/s in 0s
      8. 2016-04-05 09:30:58 (0.00 B/s) - `index.html' saved [0]


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

      Result:

      Source Code

      1. --2016-04-05 13:49:47-- http://localhost/
      2. Resolving localhost (localhost)... 127.0.0.1
      3. Connecting to localhost (localhost)|127.0.0.1|:80... connected.
      4. HTTP request sent, awaiting response... 200 OK
      5. Length: unspecified [text/html]
      6. Saving to: `index.html'
      7. [ <=> ] 66,219 --.-K/s in 0.001s
      8. 2016-04-05 13:49:47 (86.6 MB/s) - `index.html' saved [66219]

      HTML Source Code

      1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
      2. <html xmlns="http://www.w3.org/1999/xhtml"><head>
      3. <style type="text/css">
      4. body {background-color: #ffffff; color: #000000;}
      5. 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?
    • Your site file is there. omv-mkconf nginx re-creates the config. No idea what you did. Try: apt-get install --reinstall openmediavault
      omv 4.0.5 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.0.2
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      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.

      Source Code

      1. # apt-get install --reinstall openmediavault
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
      6. Need to get 0 B/806 kB of archives.
      7. After this operation, 0 B of additional disk space will be used.
      8. (Reading database ... 96175 files and directories currently installed.)
      9. Preparing to replace openmediavault 2.2.2 (using .../openmediavault_2.2.2_all.deb) ...
      10. Unpacking replacement openmediavault ...
      11. Setting up openmediavault (2.2.2) ...
      12. Updating configuration ...
      13. Processing triggers for openmediavault ...
      14. Restarting engine daemon ...
      15. Updating locale files ...
      16. Updating file permissions ...
      17. Purging internal cache ...
      18. Creating index of upgradeable packages ...
      19. Creating index of openmediavault plugins ...
      Display All

      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.
    • Maybe an nginx upgrade caused this. I think omv-mkconf should create/check the fastcgi_params. I will file a bug report.
      omv 4.0.5 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.0.2
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      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