Debian Bug report logs - #998319
tryton-server: Should provide a ready-to-use production-grade server config

version graph

Package: tryton-server; Maintainer for tryton-server is Debian Tryton Maintainers <team+tryton-team@tracker.debian.org>; Source for tryton-server is src:tryton-server (PTS, buildd, popcon).

Reported by: Raphaël Hertzog <raphael@freexian.com>

Date: Tue, 2 Nov 2021 11:03:01 UTC

Severity: normal

Found in version tryton-server/5.0.39-1

Done: Mathias Behrle <m9s@mailbox.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, raphael@freexian.com, Debian Tryton Maintainers <team+tryton-team@tracker.debian.org>:
Bug#998319; Package tryton-server. (Tue, 02 Nov 2021 11:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Raphaël Hertzog <raphael@freexian.com>:
New Bug report received and forwarded. Copy sent to raphael@freexian.com, Debian Tryton Maintainers <team+tryton-team@tracker.debian.org>. (Tue, 02 Nov 2021 11:03:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Raphaël Hertzog <raphael@freexian.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tryton-server: Should provide a ready-to-use production-grade server config
Date: Tue, 02 Nov 2021 12:00:32 +0100
Package: tryton-server
Version: 5.0.39-1
Severity: normal
X-Debbugs-Cc: raphael@freexian.com

When I deployed tryton-server, I simply followed the advice of
README.Debian and relied on the provided systemd service file
but now after having filed https://bugs.tryton.org/issue10921
I realize that it's (no longer?) the recommended way of deploying
the tryton server.

It would be nice if the Debian package could document a production-grade
way to deploy it and if it could provide everything required to make this
trivial (maybe some apache/nginx config snippet that we can include in a
new virtual host to configure the WSGI handler, or similar).

-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-2-amd64 (SMP w/16 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tryton-server depends on:
ii  adduser                3.118
ii  init-system-helpers    1.60
ii  lsb-base               11.1.0
pn  python                 <none>
pn  python-dateutil        <none>
pn  python-genshi          <none>
pn  python-lxml            <none>
pn  python-pkg-resources   <none>
pn  python-polib           <none>
pn  python-relatorio       <none>
pn  python-sql             <none>
pn  python-werkzeug        <none>
pn  python-wrapt           <none>
ii  python3                3.9.2-3
ii  python3-bcrypt         3.2.0-1
ii  python3-dateutil       2.8.1-6
pn  python3-genshi         <none>
ii  python3-lxml           4.6.3+dfsg-1
pn  python3-passlib        <none>
ii  python3-pkg-resources  58.2.0-1
pn  python3-polib          <none>
pn  python3-relatorio      <none>
pn  python3-sql            <none>
pn  python3-werkzeug       <none>
ii  python3-wrapt          1.12.1-4+b1

Versions of packages tryton-server recommends:
ii  libreoffice-calc     1:7.2.2-1
ii  libreoffice-writer   1:7.2.2-1
ii  postgresql           14+231
pn  python-bcrypt        <none>
pn  python-levenshtein   <none>
pn  python-psycopg2      <none>
pn  python-pydot         <none>
pn  python3-gevent       <none>
ii  python3-html2text    2020.1.16-1
ii  python3-levenshtein  0.12.2-2
ii  python3-pil          8.3.2-1
ii  python3-psycopg2     2.9.1-1
ii  python3-pydot        1.4.2-1
pn  python3-weasyprint   <none>
ii  ssl-cert             1.1.0+nmu1
ii  unoconv              0.7-2

Versions of packages tryton-server suggests:
ii  postgresql-client-13 [postgresql-client]  13.4-3
ii  postgresql-client-14 [postgresql-client]  14.0-1
pn  python-sphinx                             <none>
ii  python3-sphinx                            4.2.0-5
hi  tryton-client                             5.0.33-1
pn  tryton-modules-all                        <none>
pn  tryton-server-doc                         <none>



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Tryton Maintainers <team+tryton-team@tracker.debian.org>:
Bug#998319; Package tryton-server. (Tue, 02 Nov 2021 14:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Mathias Behrle <mathiasb@m9s.biz>:
Extra info received and forwarded to list. Copy sent to Debian Tryton Maintainers <team+tryton-team@tracker.debian.org>. (Tue, 02 Nov 2021 14:57:03 GMT) (full text, mbox, link).


Message #10 received at 998319@bugs.debian.org (full text, mbox, reply):

From: Mathias Behrle <m9s@mailbox.org>
To: Raphaël Hertzog <raphael@freexian.com>
Cc: 998319@bugs.debian.org
Subject: Re: Bug#998319: tryton-server: Should provide a ready-to-use production-grade server config
Date: Tue, 2 Nov 2021 15:46:01 +0100
[Message part 1 (text/plain, inline)]
* Raphaël Hertzog: " Bug#998319: tryton-server: Should provide a ready-to-use
  production-grade server config" (Tue, 02 Nov 2021 12:00:32 +0100):

Hi Raphaël,

> When I deployed tryton-server, I simply followed the advice of
> README.Debian and relied on the provided systemd service file
> but now after having filed https://bugs.tryton.org/issue10921
> I realize that it's (no longer?) the recommended way of deploying
> the tryton server.

Indeed the werkzeug development server has got some more deprecation warnngs
for production use and is only suitable for simple setups. I am aware of the
problem.

> It would be nice if the Debian package could document a production-grade
> way to deploy it and if it could provide everything required to make this
> trivial (maybe some apache/nginx config snippet that we can include in a
> new virtual host to configure the WSGI handler, or similar).

A robust production grade setup will run the Tryton server not only behind a
reverse proxy, but inside a wsgi server.

My prefered concept for the solution would be two additional packages:

tryton-server-uwsgi
tryton-server-nginx

which would also need some changes to the tryton-server package itself to
integrate well.

Documentation only has some problems:

- Often it is not read.
- It is difficult to provide solutions matching different needs. At the end you
  get the question again: What to do with reverse proxy only, what to do with
  wsgi backend, which backends to choose, etc.?
  The mentioned packages would/should at least provide a basic working start
  setup without too much manual steps.

I am open for any suggestions.

-- 

    Mathias Behrle
    PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
    AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Tryton Maintainers <team+tryton-team@tracker.debian.org>:
Bug#998319; Package tryton-server. (Wed, 03 Nov 2021 13:27:07 GMT) (full text, mbox, link).


Acknowledgement sent to Raphael Hertzog <raphael@freexian.com>:
Extra info received and forwarded to list. Copy sent to Debian Tryton Maintainers <team+tryton-team@tracker.debian.org>. (Wed, 03 Nov 2021 13:27:08 GMT) (full text, mbox, link).


Message #15 received at 998319@bugs.debian.org (full text, mbox, reply):

From: Raphael Hertzog <raphael@freexian.com>
To: Mathias Behrle <mathiasb@m9s.biz>
Cc: 998319@bugs.debian.org
Subject: Re: Bug#998319: tryton-server: Should provide a ready-to-use production-grade server config
Date: Wed, 3 Nov 2021 14:25:35 +0100
[Message part 1 (text/plain, inline)]
Hi,

On Tue, 02 Nov 2021, Mathias Behrle wrote:
> A robust production grade setup will run the Tryton server not only behind a
> reverse proxy, but inside a wsgi server.
> 
> My prefered concept for the solution would be two additional packages:
> 
> tryton-server-uwsgi
> tryton-server-nginx
> 
> which would also need some changes to the tryton-server package itself to
> integrate well.

I don't have any strong preference. In distro-tracker, I provide vhosts
for apache and for nginx. I think it's useful to support both as you might
want to install on a server where something is already running.

However, the WSGI server is really open. For distro-tracker I opted to use
gunicorn with nginx and libapache2-mod-wsgi-py3 with apache.

> Documentation only has some problems:
> 
> - Often it is not read.
> - It is difficult to provide solutions matching different needs. At the end you
>   get the question again: What to do with reverse proxy only, what to do with
>   wsgi backend, which backends to choose, etc.?
>   The mentioned packages would/should at least provide a basic working start
>   setup without too much manual steps.

Make some sane default choices and make it easy to follow your choices. If
users want something else, they can always override and change the setup.

Regards,
-- 
Raphaël Hertzog ◈ Freexian SARL ◈ Tel: +33 (0)6 88 21 35 47
https://www.freexian.com
[signature.asc (application/pgp-signature, inline)]

Reply sent to Mathias Behrle <mathiasb@m9s.biz>:
You have taken responsibility. (Thu, 15 Sep 2022 19:09:07 GMT) (full text, mbox, link).


Notification sent to Raphaël Hertzog <raphael@freexian.com>:
Bug acknowledged by developer. (Thu, 15 Sep 2022 19:09:07 GMT) (full text, mbox, link).


Message #20 received at 998319-done@bugs.debian.org (full text, mbox, reply):

From: Mathias Behrle <m9s@mailbox.org>
To: 998319-done@bugs.debian.org
Subject: Re: Bug#998319: tryton-server: Should provide a ready-to-use production-grade server config
Date: Thu, 15 Sep 2022 21:05:46 +0200
[Message part 1 (text/plain, inline)]
> On Tue, 02 Nov 2021, Mathias Behrle wrote:
> > A robust production grade setup will run the Tryton server not only behind a
> > reverse proxy, but inside a wsgi server.

Packages tryton-server-postgresql, tryton-server-uwsgi, tryton-server-nginx and
tryton-server-all-in-one are now in unstable.


-- 

    Mathias Behrle
    PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
    AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6
[Message part 2 (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 14 Oct 2022 07:25:14 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Dec 23 15:07:59 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.