In v60.1 attempting to run statuschecks.py at CLI as admin panel timeout. Error when running at CLI is dns.name.EmptyLabel: A DNS label is empty
What have I setup incorrectly? Thanks
What is the exact command you’re running? And what is the current working directory? (pwd
)
troubleshooting further when I add a new user with new domain in admin panel it throws Internal Server Error window. in syslog … Zone not read, error: Syntax error, could not parse the RR’s rdata at /etc/nsd/zones/<<domain.com>>.txt line 14
Jan 6 02:04:09 box start[1516]: [2023-01-06 02:04:09,140] ERROR in app: Exception on /mail/users/add [POST]
This issue seems to drive the next issue at statuschecks.py
The original users/domains running on the box work fine but getting follwoing error when attempting user add to existing domain
[2023-01-06 02:09:33,682] ERROR in app: Exception on /mail/users/add [POST]
Jan 6 02:09:33 box start[1516]: Traceback (most recent call last):
Jan 6 02:09:33 box start[1516]: File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py”, line 2525, in wsgi_app
Jan 6 02:09:33 box start[1516]: response = self.full_dispatch_request()
Jan 6 02:09:33 box start[1516]: File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py”, line 1822, in full_dispatch_request
Jan 6 02:09:33 box start[1516]: rv = self.handle_user_exception(e)
Jan 6 02:09:33 box start[1516]: File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py”, line 1820, in full_dispatch_request
Jan 6 02:09:33 box start[1516]: rv = self.dispatch_request()
Jan 6 02:09:33 box start[1516]: File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py”, line 1796, in dispatch_request
Jan 6 02:09:33 box start[1516]: return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Jan 6 02:09:33 box start[1516]: File “/root/mailinabox/management/daemon.py”, line 75, in newview
Jan 6 02:09:33 box start[1516]: return viewfunc(*args, **kwargs)
Jan 6 02:09:33 box start[1516]: File “/root/mailinabox/management/daemon.py”, line 196, in mail_users_add
Jan 6 02:09:33 box start[1516]: return add_mail_user(request.form.get(‘email’, ‘’), request.form.get(‘password’, ‘’), request.form.get(‘privileges’, ‘’), env)
Jan 6 02:09:33 box start[1516]: File “/root/mailinabox/management/mailconfig.py”, line 316, in add_mail_user
Jan 6 02:09:33 box start[1516]: return kick(env, “mail user added”)
File “/root/mailinabox/management/mailconfig.py”, line 601, in kick
Jan 6 02:09:33 box start[1516]: results.append( do_dns_update(env) )
Jan 6 02:09:33 box start[1516]: File “/root/mailinabox/management/dns_update.py”, line 93, in do_dns_update
Jan 6 02:09:33 box start[1516]: if write_nsd_conf(zonefiles, list(get_custom_dns_config(env)), env):
Jan 6 02:09:33 box start[1516]: File “/root/mailinabox/management/dns_update.py”, line 629, in write_nsd_conf
Jan 6 02:09:33 box start[1516]: for ipaddr in get_secondary_dns(additional_records, mode=“xfr”):
Jan 6 02:09:33 box start[1516]: File “/root/mailinabox/management/dns_update.py”, line 1012, in get_secondary_dns
Jan 6 02:09:33 box start[1516]: response = dns.resolver.resolve(hostname+’.’, “A”, raise_on_no_answer=False)
Jan 6 02:09:33 box start[1516]: File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/dns/resolver.py”, line 1193, in resolve
Jan 6 02:09:33 box start[1516]: return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source,
Jan 6 02:09:33 box start[1516]: File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/dns/resolver.py”, line 1049, in resolve
Jan 6 02:09:33 box start[1516]: resolution = _Resolution(self, qname, rdtype, rdclass, tcp,
Jan 6 02:09:33 box start[1516]: File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/dns/resolver.py”, line 543, in init
Jan 6 02:09:33 box start[1516]: qname = dns.name.from_text(qname, None)
Jan 6 02:09:33 box start[1516]: File “/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/dns/name.py”, line 942, in from_text
Jan 6 02:09:33 box start[1516]: raise EmptyLabel
Jan 6 02:09:33 box start[1516]: dns.name.EmptyLabel: A DNS label is empty.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.