Your message dated Fri, 22 Jul 2016 16:23:10 +0000
with message-id <e1bqdee-0007d8...@franck.debian.org>
and subject line Bug#831982: fixed in influxdb 0.13.0+dfsg1-3
has caused the Debian Bug report #831982,
regarding influxdb: Get rid of warning message during installation
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
831982: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831982
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: influxdb
Version: 0.13.0+dfsg1-2
Severity: minor
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi Alexandre,

During influxdb installation, the following warning is displayed:

[…]
Warning: The home dir /var/lib/influxdb you specified can't be accessed: 
No such file or directory
[…]

The root cause is pretty obvious, adduser tries to set influxdb user
home before it ever exist. There are many ways to fix that issue, for 
example we could create the necessary directory before calling adduser 
in the post-installation script, removing the “--no-create-home” from 
adduser call, etc. In the attached patches, you’ll see that I chose 
another solution that involves using debhelper’s facilities.

Additionaly, you’ll find patches (0003* and 0004*) handling 
/var/log/influxdb creation using the same method.

Thanks for maintaining influxdb!

Cheers,
Vincent


- -- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages influxdb depends on:
ii  adduser              3.115
ii  init-system-helpers  1.36
ii  libc6                2.23-1

influxdb recommends no packages.

influxdb suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXkAOpAAoJEIqc7nZacaeAYiQQAMuwZOKZY/EvumpLIOsoi7+s
6guiSUOJ9yT3+ZHW6iIsgNO/gRz9TI2Z0n3R30ILhf/3vZfMSloNoJyzrrjNy66a
wCpt6ojtbTGDLfEc30fKP6Rp1Gm9OTryLY7f8Abg4A8pGthnsFcfsGLrVhI82GLA
6eru7lKadQjDSdr+RVtgbwqgJmDTR4IdK4ti1Cwyh5zG6NOXO7MD0LJnoNmG1++i
sFvbGkBFu5wiLR2AJSvE7Yy0ofBKn7kFP+zo6LDyNGIlNQH9xlEvzVnhzYD9ycbi
wT2AN6W8i34gdI/4v8d8sJPWpQJXdWQLNEk+K1vbhaSoC5/+SYG+lmMx4wqiitRz
/IT12zNpK3h3yN6lJB4CqPkv7paCYrg/H+CpnmE+6KpdZN+f3gohxEfrnCnnj+Dc
P8gDaoqU8AZHXpGqOBHYywnIe6OPKiYUCMFRjyFbX38eJlq7HY6A8e0PNourSr3I
nhtu3mhHYs6KwJEV7m5TdHM9ADtvb9iHIhghHWE6Mc20x+MyKTZWnOzWFtX6cggm
e4nziyyusZrHcnM5LXyWMxm7fFOMnj37vawsZe8VmPqbtXQbEFexM/9wxPswAgLD
jLX646dOjGMH4BDlxvnjRuHLSpC+kmhD3arERxwtTnrt/IPseKtOtzakCEYEsLXK
/NcueVOoAzvSHaUpE+70
=/rqP
-----END PGP SIGNATURE-----
>From b41ba68fc27275f3ed73fa395ab13e8b904cb9ba Mon Sep 17 00:00:00 2001
From: Vincent Blut <vincent.deb...@free.fr>
Date: Tue, 19 Jul 2016 20:42:04 +0200
Subject: [PATCH 1/2] d/influxdb.dirs: Add var/log/influxdb

---
 debian/influxdb.dirs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/influxdb.dirs b/debian/influxdb.dirs
index ea966c3..2bc9a2c 100644
--- a/debian/influxdb.dirs
+++ b/debian/influxdb.dirs
@@ -1 +1,2 @@
 var/lib/influxdb
+var/log/influxdb
-- 
2.8.1

>From f06022b6f772a549cad35da0ae4834f3cc15b31b Mon Sep 17 00:00:00 2001
From: Vincent Blut <vincent.deb...@free.fr>
Date: Tue, 19 Jul 2016 20:54:18 +0200
Subject: [PATCH 2/2] d/influxdb.postinst: Use debhelper facility to create
 /var/log/influxdb

---
 debian/influxdb.postinst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/influxdb.postinst b/debian/influxdb.postinst
