Constant "Something went wrong, sorry" messasge

Hi All,

I’m new here, please bear with me.

I just setup MiaB last night. I created MiaB with DOMAIN1 (D1) and went to sleep having added nothing more than the initial email address during setup.

This morning, I logged into MiaB and created a single user for D2. When I go to External DNS (so I can see the settings it created), I get the “something went wrong” message. I have tried rebooting but no luck.

I did not touch anything else becasue I don’t want to make things worse.

To recap:

  1. Installed MiaB with a single user for D1
  2. Created a single user for D2.
  3. Cannot see the External DNS page because of error

I’m also new to Linux, so please keep that in mind with any suggestions.

Thank you very much for your time and help.

Unfortunately, you might need some Linux skillzzz. Try sudo journalctl -u mailinabox.service -n 20 on the box to see if something useful is printed there.

1 Like

Hi @KiekerJan thank you for the reply and help.

I ran the command. All of the text below between the ==== (which I added here for illustration) was in red

I changed the domain name of the 2nd domain to D2.com in the text below for privacy reasons.

Thanks!

CB

Jan 05 13:20:02 mail.magicmonkeymail.com start[1622]: return viewfunc(*args, **kwargs)
Jan 05 13:20:02 mail.magicmonkeymail.com start[1622]: File “/root/mailinabox/management/daemon.py”, line 403, in dns_get_zonefile
Jan 05 13:20:02 mail.magicmonkeymail.com start[1622]: return Response(get_dns_zonefile(zone, env), status=200, mimetype=‘text/plain’)
Jan 05 13:20:02 mail.magicmonkeymail.com start[1622]: File “/root/mailinabox/management/dns_update.py”, line 609, in get_dns_zonefile
Jan 05 13:20:02 mail.magicmonkeymail.com start[1622]: with open(nsd_zonefile, “r”) as f:
Jan 05 13:20:02 mail.magicmonkeymail.com start[1622]: FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/nsd/zones/D2.com.txt’
Jan 05 13:20:02 mail.magicmonkeymail.com gunicorn[1622]:

=====

Exception on /dns/zonefile/D2.com [GET]
Traceback (most recent call last):
File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py”, line 2525, in wsgi_app
response = self.full_dispatch_request()
File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py”, line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py”, line 1820, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py”, line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File “/root/mailinabox/management/daemon.py”, line 75, in newview
return viewfunc(*args, **kwargs)
File “/root/mailinabox/management/daemon.py”, line 403, in dns_get_zonefile
return Response(get_dns_zonefile(zone, env), status=200, mimetype=‘text/plain’)
File “/root/mailinabox/management/dns_update.py”, line 609, in get_dns_zonefile
with open(nsd_zonefile, “r”) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/nsd/zones/D2.com.txt’

=====

Jan 05 13:28:52 mail.magicmonkeymail.com start[1611]: [2023-01-05 13:28:52 -0500] [1611] [INFO] Handling signal: term
Jan 05 13:28:52 mail.magicmonkeymail.com start[1622]: [2023-01-05 13:28:52 -0500] [1622] [INFO] Worker exiting (pid: 1622)
Jan 05 13:28:52 mail.magicmonkeymail.com systemd[1]: Stopping Mail-in-a-Box System Management Service…
Jan 05 13:28:52 mail.magicmonkeymail.com start[1611]: [2023-01-05 13:28:52 -0500] [1611] [WARNING] Worker with pid 1622 was terminated due to signal 15
Jan 05 13:28:52 mail.magicmonkeymail.com start[1611]: [2023-01-05 13:28:52 -0500] [1611] [INFO] Shutting down: Master
Jan 05 13:28:52 mail.magicmonkeymail.com systemd[1]: mailinabox.service: Deactivated successfully.
Jan 05 13:28:52 mail.magicmonkeymail.com systemd[1]: Stopped Mail-in-a-Box System Management Service.
Jan 05 13:28:52 mail.magicmonkeymail.com systemd[1]: mailinabox.service: Consumed 4.065s CPU time.
– Boot 9371a1f4e6e149f79f6eb7cc32cd1f23 –
Jan 05 13:30:08 mail.magicmonkeymail.com systemd[1]: Started Mail-in-a-Box System Management Service.
Jan 05 13:30:08 mail.magicmonkeymail.com start[1782]: [2023-01-05 13:30:08 -0500] [1782] [INFO] Starting gunicorn 20.1.0
Jan 05 13:30:08 mail.magicmonkeymail.com start[1782]: [2023-01-05 13:30:08 -0500] [1782] [INFO] Listening at: http://127.0.0.1:10222 (1782)
Jan 05 13:30:08 mail.magicmonkeymail.com start[1782]: [2023-01-05 13:30:08 -0500] [1782] [INFO] Using worker: sync
Jan 05 13:30:08 mail.magicmonkeymail.com start[1794]: [2023-01-05 13:30:08 -0500] [1794] [INFO] Booting worker with pid: 1794

Update - I went ahead and recreated the VM, then reinstalled MiaB since it was so new. It works fine now. Thanks again for your time.

1 Like

I had this issue as well and created a bug report on Github here. I haven’t pursued it further because it’s still possible to download the DNS zonefile to see the DNS entries.