Bug#919339: radicale: uwsgi config tries chdir to non-existing directory

2019-01-14 Thread Jonas Smedegaard
Quoting James Valleroy (2019-01-15 02:18:37)
> Package: radicale
> Version: 2.1.11-2
> Severity: normal
> 
> I enabled the radicale config for uwsgi, and then restarted uwsgi,
> which failed to start.
> 
> # cat /var/log/uwsgi/app/radicale.log 
> Mon Jan 14 20:03:06 2019 - *** Starting uWSGI 2.0.17.1-debian (64bit) on [Mon 
> Jan 14 20:03:06 2019] ***
> Mon Jan 14 20:03:06 2019 - compiled with version: 8.2.0 on 27 December 2018 
> 16:37:18
> Mon Jan 14 20:03:06 2019 - os: Linux-4.19.0-1-amd64 #1 SMP Debian 4.19.12-1 
> (2018-12-22)
> Mon Jan 14 20:03:06 2019 - nodename: compbook
> Mon Jan 14 20:03:06 2019 - machine: x86_64
> Mon Jan 14 20:03:06 2019 - clock source: unix
> Mon Jan 14 20:03:06 2019 - pcre jit disabled
> Mon Jan 14 20:03:06 2019 - detected number of CPU cores: 4
> Mon Jan 14 20:03:06 2019 - current working directory: /
> Mon Jan 14 20:03:06 2019 - writing pidfile to /run/uwsgi/app/radicale/pid
> Mon Jan 14 20:03:06 2019 - detected binary path: /usr/bin/uwsgi-core
> Mon Jan 14 20:03:06 2019 - chdir() to /var/lib/radicale/collections
> Mon Jan 14 20:03:06 2019 - chdir(): No such file or directory [core/uwsgi.c 
> line 2631]
> 
> 
> The uwsgi config shipped in radicale 2.x package tries to chdir to
> /var/lib/radicale/collections.
> 
> There is a step to create /var/lib/radicale, but I think it needs to
> be moved before the chdir, and to also create the collections
> directory.

Ohh, good catch!

I remember adjusting that chdir was one of the last adjustments I did - 
but clearly was too focused on handling migrations carefully and forgot 
to take new installations into account.

New fixed release should be on its way now...


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature


Bug#919339: radicale: uwsgi config tries chdir to non-existing directory

2019-01-14 Thread James Valleroy
Package: radicale
Version: 2.1.11-2
Severity: normal

I enabled the radicale config for uwsgi, and then restarted uwsgi,
which failed to start.

# cat /var/log/uwsgi/app/radicale.log 
Mon Jan 14 20:03:06 2019 - *** Starting uWSGI 2.0.17.1-debian (64bit) on [Mon 
Jan 14 20:03:06 2019] ***
Mon Jan 14 20:03:06 2019 - compiled with version: 8.2.0 on 27 December 2018 
16:37:18
Mon Jan 14 20:03:06 2019 - os: Linux-4.19.0-1-amd64 #1 SMP Debian 4.19.12-1 
(2018-12-22)
Mon Jan 14 20:03:06 2019 - nodename: compbook
Mon Jan 14 20:03:06 2019 - machine: x86_64
Mon Jan 14 20:03:06 2019 - clock source: unix
Mon Jan 14 20:03:06 2019 - pcre jit disabled
Mon Jan 14 20:03:06 2019 - detected number of CPU cores: 4
Mon Jan 14 20:03:06 2019 - current working directory: /
Mon Jan 14 20:03:06 2019 - writing pidfile to /run/uwsgi/app/radicale/pid
Mon Jan 14 20:03:06 2019 - detected binary path: /usr/bin/uwsgi-core
Mon Jan 14 20:03:06 2019 - chdir() to /var/lib/radicale/collections
Mon Jan 14 20:03:06 2019 - chdir(): No such file or directory [core/uwsgi.c 
line 2631]


The uwsgi config shipped in radicale 2.x package tries to chdir to
/var/lib/radicale/collections.

There is a step to create /var/lib/radicale, but I think it needs to
be moved before the chdir, and to also create the collections
directory.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages radicale depends on:
ii  adduser  3.118
ii  init-system-helpers  1.56+nmu1
ii  lsb-base 10.2018112800
ii  python3  3.7.1-3
ii  python3-radicale 2.1.11-2

Versions of packages radicale recommends:
ii  ssl-cert  1.0.39

Versions of packages radicale suggests:
pn  apache2 
pn  apache2-utils   
pn  libapache2-mod-proxy-uwsgi  
pn  python3-bcrypt  
pn  python3-passlib 
ii  uwsgi   2.0.17.1-11

-- no debconf information