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

**URL:** <https://meta.discourse.org/t/job-exception-451-error-while-writing-spool-file-do-i-need-to-worry/51831>\
**Category:** Support\
**Created:** [2016年十月21日 05:32 UTC](https://meta.discourse.org/t/job-exception-451-error-while-writing-spool-file-do-i-need-to-worry/51831 "2016-10-21T05:32:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk.jahnke](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@dirk.jahnke](https://meta.discourse.org/u/dirk.jahnke)\
**Post date:** [2016年十月21日 05:32 UTC](https://meta.discourse.org/t/job-exception-451-error-while-writing-spool-file-do-i-need-to-worry/51831/1 "2016-10-21T05:32:04Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [2016年十月22日 23:43 UTC](https://meta.discourse.org/t/job-exception-451-error-while-writing-spool-file-do-i-need-to-worry/51831/2 "2016-10-22T23:43:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2019年三月21日 05:58 UTC](https://meta.discourse.org/t/job-exception-451-error-while-writing-spool-file-do-i-need-to-worry/51831/3 "2019-03-21T05:58:12Z")

</div>



---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年三月21日 06:02 UTC](https://meta.discourse.org/t/job-exception-451-error-while-writing-spool-file-do-i-need-to-worry/51831/4 "2019-03-21T06:02:05Z")

</div>


