NS8’s mail module has begun throwing the following error when I try to load my address list in the mail module:
Validation errors: [addresses.9: Must validate one and only one schema (oneOf) addresses.9.local: Does not match pattern ‘[1]+$’ addresses.9: Must validate all the schemas (allOf) addresses.11: Must validate one and only one schema (oneOf) addresses.11.local: Does not match pattern ‘[2]+$’ addresses.11: Must validate all the schemas (allOf)]
Try what I may, I cannot view the addresses and cannot take any corrective measures to deal with this validation error without seeing the addresses.
This issue is new for me. I am running NS8 on PVE with the most updated core and mail. Happy to pull any additional details required to address this issue.
This call returns the same error. The issue is that the “local” row is populated by “evidence@apstrom.ca”, which throws the error. I’ll have to manually edit the database to modify the address.
The sqlite db for mail instance mail1 is located in /home/mail1/.config/state/pcdb/pcdb.sqlite, see the post above how to edit it on CLI.
Please consider to make a backup before changing the sqlite db.
After removing the wrong entry you could move it back to the Nethserver, I’d stop the postfix service before moving the file back and start it again afterwards.
I created it through the GUI → mail → addresses → create address.
Though am running a backup every day, can i just scp the database out, make a duplicate and then copy back the modified db to see if the changes were successfull, without using the restore function of nethserver?
So i tried to delete the entry using the GUI option you mentioned, but to be honest i have no idea what am doing
The error that i get:
Validation errors: [addresses.21: Must validate one and only one schema (oneOf) addresses.21.local: Does not match pattern ‘^[^@]+$’ addresses.21: Must validate all the schemas (allOf)]
Once i opened the DB with the “DB Browser for SQLite” → Browse Data tab → there i see a bunch of numbered rows, from where i did deleted the row 21.
Then clicked on “write changes” → copied back the DB to Nethserver and ran the 2 commands, but then i get the same error message whan i go into the addresses on the dashboard.
I guess am deleting the wrong entry? How can i know whichone is the right one to delete?
As far as i know, nothing special. If it is the row 21, then the mail address is very simple. The problem is, i do not know which address caused the issue really, cause i did not receive the error after adding it. I got the error some stage when i wanted to entere a new address, and when you navigate to addresses it normally loads them, but instead facd the error.
Address creation still works though, so i lived with it for a while, just ignoring it.