Project

General

Profile

Bug #28568

Quota exceeded messages

Added by Jason Prokopowich over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
No priority
Assignee:
Timur Bakeyev
Category:
OS
Target version:
Seen in:
Severity:
Reason for Closing:
User Configuration Error
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I am seeing this in the maillog,

Feb 17 07:05:10 storage /middlewared79163: sending mail to
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Subject: storage.local: Quota exceeded on data

Note that mail delivery works when sending a test email.


Related issues

Related to FreeNAS - Bug #28590: Mail fixes regarding the "to address" and failed attempts Done

History

#1 Updated by Timur Bakeyev over 1 year ago

That sounds like receiving end of your mail system has limitations on the inbox size or incoming mail size.

Can you, please, attach debug log to the ticket?

#2 Updated by Jason Prokopowich over 1 year ago

  • File debug.log added

#3 Updated by Timur Bakeyev over 1 year ago

  • Private changed from No to Yes

#4 Updated by Timur Bakeyev over 1 year ago

Sorry, I meant the debug log you obtain via System -> Advanced -> Save debug.

That would contain overall debug information regarding your system.

Right, GMail now limits incoming mail to somewhat 150Mb, which is unlikely we are going to send.

220 mx.google.com ESMTP k3si4158321edk.44 - gsmtp
EHLO you
250-mx.google.com at your service, [95.211.181.32]
250-SIZE 157286400
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8

But can you check at the bottom of your GMail account page, what is your overall mailbox usage? Could it be that you close to it's maximum?

Like:

0.21 GB (0%) of 30 GB used

#6 Updated by Jason Prokopowich over 1 year ago

  • File deleted (debug.log)

#7 Updated by Jason Prokopowich over 1 year ago

  • File debug-storage-20180219054814.tgz added

Timur Bakeyev wrote:

https://www.lifewire.com/how-to-check-your-gmail-storage-quota-3572140

Here is my usage,
0.16 GB (1%) of 15 GB used

Sorry, and attached is the debug you requested.

#8 Updated by Dru Lavigne over 1 year ago

  • Category set to OS
  • Assignee changed from Release Council to Timur Bakeyev
  • Target version set to 11.2-RC2

Timur: do you see any issues in the debug?

#9 Updated by Timur Bakeyev over 1 year ago

  • Status changed from Not Started to Closed
  • Target version changed from 11.2-RC2 to N/A
  • Reason for Closing set to User Configuration Error

I see two problems here:

[2018/02/18 11:24:51] (DEBUG) MailService.send_mail_queue():319 - Sending message from queue failed
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/mail.py", line 316, in send_mail_queue
    server.sendmail(queue.message['From'], queue.message['To'].split(', '), queue.message.as_string())
  File "/usr/local/lib/python3.6/smtplib.py", line 881, in sendmail
    raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'': (555, b'5.5.2 Syntax error. g186sm4786138itg.2 - gsmtp')}

The mail recipient address, apparently, not configured at all in the system or is not a valid e-mail address.

At the top of it, you reached quota for one of your shares, namely:

"subject": "storage.local: Quota exceeded on dataset main/cameras" 
Quota exceeded on dataset main/cameras.
Used 100.00% (966.37 GB of 966.37 GB)

#10 Updated by Timur Bakeyev over 1 year ago

I'm curious, what address is specified in the e-mail address field. Your Gmail address, you used to register this account, seems to be pretty normal.

#11 Updated by Timur Bakeyev over 1 year ago

  • Related to Bug #28590: Mail fixes regarding the "to address" and failed attempts added

#12 Updated by Jason Prokopowich over 1 year ago

Timur Bakeyev wrote:

I'm curious, what address is specified in the e-mail address field. Your Gmail address, you used to register this account, seems to be pretty normal.

I am using the same email address ... in essence the send (TO) and receive (FROM) addresses are the same. Note that I do receive some messages.

#13 Updated by Jason Prokopowich over 1 year ago

Jason Prokopowich wrote:

Timur Bakeyev wrote:

I'm curious, what address is specified in the e-mail address field. Your Gmail address, you used to register this account, seems to be pretty normal.

I am using the same email address ... in essence the send (TO) and receive (FROM) addresses are the same. Note that I do receive some messages.

And where exactly is the alert email address configured. I have the email address configured for root also.

#14 Updated by Timur Bakeyev over 1 year ago

That what I'd assume from the previous messages, but somehow in the logs I see:

...
       "to": [
          "" 
        ],
...

An empty TO address... I've created a ticket regarding this issue, so we'll see what else could go wrong.

Meanwhile, please take a look on your dataset which got quota exceeded and fix the problem. One side effect of the current situation is that multiple mail processes got created and now you have more than 1K of them in the air, trying to send you the message. Which can slow down your system.

#15 Updated by Timur Bakeyev over 1 year ago

Jason Prokopowich wrote:

Jason Prokopowich wrote:

Timur Bakeyev wrote:

I'm curious, what address is specified in the e-mail address field. Your Gmail address, you used to register this account, seems to be pretty normal.

I am using the same email address ... in essence the send (TO) and receive (FROM) addresses are the same. Note that I do receive some messages.

And where exactly is the alert email address configured. I have the email address configured for root also.

In general that should be root - check Account -> Users -> View Users -> root -> Change E-mail. But I'll wait reply from the related developer to be precise.

#16 Updated by Jason Prokopowich over 1 year ago

Timur Bakeyev wrote:

That what I'd assume from the previous messages, but somehow in the logs I see:
[...]

An empty TO address... I've created a ticket regarding this issue, so we'll see what else could go wrong.

Meanwhile, please take a look on your dataset which got quota exceeded and fix the problem. One side effect of the current situation is that multiple mail processes got created and now you have more than 1K of them in the air, trying to send you the message. Which can slow down your system.

Thanks ... I have since increased my quota and space reserve for the dataset.

#17 Updated by Timur Bakeyev over 1 year ago

Can you, please, run:

# midclt call mail.config

And quote output here? And also:

# midclt call user.query '[["username", "=", "root"]]'

#18 Updated by Timur Bakeyev over 1 year ago

Or even:

# midclt call user.query '[["username", "=", "root"]]' | jq '.[]|.email'

#20 Updated by Timur Bakeyev over 1 year ago

Sure we don't need your password, just to verify that corresponding fields are properly set..

#21 Updated by Jason Prokopowich over 1 year ago

Timur Bakeyev wrote:

Sure we don't need your password, just to verify that corresponding fields are properly set..

Over the past few weeks I restarted the NAS and receive the following emails. Why would I be getting quota exceed messages if I haven't exceeded the quotas?

Subject: storage.local: Quota exceeded on dataset main/storage
Date: Tue, 06 Mar 2018 23:57:39 -0000
From:
To:

Quota exceeded on dataset main/storage.
Used 88.19% (331.42 GB of 375.81 GB)

Subject: storage.local: Quota exceeded on dataset main/music
Date: Tue, 06 Mar 2018 23:57:39 -0000
From:
To:

Quota exceeded on dataset main/music.
Used 80.46% (86.4 GB of 107.37 GB)

#22 Updated by Dru Lavigne over 1 year ago

Jason: that looks like the built-in alert for when the pool exceeds 80% usage.

#23 Updated by Dru Lavigne over 1 year ago

  • File deleted (debug-storage-20180219054814.tgz)

#24 Updated by Dru Lavigne over 1 year ago

  • Private changed from Yes to No

Also available in: Atom PDF