dCache / dcache

dCache - a system for storing and retrieving huge amounts of data, distributed among a large number of heterogenous server nodes, under a single virtual filesystem tree with a variety of standard access methods
https://dcache.org
291 stars 136 forks source link

upgrading to debian 3.2.x packages fails #3624

Closed calestyo closed 7 years ago

calestyo commented 7 years ago

Hi.

When upgrading to a 3.2.x package, the maintainer scripts fail:

Performing actions...
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
apt-listchanges: Do you want to continue? [Y/n] 
apt-listchanges: Mailing root: apt-listchanges: changelogs for lcg-lrz-test-dcache
(Reading database ... 135844 files and directories currently installed.)
Preparing to unpack .../dcache_3.2.2-1_all.deb ...
Unpacking dcache (3.2.2-1) over (3.0.25-1) ...
Setting up dcache (3.2.2-1) ...
Installing new version of config file /etc/dcache/logback.xml ...

Configuration file '/etc/logrotate.d/dcache'
 ==> 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.
*** dcache (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/logrotate.d/dcache ...
chmod: cannot access '/var/lib/dcache/cell-info': No such file or directory
dpkg: error processing package dcache (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for rsyslog (8.24.0-1) ...
Errors were encountered while processing:
 dcache
[ Rootkit Hunter version 1.4.2 ]
File updated: searched for 178 files, found 154
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up dcache (3.2.2-1) ...
chmod: cannot access '/var/lib/dcache/cell-info': No such file or directory
dpkg: error processing package dcache (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 dcache
Press Return to continue, 'q' followed by Return to quit.

Cheers, Chris.

calestyo commented 7 years ago

Seems /var/lib/dcache/cell-info is not part of the package, nor created in the maintainer scripts. (The former is the better solution)

paulmillar commented 7 years ago

Patch: https://rb.dcache.org/r/10616/

calestyo commented 7 years ago

Do you see any chance, that we get a true Debian source package (which creates the binary, instead of a direct creation of that)?

That way one could use much more things like lintian and debhelper.

paulmillar commented 7 years ago

Hmmm, not immediately, but I can look into it once we get this systemd stuff fixed.