On Mon, Aug 21, 2017 at 05:51:07PM +0200, Jonas Smedegaard wrote:
> Quoting Joerg Dorchain (2017-08-21 16:42:41)
> > when trying to use the supplied /usr/share/radicale/radicale.wsgi file 
> > with libapache2-mod-wsgi 4.5.17-1, the following error is displayed in 
> > the apache error log:
> > 
> >  SyntaxError: Non-ASCII character '\\xc2' in file
> >  .../radicale.wsgi on line 4, but no encoding declared; see
> >  http://python.org/dev/peps/pep-0263/ for details
> > 
> > Externally a 500 internal error is shown.
> > 
> > Inserting # coding: utf-8 as second line solves it for me.
> 
> Thanks!

Obviously to be completely correct it the libapache2-mod-wsgi-py3
package.

While at the file, it empties out the config path
(/etc/radicale/config) which might or might be be intented.  IMHO
it should use the default path, i.e. a line config_paths =
["/etc/radicale/config"].
It would be worth mentioned it in a README.debian, what ever it
will be.

> 
> You might want to consider uwsgi: I believe with libapache2-mod-wsgi all 
> data will be writable by the www-data user, which might be a problem if 
> you host more than a single application on your server.

Yes, libapache2-mod-wsgi runs as the apache user. For my small
setup, this is fine, but thanks for the hint!

On a background, I started completely revamping a radicale setup
originating even before the debian package. Many things are
historically grown features.

Bye,

Joerg

Attachment: signature.asc
Description: PGP signature

Reply via email to