Configure mail fails

Running ns8 on minimal Rocky install.

Initial configure of mail gives:

Task get-defaults failed. ID: 1c9c3770-0041-41ad-b2ce-baca11c87d48

With the following More info:

{
  "context": {
    "action": "get-defaults",
    "data": null,
    "extra": {
      "eventId": "adf10655-6cf8-4a3b-8d38-f7ae6bdd128e",
      "isNotificationHidden": true,
      "title": "Get defaults"
    },
    "id": "1c9c3770-0041-41ad-b2ce-baca11c87d48",
    "parent": "",
    "queue": "module/mail1/tasks",
    "timestamp": "2023-05-12T19:12:24.834439124Z",
    "user": "admin"
  },
  "status": "aborted",
  "progress": 100,
  "subTasks": [],
  "validated": true,
  "result": {
    "error": "Validation errors: [mail_domain: Must validate one and only one schema (oneOf) mail_domain: Does not match pattern '\\.']\n",
    "exit_code": 1,
    "file": "task/module/mail1/1c9c3770-0041-41ad-b2ce-baca11c87d48",
    "output": {
      "hostname": "localhost.localdomain",
      "mail_domain": "localdomain",
      "user_domains": [
        {
          "base_dn": "DC=ad,DC=bogolinux,DC=net",
          "bind_dn": "ldapservice@ad.bogolinux.net",
          "bind_password": "0yK93Vysv14RKztplqfC,ixPLdjLw6G^",
          "location": "internal",
          "name": "ad.bogolinux.net",
          "protocol": "ldap",
          "providers": [
            {
              "file_server": true,
              "host": "192.168.0.145",
              "id": "samba1",
              "node": 1,
              "port": 636,
              "ui_name": ""
            }
          ],
          "schema": "ad",
          "tls": true,
          "tls_verify": false
        }
      ]
    }
  }
}

I also noticed throughout the install, the following numerous times:

/etc/rc.d/rc.local is not marked executable, skipping

Cheers.

1 Like

your hostname is not configured on your machine, please do it with hostnamectl and also add the FQDN (machine.domain.com) to your /etc/hosts

[root@R3-pve ~]# hostnamectl hostname R3-pve.rocky9-pve3.org

[root@R3-pve ~]# cat /etc/hosts 
127.0.0.1   R3-pve.rocky9-pve3.org localhost localhost.localdomain localhost4 localhost4.localdomain4 
::1         R3-pve.rocky9-pve3.org localhost localhost.localdomain localhost6 localhost6.localdomain6

I configured the FQDN during the Rocky install. And the NS8 install forced me to add an entry in /etc/hosts. Here is what I have currently:

