THANK YOU FOR THE HELP!!! Yes .. I might be yelling a little. :D
2020-10-08 23:34:35,135 Trac[notification] INFO: no recipient for a ticket
notification
.... That line took me a while. Had to install various other modules (that
were perhaps not essential for this function), mostly SilverCity which
doesn't appear to be essential for our work; I just installed it since I
saw errors related to it.
Anyway:
- Logged in as sean, confirmed in Trac view. I'm the TRAC_ADMIN.
- smtp_default_domain set properly in trac.ini
*trac.ini (relevant bits anyway)*
[components]
advancedworkflow.* = enabled
tracopt.ticket.deleter.ticketdeleter = enabled
workflow_notification.* = enabled
[notification]
admit_domains =
always_notify_owner = false
always_notify_reporter = false
always_notify_updater = false
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
#email_sender = SendmailEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail (also tried /usr/sbin/sendmail but the actual
trac.log dump indicates that's not the issue here)
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain = domain.com
smtp_enabled = true
smtp_from = trac@domain.com
smtp_from_author = false
smtp_from_name = Trac Server
smtp_password =
smtp_port = 25
smtp_replyto = trac@domain.com
smtp_server = 10.4.1.58
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id
use_public_cc = false
use_short_addr = false
use_tls = false
[ticket-workflow-notifications]
new_ticket = @created
new_ticket.body = View the ticket here:
${link}\n-----------------------------------------------------\nReported
by: ${ticket.reporter}\nAssigned to: ${ticket.owner}
new_ticket.recipients = ${ticket.owner}
new_ticket.subject = New ticket #${ticket.id}
ticket_changed = *
ticket_changed.body = View the ticket here:
${link}\n-----------------------------------------------------\nReported
by: ${ticket.reporter}\nModified by: ${change.author}\n\nTicket Staus:
${ticket.status}\n\n{% if change.comment %}${change.author} said:
${change.comment}{% end %}
ticket_changed.recipients = ${ticket.owner}, ${ticket.reporter}
ticket_changed.subject = Ticket #${ticket.id} has been modified
*DEBUG Log (Refresh, adding comment and submit)*
2020-10-08 23:47:19,934 Trac[env] INFO: --------------------------------
environment startup [Trac 1.0] --------------------------------
2020-10-08 23:47:19,953 Trac[loader] DEBUG: Loading trac.about from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,958 Trac[loader] DEBUG: Loading trac.admin.console from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,963 Trac[loader] DEBUG: Loading trac.admin.web_ui from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,965 Trac[loader] DEBUG: Loading trac.attachment from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,966 Trac[loader] DEBUG: Loading trac.db.mysql from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,967 Trac[loader] DEBUG: Loading trac.db.postgres from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,968 Trac[loader] DEBUG: Loading trac.db.sqlite from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,969 Trac[loader] DEBUG: Loading trac.mimeview.patch
from /usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,970 Trac[loader] DEBUG: Loading trac.mimeview.pygments
from /usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,976 Trac[loader] ERROR: Skipping
"trac.mimeview.pygments = trac.mimeview.pygments [pygments]":
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in _load_eggs
entry.load(require=True)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
2324, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
2330, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "build/bdist.linux-x86_64/egg/trac/mimeview/pygments.py", line 37,
in <module>
File "/usr/lib/python2.7/dist-packages/pygments/formatters/__init__.py",
line 146, in __getattr__
raise AttributeError(name)
AttributeError: html
2020-10-08 23:47:19,976 Trac[loader] DEBUG: Loading trac.mimeview.rst from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:19,998 Trac[loader] DEBUG: Loading trac.mimeview.txtl from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,002 Trac[loader] DEBUG: Loading trac.prefs from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,003 Trac[loader] DEBUG: Loading trac.search from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,004 Trac[loader] DEBUG: Loading trac.ticket.admin from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,005 Trac[loader] DEBUG: Loading trac.ticket.batch from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,006 Trac[loader] DEBUG: Loading trac.ticket.query from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,008 Trac[loader] DEBUG: Loading trac.ticket.report from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,010 Trac[loader] DEBUG: Loading trac.ticket.roadmap
from /usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,011 Trac[loader] DEBUG: Loading trac.ticket.web_ui from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,013 Trac[loader] DEBUG: Loading trac.timeline from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,016 Trac[loader] DEBUG: Loading
trac.versioncontrol.admin from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,017 Trac[loader] DEBUG: Loading
trac.versioncontrol.svn_authz from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,017 Trac[loader] DEBUG: Loading
trac.versioncontrol.web_ui from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,021 Trac[loader] DEBUG: Loading trac.web.auth from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,024 Trac[loader] DEBUG: Loading trac.web.session from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,025 Trac[loader] DEBUG: Loading trac.wiki.admin from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,025 Trac[loader] DEBUG: Loading trac.wiki.interwiki
from /usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,026 Trac[loader] DEBUG: Loading trac.wiki.macros from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,027 Trac[loader] DEBUG: Loading trac.wiki.web_api from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,027 Trac[loader] DEBUG: Loading trac.wiki.web_ui from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,028 Trac[loader] DEBUG: Loading
tracopt.mimeview.enscript from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,029 Trac[loader] DEBUG: Loading tracopt.mimeview.php
from /usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,029 Trac[loader] DEBUG: Loading
tracopt.mimeview.silvercity from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,034 Trac[loader] DEBUG: Loading
tracopt.perm.authz_policy from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,035 Trac[loader] DEBUG: Loading
tracopt.perm.config_perm_provider from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,035 Trac[loader] DEBUG: Loading tracopt.ticket.clone
from /usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,036 Trac[loader] DEBUG: Loading
tracopt.ticket.commit_updater from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,037 Trac[loader] DEBUG: Loading tracopt.ticket.deleter
from /usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,038 Trac[loader] DEBUG: Loading
tracopt.versioncontrol.git.git_fs from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,040 Trac[loader] DEBUG: Loading
tracopt.versioncontrol.svn.svn_fs from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,041 Trac[loader] DEBUG: Loading
tracopt.versioncontrol.svn.svn_prop from
/usr/local/lib/python2.7/dist-packages/Trac-1.0-py2.7.egg
2020-10-08 23:47:20,043 Trac[default_workflow] DEBUG: Workflow actions at
initialization: {u'resolve': {u'operations': [u'set_resolution'], 'name':
u'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'reopened',
u'fixedneedsvalidation'], u'permissions': [u'TICKET_MODIFY']}, u'accept':
{u'operations': [u'set_owner_to_self'], u'name': u'accept this ticket',
u'default': 1, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned',
u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'leave':
{u'operations': [u'leave_status'], u'name': u'do not change ticket status',
u'default': 2, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []},
u'reopen': {u'operations': [u'del_resolution'], 'name': u'reopen',
'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'],
u'permissions': [u'TICKET_CREATE']}, u'fixneedsval': {u'operations':
[u'set_owner'], u'name': u'fixed, please validate', 'default': 0,
'newstate': u'fixedneedsvalidation', 'oldstates': [u'assigned',
u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']},
u'reassign': {u'operations': [u'set_owner'], u'name': u'assign this
ticket', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new',
u'assigned', u'accepted', u'reopened'], u'permissions':
[u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name':
'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions':
[]}}
2020-10-08 23:47:20,048 Trac[env] WARNING: base_url option not set in
configuration, generated links may be incorrect
2020-10-08 23:47:20,048 Trac[main] DEBUG: Dispatching <RequestWithSession
"POST '/ticket/912'">
2020-10-08 23:47:20,051 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
2020-10-08 23:47:20,052 Trac[session] DEBUG: Retrieving session for ID
u'sean'
2020-10-08 23:47:20,053 Trac[api] DEBUG: action controllers for ticket
workflow: ['ConfigurableTicketWorkflow']
2020-10-08 23:47:20,068 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "leave"
2020-10-08 23:47:20,069 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "accept"
2020-10-08 23:47:20,069 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "reassign"
2020-10-08 23:47:20,070 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "fixneedsval"
2020-10-08 23:47:20,092 Trac[chrome] DEBUG: Prepare chrome data for request
2020-10-08 23:48:20,234 Trac[main] DEBUG: Dispatching <RequestWithSession
"POST '/ticket/912'">
2020-10-08 23:48:20,235 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
*2020-10-08 23:48:20,235 Trac[session] DEBUG: Retrieving session for ID
u'sean'*
*2020-10-08 23:48:20,342 Trac[notification] INFO: no recipient for a ticket
notification*
2020-10-08 23:48:20,342 Trac[web_ui] DEBUG: Side effect for
ConfigurableTicketWorkflow
2020-10-08 23:48:20,414 Trac[main] DEBUG: Dispatching <RequestWithSession
"GET '/ticket/912'">
2020-10-08 23:48:20,414 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
2020-10-08 23:48:20,415 Trac[session] DEBUG: Retrieving session for ID
u'sean'
2020-10-08 23:48:20,427 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "leave"
2020-10-08 23:48:20,427 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "accept"
2020-10-08 23:48:20,427 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "reassign"
2020-10-08 23:48:20,428 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "fixneedsval"
2020-10-08 23:48:20,429 Trac[chrome] DEBUG: Prepare chrome data for request
2020-10-08 23:48:20,892 Trac[main] DEBUG: Dispatching <RequestWithSession
"GET '/chrome/common/js/resizer.js'">
2020-10-08 23:48:20,905 Trac[session] DEBUG: Retrieving session for ID
u'sean'
2020-10-08 23:48:21,198 Trac[main] DEBUG: Dispatching <RequestWithSession
"GET '/ticket/914'">
2020-10-08 23:48:21,199 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
2020-10-08 23:48:21,199 Trac[session] DEBUG: Retrieving session for ID
u'sean'
2020-10-08 23:48:21,205 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "leave"
2020-10-08 23:48:21,205 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "accept"
2020-10-08 23:48:21,205 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "reassign"
2020-10-08 23:48:21,207 Trac[chrome] DEBUG: Prepare chrome data for request
*New Ticket DEBUG*
2020-10-09 00:05:19,458 Trac[main] DEBUG: Dispatching <RequestWithSession
"POST '/newticket'">
2020-10-09 00:05:19,459 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
*2020-10-09 00:05:19,460 Trac[session] DEBUG: Retrieving session for ID
u'sean'2020-10-09 00:05:19,541 Trac[notification] INFO: no recipient for a
ticket notification*
2020-10-09 00:05:19,639 Trac[main] DEBUG: Dispatching <RequestWithSession
"GET '/ticket/917'">
2020-10-09 00:05:19,640 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
2020-10-09 00:05:19,640 Trac[session] DEBUG: Retrieving session for ID
u'sean'
2020-10-09 00:05:19,652 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "leave"
2020-10-09 00:05:19,652 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "accept"
2020-10-09 00:05:19,652 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "reassign"
2020-10-09 00:05:19,654 Trac[chrome] DEBUG: Prepare chrome data for request
2020-10-09 00:06:41,573 Trac[main] DEBUG: Dispatching <RequestWithSession
"POST '/ticket/917'">
2020-10-09 00:06:41,573 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
*2020-10-09 00:06:41,574 Trac[session] DEBUG: Retrieving session for ID
u'sean'2020-10-09 00:06:41,709 Trac[notification] INFO: no recipient for a
ticket notification*
2020-10-09 00:06:41,709 Trac[web_ui] DEBUG: Side effect for
ConfigurableTicketWorkflow
2020-10-09 00:06:41,767 Trac[main] DEBUG: Dispatching <RequestWithSession
"GET '/ticket/917'">
2020-10-09 00:06:41,768 Trac[api] WARNING: Unable to find repository
'(default)' for synchronization
2020-10-09 00:06:41,768 Trac[session] DEBUG: Retrieving session for ID
u'sean'
2020-10-09 00:06:41,780 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "leave"
2020-10-09 00:06:41,780 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "accept"
2020-10-09 00:06:41,780 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "reassign"
2020-10-09 00:06:41,781 Trac[default_workflow] DEBUG:
render_ticket_action_control: action "fixneedsval"
2020-10-09 00:06:41,783 Trac[chrome] DEBUG: Prepare chrome data for request
Postfix is configured to forward all traffic/relay it to our central mail
server. So smtp_user/password aren't required. Since it's an internal
system, security for email forwarding when no one else even knows the mail
server exists is low priority.
Also note, that I tried this with both Preferences -> Email address set,
versus no Email address explicitly set. That being said that shouldn't
really matter as we don't have that field configured for users by default.
The notification plugin is pretty friendly overall.
Let me know if that helps or if you're looking for other data.
Sean
On Thursday, October 8, 2020 at 2:06:45 AM UTC-5 RjOllos wrote:
> On Thursday, October 8, 2020 at 2:59:04 AM UTC-4 unfu...@gmail.com wrote:
>
>>
>> Hi trac-users,
>>
>> So I have a very frustrating situation. I'm unable to get Trac
>> notification mails to send out from a podman container and I don't
>> understand why. Here's the basics:
>>
>> - I have a heavily customized Trac 1.0 instance running in podman. By
>> customized, I just mean UI changes. Very little actual code has been
>> modified that I'm aware of here. We just needed to add a few custom fields,
>> and modify header data (which I believe was all stored in the database).
>> - The container OS is Ubuntu 18.04.
>> - Standard packages/nothing crazy installed.
>> - supervisord managing: Postfix, rsyslog, and finally Apache2 running
>> Trac with fcgid and finally mpm_worker all in the same container. It has no
>> other dependencies outside of itself.
>> - Trac was migrated from a chroot on Ubuntu 16.04, to RHEL 8/podman.
>> This was because of the customizations of course, but the notification
>> system in the old instance works fine. No changes were made to trac.ini for
>> the transition, just the environment it's playing in.
>> - Host OS is: RHEL 8 as mentioned, running in FIPS mode.
>> - SELinux is turned off b/c it's a PITA and it basically breaks all
>> conceptions of container functionality. While ideally it would be running,
>> I would like to have this server setup and migrated before I'm 80. I'm
>> currently 42, but if I pursue this avenue I'm fairly certain I'll reach
>> that golden year before roll-out.
>>
>> Testing:
>>
>> - I'm able to send emails via CLI. I see logs appear in mail.log when
>> I attempt to send from inside the container. So I know that mail is leaving
>> from the container as expected.
>> - New Trac tickets are created just fine. Modification of tickets is
>> just fine. So it's not permissions for writing to the database, it can find
>> its configuration files, authentication via LDAP works, etc.
>> - Trac notifications do not get sent out on ticket creation, ticket
>> modification, nothing, despite working perfectly fine outside of the
>> container.
>> - I've tested: Alpine images, Ubuntu 16.04 images (which don't work
>> because postfix does not support start-fg in that OS), different apache mpm
>> modules (broken on mpm_event), etc., etc.
>> - No logs appear in mail.log, period, when a ticket is created; Ergo,
>> Trac is seemingly unable to touch the Postfix daemon before something
>> happens. I don't know what.
>> - Reviewing notification.py in the .egg I see some crypto related
>> functions that use MD5, but I've not dived too deep into this; I don't
>> know/think it's a FIPS problem, but I'm just outlining the environment as
>> thoroughly as I can here.
>> - Tried running python -v notification.py just to see if it would
>> spit out an obvious permissions error, or something like that. Lots of
>> delightfully detailed load lines, but nothing of real merit/relevance to
>> the problem at hand here.
>> - Tried upgrading Trac... That was a terrible idea. It vomits and
>> dies of course.
>> - I tried both Smtp flag settings in trac.ini -> notifications:
>> SmtpEmailSend /SendmailEmailSend. No difference/change in behavior.
>> - I tried multiple mail server hosts: both local and remote, etc.
>> - I tried ssmtp/msmtp first. No -i / -f for ssmtp, and it's no longer
>> supported. For msmtp I'd already tried so many things I just abandoned it
>> and went back to Postfix. At least I know it works outside of this
>> particular container.
>>
>> I've posted on:
>>
>> - Reddit podman
>> - Reddit Docker
>> - RHEL forums
>> - Spent days DuckDuckGo-ing around trying my damndest to fix this.
>>
>> No one can help me as yet. It's been 2 months of me fucking around with
>> this. I've done the ground work, I've done the research, I've almost quit
>> my job and started a goat farm in Botswana.
>>
>> Ask me questions on things that aren't already mentioned. Ask me for
>> config files. I'll give you whatever you want configuration wise, just
>> please either help me fix this or point me in the right direction so I can
>> move on with my life.
>>
>> Thanks in advance for any ideas, suggestions/critics, etc. Sorry this is
>> so long, but I've done a lot of work on this and it still isn't doing what
>> I need it to do.
>>
>> Sean
>>
>
>
> What do the Trac logs at DEBUG level show on notification?
> https://trac.edgewall.org/wiki/TracTroubleshooting#ChecktheLogs
>
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/07051496-e00f-4441-9419-2dd60b443f8en%40googlegroups.com.