Uninett / nav-debian

Debian Package for NAV, based on a fork of the original repo
https://github.com/UNINETT/nav
GNU General Public License v3.0
4 stars 3 forks source link

[BUG] Install failure if log files do not exist already #10

Closed PhillipOConnor closed 3 years ago

PhillipOConnor commented 3 years ago

The bug Installation of nav (5.1.1-2) on a fresh Debian 10 that has not had nav before and hence has no log files yet fails with: chown: cannot access '/var/log/nav/*.log': No such file or directory chown: cannot access '/var/log/nav/*.log.*gz': No such file or directory dpkg: error processing package nav (--configure): installed nav package post-installation script subprocess returned error exit status 1

The package status in aptitude is "c" indicating a broken installation.

To Reproduce Steps to reproduce the behaviour:

  1. Installation system has not had nav installed before
  2. Run aptitude
  3. Find nav in the package list
  4. Select nav to install (keystrokes: +gg)
  5. See errors in install log
  6. Package status in aptitude "c"

Expected behaviour Installation without errors and a package status of "i"

Environment

Additional context postgreSQL already installed

Hint Creating dummy logs allows the install to work: touch /var/log/nav/dummy.log touch /var/log/nav/dummy.log.gz

lunkwill42 commented 3 years ago

Confirmed. Our CI server has the same problem, however, for some reason, it seems it ran no debian-install jobs between December 7 and January 4. 5.1.1-2 was released before Christmas, so the error must have been present since then.

lunkwill42 commented 3 years ago

Closed in f22a3e1

5.1.1-3 has been uploaded to apt.uninett.no