'OMV_DEBUG_PHP' does not exist

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

    • 'OMV_DEBUG_PHP' does not exist

      Hello,

      i have a big problem, i can not access OMV anymore. My web-interface from OMV only shows the error massage:

      Display Spoiler

      Error #0:
      InvalidArgumentException: The environment variable 'OMV_DEBUG_PHP' does not exist. in /usr/share/php/openmediavault/environment.inc:47
      Stack trace:
      #0 /usr/share/php/openmediavault/environment.inc(63): OMV\Environment::get('OMV_DEBUG_PHP', NULL)
      #1 /var/www/openmediavault/index.php(27): OMV\Environment::getBoolean('OMV_DEBUG_PHP')
      #2 {main}


      when i will start OMV manually via ssh i geht the error:
      Display Spoiler

      root@nas:~# omv-engined -d -f
      PHP Fatal error: Uncaught InvalidArgumentException: The environment variable 'OMV_DATAMODELS_DIR' does not exist. in /usr/share/php/openmediavault/environment.inc:47
      Stack trace:
      #0 /usr/share/php/openmediavault/datamodel/manager.inc(55): OMV\Environment::get('OMV_DATAMODELS_...')
      #1 /usr/share/openmediavault/engined/inc/30datamodel.inc(23): OMV\DataModel\Manager->load()
      #2 /usr/sbin/omv-engined(359): require_once('/usr/share/open...')
      #3 {main}
      thrown in /usr/share/php/openmediavault/environment.inc on line 47
      omv-engined[10788]: PHP Fatal error: Uncaught InvalidArgumentException: The environment variable 'OMV_DATAMODELS_DIR' does not exist. in /usr/share/php/openmediavault/environment.inc:47
      Stack trace:
      #0 /usr/share/php/openmediavault/datamodel/manager.inc(55): OMV\Environment::get('OMV_DATAMODELS_...')
      #1 /usr/share/openmediavault/engined/inc/30datamodel.inc(23): OMV\DataModel\Manager->load()
      #2 /usr/sbin/omv-engined(359): require_once('/usr/share/open...')
      #3 {main}
      thrown in /usr/share/php/openmediavault/environment.inc on line 47
      PHP Fatal error: Uncaught InvalidArgumentException: The environment variable 'OMV_DATAMODELS_DIR' does not exist. in /usr/share/php/openmediavault/environment.inc:47
      Stack trace:
      #0 /usr/share/php/openmediavault/datamodel/manager.inc(55): OMV\Environment::get('OMV_DATAMODELS_...')
      #1 /usr/share/openmediavault/engined/inc/30datamodel.inc(23): OMV\DataModel\Manager->load()
      #2 /usr/sbin/omv-engined(359): require_once('/usr/share/open...')
      #3 {main}
      thrown in /usr/share/php/openmediavault/environment.inc on line 47
      root@nas:~#


      if i upgrade the system i geht the error:
      Display Spoiler

      root@nas:~# apt upgrade
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Calculating upgrade... Done
      The following packages will be upgraded:
      dirmngr gnupg gnupg-agent gpgv libperl5.24 openmediavault perl perl-base perl-modules-5.24
      9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Need to get 0 B/11.2 MB of archives.
      After this operation, 1024 B of additional disk space will be used.
      Do you want to continue? [Y/n] y
      sh: 1: .: Can't open /etc/default/openmediavault
      E: Problem executing scripts DPkg::Pre-Invoke '. /etc/default/openmediavault; if [ ! -e ${OMV_DPKGARCHIVE_DIR}/Packages ]; then echo Building local package repository ...; cd ${OMV_DPKGARCHIVE_DIR} && apt-ftparchive packages . > Packages && apt-ftparchive release . > Release; fi'
      E: Sub-process returned an error code
      root@nas:~#


      I can not say exactly what led to the problem, except an update I have not changed anything in OMV the last days. However, a power failure was a few days ago. ?(
      i Use OMV 4 on RPI3
      can anyboy help? ;(


      greetings,
      Paul
    • PeterPan wrote:

      Can you told me how i can get the folderfile (openmediavault?)?
      I would re-install. There are a lot of services (over 50 on my test VM) that have a file in /etc/default. If they are all missing, that is bad.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!