Error during upgrade: chown: invalid group: ':openmediavault-config'

    • OMV 3.x
    • Upgrade 2.x -> 3.x

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

    • Error during upgrade: chown: invalid group: ':openmediavault-config'

      Hello,

      yesterday I tried to upgrade my OMV from version 2.x to 3.x.

      The upgrade stopped with the following message:

      chown: invalid group: ':openmediavault-config'
      ERROR: Failed to create the default configuration: Command '['/usr/share/openmediavault/confdb/create.d/conf.sh']' returned non-zero exit status 1
      dpkg: Fehler beim Bearbeiten des Paketes openmediavault (--configure):
      Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
      Fehler traten auf beim Bearbeiten von:
      openmediavault
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      I have no idea, if it helps, but here is the output of the command:

      # omv-engined -d -f

      Display Spoiler

      omv-engined -d -f
      Registered data models:
      conf.service
      conf.service.ftp
      conf.service.ftp.modban.rule
      conf.service.ftp.modtls
      conf.service.ftp.share
      conf.service.nfs
      conf.service.nfs.share
      conf.service.rsync.job
      conf.service.rsyncd
      conf.service.rsyncd.module
      conf.service.smartmontools
      conf.service.smartmontools.device
      conf.service.smartmontools.job
      conf.service.smb
      conf.service.smb.share
      conf.service.snmp
      conf.service.ssh
      conf.service.zeroconf.service
      conf.system.apt.distribution
      conf.system.certificate.ssh
      conf.system.certificate.ssl
      conf.system.cron.job
      conf.system.email
      conf.system.filesystem.mountpoint
      conf.system.filesystem.quota
      conf.system.hdparm
      conf.system.mdadm.device
      conf.system.monitoring.perfstats
      conf.system.network.dns
      conf.system.network.interface
      conf.system.network.iptables.rule
      conf.system.network.proxy
      conf.system.notification.email
      conf.system.notification.notification
      conf.system.powermngmnt
      conf.system.sharedfolder
      conf.system.sharedfolder.privilege
      conf.system.syslog.remote
      conf.system.time
      conf.system.usermngmnt.group
      conf.system.usermngmnt.homedir
      conf.system.usermngmnt.user
      conf.webadmin
      rpc.apt.getchangelog
      rpc.apt.setsettings
      rpc.apt.upgrade
      rpc.apt.upload
      rpc.certificatemgmt.create
      rpc.certificatemgmt.createssh
      rpc.certificatemgmt.set
      rpc.certificatemgmt.setssh
      rpc.common.devicefile
      rpc.common.getlist
      rpc.common.objectuuid
      rpc.config.applychanges
      rpc.config.revertchanges
      rpc.cron.getlist
      rpc.cron.set
      rpc.diskmgmt.sethdparm
      rpc.diskmgmt.wipe
      rpc.emailnotification.set
      rpc.exec.getoutput
      rpc.exec.isrunning
      rpc.exec.stop
      rpc.filesystemmgmt.create
      rpc.filesystemmgmt.delete
      rpc.filesystemmgmt.enumeratemountedfilesystems
      rpc.filesystemmgmt.hasfilesystem
      rpc.filesystemmgmt.mount
      rpc.filesystemmgmt.resize
      rpc.filesystemmgmt.umount
      rpc.folderbrowser.get
      rpc.fstab.getbydir
      rpc.fstab.getbyfsname
      rpc.fstab.set
      rpc.ftp.setmodbanrule
      rpc.ftp.setmodtlssettings
      rpc.ftp.setsettings
      rpc.ftp.setshare
      rpc.iptables.setrule
      rpc.iptables.setrules
      rpc.iptables.setrules6
      rpc.logfile.clear
      rpc.logfile.getcontent
      rpc.logfile.getlist
      rpc.network.enumeratebondslaves
      rpc.network.identify
      rpc.network.setbondiface
      rpc.network.setethernetiface
      rpc.network.setgeneralsettings
      rpc.network.setproxy
      rpc.network.setvlaniface
      rpc.network.setwirelessiface
      rpc.nfs.setsettings
      rpc.nfs.setshare
      rpc.notification.isenabled
      rpc.notification.set
      rpc.perfstats.set
      rpc.plugin.install
      rpc.plugin.remove
      rpc.plugin.upload
      rpc.powermgmt.set
      rpc.powermgmt.setscheduledjob
      rpc.quota.set
      rpc.raidmgmt.add
      rpc.raidmgmt.create
      rpc.raidmgmt.delete
      rpc.raidmgmt.getdetail
      rpc.raidmgmt.getslaves
      rpc.raidmgmt.grow
      rpc.raidmgmt.remove
      rpc.rsync.set
      rpc.rsyncd.setmodule
      rpc.rsyncd.setsettings
      rpc.session.login
      rpc.sharemgmt.delete
      rpc.sharemgmt.getfileacl
      rpc.sharemgmt.getprivilegesbyrole
      rpc.sharemgmt.set
      rpc.sharemgmt.setfileacl
      rpc.sharemgmt.setprivileges
      rpc.sharemgmt.setprivilegesbyrole
      rpc.smart.setdevicesettings
      rpc.smart.setscheduledtest
      rpc.smart.setsettings
      rpc.smb.setsettings
      rpc.smb.setshare
      rpc.snmp.set
      rpc.ssh.set
      rpc.syslog.setsettings
      rpc.system.reboot
      rpc.system.setdate
      rpc.system.settimesettings
      rpc.system.shutdown
      rpc.system.standby
      rpc.usermngmt.authuser
      rpc.usermngmt.deletegroup
      rpc.usermngmt.deleteuser
      rpc.usermngmt.getgroup
      rpc.usermngmt.getuser
      rpc.usermngmt.importgroup
      rpc.usermngmt.importuser
      rpc.usermngmt.setgroup
      rpc.usermngmt.setsettings
      rpc.usermngmt.setuser
      rpc.usermngmt.setuserbycontext
      rpc.webgui.setpassword
      rpc.webgui.setsettings
      rpc.zeroconf.set
      Registered filesystem backends:
      btrfs
      exfat
      ext
      ext2
      ext3
      ext4
      fuseblk
      hfsplus
      iso9660
      jfs
      msdos
      none
      ntfs
      reiserfs
      udf
      ufs
      umsdos
      vfat
      xfs
      Registered RPC services:
      apt
      certificatemgmt
      config
      cron
      diskmgmt
      emailnotification
      exec
      filesystemmgmt
      folderbrowser
      fstab
      ftp
      iptables
      logfile
      network
      nfs
      notification
      perfstats
      plugin
      powermgmt
      quota
      raidmgmt
      rrd
      rsync
      rsyncd
      services
      sharemgmt
      smart
      smb
      snmp
      ssh
      syslog
      system
      usermgmt
      webgui
      zeroconf
      Registered modules:
      acpid
      apt
      certificatemgmt
      collectd
      cpufrequtils
      cron
      cronapt
      email
      fstab
      ftp
      halt
      hdparm
      hostname
      hosts
      interfaces
      iptables
      mdadm
      monit
      networking
      nfs
      ntp
      pam
      php5fpm
      profile
      quota
      rrdcached
      rsync
      rsyncd
      samba
      smartmontools
      snmp
      ssh
      sysctl
      syslog
      timezone
      webadmin
      webserver
      zeroconf
      omv-engined[4396]: Failed to set file group to 'openmediavault-engined' for '/var/lib/openmediavault/engined.sock'
      Failed to set file group to 'openmediavault-engined' for '/var/lib/openmediavault/engined.sock'



      And here is the result of
      # dpkg -l | grep openm

      iF openmediavault 3.0.95 all Open network attached storage solution
      ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive


      Thank you for your help.
      Christian
    • Hello,

      I'm seeing the same issue on my system.

      On my 2.x installation, there is a user 'openmediavault' with an associated group 'openmediavault'.
      On a fresh 3.x installation that I just threw into a VM, I'm instead seeing a user 'openmediavault-webgui' that is in groups 'openmediavault-webgui', 'openmediavault-config' and 'openmediavault-engined'. None of these exist in my 2.x install.

      Apparently, the new packages assume that these users and groups exist as they do in a fresh install, but the release upgrade process either neglects to set them up or that part of the upgrade process failed for some reason.

      Currently, I'm thinking that I'll try and see what happens if I just rename my existing user and group to openmediavault-webgui, create the other two groups, and put the user in it, to see what that breaks.
    • Changing the user and groups so that they're like in the 3.x install seems to have solved that particular issue. (The group name was also referenced in a config file.)

      The upgrade still failed with a different error message, and the service won't start, apparently because a cleanup-script is trying to rm a directory. I don't know if I missed the username in some config file or if these are unrelated issues, but either way I'm shelving this until I have time to do a clean reinstall.
    • But then all settings of OMV including nginx, mysql etc is gone, correct?
      Or is there a way to keep these settings?
      Does OMV read the settings from the conf-files of of the single services like mysql, smb...?

      In some other topics it is recommended to just uninstall plugins. Might that help?

      Update: I managed to solve the error.

      1. I did removed (with purge) openmediavault (forgot to uninstall plugins first). But the Debian system was still the same.
      1.1 added the new group (without adding users to it). Otherwise installing omv gives errors.
      2. updated the apt-repositories
      3. installed OMV via apt (by the way: all my settings like samba, nginx, mysql,..... were still there
      4. But I had error messages on opening some plugins. So I removed all of them and installed them again: now nearly everything was working.
      5. Had an issue on the Notifications-section. This post solved it

      Now the hole system is up again (had some trouble with nginx and SQL first). I will try to stay on the latest version in future.

      The post was edited 4 times, last by quark007 ().

    • @macom, you say do a "fresh install." I have a rich background of usage already on this system. what are the ramifications of starting over. that's really inconvient. i have existing LDAP, plugin settings, and so forth, not to mention multiple TB of data. what happens to all of that?

      i ran "groupadd openmediavault-config" and that seemed to get to the next level. are there any bad ramifications from that?
    • I have done a fresh install of openmediavault 2.2.14 in a virtual machine then when I upgrade with omv-release-upgrade it makes the same problem

      Setting up openmediavault (3.0.96) ...
      Updating configuration database ...
      chown: invalid group: ':openmediavault-config'
      ERROR: Failed to create the default configuration: Command '['/usr/share/openmediavault/confdb/create.d/conf.sh']' returned non-zero exit status 1
      dpkg: error processing package openmediavault (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      openmediavault
      E: Sub-process /usr/bin/dpkg returned an error code (1)
    • lupo75 wrote:

      I have done a fresh install of openmediavault 2.2.14 in a virtual machine then when I upgrade with omv-release-upgrade it makes the same problem

      Setting up openmediavault (3.0.96) ...
      Updating configuration database ...
      chown: invalid group: ':openmediavault-config'
      ERROR: Failed to create the default configuration: Command '['/usr/share/openmediavault/confdb/create.d/conf.sh']' returned non-zero exit status 1
      dpkg: error processing package openmediavault (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      openmediavault
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      Try to add that group with the following command:

      Source Code

      1. groupadd openmediavault-config
      Then reinstall oder reconfigure openmediavault
    • I have done the command :

      Source Code

      1. groupadd openmediavault-config
      and then

      Source Code

      1. apt-get install -f
      the optput is:
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      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 (3.0.96) ...
      Updating configuration database ...
      Running migration conf_3.0.9
      Running migration conf_3.0.11
      Running migration conf_3.0.12
      Running migration conf_3.0.15
      Running migration conf_3.0.23
      Running migration conf_3.0.37
      Running migration conf_3.0.38
      Running migration conf_3.0.68
      Updating configuration ...
      Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
      Job for php5-fpm.service failed. See 'systemctl status php5-fpm.service' and 'journalctl -xn' for details.
      Clearing symlinks in /etc/ssl/certs...done.
      Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
      Running hooks in /etc/ca-certificates/update.d....done.
      Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
      Job for php5-fpm.service failed. See 'systemctl status php5-fpm.service' and 'journalctl -xn' for details.
      Processing triggers for openmediavault (3.0.96) ...
      Restarting engine daemon ...
      Updating locale files ...
      Updating file permissions ...
      Purging internal cache ...
      Processing triggers for initramfs-tools (0.120+deb8u3) ...
      update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
      after a restart the web GUI it appears but when i try to login i got the error

      Failed to connect to socket: No such file or directory
      Error #0:exception 'OMV\Rpc\Exception' with message 'Failed to connect to socket: No such file or directory' in /usr/share/php/openmediavault/rpc/rpc.inc:140Stack trace:#0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)#1 [internal function]: OMVRpcServiceSession->login(Array, Array)#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)#4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)#5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()#6 {main}
    • Hi guys,


      I have the same problem. I run journalctl -xn for more details. Here is the output:

      -- Logs begin at Wed 2018-04-04 12:51:59 CEST, end at Wed 2018-04-04 12:58:26 CEST. --
      Apr 04 12:57:54 openmediavault systemd[1]: openmediavault-engined.service: main process exited, code=exited, status=255/n/a
      Apr 04 12:57:54 openmediavault systemd[1]: Unit openmediavault-engined.service entered failed state.
      Apr 04 12:58:25 openmediavault monit[1051]: 'omv-engined' process is not running
      Apr 04 12:58:25 openmediavault monit[1051]: 'omv-engined' trying to restart
      Apr 04 12:58:25 openmediavault monit[1051]: 'omv-engined' start: /bin/systemctl
      Apr 04 12:58:25 openmediavault systemd[1]: Starting The OpenMediaVault engine daemon that processes the RPC request...
      -- Subject: Unit openmediavault-engined.service has begun with start-up
      -- Defined-By: systemd
      -- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit openmediavault-engined.service has begun starg up.
      Apr 04 12:58:25 openmediavault systemd[1]: openmediavault-engined.service: Supervising process 1764 which is not our child. We'll most likely not notice when it exits.
      Apr 04 12:58:25 openmediavault systemd[1]: Started The OpenMediaVault engine daemon that processes the RPC request.
      -- Subject: Unit openmediavault-engined.service has finished start-up
      -- Defined-By: systemd
      -- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit openmediavault-engined.service has finished starting up.
      --
      -- The start-up result is done.
      Apr 04 12:58:26 openmediavault systemd[1]: openmediavault-engined.service: main process exited, code=exited, status=255/n/a
      Apr 04 12:58:26 openmediavault systemd[1]: Unit openmediavault-engined.service entered failed state.


      Some more info:

      root@openmediavault:~# cat /etc/passwd | grep openme
      openmediavault:x:999:999::/home/openmediavault:/bin/sh
      openmediavault-webgui:x:997:997:openmediavault WebGUI Management:/home/openmediavault-webgui:/usr/sbin/nologin




      Source Code

      1. root@openmediavault:~# cat /etc/group | grep openme
      2. openmediavault-config:x:1002:openmediavault-webgui
      3. openmediavault-engined:x:998:openmediavault-webgui
      4. openmediavault-webgui:x:997:

      Source Code

      1. ii openmediavault 3.0.99 all Open network attached storage solution
      2. ii openmediavault-clamav 2.1 all OpenMediaVault ClamAV plugin
      3. ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      4. ii openmediavault-lvm2 3.2.5 all OpenMediaVault Logical Volume Manager (LVM2) plugin
      5. ii openmediavault-owncloud 2.0.3 all OpenMediaVault ownCloud plugin
      6. ii openmediavault-usbbackup 3.2.20 all OpenMediaVault USB/eSATA backup plugin
      7. ii php-json-schema 0.2.0 all PHP implementation of JSON schema
      8. ii php-pear 5.6.33+dfsg-0+deb8u1 all PEAR - PHP Extension and Application Repository
      9. ii php-xml-parser 1.3.4-7 all XML parsing class based on PHP's bundled expat
      10. ii php5 5.6.33+dfsg-0+deb8u1 all server-side, HTML-embedded scripting language (metapackage)
      11. ii php5-cgi 5.6.33+dfsg-0+deb8u1 i386 server-side, HTML-embedded scripting language (CGI binary)
      12. ii php5-cli 5.6.33+dfsg-0+deb8u1 i386 command-line interpreter for the php5 scripting language
      13. ii php5-common 5.6.33+dfsg-0+deb8u1 i386 Common files for packages built from the php5 source
      14. ii php5-curl 5.6.33+dfsg-0+deb8u1 i386 CURL module for php5
      15. ii php5-fpm 5.6.33+dfsg-0+deb8u1 i386 server-side, HTML-embedded scripting language (FPM-CGI binary)
      16. ii php5-gd 5.6.33+dfsg-0+deb8u1 i386 GD module for php5
      17. ii php5-intl 5.6.33+dfsg-0+deb8u1 i386 internationalisation module for php5
      18. ii php5-json 1.3.6-1 i386 JSON module for php5
      19. ii php5-mcrypt 5.6.33+dfsg-0+deb8u1 i386 MCrypt module for php5
      20. ii php5-mysqlnd 5.6.33+dfsg-0+deb8u1 i386 MySQL module for php5 (Native Driver)
      21. ii php5-pam 1.0.3-4 i386 pam module for PHP 5
      22. ii php5-pgsql 5.6.33+dfsg-0+deb8u1 i386 PostgreSQL module for php5
      23. rc php5-proctitle 0.1.2-2 i386 proctitle module for PHP 5
      24. ii php5-sqlite 5.6.33+dfsg-0+deb8u1 i386 SQLite module for php5
      Display All



      Any suggestions?

      Best regeards from sunny Berlin...

      The post was edited 8 times, last by razorworks ().