Wednesday, March 8, 2017¶
Who pays for a ticket?¶
Gerd asked me:
Vielleicht gibst du uns kurz eine Rückmeldung zum Aufwand und der zeitlichen Umsetzung? Wir haben nächsten Montag ein Treffen, wo wir das besprechen.
A seemingly simple question, but it triggered another avalanche of ideas about how to write service reports.
I opened #1559 (Who pays for a ticket?). The idea is:
a new choicelist
lino_noi.lib.clocking.ReportingTypes
with three choices “Worker”, “Employer” and “Customer”. “Worker” is for volunteer work where the worker does not get paid. “Employer” is when working time is paid to the worker by the employer (but no customer is going to pay for it directly). “Customer” is when working time should be paid directly by the customer.a new field
reporting_type
per project pointing to that choicelist.The WorkedHours report now ventilates using this list (and no longer by top-level project)
Side effects:
I moved the technical description of a ticket from the docstring to the technical specs (tickets (Ticket management in Noi)) and discovered a new promising convention : we merge everything below the plugin level (models, tables, actions, roles, …) into this single document.
A strange phenomen under Apache¶
I registered #1560, a problem which occurs once per client after a server restart. The user sees a 500 error message, but there is nothing logged.
The apache error log has these messages which might be related:
[Wed Mar 08 09:32:10.256028 2017] [wsgi:error] [pid 25370:tid 139929323210496] No handlers could be found for logger "django.request"
[Wed Mar 08 09:32:11.361471 2017] [wsgi:error] [pid 25370:tid 139929323210496] WARNING: There are known rendering problems with Cairo <= 1.14.0
[Wed Mar 08 09:32:11.361811 2017] [wsgi:error] [pid 25370:tid 139929323210496] WARNING: @font-face support needs Pango >= 1.38
[Wed Mar 08 09:32:11.427129 2017] [wsgi:error] [pid 25370:tid 139929323210496] Started mod_wsgi (using prod_sites.vilma.settings) --> PID 25370
[Wed Mar 08 09:32:12.383068 2017] [wsgi:error] [pid 25370:tid 139929323210496] .../vilma/env/local/lib/python2.7/site-packages/cffi/model.py:532: UserWarning: 'point_conversion_form_t' has no values explicitly defined; guessing that it is equivalent to 'unsigned int'
[Wed Mar 08 09:32:12.383101 2017] [wsgi:error] [pid 25370:tid 139929323210496] % self._get_c_name())
[Wed Mar 08 09:32:12.383103 2017] [wsgi:error] [pid 25370:tid 139929323210496]
I disabled one of them by adding the following to their
settings.py
:
import warnings
warnings.filterwarnings("ignore", module='cffi.model')
I tried to get rid of No handlers could be found for logger
"django.request"
by changing the value of
auto_configure_logger_names
. Without success.
Deploy to Jane¶
Together with Tonis we upgraded Jane. Some experiments with replying
to comments and the new lino.modlib.inbox
plugin.
Mailman not working on saffre-rumma.net¶
When I post to a mailing list on SR, then we see the following /var/log/mail.log
:
Mar 8 10:57:54 ovh2 postfix/smtpd[1991]: 468504558F: client=mout.gmx.net[212.227.15.18]
Mar 8 10:57:54 ovh2 postfix/cleanup[1995]: 468504558F: message-id=<157df793-40c4-e583-7bf7-a890e782ccd0@gmx.net>
Mar 8 10:57:54 ovh2 postfix/qmgr[18255]: 468504558F: from=<luc.saffre@gmx.net>, size=2096, nrcpt=1 (queue active)
Mar 8 10:57:54 ovh2 postfix/smtpd[1991]: disconnect from mout.gmx.net[212.227.15.18]
Mar 8 10:57:54 ovh2 postfix/pipe[1998]: 468504558F: to=<test@saffre-rumma.net>, relay=spamassassin, delay=0.36, delays=0.07/0.0
1/0/0.28, dsn=2.0.0, status=sent (delivered via spamassassin service)
Mar 8 10:57:54 ovh2 postfix/qmgr[18255]: 468504558F: removed
Mar 8 10:57:54 ovh2 postfix/pickup[30609]: 9B5FD45591: uid=1005 from=<luc.saffre@gmx.net>
Mar 8 10:57:54 ovh2 postfix/cleanup[1995]: 9B5FD45591: message-id=<157df793-40c4-e583-7bf7-a890e782ccd0@gmx.net>
Mar 8 10:57:54 ovh2 postfix/qmgr[18255]: 9B5FD45591: from=<luc.saffre@gmx.net>, size=2439, nrcpt=1 (queue active)
Mar 8 10:57:54 ovh2 postfix/local[2003]: 9B5FD45591: to=<test@saffre-rumma.net>, relay=local, delay=0.14, delays=0.02/0.01/0/0.
11, dsn=2.0.0, status=sent (delivered to command: /var/lib/mailman/mail/mailman post test)
Mar 8 10:57:54 ovh2 postfix/qmgr[18255]: 9B5FD45591: removed
Everything looks normal. Postfix hands the mail over to Mailman and then removes it from the queue. The problem is that Mailman does not seem to receive anything. No error message.
mailto: links don’t work¶
Tonis is working on #1374.
When I click on a mailto: links (e.g. mailto:luc@saffre-rumma.net), then my computer starts to invoke a series of processes which make my processor work and the fan start to cool it. But there is no window showing up. These processes seem to reproduce themselves:
luc@doll:~$ ps aux | grep thunderbird
luc 32247 51.0 1.6 692444 132580 ? Rl 15:31 0:01 /usr/lib/thunderbird/thunderbird mailto:jane@saffre-rumma.net?subject=458:tonis
luc 32297 0.0 0.4 333796 39720 ? Sl 15:31 0:00 /usr/lib/thunderbird/thunderbird mailto:jane@saffre-rumma.net?subject=458:tonis
luc 32300 0.0 0.0 0 0 ? Z 15:31 0:00 [thunderbird] <defunct>
luc 32310 0.0 0.0 15444 944 pts/2 S+ 15:31 0:00 grep --color=auto thunderbird
luc@doll:~$ ps aux | grep thunderbird
luc 32348 34.0 1.6 692252 131348 ? Sl 15:31 0:00 /usr/lib/thunderbird/thunderbird mailto:jane@saffre-rumma.net?subject=458:tonis
luc 32399 2.0 0.4 333796 39628 ? Sl 15:31 0:00 /usr/lib/thunderbird/thunderbird mailto:jane@saffre-rumma.net?subject=458:tonis
luc 32402 4.0 0.0 0 0 ? Z 15:31 0:00 [thunderbird] <defunct>
luc 32413 0.0 0.0 15444 1088 pts/2 S+ 15:31 0:00 grep --color=auto thunderbird
luc@doll:~$ ps aux | grep thunderbird
luc 32604 49.0 1.5 661184 122084 ? Rl 15:32 0:00 /usr/lib/thunderbird/thunderbird mailto:jane@saffre-rumma.net?subject=458:tonis
luc 32655 0.0 0.0 15444 1020 pts/2 S+ 15:32 0:00 grep --color=auto thunderbird
luc@doll:~$ ps aux | grep thunderbird
luc 32707 41.0 1.3 635448 109696 ? Rl 15:32 0:00 /usr/lib/thunderbird/thunderbird mailto:jane@saffre-rumma.net?subject=458:tonis
luc 32747 0.0 0.0 15444 960 pts/2 S+ 15:32 0:00 grep --color=auto thunderbird
The above does not happen always. Sometimes the link does open my Thunderbird editor window (but the window remains in the background so that I have the impression that it didn’t work)
Logging server restarts¶
Monique reported #1562. I am not sure, maybe I did a graceful apache restart at that time. I installed the Logging all bash commands to syslog also on mylino.net because it is handy for explaining such problems.