I get errors when i run a packages update

  • Always the same error


  • There is a directory, where a file is expected. Can you show me, what is inside the directory (mayby a salvage)?


    ls -la /etc/default/openmediavault


    Do notstart the install, until we say so. We are not ready yet.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • There is a directory, where a file is expected. Can you show me, what is inside the directory (mayby a salvage)?


    ls -la /etc/default/openmediavault


    Do notstart the install, until we say so. We are not ready yet.

    this is what's inside the directory


  • ok, something went wrong with the cat command.


    rm -rf /etc/default/openmediavault  will remove the directory and it's contents.


    Once the directory is gone (check with ls -la /etc/default/openmediavault) paste all this onto the command line,




    past the output of the commands into the code box.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • root @ Jarvis: ~ # rm -rf / etc / default / openmediavault

    root @ Jarvis: ~ # ls -la / etc / default / openmediavault

    ls: unable to access '/ etc / default / openmediavault': File or directory does not exist

    root @ Jarvis: ~ # cat> / etc / default / openmediavault << EOF

    > OMV_APT_USE_KERNEL_BACKPORTS = "YES"

    > OMV_CACHE_DIR = "/ var / cache / openmediavault"

    > OMV_CONFIG_FILE = "/ etc / openmediavault / config.xml"

    > OMV_CONFIG_TEMPLATE_FILE = "/ usr / share / openmediavault / templates / config.xml"

    > OMV_CONFIGIMPORT_SCRIPTS_DIR = "/ usr / share / openmediavault / configimport"

    > OMV_CONFIGOBJECT_NEW_UUID = "fa4b1c66-ef79-11e5-87a0-0002b3a176b4"

    > OMV_CRONSCRIPTS_DIR = "/ var / lib / openmediavault / cron.d"

    > OMV_DATAMODELS_DIR = "/ usr / share / openmediavault / datamodels"

    > OMV_DEBUG_EXTJS = "NO"

    > OMV_DEBUG_PHP = "NO"

    > OMV_DEBUG_SCRIPT = "NO"

    > OMV_DOCUMENTROOT_DIR = "/ var / www / openmediavault"

    > OMV_DPKGARCHIVE_DIR = "/ var / cache / openmediavault / archives"

    > OMV_ENGINED_DIR = "/ usr / share / openmediavault / engined"

    > OMV_ENGINED_DIRTY_MODULES_FILE = "/ var / lib / openmediavault / dirtymodules.json"

    > OMV_ENGINED_SO_ADDRESS = "/ var / lib / openmediavault / engined.sock"

    > OMV_ENGINED_SO_OWNERGROUP_NAME = "openmediavault-engined"

    > OMV_ENGINED_SO_RCVTIMEO = "180"

    > OMV_ENGINED_SO_SNDTIMEO = "10"

    > OMV_I18N_LOCALE_DIR = "/ usr / share / openmediavault / locale"

    > OMV_INITSYSTEM_FILE = "/ var / lib / openmediavault / initsystem.req"

    > OMV_INITSYSTEM_SCRIPTS_DIR = "/ usr / share / openmediavault / initsystem"

    > OMV_LOG_DIR = "/ var / log / openmediavault"

    > OMV_MKCONF_SCRIPTS_DIR = "/ usr / share / openmediavault / mkconf"

    > OMV_MOUNT_DIR = "/ srv"

    > OMV_NFSD_EXPORT_DIR = "/ export"

    OMV_RSNAPSHOT_CRONSCRIPT = "/ var / lib / openmediavault / cron.d / rsnapshot"

    > OMV_PRODUCTINFO_FILE = "/ usr / share / openmediavault / productinfo.xml"

    > OMV_RRDGRAPH_DIR = "/ var / lib / openmediavault / rrd"

    > OMV_RRDGRAPH_ERROR_IMAGE = "/ usr / share / openmediavault / icons / rrd_graph_error_64.png"

    > OMV_RSNAPSHOT_CONFS_DIR = "/ var / lib / openmediavault / rsnapshot.d"

    > OMV_RSNAPSHOT_CRONSCRIPT = "/ var / lib / openmediavault / cron.d / rsnapshot"

    > OMV_RSNAPSHOT_STARTING_HOUR = "2"

    > OMV_SCRIPTS_DIR = "/ usr / share / openmediavault / scripts"

    > OMV_SHAREDFOLDERS_DIR = "/ sharedfolders"

    > OMV_SHAREDFOLDERS_DIR_ENABLED = "NO"

    > OMV_SSH_KEY_PREFIX = "openmediavault-"

    > OMV_SSH_KEYS_DIR = "/ etc / ssh"

    > OMV_SSL_CERTIFICATE_DIR = "/ etc / ssl"

    > OMV_SSL_CERTIFICATE_PREFIX = "openmediavault-"

    > OMV_USERMGMT_DEFAULT_GROUP = "users"

    > OMV_WEBGUI_ADMINGROUP_NAME = "openmediavault-admin"

    > OMV_WEBGUI_ADMINUSER_NAME = "admin"

    > OMV_WEBGUI_FILE_OWNERGROUP_NAME = "openmediavault-webgui"

    > EOF

    root @ Jarvis: ~ #

  • Now he installed it, but I always see the nginx welcome page,


    root@Jarvis:~# export LANG=C.UTF-8

    root@Jarvis:~# export DEBIAN_FRONTEND=noninteractive

    root@Jarvis:~# export APT_LISTCHANGES_FRONTEND=none

    root@Jarvis:~# apt-get update

    apt-get --yes --auto-remove --show-upgraded \

    --allow-downgrades --allow-change-held-packages \

    --no-install-recommends \

    --option DPkg::Options::="--force-confdef" \

    --option DPkg::Options::="--force-confold" \

    install openmediavault-keyring openmediavault


    Get:1 file:/var/cache/openmediavault/archives InRelease

    Ign:1 file:/var/cache/openmediavault/archives InRelease

    Get:2 file:/var/cache/openmediavault/archives Release [816 B]

    Get:2 file:/var/cache/openmediavault/archives Release [816 B]

    Get:3 file:/var/cache/openmediavault/archives Release.gpg

    Ign:3 file:/var/cache/openmediavault/archives Release.gpg

    Hit:4 http://deb.debian.org/debian buster InRelease

    Hit:5 http://deb.debian.org/debian buster-updates InRelease

    Hit:6 http://security.debian.org/debian-security buster/updates InRelease

    Hit:7 https://packages.openmediavault.org/public usul InRelease

    Reading package lists... Done

    root@Jarvis:~# apt-get --yes --auto-remove --show-upgraded \

    > --allow-downgrades --allow-change-held-packages \

    > --no-install-recommends \

    > --option DPkg::Options::="--force-confdef" \

    > --option DPkg::Options::="--force-confold" \

    > install openmediavault-keyring openmediavault

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    openmediavault is already the newest version (5.6.24-1).

    openmediavault-keyring is already the newest version (1.0).

    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    1 not fully installed or removed.

    After this operation, 0 B of additional disk space will be used.

    Setting up openmediavault (5.6.24-1) ...

    Creating users/groups ...

    Updating local package archive ...

    Updating service units ...

    systemd-journald.service is a disabled or a static unit, not starting it.

    Creating configuration database ...

    Setting up Salt environment ...

    Setting up system ...

    Deploying service configurations ...

    Processing system modifications ...

    Processing triggers for openmediavault (5.6.24-1) ...

    Restarting engine daemon ...

    Monit: the monit HTTP interface is not enabled, please add the 'set httpd' state ment and use the 'allow' option to allow monit to connect

    Updating locale files ...

    Updating file permissions ...

    Purging internal cache ...

    Processing triggers for initramfs-tools (0.133+deb10u1) ...

    update-initramfs: Generating /boot/initrd.img-4.19.0-18-amd64

    root@Jarvis:~#

  • Code
    openmediavault is already the newest version (5.6.24-1).
    openmediavault-keyring is already the newest version (1.0).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.


    apt-get install --reinstall openmediavault

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Code
    openmediavault is already the newest version (5.6.24-1).
    openmediavault-keyring is already the newest version (1.0).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.


    apt-get install --reinstall openmediavault

    Done, but i always see the nginx welcome page


    root@Jarvis:~# apt-get install --reinstall openmediavault

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.

    Need to get 0 B/1729 kB of archives.

    After this operation, 0 B of additional disk space will be used.

    Preconfiguring packages ...

    (Reading database ... 58444 files and directories currently installed.)

    Preparing to unpack .../openmediavault_5.6.24-1_all.deb ...

    Unpacking openmediavault (5.6.24-1) over (5.6.24-1) ...

    Setting up openmediavault (5.6.24-1) ...


    Configuration file '/etc/default/openmediavault'

    ==> Modified (by you or by a script) since installation.

    ==> Package distributor has shipped an updated version.

    What would you like to do about it ? Your options are:

    Y or I : install the package maintainer's version

    N or O : keep your currently-installed version

    D : show the differences between the versions

    Z : start a shell to examine the situation

    The default action is to keep your current version.

    *** openmediavault (Y/I/N/O/D/Z) [default=N] ? y

    Installing new version of config file /etc/default/openmediavault ...

    Creating configuration database ...

    Migrating configuration database ...

    Setting up Salt environment ...

    Processing system modifications ...

    Processing triggers for rsyslog (8.1901.0-1) ...

    Processing triggers for openmediavault (5.6.24-1) ...

    Restarting engine daemon ...

    Monit: the monit HTTP interface is not enabled, please add the 'set httpd' statement and use the 'allow' option to allow monit to connect

    Updating locale files ...

    Updating file permissions ...

    Purging internal cache ...

    root@Jarvis:~#

  • Execute this one by one:


    omv-salt stage run prepare

    omv-salt stage run deploy


    This should roll out the configs to all dependent services.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • The first was successful, the second gave an error

    root@Jarvis:~# omv-salt stage run prepare

    Jarvis.local:

    ----------

    ID: sync_runners

    Function: salt.runner

    Name: saltutil.sync_runners

    Result: True

    Comment: Runner function 'saltutil.sync_runners' executed.

    Started: 11:41:59.602725

    Duration: 3921.57 ms

    Changes:

    ----------

    return:

    ----------

    ID: sync_modules

    Function: salt.runner

    Name: saltutil.sync_modules

    Result: True

    Comment: Runner function 'saltutil.sync_modules' executed.

    Started: 11:42:03.524646

    Duration: 3755.284 ms

    Changes:

    ----------

    return:

    ----------

    ID: sync_states

    Function: salt.runner

    Name: saltutil.sync_states

    Result: True

    Comment: Runner function 'saltutil.sync_states' executed.

    Started: 11:42:07.280265

    Duration: 3749.828 ms

    Changes:

    ----------

    return:

    ----------

    ID: populate_pillar

    Function: salt.runner

    Name: omv.populate_pillar

    Result: True

    Comment: Runner function 'omv.populate_pillar' executed.

    Started: 11:42:11.030434

    Duration: 4341.997 ms

    Changes:

    ----------

    return:

    True

    ----------

    ID: run_state_sync

    Function: salt.state

    Result: True

    Comment: States ran successfully. Updating Jarvis.local.

    Started: 11:42:15.372825

    Duration: 2679.926 ms

    Changes:

    Jarvis.local:

    ----------

    ID: sync_modules

    Function: module.run

    Result: True

    Comment: saltutil.sync_modules: []

    Started: 11:42:15.729907

    Duration: 1256.065 ms

    Changes:

    ----------

    saltutil.sync_modules:

    ----------

    ID: sync_states

    Function: module.run

    Result: True

    Comment: saltutil.sync_states: []

    Started: 11:42:16.986199

    Duration: 1064.269 ms

    Changes:

    ----------

    saltutil.sync_states:


    Summary for Jarvis.local

    ------------

    Succeeded: 2 (changed=2)

    Failed: 0

    ------------

    Total states run: 2

    Total run time: 2.320 s


    Summary for Jarvis.local

    ------------

    Succeeded: 5 (changed=5)

    Failed: 0

    ------------

    Total states run: 5

    Total run time: 18.449 s

  • Deployment of ftp failed, so start simple by deploying nginx only omv-salt stage run deploy nginx


    and give me the list of states:

    Code
    omv-salt deploy list


    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Deployment of ftp failed, so start simple by deploying nginx only omv-salt stage run deploy nginx


    and give me the list of states:

    Code
    omv-salt deploy list


    i have this error


    root@Jarvis:~# omv-salt stage run deploy nginx

    Usage: omv-salt stage run [OPTIONS] NAME

    Try "omv-salt stage run --help" for help.


    Error: Got unexpected extra argument (nginx)

    root@Jarvis:~#

  • i ran the command omv-salt deploy run phpfpm and now i see the login page :)

    But I do not recognize the user, I also tried with the root user


    Errore #0:
    OMV\HttpErrorException: Incorrect username or password. in /var/www/openmediavault/rpc/session.inc:151
    Stack trace:
    #0 [internal function]: OMVRpcServiceSession->login(Array, Array)
    #1 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
    #3 /usr/share/php/openmediavault/rpc/proxy/json.inc(97): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
    #4 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
    #5 {main}

Jetzt mitmachen!

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