index 94861f0..2d1f9dc 100644
--- a/debian/influxdb.postinst
+++ b/debian/influxdb.postinst
@@ -31,9 +31,9 @@ case "$1" in
         chown -R influxdb:influxdb /var/lib/influxdb
     fi
 
-    # create logdir
-    mkdir -p /var/log/influxdb
-    chown -R influxdb:influxdb /var/log/influxdb
+    if [ -d /var/log/influxdb ]; then
+        chown -R influxdb:influxdb /var/log/influxdb
+    fi
 
     # create rundir
     mkdir -p /var/run/influxdb
-- 
2.8.1

>From 45d837607172052996e67f6411b177f5e6059241 Mon Sep 17 00:00:00 2001
From: Vincent Blut <vincent.deb...@free.fr>
Date: Sun, 17 Jul 2016 16:48:57 +0200
Subject: [PATCH 1/2] d/influxdb.dirs: Create /var/lib/influxdb using debhelper
 facility

---
 debian/influxdb.dirs | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 debian/influxdb.dirs

diff --git a/debian/influxdb.dirs b/debian/influxdb.dirs
new file mode 100644
index 0000000..ea966c3
--- /dev/null
+++ b/debian/influxdb.dirs
@@ -0,0 +1 @@
+var/lib/influxdb
-- 
2.8.1

>From 221ed56a75aff6d750cff73cd89505553ffcd599 Mon Sep 17 00:00:00 2001
From: Vincent Blut <vincent.deb...@free.fr>
Date: Sun, 17 Jul 2016 17:06:53 +0200
Subject: [PATCH 2/2] d/influxdb.postinst: Let debhelper facility handle
 directory creation

---
 debian/influxdb.postinst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/influxdb.postinst b/debian/influxdb.postinst
index 2dbf8bd..94861f0 100644
--- a/debian/influxdb.postinst
+++ b/debian/influxdb.postinst
@@ -27,9 +27,9 @@ case "$1" in
         adduser influxdb influxdb
         fi
 
-    # create data directory
-    mkdir -p /var/lib/influxdb
-    chown -R influxdb:influxdb /var/lib/influxdb
+    if [ -d /var/lib/influxdb ]; then
+        chown -R influxdb:influxdb /var/lib/influxdb
+    fi
 
     # create logdir
     mkdir -p /var/log/influxdb
-- 
2.8.1


--- End Message ---
--- Begin Message ---
Source: influxdb
Source-Version: 0.13.0+dfsg1-3

