upgrade stuck on postinstall

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

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

    • upgrade stuck on postinstall

      Upgraded today from squeeze/fedaykin to jessie/erasmus. Obviously that's about as hard an upgrade as can be. However all seemed to be OK up to the postinstall for 3.0. I've been going at this all day and have hit the limit of my google fu, so hoping someone can help.

      Crux of issue in postinstall (including after reboot, triggered with apt-get install -f)

      Source Code

      1. root@OMVBOX:~# apt-get install -f
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      6. 1 not fully installed or removed.
      7. After this operation, 0 B of additional disk space will be used.
      8. Setting up openmediavault (3.0.54) ...
      9. Updating configuration ...
      10. WARNING: The node 'zeroconf' already exists at XPath '/config/services'.
      11. WARNING: The node 'services' already exists at XPath '/config/services/zeroconf'.
      12. WARNING: The node 'notification' already exists at XPath '/config/system'.
      13. WARNING: The node 'notifications' already exists at XPath '/config/system/notification'.
      14. WARNING: The node 'monitprocevents' already exists at XPath '/config/system/notification/notifications'.
      15. WARNING: The node 'monitloadavg' already exists at XPath '/config/system/notification/notifications'.
      16. WARNING: The node 'monitmemoryusage' already exists at XPath '/config/system/notification/notifications'.
      17. WARNING: The node 'monitcpuusage' already exists at XPath '/config/system/notification/notifications'.
      18. WARNING: The node 'monitfilesystems' already exists at XPath '/config/system/notification/notifications'.
      19. WARNING: The node 'mdadm' already exists at XPath '/config/system/notification/notifications'.
      20. WARNING: The node 'smartmontools' already exists at XPath '/config/system/notification/notifications'.
      21. WARNING: The node 'usechroot' already exists at XPath '/config/services/rsync/server/modules/module'.
      22. WARNING: The node 'comment' already exists at XPath '/config/system/network/interfaces/iface'.
      23. WARNING: The node 'aio' already exists at XPath '/config/services/smb'.
      24. Clearing symlinks in /etc/ssl/certs...done.
      25. Updating certificates in /etc/ssl/certs... WARNING: Skipping duplicate certificate e7dc71b8-d10f-4281-90e3-9265b8bf9ef9.crt
      26. WARNING: Skipping duplicate certificate e7dc71b8-d10f-4281-90e3-9265b8bf9ef9.crt
      27. WARNING: Skipping duplicate certificate cf83ba77-d124-42dc-b37a-459fb003a666.crt
      28. WARNING: Skipping duplicate certificate cf83ba77-d124-42dc-b37a-459fb003a666.crt
      29. WARNING: Skipping duplicate certificate b629f636-dfa4-4c42-91ae-da9c717953f2.crt
      30. WARNING: Skipping duplicate certificate b629f636-dfa4-4c42-91ae-da9c717953f2.crt
      31. 174 added, 0 removed; done.
      32. Running hooks in /etc/ca-certificates/update.d....done.
      33. insserv: warning: script 'K02jira' missing LSB tags and overrides
      34. insserv: warning: script 'jira' missing LSB tags and overrides
      35. ERROR: The script '/usr/share/openmediavault/mkconf/apache2' does not exist
      36. dpkg: error processing package openmediavault (--configure):
      37. subprocess installed post-installation script returned error exit status 100
      38. Creating index of upgradeable packages ...
      39. Creating index of openmediavault plugins ...
      40. E: Sub-process /usr/bin/dpkg returned an error code (1)
      41. root@OMVBOX:~#
      Display All
      Output of dpkg -l | grep openm :



      Source Code

      1. root@OMVBOX:~# dpkg -l | grep openm
      2. iF openmediavault 3.0.54 all Open network attached storage solution
      3. ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      4. root@OMVBOX:~#

      calling apt-get --reinstall install openmediavault triggers the postinstall script again and blocks the reinstall.

      Any ideas? I upgraded my other machine today OK but this one's got me stumped. TIA
    • Ok I was able to get by the stuck install to reinstall by removing /var/lib/dpkg/info/openmediavault.postinst. This allowed me to:

      apt-get install -f

      apt-get install --reinstall openmediavault

      omv-initsystem:

      Source Code

      1. root@OMVBOX:/var/lib/dpkg/info# omv-initsystem
      2. depmod: WARNING: could not open /var/tmp/mkinitramfs_a3iOI3/lib/modules/2.6.32-5-amd64/modules.builtin: No such file or directory
      3. insserv: warning: script 'K02jira' missing LSB tags and overrides
      4. insserv: warning: script 'jira' missing LSB tags and overrides
      5. /usr/sbin/omv-mkgraph: 29: [: -eq: argument expected
      6. root@OMVBOX:/var/lib/dpkg/info#

      systemctl stop openmediavault-engined && omv-engined -df :


      Source Code

      1. root@OMVBOX:/var/lib/openmediavault# systemctl stop openmediavault-engined && omv-engined -df
      2. omv-engined[29292]: Daemon process started (pid=29293)
      3. root@OMVBOX:/var/lib/openmediavault# Registered data models:
      4. conf.service
      5. conf.service.ftp
      6. conf.service.ftp.modban.rule
      7. conf.service.ftp.modtls
      8. conf.service.ftp.share
      9. conf.service.nfs
      10. conf.service.nfs.share
      11. conf.service.rsync.job
      12. conf.service.rsyncd
      13. conf.service.rsyncd.module
      14. conf.service.smartmontools
      15. conf.service.smartmontools.device
      16. conf.service.smartmontools.job
      17. conf.service.smb
      18. conf.service.smb.share
      19. conf.service.snmp
      20. conf.service.ssh
      21. conf.service.tftp
      22. conf.service.zeroconf.service
      23. conf.system.apt.distribution
      24. conf.system.certificate.ssh
      25. conf.system.certificate.ssl
      26. conf.system.cron.job
      27. conf.system.email
      28. conf.system.filesystem.mountpoint
      29. conf.system.filesystem.quota
      30. conf.system.hdparm
      31. conf.system.mdadm.device
      32. conf.system.monitoring.perfstats
      33. conf.system.network.dns
      34. conf.system.network.interface
      35. conf.system.network.iptables.rule
      36. conf.system.network.proxy
      37. conf.system.notification.email
      38. conf.system.notification.notification
      39. conf.system.powermngmnt
      40. conf.system.sharedfolder
      41. conf.system.sharedfolder.privilege
      42. conf.system.syslog.remote
      43. conf.system.time
      44. conf.system.usermngmnt.group
      45. conf.system.usermngmnt.homedir
      46. conf.system.usermngmnt.user
      47. conf.webadmin
      48. rpc.apt.getchangelog
      49. rpc.apt.setsettings
      50. rpc.apt.upgrade
      51. rpc.apt.upload
      52. rpc.certificatemgmt.create
      53. rpc.certificatemgmt.createssh
      54. rpc.certificatemgmt.set
      55. rpc.certificatemgmt.setssh
      56. rpc.common.devicefile
      57. rpc.common.getlist
      58. rpc.common.objectuuid
      59. rpc.config.applychanges
      60. rpc.config.revertchanges
      61. rpc.cron.getlist
      62. rpc.cron.set
      63. rpc.diskmgmt.sethdparm
      64. rpc.diskmgmt.wipe
      65. rpc.emailnotification.set
      66. rpc.exec.getoutput
      67. rpc.exec.isrunning
      68. rpc.exec.stop
      69. rpc.filesystemmgmt.create
      70. rpc.filesystemmgmt.delete
      71. rpc.filesystemmgmt.enumeratemountedfilesystems
      72. rpc.filesystemmgmt.hasfilesystem
      73. rpc.filesystemmgmt.mount
      74. rpc.filesystemmgmt.resize
      75. rpc.filesystemmgmt.umount
      76. rpc.folderbrowser.get
      77. rpc.fstab.getbydir
      78. rpc.fstab.getbyfsname
      79. rpc.fstab.set
      80. rpc.ftp.setmodbanrule
      81. rpc.ftp.setmodtlssettings
      82. rpc.ftp.setsettings
      83. rpc.ftp.setshare
      84. rpc.iptables.setrule
      85. rpc.iptables.setrules
      86. rpc.iptables.setrules6
      87. rpc.logfile.clear
      88. rpc.logfile.getcontent
      89. rpc.logfile.getlist
      90. rpc.network.enumeratebondslaves
      91. rpc.network.identify
      92. rpc.network.setbondiface
      93. rpc.network.setethernetiface
      94. rpc.network.setgeneralsettings
      95. rpc.network.setproxy
      96. rpc.network.setvlaniface
      97. rpc.network.setwirelessiface
      98. rpc.nfs.setsettings
      99. rpc.nfs.setshare
      100. rpc.notification.isenabled
      101. rpc.notification.set
      102. rpc.perfstats.set
      103. rpc.plugin.install
      104. rpc.plugin.remove
      105. rpc.plugin.upload
      106. rpc.powermgmt.set
      107. rpc.powermgmt.setscheduledjob
      108. rpc.quota.set
      109. rpc.raidmgmt.add
      110. rpc.raidmgmt.create
      111. rpc.raidmgmt.delete
      112. rpc.raidmgmt.getdetail
      113. rpc.raidmgmt.getslaves
      114. rpc.raidmgmt.grow
      115. rpc.raidmgmt.remove
      116. rpc.rsync.set
      117. rpc.rsyncd.setmodule
      118. rpc.rsyncd.setsettings
      119. rpc.session.login
      120. rpc.sharemgmt.delete
      121. rpc.sharemgmt.getfileacl
      122. rpc.sharemgmt.getprivilegesbyrole
      123. rpc.sharemgmt.set
      124. rpc.sharemgmt.setfileacl
      125. rpc.sharemgmt.setprivileges
      126. rpc.sharemgmt.setprivilegesbyrole
      127. rpc.smart.setdevicesettings
      128. rpc.smart.setscheduledtest
      129. rpc.smart.setsettings
      130. rpc.smb.setsettings
      131. rpc.smb.setshare
      132. rpc.snmp.set
      133. rpc.ssh.set
      134. rpc.syslog.setsettings
      135. rpc.system.reboot
      136. rpc.system.setdate
      137. rpc.system.settimesettings
      138. rpc.system.shutdown
      139. rpc.system.standby
      140. rpc.tftp.set
      141. rpc.usermngmt.authuser
      142. rpc.usermngmt.deletegroup
      143. rpc.usermngmt.deleteuser
      144. rpc.usermngmt.getgroup
      145. rpc.usermngmt.getuser
      146. rpc.usermngmt.importgroup
      147. rpc.usermngmt.importuser
      148. rpc.usermngmt.setgroup
      149. rpc.usermngmt.setsettings
      150. rpc.usermngmt.setuser
      151. rpc.usermngmt.setuserbycontext
      152. rpc.webgui.setpassword
      153. rpc.webgui.setsettings
      154. rpc.zeroconf.set
      155. Registered filesystem backends:
      156. btrfs
      157. exfat
      158. ext
      159. ext2
      160. ext3
      161. ext4
      162. fuseblk
      163. hfsplus
      164. iso9660
      165. jfs
      166. msdos
      167. none
      168. ntfs
      169. reiserfs
      170. udf
      171. ufs
      172. umsdos
      173. vfat
      174. xfs
      175. Registered RPC services:
      176. apt
      177. certificatemgmt
      178. config
      179. cron
      180. diskmgmt
      181. emailnotification
      182. exec
      183. filesystemmgmt
      184. folderbrowser
      185. fstab
      186. ftp
      187. iptables
      188. logfile
      189. network
      190. nfs
      191. notification
      192. perfstats
      193. plugin
      194. powermgmt
      195. quota
      196. raidmgmt
      197. rrd
      198. rsync
      199. rsyncd
      200. services
      201. sharemgmt
      202. smart
      203. smb
      204. snmp
      205. ssh
      206. syslog
      207. system
      208. tftp
      209. usermgmt
      210. webgui
      211. zeroconf
      212. Registered modules:
      213. acpid
      214. apt
      215. certificatemgmt
      216. collectd
      217. cpufrequtils
      218. cron
      219. cronapt
      220. email
      221. fstab
      222. ftp
      223. halt
      224. hdparm
      225. hostname
      226. hosts
      227. interfaces
      228. iptables
      229. mdadm
      230. monit
      231. networking
      232. nfs
      233. ntp
      234. pam
      235. php5fpm
      236. profile
      237. quota
      238. rrdcached
      239. rsync
      240. rsyncd
      241. samba
      242. smartmontools
      243. snmp
      244. ssh
      245. sysctl
      246. syslog
      247. tftp
      248. timezone
      249. webadmin
      250. webserver
      251. zeroconf
      252. omv-engined[29293]: Failed to set file group to 'openmediavault-engined' for '/var/lib/openmediavault/engined.sock'
      253. Failed to set file group to 'openmediavault-engined' for '/var/lib/openmediavault/engined.sock'
      Display All

      ??
    • Wolf2000 wrote:

      Hi

      service apache2 stop
      update-rc.d -f apache2 remove
      service nginx start

      Hi Wolf, I tried that and seem to have gotten further with the reinstall, but now issues with users?

      Source Code

      1. root@OMVBOX:/usr/share/openmediavault# 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/866 kB of archives.
      7. After this operation, 0 B of additional disk space will be used.
      8. Preconfiguring packages ...
      9. (Reading database ... 61480 files and directories currently installed.)
      10. Preparing to unpack .../openmediavault_3.0.54_all.deb ...
      11. Unpacking openmediavault (3.0.54) over (3.0.54) ...
      12. Setting up openmediavault (3.0.54) ...
      13. Updating configuration ...
      14. Processing triggers for openmediavault (3.0.54) ...
      15. Restarting engine daemon ...
      16. Updating locale files ...
      17. Updating file permissions ...
      18. chown: invalid user: âopenmediavault-webgui:openmediavault-webguiâ
      19. dpkg: error processing package openmediavault (--configure):
      20. subprocess installed post-installation script returned error exit status 1
      21. Creating index of upgradeable packages ...
      22. Creating index of openmediavault plugins ...
      23. E: Sub-process /usr/bin/dpkg returned an error code (1)
      24. root@OMVBOX:/usr/share/openmediavault#
      Display All
    • Did you skip directly from 0.5 to 3.x? If so, that is a bad idea.

      It is complaining that users and groups don't exist. Do the following:

      Shell-Script

      1. if ! omv_group_id_exists openmediavault-config; then
      2. groupadd --system openmediavault-config
      3. fi
      4. if ! omv_group_id_exists openmediavault-engined; then
      5. groupadd --system openmediavault-engined
      6. fi
      7. useradd --system --user-group --no-create-home \
      8. --groups openmediavault-config,openmediavault-engined \
      9. --shell '/usr/sbin/nologin' \
      10. --comment 'openmediavault WebGUI Management' \
      11. openmediavault-webgui
      Display All
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      Did you skip directly from 0.5 to 3.x? If so, that is a bad idea

      I did at least one intermediate step (to 1.0 I think) but tbh I was doing 2 servers at once and it's been a long day so I'm not sure exactly how it went down.

      That definitely helped, thanks. I can now reinstall and it completes without errors. However, when I run omv-initsystem, I get the following:

      Source Code

      1. root@OMVBOX:~# omv-initsystem
      2. depmod: WARNING: could not open /var/tmp/mkinitramfs_zestR6/lib/modules/2.6.32-5-amd64/modules.builtin: No such file or directory
      3. insserv: warning: script 'K02jira' missing LSB tags and overrides
      4. insserv: warning: script 'jira' missing LSB tags and overrides
      5. /usr/sbin/omv-mkgraph: 29: [: -eq: argument expected

      This line relates to rrdtool:


      Source Code

      1. # Exit here if the rrdtool service is disabled.
      2. [ 0 -eq ] && exit 0

      which is installed, though I don't know enough about it to debug it?
    • ruprecht wrote:

      depmod: WARNING: could not open /var/tmp/mkinitramfs_zestR6/lib/modules/2.6.32-5-amd64/modules.builtin: No such file or directory
      rm -rfv /lib/modules/2.6.32-5-amd64
      update-initramfs -u

      ruprecht wrote:

      insserv: warning: script 'K02jira' missing LSB tags and overrides
      insserv: warning: script 'jira' missing LSB tags and overrides
      jira is causing this problem whatever it is. You will have to remove it if you want this warning to go away. It is just a warning though.

      ruprecht wrote:

      /usr/sbin/omv-mkgraph: 29: [: -eq: argument expected
      Try:
      omv-mkconf collectd
      omv-mkconf rrdcached

      then:
      omv-firstaid to fix the rrd files.
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • All good on the Jira stuff, thanks.

      All went ok until the firstaid:

      Source Code

      1. Checking all RRD files. Please wait ...
      2. All RRD database files are valid.
      3. Action failed -- Other action already in progress -- please try again later
      4. root@OMVBOX:~#

      omv-initsystem looks worse:


      Source Code

      1. root@OMVBOX:~# omv-initsystem
      2. depmod: ERROR: could not open directory /lib/modules/2.6.32-5-amd64: No such file or directory
      3. depmod: FATAL: could not search modules: No such file or directory
      4. depmod: WARNING: could not open /var/tmp/mkinitramfs_vjMqdg/lib/modules/2.6.32-5-amd64/modules.order: No such file or directory
      5. depmod: WARNING: could not open /var/tmp/mkinitramfs_vjMqdg/lib/modules/2.6.32-5-amd64/modules.builtin: No such file or directory
      6. insserv: warning: script 'K02jira' missing LSB tags and overrides
      7. insserv: warning: script 'jira' missing LSB tags and overrides
      8. root@OMVBOX:~#

      I'm rebooting just in case that affects initramfs, thanks heaps for the help so far

      *edit* reboot didn't help :(

      The post was edited 1 time, last by ruprecht ().

    • ryecoaaron wrote:

      After the reboot, post the output of: dpkg -l | grep -E "openm|linux-image"

      Probably have to remove the old kernels.
      here:

      Source Code

      1. ii linux-image-2.6-amd64 3.2+46 amd64 Linux for 64-bit PCs (dummy package)
      2. ii linux-image-2.6.32-5-amd64 2.6.32-48squeeze19 amd64 Linux 2.6.32 for 64-bit PCs
      3. ii linux-image-3.16.0-4-amd64 3.16.36-1+deb8u2 amd64 Linux 3.16 for 64-bit PCs
      4. ii linux-image-3.2.0-4-amd64 3.2.82-1 amd64 Linux 3.2 for 64-bit PCs
      5. ii linux-image-amd64 3.16+63 amd64 Linux for 64-bit PCs (meta-package)
      6. ii openmediavault 3.0.54 all Open network attached storage solution
      7. ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive

      so with uname -a:

      Source Code

      1. root@OMVBOX:~# uname -a
      2. Linux OMVBOX 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux
      so sudo apt-get --purge autoremove ?
    • apt-get purge linux-image-2.6-amd64 linux-image-2.6.32-5-amd64 linux-image-3.2.0-4-amd64
      apt-get autoremove
      apt-get clean
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • OK I can get all the way through to a clean omv-initsystem now. Nginx and omv-engined running.

      Browser responds with:

      Error #0:
      exception 'OMV\Exception' with message 'Failed to open file (filename=/var/cache/openmediavault/cache.omv\controlpanel\login_js.json, mode=w+).' in /usr/share/php/openmediavault/json/file.inc:71
      Stack trace:
      #0 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(181): OMV\Json\File->open('w+')
      #1 /var/www/openmediavault/index.php(46): OMV\ControlPanel\ControlPanelAbstract->render()
      #2 {main}

      It's well broken eh :( Looks like permissions maybe?

      trying reinstall per Error #6000 cannot access GUI

      *edit* no joy :( same error even after reboot

      The post was edited 1 time, last by ruprecht ().

    • These files are generated so you can remove them.
      rm -f /var/cache/openmediavault/*.json
      Then clear your browser cache or use incognito window and try again.
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ruprecht wrote:

      send me a PM with your Reddit address, you just earned 3 months of gold.
      For me being such a tech nerd, you would think I knew that meant :D I mean I know what reddit is. Just glad the system is working :)
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

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