Job exception: 451 Error while writing spool file -- do I need to worry?

AI-generated summary

dirk.jahnke reports two “Job exception: 451 Error while writing spool file” errors in the admin interface, despite sending ~4000 emails successfully. He suspects possible causes like disk space but finds it unlikely locally, seeking further insight. The error trace points to SMTP delivery failure during email sending via ActionMailer. mpalmer clarifies that this error originates from the mail server being relayed to — indicating a temporary issue on the recipient server’s side, not Discourse itself. He reassures that the system should automatically retry sending the failed emails, implying no immediate action is needed unless the issue persists.

In the admin interface I got pointed to mail processing errors, which are in fact two entries of a “Job exception: 451 Error while writing spool file”.

Do you have some more infos about this for me? With ~4000 mails sent yesterday, these 2 errors seem to be not that serious. Nevertheless, I ask myself for possible reasons. Out of disk space? At least locally that is unlikely. What else?

Thanks,
Dirk

This is the log entry:

Message

Job exception: 451 Error while writing spool file

Backtrace

/usr/local/lib/ruby/2.3.0/net/smtp.rb:965:in `check_response'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:919:in `data'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:664:in `block in send_message'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:859:in `rcptto_list'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:664:in `send_message'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/network/delivery_methods/smtp.rb:114:in `block in deliver!'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:522:in `start'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/network/delivery_methods/smtp.rb:113:in `deliver!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:2149:in `do_delivery'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:237:in `block in deliver'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.7.1/lib/action_mailer/base.rb:543:in `block in deliver_mail'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.7.1/lib/action_mailer/base.rb:541:in `deliver_mail'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:237:in `deliver'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.7.1/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
/var/www/discourse/lib/email/sender.rb:155:in `send'
/var/www/discourse/app/jobs/regular/user_email.rb:41:in `execute'
/var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'

Env

hostname	forum-app
process_id	187
application_version	2a9331d061423f2b04d63ad7407f90fa6fd104cd
current_db	default
current_hostname	forum.fremo-net.eu
job	Jobs::UserEmail
problem_db	default
opts	
type	user_posted
user_id	79
notification_id	52774
notification_type	posted
post_id	3322
current_site_id	default
notification_data_hash	
topic_title	Reisende in "Fensterwagen" oder nicht?
original_post_id	3322
original_post_type	1
original_username	anonymized
display_username	anonymized
Solve  Protect Share

That error is being reported by the app as coming from your mail server. Whatever you’re relaying mail to had a temporary problem, which the e-mail sending worker should have detected and retried the e-mail sending later.