We believe that the bug you reported is fixed in the latest version of
influxdb, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 831...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Viau <av...@debian.org> (supplier of updated influxdb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 22 Jul 2016 10:59:15 -0400
Source: influxdb
Binary: golang-github-influxdb-influxdb-dev influxdb-dev influxdb 
influxdb-client
Architecture: source all amd64
Version: 0.13.0+dfsg1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team 
<pkg-go-maintainers@lists.alioth.debian.org>
Changed-By: Alexandre Viau <av...@debian.org>
Description:
 golang-github-influxdb-influxdb-dev - Scalable datastore for metrics, events, 
and real-time analytics.
 influxdb   - Scalable datastore for metrics, events, and real-time analytics
 influxdb-client - command line interface for InfluxDB
 influxdb-dev - Transitional package for golang-github-influxdb-influxdb-dev
Closes: 831982
Changes:
 influxdb (0.13.0+dfsg1-3) unstable; urgency=medium
 .
   * Create var and logs directories with debhelper (Closes: #831982)
Checksums-Sha1:
 ad3a76e94e59c4ecd2e8b7a973b8cfeb51f28d87 3283 influxdb_0.13.0+dfsg1-3.dsc
 a2f3645bff75ed7cb1989e59c74db3de22a36cd7 120772 
influxdb_0.13.0+dfsg1-3.debian.tar.xz
 f05047f62ad180a14438845990bbd60f663cb38c 758490 
golang-github-influxdb-influxdb-dev_0.13.0+dfsg1-3_all.deb
 6f64d671140f76b1a27935d848d4bdfea57eccfc 1447322 
influxdb-client_0.13.0+dfsg1-3_amd64.deb
 5e270534d3d2a42d617edb61bb236891c7a84c15 43452 
influxdb-dev_0.13.0+dfsg1-3_all.deb
 6bfc41bbc92f98eace0cb59ea29c19346d8af6ae 2966786 
influxdb_0.13.0+dfsg1-3_amd64.deb
Checksums-Sha256:
 2995fe014d82fdb21048c28d66f7f945023fa99ba23a783bc4f2859073c3e392 3283 
influxdb_0.13.0+dfsg1-3.dsc
 69efc583a8a4853acf69bc081f1dd98ea3cf791f5dca966360e5a13397c6c066 120772 
influxdb_0.13.0+dfsg1-3.debian.tar.xz
 c25b8dedb8b60ca2d859d0c1386bd78faa2670cc63dc52013c5471fe3504e06e 758490 
golang-github-influxdb-influxdb-dev_0.13.0+dfsg1-3_all.deb
 00ec1e4f1b7bb6deb8c1d70b961045f4b308a64861ff4f86b7b34d6db7af7f67 1447322 
influxdb-client_0.13.0+dfsg1-3_amd64.deb
 00b36d7694d3739c4aae8097c5bf1cf42beaf05ea37b40be96ba0297d3957bf6 43452 
influxdb-dev_0.13.0+dfsg1-3_all.deb
 b0ced18fc5735e3ba256a0d7158c33da745526f659ebb2132694a13305b144ff 2966786 
influxdb_0.13.0+dfsg1-3_amd64.deb
Files:
 e7a66b05e2eca77f57a1367d00d78fd6 3283 database extra 
influxdb_0.13.0+dfsg1-3.dsc
 f8fbef39969e669ea6d461efb4e7ee89 120772 database extra 
influxdb_0.13.0+dfsg1-3.debian.tar.xz
 c43a31579017db5baf8067b996e063fd 758490 database extra 
golang-github-influxdb-influxdb-dev_0.13.0+dfsg1-3_all.deb
 5116eafad30af6a24535ccfb0b84ac2b 1447322 database extra 
influxdb-client_0.13.0+dfsg1-3_amd64.deb
 0aa77ed661a8642b664b13d031ad295c 43452 oldlibs extra 
influxdb-dev_0.13.0+dfsg1-3_all.deb
 4eacd9e3e4617186ba76269e7c263d3b 2966786 database extra 
influxdb_0.13.0+dfsg1-3_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXkjgJAAoJENqCgw48zDo6QEMQAMAm3b1t4aP3l/hzweroRz4I
8NneZEjOSgI32mtIc8I/AB/rnHSkwOJY+CLsiISaPRtOMY3IAz3lIpHngBfWB/y7
uOO5hRDbuTWEN5iJefwRbFSfIasUKzPMl1fXxcIbsmE/PcntzBEo8oR9/5meBzrQ
ghWQp6jVJ2zfogNfYsV6ul3h4mUIj+zkskx/IZhiUfEEZfISFPrV6hYdyW7SaTGX
E6zZieMw9CB1bpWTgzNB5EsiqPIbZiXkQGdle0Nh/f8l1aEKP39zJsaz/BzqXOCl
vE9JULdSCWiOmbI6rRZzdnTUo9/lt/ajVRk/0m7M3ae0kQFrYNHuGXjD+4S2+Jzq
xT//bOlJzMuCyDAepQgtT5c/DHHrD4ycrS9l9kid5mzhtF+122cHdkoVKNcaeEqC
p82W9gPznq7iflLWCE8XSIXzho5p7gIxP8Rjq95veeRmdAi0swmyDfGpBGNwGmMS
lOJzuTZkFoi+lfJM0XQ20gjwCXFUZkdARswWG/cptW53JXYI4uL/oxkhsDAx1GD5
Gza+v/6G/jNjwrsl0Lsh8mWMoq1kgU3WH85gzmwxlFfl6aFyCSlKDGRVfAz2q/m4
+2d24EWmq+7I30BJfrVmNjuCc4JvfCrHuIX1mJDE6XAYYR2ZDiHSjdnNwOMeZb4N
dxbZtMwtMPTUhPFu2Npt
=Hkq/
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to