[root@ns8 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 ns8.bogolinux.net
127.0.0.1 cluster-leader
10.5.4.1 cluster-localnode
[root@ns8 ~]# hostname
ns8.bogolinux.net
[root@ns8 ~]#

Cheers.

I think you need to use the network interface IP address instead of 127.0.0.1 like

192.168.1.1 ns8.bogolinux.net

EDIT:

Or as @stephdl recommended, in one line:

127.0.0.1 ns8.bogolinux.net localhost localhost.localdomain localhost4 localhost4.localdomain4

1 Like

@EddieA,

i did it as recommended by @stephdl. After that the installation of the mail module worked without problems.

Regards…

Uwe

1 Like

well with NS8, the dns matters a lot, imagine that a container looks like a virtual machine, so to reach a container even on the localhost, we need a full valid dns entry.

1 Like

That works as long as it’s before any other entry with a “dot”.

That’s not the point. I built the Rocky base with a fully qualified hostname. I followed the instructions in the install to echo my hostname to /etc/hosts. At that point I expect things to work

Guess this is one of the reasons for a Beta.

Cheers.

I agree.
The bug should be already fixed in module version 1.1.2

2 Likes

confirmed if I do this

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1  R2-pve.rocky9-pve2.org
1 Like

@EddieA could you check the version you have installed inside the software center, I guess it is 1.1.1

Correct.

Cheers.

1 Like

it should be good to upgrade, thank to @giacomo

2 Likes

After trashing my cluster (more on that later, maybe), I re-installed Rocky minimal, ran the updates, which upgraded it to 9.2. Then ran the NS8 curl and install (as at 19:00 Pacific time). It still asked me to echo the FQDN to /etc/hosts, but instead of that I did what I did previously, to add the FQDN as the first entry for 127.0.0.1 in /etc/hosts.

Created the Cluster, installed a couple of packages, CrowdSec and Nginix. Then went to install Mail, expecting it to throw up it’s usual warning about not having a Domain and asking me to create one. Nope, instead I got this failure:

Summary
{
  "context": {
    "action": "add-module",
    "data": {
      "image": "ghcr.io/nethserver/mail:1.1.3",
      "node": 1
    },
    "extra": {
      "completion": {
        "extraTextParams": [
          "node"
        ],
        "i18nString": "software_center.instance_installed_on_node",
        "outputTextParams": [
          "module_id"
        ]
      },
      "description": "Installing on Node 1",
      "eventId": "5ea3c419-17e4-4893-b7fe-b759aefb3812",
      "node": "Node 1",
      "title": "Install Mail"
    },
    "id": "9883630d-8a53-4eec-8509-336c1fa8445e",
    "parent": "",
    "queue": "cluster/tasks",
    "timestamp": "2023-05-17T02:12:23.435715264Z",
    "user": "admin"
  },
  "status": "aborted",
  "progress": 33,
  "subTasks": [
    {
      "context": {
        "action": "add-module",
        "data": {
          "environment": {
            "IMAGE_DIGEST": "sha256:120cd0e38e206e9492ccbeb392b6a7161797453e2ede409377627e10c8f9eb24",
            "IMAGE_ID": "bb529ab9b44ae19cba3b1e73492ba9fe24ee181309a48b7fd4b862a620b7b3a9",
            "IMAGE_REOPODIGEST": "ghcr.io/nethserver/mail@sha256:120cd0e38e206e9492ccbeb392b6a7161797453e2ede409377627e10c8f9eb24",
            "IMAGE_URL": "ghcr.io/nethserver/mail:1.1.3",
            "MODULE_ID": "mail1",
            "MODULE_UUID": "26c1c91e-d96c-41d8-9f32-c69db5a1dcbb",
            "NODE_ID": "1"
          },
          "is_rootfull": false,
          "module_id": "mail1"
        },
        "extra": {},
        "id": "46eb58f3-7769-46b3-9a8e-3271c744af70",
        "parent": "9883630d-8a53-4eec-8509-336c1fa8445e"
      },
      "status": "completed",
      "progress": 100,
      "subTasks": [],
      "result": {
        "error": "<7>useradd -m -k /etc/nethserver/skel -s /bin/bash mail1\n<7>extract-image ghcr.io/nethserver/mail:1.1.3\nExtracting container filesystem imageroot to /home/mail1/.config\nTotal bytes read: 9881600 (9.5MiB, 82MiB/s)\nimageroot/actions/\nimageroot/actions/add-address/\nimageroot/actions/add-address/20add_address\nimageroot/actions/add-address/validate-input.json\nimageroot/actions/add-bypass-rule/\nimageroot/actions/add-bypass-rule/10add_bypass_rule\nimageroot/actions/add-bypass-rule/validate-input.json\nimageroot/actions/add-domain/\nimageroot/actions/add-domain/10add_domain\nimageroot/actions/add-domain/90postfix_reload\nimageroot/actions/add-domain/validate-input.json\nimageroot/actions/add-public-mailbox/\nimageroot/actions/add-public-mailbox/20add_public_mailbox\nimageroot/actions/add-public-mailbox/validate-input.json\nimageroot/actions/alter-address/\nimageroot/actions/alter-address/20alter_address\nimageroot/actions/alter-address/validate-input.json\nimageroot/actions/alter-domain/\nimageroot/actions/alter-domain/10alter_domain\nimageroot/actions/alter-domain/90postfix_reload\nimageroot/actions/alter-domain/validate-input.json\nimageroot/actions/alter-domain/validate-output.json\nimageroot/actions/alter-public-mailbox/\nimageroot/actions/alter-public-mailbox/20alter_public_mailbox\nimageroot/actions/alter-public-mailbox/validate-input.json\nimageroot/actions/alter-user-mailbox/\nimageroot/actions/alter-user-mailbox/20alter_user_mailbox\nimageroot/actions/alter-user-mailbox/validate-input.json\nimageroot/actions/clone-module/\nimageroot/actions/clone-module/95certificate\nimageroot/actions/clone-module/95publish_srv_keys\nimageroot/actions/configure-module/\nimageroot/actions/configure-module/20configure\nimageroot/actions/configure-module/50start_services\nimageroot/actions/configure-module/90certificate\nimageroot/actions/configure-module/90mail_domain\nimageroot/actions/configure-module/90publish_srv_keys\nimageroot/actions/configure-module/90traefik\nimageroot/actions/configure-module/validate-input.json\nimageroot/actions/create-module/\nimageroot/actions/create-module/20dhgen\nimageroot/actions/create-module/20spam-expunge\nimageroot/actions/create-module/30grants\nimageroot/actions/create-module/90firewall\nimageroot/actions/destroy-module/\nimageroot/actions/destroy-module/30traefik\nimageroot/actions/destroy-module/90firewall\nimageroot/actions/flush-postfix-queue/\nimageroot/actions/flush-postfix-queue/10flush_postfix_queue_action\nimageroot/actions/flush-postfix-queue/validate-input.json\nimageroot/actions/get-configuration/\nimageroot/actions/get-configuration/20read\nimageroot/actions/get-configuration/validate-output.json\nimageroot/actions/get-defaults/\nimageroot/actions/get-defaults/10get_defaults\nimageroot/actions/get-defaults/validate-output.json\nimageroot/actions/get-domain-dkim/\nimageroot/actions/get-domain-dkim/10get_domain_dkim\nimageroot/actions/get-domain-dkim/validate-input.json\nimageroot/actions/get-domain-dkim/validate-output.json\nimageroot/actions/get-filter-configuration/\nimageroot/actions/get-filter-configuration/10get_filter_configuration\nimageroot/actions/get-filter-configuration/validate-output.json\nimageroot/actions/get-mailbox-settings/\nimageroot/actions/get-mailbox-settings/10get_mailbox_settings\nimageroot/actions/get-mailbox-settings/validate-output.json\nimageroot/actions/get-master-users/\nimageroot/actions/get-master-users/10get_master_users\nimageroot/actions/get-master-users/validate-output.json\nimageroot/actions/import-module/\nimageroot/actions/import-module/20import_environment\nimageroot/actions/import-module/35migrate_maildirs\nimageroot/actions/import-module/40configure_module\nimageroot/actions/import-module/50import_dkim\nimageroot/actions/import-module/50import_domains\nimageroot/actions/import-module/55import_addresses\nimageroot/actions/import-module/55import_filter\nimageroot/actions/import-module/60quota_recalc\nimageroot/actions/list-acl-subjects/\nimageroot/actions/list-acl-subjects/10list_acl_subjects\nimageroot/actions/list-acl-subjects/validate-output.json\nimageroot/actions/list-addresses/\nimageroot/actions/list-addresses/10list_addresses\nimageroot/actions/list-addresses/validate-output.json\nimageroot/actions/list-bypass-rules/\nimageroot/actions/list-bypass-rules/10list_bypass_rules\nimageroot/actions/list-bypass-rules/validate-output.json\nimageroot/actions/list-destinations/\nimageroot/actions/list-destinations/10list_destinations\nimageroot/actions/list-destinations/validate-output.json\nimageroot/actions/list-domains/\nimageroot/actions/list-domains/10list_domains\nimageroot/actions/list-domains/validate-output.json\nimageroot/actions/list-public-mailboxes/\nimageroot/actions/list-public-mailboxes/10list_public_mailboxes\nimageroot/actions/list-public-mailboxes/validate-output.json\nimageroot/actions/list-user-mailboxes/\nimageroot/actions/list-user-mailboxes/10list_user_mailboxes\nimageroot/actions/list-user-mailboxes/validate-output.json\nimageroot/actions/remove-address/\nimageroot/actions/remove-address/20remove_address\nimageroot/actions/remove-address/validate-input.json\nimageroot/actions/remove-bypass-rule/\nimageroot/actions/remove-bypass-rule/10remove_bypass_rule\nimageroot/actions/remove-bypass-rule/validate-input.json\nimageroot/actions/remove-domain/\nimageroot/actions/remove-domain/10remove_domain\nimageroot/actions/remove-domain/90postfix_reload\nimageroot/actions/remove-domain/validate-input.json\nimageroot/actions/remove-public-mailbox/\nimageroot/actions/remove-public-mailbox/20remove_public_mailbox\nimageroot/actions/remove-public-mailbox/validate-input.json\nimageroot/actions/report-queue-status/\nimageroot/actions/report-queue-status/10report_queue_status\nimageroot/actions/report-queue-status/validate-output.json\nimageroot/actions/restore-module/\nimageroot/actions/restore-module/06copyenv\nimageroot/actions/restore-module/70configure_module\nimageroot/actions/restore-module/90load_pcdb\nimageroot/actions/reveal-master-credentials/\nimageroot/actions/reveal-master-credentials/20reveal_master_credentials\nimageroot/actions/reveal-master-credentials/validate-output.json\nimageroot/actions/set-domain-dkim/\nimageroot/actions/set-domain-dkim/10set_domain_dkim\nimageroot/actions/set-domain-dkim/validate-input.json\nimageroot/actions/set-filter-configuration/\nimageroot/actions/set-filter-configuration/10set_filter_configuration\nimageroot/actions/set-filter-configuration/20reload_filter_services\nimageroot/actions/set-filter-configuration/validate-input.json\nimageroot/actions/set-mailbox-enabled/\nimageroot/actions/set-mailbox-enabled/30set_mailbox_enabled\nimageroot/actions/set-mailbox-enabled/validate-input.json\nimageroot/actions/set-mailbox-settings/\nimageroot/actions/set-mailbox-settings/10set_mailbox_settings\nimageroot/actions/set-mailbox-settings/20reload_dovecot\nimageroot/actions/set-mailbox-settings/validate-input.json\nimageroot/actions/set-master-users/\nimageroot/actions/set-master-users/10set_master_users\nimageroot/actions/set-master-users/20reload_dovecot\nimageroot/actions/set-master-users/validate-input.json\nimageroot/bin/\nimageroot/bin/discover-services\nimageroot/bin/generate-dhpem\nimageroot/bin/install-certificate\nimageroot/bin/module-cleanup-state\nimageroot/bin/module-dump-state\nimageroot/etc/\nimageroot/etc/state-exclude.conf\nimageroot/etc/state-include.conf\nimageroot/events/\nimageroot/events/certificate-updated/\nimageroot/events/certificate-updated/00validate_event\nimageroot/events/certificate-updated/20install_certificate\nimageroot/events/user-domain-changed/\nimageroot/events/user-domain-changed/20configure_ldap\nimageroot/pypkg/\nimageroot/pypkg/mail.py\nimageroot/systemd/\nimageroot/systemd/user/\nimageroot/systemd/user/clamav-unofficial-sigs.service\nimageroot/systemd/user/clamav-unofficial-sigs.timer\nimageroot/systemd/user/clamav.service\nimageroot/systemd/user/dhgen.service\nimageroot/systemd/user/dhgen.timer\nimageroot/systemd/user/dovecot.service\nimageroot/systemd/user/freshclam.service\nimageroot/systemd/user/freshclam.timer\nimageroot/systemd/user/postfix.service\nimageroot/systemd/user/rspamd.service\nimageroot/systemd/user/spam-expunge.service\nimageroot/systemd/user/spam-expunge.timer\nimageroot/update-module.d/\nimageroot/update-module.d/80restart_services\nimageroot/validator-definitions.json\nchanged ownership of './state/environment' from root:root to mail1:mail1\nchanged ownership of './state/agent.env' from root:root to mail1:mail1\nchanged ownership of './systemd/user/clamav-unofficial-sigs.service' from root:root to mail1:mail1\nchanged ownership of './systemd/user/clamav-unofficial-sigs.timer' from root:root to mail1:mail1\nchanged ownership of './systemd/user/clamav.service' from root:root to mail1:mail1\nchanged ownership of './systemd/user/dhgen.service' from root:root to mail1:mail1\nchanged ownership of './systemd/user/dhgen.timer' from root:root to mail1:mail1\nchanged ownership of './systemd/user/dovecot.service' from root:root to mail1:mail1\nchanged ownership of './systemd/user/freshclam.service' from root:root to mail1:mail1\nchanged ownership of './systemd/user/freshclam.timer' from root:root to mail1:mail1\nchanged ownership of './systemd/user/postfix.service' from root:root to mail1:mail1\nchanged ownership of './systemd/user/rspamd.service' from root:root to mail1:mail1\nchanged ownership of './systemd/user/spam-expunge.service' from root:root to mail1:mail1\nchanged ownership of './systemd/user/spam-expunge.timer' from root:root to mail1:mail1\nchanged ownership of './.imageroot.lst' from root:root to mail1:mail1\nchanged ownership of './actions/add-address/20add_address' from root:root to mail1:mail1\nchanged ownership of './actions/add-address/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/add-address' from root:root to mail1:mail1\nchanged ownership of './actions/add-bypass-rule/10add_bypass_rule' from root:root to mail1:mail1\nchanged ownership of './actions/add-bypass-rule/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/add-bypass-rule' from root:root to mail1:mail1\nchanged ownership of './actions/add-domain/10add_domain' from root:root to mail1:mail1\nchanged ownership of './actions/add-domain/90postfix_reload' from root:root to mail1:mail1\nchanged ownership of './actions/add-domain/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/add-domain' from root:root to mail1:mail1\nchanged ownership of './actions/add-public-mailbox/20add_public_mailbox' from root:root to mail1:mail1\nchanged ownership of './actions/add-public-mailbox/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/add-public-mailbox' from root:root to mail1:mail1\nchanged ownership of './actions/alter-address/20alter_address' from root:root to mail1:mail1\nchanged ownership of './actions/alter-address/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/alter-address' from root:root to mail1:mail1\nchanged ownership of './actions/alter-domain/10alter_domain' from root:root to mail1:mail1\nchanged ownership of './actions/alter-domain/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/alter-domain/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/alter-domain/90postfix_reload' from root:root to mail1:mail1\nchanged ownership of './actions/alter-domain' from root:root to mail1:mail1\nchanged ownership of './actions/alter-public-mailbox/20alter_public_mailbox' from root:root to mail1:mail1\nchanged ownership of './actions/alter-public-mailbox/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/alter-public-mailbox' from root:root to mail1:mail1\nchanged ownership of './actions/alter-user-mailbox/20alter_user_mailbox' from root:root to mail1:mail1\nchanged ownership of './actions/alter-user-mailbox/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/alter-user-mailbox' from root:root to mail1:mail1\nchanged ownership of './actions/clone-module/95publish_srv_keys' from root:root to mail1:mail1\nchanged ownership of './actions/clone-module/95certificate' from root:root to mail1:mail1\nchanged ownership of './actions/clone-module' from root:root to mail1:mail1\nchanged ownership of './actions/configure-module/20configure' from root:root to mail1:mail1\nchanged ownership of './actions/configure-module/50start_services' from root:root to mail1:mail1\nchanged ownership of './actions/configure-module/90certificate' from root:root to mail1:mail1\nchanged ownership of './actions/configure-module/90mail_domain' from root:root to mail1:mail1\nchanged ownership of './actions/configure-module/90publish_srv_keys' from root:root to mail1:mail1\nchanged ownership of './actions/configure-module/90traefik' from root:root to mail1:mail1\nchanged ownership of './actions/configure-module/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/configure-module' from root:root to mail1:mail1\nchanged ownership of './actions/create-module/20dhgen' from root:root to mail1:mail1\nchanged ownership of './actions/create-module/20spam-expunge' from root:root to mail1:mail1\nchanged ownership of './actions/create-module/30grants' from root:root to mail1:mail1\nchanged ownership of './actions/create-module/90firewall' from root:root to mail1:mail1\nchanged ownership of './actions/create-module' from root:root to mail1:mail1\nchanged ownership of './actions/destroy-module/30traefik' from root:root to mail1:mail1\nchanged ownership of './actions/destroy-module/90firewall' from root:root to mail1:mail1\nchanged ownership of './actions/destroy-module' from root:root to mail1:mail1\nchanged ownership of './actions/flush-postfix-queue/10flush_postfix_queue_action' from root:root to mail1:mail1\nchanged ownership of './actions/flush-postfix-queue/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/flush-postfix-queue' from root:root to mail1:mail1\nchanged ownership of './actions/get-configuration/20read' from root:root to mail1:mail1\nchanged ownership of './actions/get-configuration/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/get-configuration' from root:root to mail1:mail1\nchanged ownership of './actions/get-defaults/10get_defaults' from root:root to mail1:mail1\nchanged ownership of './actions/get-defaults/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/get-defaults' from root:root to mail1:mail1\nchanged ownership of './actions/get-domain-dkim/10get_domain_dkim' from root:root to mail1:mail1\nchanged ownership of './actions/get-domain-dkim/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/get-domain-dkim/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/get-domain-dkim' from root:root to mail1:mail1\nchanged ownership of './actions/get-filter-configuration/10get_filter_configuration' from root:root to mail1:mail1\nchanged ownership of './actions/get-filter-configuration/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/get-filter-configuration' from root:root to mail1:mail1\nchanged ownership of './actions/get-mailbox-settings/10get_mailbox_settings' from root:root to mail1:mail1\nchanged ownership of './actions/get-mailbox-settings/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/get-mailbox-settings' from root:root to mail1:mail1\nchanged ownership of './actions/get-master-users/10get_master_users' from root:root to mail1:mail1\nchanged ownership of './actions/get-master-users/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/get-master-users' from root:root to mail1:mail1\nchanged ownership of './actions/import-module/20import_environment' from root:root to mail1:mail1\nchanged ownership of './actions/import-module/35migrate_maildirs' from root:root to mail1:mail1\nchanged ownership of './actions/import-module/40configure_module' from root:root to mail1:mail1\nchanged ownership of './actions/import-module/50import_dkim' from root:root to mail1:mail1\nchanged ownership of './actions/import-module/50import_domains' from root:root to mail1:mail1\nchanged ownership of './actions/import-module/55import_addresses' from root:root to mail1:mail1\nchanged ownership of './actions/import-module/55import_filter' from root:root to mail1:mail1\nchanged ownership of './actions/import-module/60quota_recalc' from root:root to mail1:mail1\nchanged ownership of './actions/import-module' from root:root to mail1:mail1\nchanged ownership of './actions/list-acl-subjects/10list_acl_subjects' from root:root to mail1:mail1\nchanged ownership of './actions/list-acl-subjects/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/list-acl-subjects' from root:root to mail1:mail1\nchanged ownership of './actions/list-addresses/10list_addresses' from root:root to mail1:mail1\nchanged ownership of './actions/list-addresses/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/list-addresses' from root:root to mail1:mail1\nchanged ownership of './actions/list-bypass-rules/10list_bypass_rules' from root:root to mail1:mail1\nchanged ownership of './actions/list-bypass-rules/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/list-bypass-rules' from root:root to mail1:mail1\nchanged ownership of './actions/list-destinations/10list_destinations' from root:root to mail1:mail1\nchanged ownership of './actions/list-destinations/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/list-destinations' from root:root to mail1:mail1\nchanged ownership of './actions/list-domains/10list_domains' from root:root to mail1:mail1\nchanged ownership of './actions/list-domains/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/list-domains' from root:root to mail1:mail1\nchanged ownership of './actions/list-public-mailboxes/10list_public_mailboxes' from root:root to mail1:mail1\nchanged ownership of './actions/list-public-mailboxes/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/list-public-mailboxes' from root:root to mail1:mail1\nchanged ownership of './actions/list-user-mailboxes/10list_user_mailboxes' from root:root to mail1:mail1\nchanged ownership of './actions/list-user-mailboxes/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/list-user-mailboxes' from root:root to mail1:mail1\nchanged ownership of './actions/remove-address/20remove_address' from root:root to mail1:mail1\nchanged ownership of './actions/remove-address/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/remove-address' from root:root to mail1:mail1\nchanged ownership of './actions/remove-bypass-rule/10remove_bypass_rule' from root:root to mail1:mail1\nchanged ownership of './actions/remove-bypass-rule/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/remove-bypass-rule' from root:root to mail1:mail1\nchanged ownership of './actions/remove-domain/10remove_domain' from root:root to mail1:mail1\nchanged ownership of './actions/remove-domain/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/remove-domain/90postfix_reload' from root:root to mail1:mail1\nchanged ownership of './actions/remove-domain' from root:root to mail1:mail1\nchanged ownership of './actions/remove-public-mailbox/20remove_public_mailbox' from root:root to mail1:mail1\nchanged ownership of './actions/remove-public-mailbox/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/remove-public-mailbox' from root:root to mail1:mail1\nchanged ownership of './actions/report-queue-status/10report_queue_status' from root:root to mail1:mail1\nchanged ownership of './actions/report-queue-status/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/report-queue-status' from root:root to mail1:mail1\nchanged ownership of './actions/restore-module/06copyenv' from root:root to mail1:mail1\nchanged ownership of './actions/restore-module/70configure_module' from root:root to mail1:mail1\nchanged ownership of './actions/restore-module/90load_pcdb' from root:root to mail1:mail1\nchanged ownership of './actions/restore-module' from root:root to mail1:mail1\nchanged ownership of './actions/reveal-master-credentials/20reveal_master_credentials' from root:root to mail1:mail1\nchanged ownership of './actions/reveal-master-credentials/validate-output.json' from root:root to mail1:mail1\nchanged ownership of './actions/reveal-master-credentials' from root:root to mail1:mail1\nchanged ownership of './actions/set-domain-dkim/10set_domain_dkim' from root:root to mail1:mail1\nchanged ownership of './actions/set-domain-dkim/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/set-domain-dkim' from root:root to mail1:mail1\nchanged ownership of './actions/set-filter-configuration/10set_filter_configuration' from root:root to mail1:mail1\nchanged ownership of './actions/set-filter-configuration/20reload_filter_services' from root:root to mail1:mail1\nchanged ownership of './actions/set-filter-configuration/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/set-filter-configuration' from root:root to mail1:mail1\nchanged ownership of './actions/set-mailbox-enabled/30set_mailbox_enabled' from root:root to mail1:mail1\nchanged ownership of './actions/set-mailbox-enabled/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/set-mailbox-enabled' from root:root to mail1:mail1\nchanged ownership of './actions/set-mailbox-settings/10set_mailbox_settings' from root:root to mail1:mail1\nchanged ownership of './actions/set-mailbox-settings/20reload_dovecot' from root:root to mail1:mail1\nchanged ownership of './actions/set-mailbox-settings/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/set-mailbox-settings' from root:root to mail1:mail1\nchanged ownership of './actions/set-master-users/10set_master_users' from root:root to mail1:mail1\nchanged ownership of './actions/set-master-users/20reload_dovecot' from root:root to mail1:mail1\nchanged ownership of './actions/set-master-users/validate-input.json' from root:root to mail1:mail1\nchanged ownership of './actions/set-master-users' from root:root to mail1:mail1\nchanged ownership of './actions' from root:root to mail1:mail1\nchanged ownership of './bin/discover-services' from root:root to mail1:mail1\nchanged ownership of './bin/generate-dhpem' from root:root to mail1:mail1\nchanged ownership of './bin/install-certificate' from root:root to mail1:mail1\nchanged ownership of './bin/module-cleanup-state' from root:root to mail1:mail1\nchanged ownership of './bin/module-dump-state' from root:root to mail1:mail1\nchanged ownership of './bin' from root:root to mail1:mail1\nchanged ownership of './etc/state-exclude.conf' from root:root to mail1:mail1\nchanged ownership of './etc/state-include.conf' from root:root to mail1:mail1\nchanged ownership of './etc' from root:root to mail1:mail1\nchanged ownership of './events/certificate-updated/00validate_event' from root:root to mail1:mail1\nchanged ownership of './events/certificate-updated/20install_certificate' from root:root to mail1:mail1\nchanged ownership of './events/certificate-updated' from root:root to mail1:mail1\nchanged ownership of './events/user-domain-changed/20configure_ldap' from root:root to mail1:mail1\nchanged ownership of './events/user-domain-changed' from root:root to mail1:mail1\nchanged ownership of './events' from root:root to mail1:mail1\nchanged ownership of './pypkg/mail.py' from root:root to mail1:mail1\nchanged ownership of './pypkg' from root:root to mail1:mail1\nchanged ownership of './update-module.d/80restart_services' from root:root to mail1:mail1\nchanged ownership of './update-module.d' from root:root to mail1:mail1\nchanged ownership of './validator-definitions.json' from root:root to mail1:mail1\n4b2c052a46ed670f9a5019c99fa573536d22861b80a0f1db0e38568819409f5d\n<7>loginctl enable-linger mail1\n",
        "exit_code": 0,
        "file": "task/node/1/46eb58f3-7769-46b3-9a8e-3271c744af70",
        "output": {
          "redis_sha256": "340fe291641fbcfd0394392a3e20e082f0fd99d94f91a5400ca95cf1613de7b8"
        }
      }
    },

Continued in next post as too big.

Cheers.

Continued:

Summary
    {
      "context": {
        "action": "create-module",
        "data": {
          "images": [
            "ghcr.io/nethserver/mail-dovecot:1.1.3",
            "ghcr.io/nethserver/mail-postfix:1.1.3",
            "ghcr.io/nethserver/mail-rspamd:1.1.3",
            "ghcr.io/nethserver/mail-clamav:1.1.3"
          ]
        },
        "extra": {},
        "id": "4d0d5d06-5c7b-4fd4-9115-cc5d3d2a2270",
        "parent": "9883630d-8a53-4eec-8509-336c1fa8445e"
      },
      "status": "aborted",
      "progress": 0,
      "subTasks": [],
      "result": {
        "error": "Add to module/mail1 environment MAIL_DOVECOT_IMAGE=ghcr.io/nethserver/mail-dovecot:1.1.3\nAdd to module/mail1 environment MAIL_POSTFIX_IMAGE=ghcr.io/nethserver/mail-postfix:1.1.3\nAdd to module/mail1 environment MAIL_RSPAMD_IMAGE=ghcr.io/nethserver/mail-rspamd:1.1.3\nAdd to module/mail1 environment MAIL_CLAMAV_IMAGE=ghcr.io/nethserver/mail-clamav:1.1.3\n<7>dump_env() is deprecated and implemented as a no-op\n<7>podman-pull-missing ghcr.io/nethserver/mail-dovecot:1.1.3 ghcr.io/nethserver/mail-postfix:1.1.3 ghcr.io/nethserver/mail-rspamd:1.1.3 ghcr.io/nethserver/mail-clamav:1.1.3\nTrying to pull ghcr.io/nethserver/mail-dovecot:1.1.3...\nGetting image source signatures\nCopying blob sha256:ebc7eecce5ed0e84823fd885968070b966d5e96baa8a449f0d996f668c4a92da\nCopying blob sha256:3792c967ab0471daa9d5a78ed1494c13d2ec0eff00f03460674c798623e3f872\nError: reading blob sha256:3792c967ab0471daa9d5a78ed1494c13d2ec0eff00f03460674c798623e3f872: Get \"https://ghcr.io/v2/nethserver/mail-dovecot/blobs/sha256:3792c967ab0471daa9d5a78ed1494c13d2ec0eff00f03460674c798623e3f872\": dial tcp: lookup ghcr.io on 192.168.0.1:53: write udp 192.168.0.145:58021->192.168.0.1:53: write: operation not permitted\nTraceback (most recent call last):\n  File \"/usr/local/agent/bin/podman-pull-missing\", line 35, in <module>\n    subprocess.run(['podman', 'pull', image_url]).check_returncode()\n  File \"/usr/lib64/python3.9/subprocess.py\", line 460, in check_returncode\n    raise CalledProcessError(self.returncode, self.args, self.stdout,\nsubprocess.CalledProcessError: Command '['podman', 'pull', 'ghcr.io/nethserver/mail-dovecot:1.1.3']' returned non-zero exit status 125.\nTraceback (most recent call last):\n  File \"/usr/local/agent/actions/create-module/05pullimages\", line 47, in <module>\n    agent.run_helper('podman-pull-missing', *images).check_returncode()\n  File \"/usr/lib64/python3.9/subprocess.py\", line 460, in check_returncode\n    raise CalledProcessError(self.returncode, self.args, self.stdout,\nsubprocess.CalledProcessError: Command '('podman-pull-missing', 'ghcr.io/nethserver/mail-dovecot:1.1.3', 'ghcr.io/nethserver/mail-postfix:1.1.3', 'ghcr.io/nethserver/mail-rspamd:1.1.3', 'ghcr.io/nethserver/mail-clamav:1.1.3')' returned non-zero exit status 1.\n",
        "exit_code": 1,
        "file": "task/module/mail1/4d0d5d06-5c7b-4fd4-9115-cc5d3d2a2270",
        "output": ""
      }
    }
  ],
  "validated": true,
  "result": {
    "error": "<7>podman-pull-missing ghcr.io/nethserver/mail:1.1.3\nTrying to pull ghcr.io/nethserver/mail:1.1.3...\nGetting image source signatures\nCopying blob sha256:c038c930c6766f2505d2d0728083beecf65bfb48e09d204108db031dc06a0f6d\nCopying config sha256:bb529ab9b44ae19cba3b1e73492ba9fe24ee181309a48b7fd4b862a620b7b3a9\nWriting manifest to image destination\nStoring signatures\nbb529ab9b44ae19cba3b1e73492ba9fe24ee181309a48b7fd4b862a620b7b3a9\n<7>extract-ui ghcr.io/nethserver/mail:1.1.3\nExtracting container filesystem ui to /var/lib/nethserver/cluster/ui/apps/mail1\nui/css/\nui/css/about~31ecd969.98e6c32f.css\nui/css/addresses~31ecd969.14dec7fd.css\nui/css/app~748942c6.b6ca05cb.css\nui/css/domains~21833f8f.5d04e21e.css\nui/css/filterBypassRules~31ecd969.a5fc25e4.css\nui/css/filter~31ecd969.4caab4b5.css\nui/css/mailboxes~31ecd969.3996d0f2.css\nui/css/settings-general~d060a4e9.0cbe010e.css\nui/css/settings-mailboxes~31ecd969.0edc2209.css\nui/css/settings-master-users~64bdea6a.69197dde.css\nui/i18n/\nui/i18n/en/\nui/i18n/en/translation.json\nui/i18n/it/\nui/i18n/it/translation.json\nui/img/\nui/img/module_default_logo.ed42e539.png\nui/index.html\nui/js/\nui/js/about~31ecd969.7673977c.js\nui/js/about~31ecd969.7673977c.js.map\nui/js/addresses~31ecd969.15bff1bd.js\nui/js/addresses~31ecd969.15bff1bd.js.map\nui/js/addresses~filter~d939e436.63c63b69.js\nui/js/addresses~filter~d939e436.63c63b69.js.map\nui/js/app~748942c6.e2c47913.js\nui/js/app~748942c6.e2c47913.js.map\nui/js/chunk-vendors~0605657e.7f254d6a.js\nui/js/chunk-vendors~0605657e.7f254d6a.js.map\nui/js/chunk-vendors~0f485567.2d3df577.js\nui/js/chunk-vendors~0f485567.2d3df577.js.map\nui/js/chunk-vendors~17faf02d.7f68aab6.js\nui/js/chunk-vendors~17faf02d.7f68aab6.js.map\nui/js/chunk-vendors~1d97ff09.290bda9d.js\nui/js/chunk-vendors~1d97ff09.290bda9d.js.map\nui/js/chunk-vendors~2a42e354.0df57e14.js\nui/js/chunk-vendors~2a42e354.0df57e14.js.map\nui/js/chunk-vendors~2aa62147.38204dba.js\nui/js/chunk-vendors~2aa62147.38204dba.js.map\nui/js/chunk-vendors~41d44f25.e7779fa1.js\nui/js/chunk-vendors~41d44f25.e7779fa1.js.map\nui/js/chunk-vendors~46852254.0b6d19c2.js\nui/js/chunk-vendors~46852254.0b6d19c2.js.map\nui/js/chunk-vendors~57473a66.f586d2ed.js\nui/js/chunk-vendors~57473a66.f586d2ed.js.map\nui/js/chunk-vendors~5bb1f863.3efba861.js\nui/js/chunk-vendors~5bb1f863.3efba861.js.map\nui/js/chunk-vendors~5eba3806.b8428291.js\nui/js/chunk-vendors~5eba3806.b8428291.js.map\nui/js/chunk-vendors~690b702c.fd888ae3.js\nui/js/chunk-vendors~690b702c.fd888ae3.js.map\nui/js/chunk-vendors~7274e1de.f46e1de8.js\nui/js/chunk-vendors~7274e1de.f46e1de8.js.map\nui/js/chunk-vendors~86f6b1bc.ea95171b.js\nui/js/chunk-vendors~86f6b1bc.ea95171b.js.map\nui/js/chunk-vendors~b5906859.deff14e4.js\nui/js/chunk-vendors~b5906859.deff14e4.js.map\nui/js/chunk-vendors~bc21d4b3.68b10b46.js\nui/js/chunk-vendors~bc21d4b3.68b10b46.js.map\nui/js/chunk-vendors~be71a85b.9c367aa3.js\nui/js/chunk-vendors~be71a85b.9c367aa3.js.map\nui/js/chunk-vendors~c8728516.dd1ccc58.js\nui/js/chunk-vendors~c8728516.dd1ccc58.js.map\nui/js/chunk-vendors~d2305125.6a99a4ff.js\nui/js/chunk-vendors~d2305125.6a99a4ff.js.map\nui/js/chunk-vendors~d9886323.1a1a66f6.js\nui/js/chunk-vendors~d9886323.1a1a66f6.js.map\nui/js/chunk-vendors~db300d2f.ddb8641c.js\nui/js/chunk-vendors~db300d2f.ddb8641c.js.map\nui/js/chunk-vendors~ec8c427e.5c1734c3.js\nui/js/chunk-vendors~ec8c427e.5c1734c3.js.map\nui/js/chunk-vendors~fdc6512a.81c5c86c.js\nui/js/chunk-vendors~fdc6512a.81c5c86c.js.map\nui/js/domains~21833f8f.1a08ff5f.js\nui/js/domains~21833f8f.1a08ff5f.js.map\nui/js/filterBypassRules~31ecd969.6088e75f.js\nui/js/filterBypassRules~31ecd969.6088e75f.js.map\nui/js/filter~31ecd969.87148d75.js\nui/js/filter~31ecd969.87148d75.js.map\nui/js/lang-en-translation-json~9b60384d.125c007e.js\nui/js/lang-en-translation-json~9b60384d.125c007e.js.map\nui/js/lang-it-translation-json~e043826f.905a3477.js\nui/js/lang-it-translation-json~e043826f.905a3477.js.map\nui/js/mailboxes~31ecd969.bfd08e82.js\nui/js/mailboxes~31ecd969.bfd08e82.js.map\nui/js/settings-general~d060a4e9.2336335f.js\nui/js/settings-general~d060a4e9.2336335f.js.map\nui/js/settings-mailboxes~31ecd969.bc31a022.js\nui/js/settings-mailboxes~31ecd969.bc31a022.js.map\nui/js/settings-master-users~64bdea6a.3a1b2f08.js\nui/js/settings-master-users~64bdea6a.3a1b2f08.js.map\nui/js/settings~c3a820f9.86b29cd7.js\nui/js/settings~c3a820f9.86b29cd7.js.map\nui/metadata.json\nui/shortcuts.json\n3663cf030612982d2f70ce42ec50b10c05dca26794cc052a837f55a20b6a7a81\nAssertion failed\n  File \"/var/lib/nethserver/cluster/actions/add-module/50update\", line 202, in <module>\n    agent.assert_exp(create_module_result['exit_code'] == 0) # Ensure create-module is successful\n",
    "exit_code": 2,
    "file": "task/cluster/9883630d-8a53-4eec-8509-336c1fa8445e",
    "output": ""
  }
}

Cheers.

The error seems this one:

dial tcp: lookup ghcr.io on 192.168.0.1:53: write udp 192.168.0.145:58021->192.168.0.1:53: write: operation not permitted

Not sure, but it could be an error due to network problem or selinux.

We will try to reproduce it: card added.
Thanks for the test!

1 Like

I wonder if the upgrade from Rocky 9.1 → 9.2 did something, as I remember a comment on another thread regarding selinux and waiting for an OS upgrade.

Cheers.

1 Like

Or maybe a network glitch.

Trying the install again today worked and created a mail2 app.

Cheers.

3 Likes