Skip to content

python error on initial deploy: AttributeError: 'NoneType' object has no attribute 'split' #744

@Simon-Laux

Description

@Simon-Laux
  • Server OS (Operating System) - preferably Debian 12: debian 11 bullseye
  • On which OS you run cmdeploy: nixos
  • chatmail/relay version: 96108bb

Expected behavior

deploy sucessfully

Actual behavior

got an error

Logs

scripts/cmdeploy run
[ssh] login to chat.neochat.de
** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html
[ssh] Collecting initial DNS settings.
............Traceback (most recent call last):
  File "/home/user/relay/venv/bin/cmdeploy", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/user/relay/cmdeploy/src/cmdeploy/cmdeploy.py", line 406, in main
    res = args.func(args, out, **kwargs)
  File "/home/user/relay/cmdeploy/src/cmdeploy/cmdeploy.py", line 90, in run_cmd
    remote_data = dns.get_initial_remote_data(sshexec, args.config.mail_domain)
  File "/home/user/relay/cmdeploy/src/cmdeploy/dns.py", line 10, in get_initial_remote_data
    return sshexec.logged(
           ~~~~~~~~~~~~~~^
        call=remote.rdns.perform_initial_checks, kwargs=dict(mail_domain=mail_domain)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/user/relay/cmdeploy/src/cmdeploy/sshexec.py", line 79, in logged
    return self(call, kwargs, log_callback=print_stderr)
  File "/home/user/relay/cmdeploy/src/cmdeploy/sshexec.py", line 71, in __call__
    raise self.FuncError(data)
cmdeploy.sshexec.FuncError: Traceback (most recent call last):
  File "/root/from-cmdeploy/remote/_sshexec_bootstrap.py", line 18, in _handle_one_request
    res = func(**kwargs)
  File "/root/from-cmdeploy/remote/rdns.py", line 40, in perform_initial_checks
    parts = query_dns("TXT", f"_mta-sts.{mail_domain}").split("id=")
AttributeError: 'NoneType' object has no attribute 'split'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions