Bug#923795: /etc/cron.daily/tomcat7: compresses “live” logfiles

Thorsten Glaser tg at mirbsd.de
Tue Mar 5 14:20:36 GMT 2019


Package: tomcat7
Version: 7.0.56-3+really7.0.91-1
Severity: important

/etc/cron.daily/tomcat7 compresses logfiles that are still
“live” and just happen to not have been written to for a
day. The next write to the still-opened logfile will go to
nirvana, and furthermore, the second run fails usually as
a tomcat restart will recreate the uncompressed logfile,
and compressing that fails with the cause that the file
with the .gz extension already exists.

-- System Information:
Debian Release: 8.11
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-7-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tomcat7 depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.56+deb8u1
ii  tomcat7-common         7.0.56-3+really7.0.91-1
ii  ucf                    3.0030

Versions of packages tomcat7 recommends:
pn  authbind  <none>

Versions of packages tomcat7 suggests:
ii  libtcnative-1     1.1.32~repack-2+deb8u2
pn  tomcat7-admin     <none>
pn  tomcat7-docs      <none>
pn  tomcat7-examples  <none>
pn  tomcat7-user      <none>

-- Configuration Files:
/etc/tomcat7/context.xml changed [not included]
/etc/tomcat7/server.xml changed [not included]

-- debconf information:
  tomcat7/javaopts: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Xms1g -Xmx1g -Dfile.encoding=UTF-8 -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true -Djava.security.egd=file:/dev/./urandom
  tomcat7/groupname: tomcat7
  tomcat7/username: tomcat7



More information about the pkg-java-maintainers mailing list