Here is the sudo journalctl -u mailinabox output:
[ERROR] Worker (pid:487859) was sent SIGKILL! Perhaps out of memory?
[INFO] Booting worker with pid: 804816
[487814] [INFO] Control socket listening at /root/.gunicorn/gunicorn.ctl
localhost:50301 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.16
localhost:50301 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.16
localhost:50301 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.16
localhost:50301 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.16
systemd[1]: mailinabox.service: A process of this unit has been killed by the OOM killer.
From Syslog I pulled a bit more info about these pid’s:
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/mailinabox.service,task=gunicorn,pid=487859,uid=0
Out of memory: Killed process 487859 (gunicorn) total-vm:95392kB, anon-rss:0kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:236kB oom_score_adj:0
[ERROR] Worker (pid:487859) was sent SIGKILL! Perhaps out of memory?
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/mailinabox.service,task=gunicorn,pid=804816,uid=0
Out of memory: Killed process 804816 (gunicorn) total-vm:351180kB, anon-rss:7428kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:340kB oom_score_adj:0
[487814] [ERROR] Worker (pid:487859) was sent SIGKILL! Perhaps out of memory?
[487814] [INFO] Control socket listening at /root/.gunicorn/gunicorn.ctl
I checked memory:
Real memory is at 60% free
Virtual memory is at 34% free
Box Status Checks Change Notice:
Overnight I received a Status Checks Change Notice email for the box with errors that appear mostly connected to backup.
I saw the Duplicity post indicating - python3-gnupg - fixes the issue. I installed it and confirmed backups are working.
I just can’t view the admin panel page for Status Checks or see the backups under Backup Status.
Giving up after 5 attempts. AttributeError: ‘NoneType’ object has no attribute ‘objects’. (for trace back: set log level DEBUG)
BackendException: ‘NoneType’ object has no attribute ‘objects’
Traceback (most recent call last):
File “/root/mailinabox/management/status_checks.py”, line 1179, in
run_and_output_changes(env, pool)
File “/root/mailinabox/management/status_checks.py”, line 1020, in run_and_output_changes
run_checks(True, env, cur, pool)
File “/root/mailinabox/management/status_checks.py”, line 63, in run_checks
run_system_checks(rounded_values, env, output)
File “/root/mailinabox/management/status_checks.py”, line 160, in run_system_checks
check_backup(rounded_values, env, output)
File “/root/mailinabox/management/status_checks.py”, line 278, in check_backup
backup_stat = backup_status(env)
File “/root/mailinabox/management/backup.py”, line 72, in backup_status
raise Exception("Something is wrong with the backup: " + collection_status)
Exception: Something is wrong with the backup: Attempt of list Nr. 1 failed. ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden
WARNING 1
. Attempt of list Nr. 1 failed. ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden
Attempt of list Nr. 2 failed. AttributeError: ‘NoneType’ object has no attribute ‘objects’
WARNING 1
. Attempt of list Nr. 2 failed. AttributeError: ‘NoneType’ object has no attribute ‘objects’
Attempt of list Nr. 3 failed. AttributeError: ‘NoneType’ object has no attribute ‘objects’
WARNING 1
. Attempt of list Nr. 3 failed. AttributeError: ‘NoneType’ object has no attribute ‘objects’
Attempt of list Nr. 4 failed. AttributeError: ‘NoneType’ object has no attribute ‘objects’
WARNING 1
. Attempt of list Nr. 4 failed. AttributeError: ‘NoneType’ object has no attribute ‘objects’
ERROR 50 list
. Giving up after 5 attempts. AttributeError: ‘NoneType’ object has no attribute ‘objects’. (for trace back: set log level DEBUG)
Duplicity backup complete.
NOTICE 1
. Duplicity backup complete.
ERROR 50 BackendException
. BackendException: ‘NoneType’ object has no attribute ‘objects’