Install Anchor MaxCASS Plus on your Linux host and connect it to BettrData’s local CASS workflow.
Scope: Run the supplied installer against the Anchor ZIP, install the software and postal data, configure local processing, and verify the installation. General BettrData platform installation and startup are covered separately.
This guide covers CASS address validation only: DPV processing. NCOA processing, RDI, and geocoding are not included for this setup.
Before you begin
Have these items ready:
- The Linux MaxCASS Plus download supplied by Anchor, including the product and postal-data bundles.
- The exact company name and 30-character security ID issued by BettrData.
- Administrator access with
sudoon the Linux host. - A BettrData release that supports
ANCHOR_LOCAL, including the current local controlbook and worker integration. - The on-prem installer at
bettrdata/anchor-install/setup-local.sh, or access to copy it from your cooker image as described in Step 2. Keep the supplied smoke-test files available for verification. - The host’s
unziputility and a working Python 3.11 or newer interpreter usable by the Anchor installer undersudo. - Sufficient disk space for the product, postal databases, and temporary job output.
Run host commands on the same machine that runs the BettrData cooker container. Replace example paths with your installation paths. Never put a security ID or credential in a support ticket, screenshot, or this guide.
Python and host compatibility
Anchor’s installer requires Python 3.11 or newer. Python 3.7 is not sufficient. A suitable Python must be available to the installer with administrator privileges; a newer Python visible only in your login shell may not be visible through sudo.
Check the host before starting:
python3 --version
getconf GNU_LIBC_VERSIONIf you use a versioned interpreter, check that exact version under sudo, for example:
sudo python3.11 --versionOlder Amazon Linux hosts: The bundled Python in the Anchor installer tested here requires glibc symbols including GLIBC_2.28. On Amazon Linux 2, it may fail even though Python is bundled. The resulting message can be only “Anchor Software environment setup did not complete.” Install a separate host-compatible Python 3.11+ or obtain a compatible runtime from Anchor with your administrator’s help. Do not replace the system Python or manually upgrade the system glibc. A custom interpreter must also be selected correctly through the installer’s sudo calls; installing it alone does not guarantee it will be used.
To select a compatible custom Python explicitly, pass ANCHOR_RUNTIME_PYTHON_BIN through sudo. For example, for the interactive install:
sudo ANCHOR_RUNTIME_PYTHON_BIN=/opt/bettrdata-python-3.11/bin/python3.11 \
bash ./anchor-install/setup-local.sh \
"$HOME/Desktop/MaxCass+/BettrData_MaxCASSPlus_1.3.9.0.zip"For unattended use, add --customer-name and --security-key to this command (optionally override --admin-user) and use sudo -n if no authentication prompt is allowed. The wrapper preserves the selected interpreter for its privileged child commands.
Check the new interpreter’s SSL and SQLite support as part of any custom Python installation. Python compatibility does not by itself establish MaxCASS binary compatibility with the host.
1. Save the Anchor ZIP on the host
Download the Linux MaxCASS Plus ZIP supplied for your account. Keep it as a ZIP; do not unpack it manually. For example:
~/Desktop/MaxCass+/BettrData_MaxCASSPlus_1.3.9.0.zipThe installer extracts the ZIP into the directory containing the ZIP, not the directory you run the command from. Existing extracted files are preserved. Allow enough free space beside the ZIP for the extracted postal-data bundles.
The ZIP must contain the vendor installer archive and the MaxCASSPlus and MaxCASSPlusData folders. Version numbers and customer filenames may differ.
2. Run the installer on the host
From your BettrData installation directory (the bettrdata folder), choose interactive or unattended installation. Use the updated anchor-install/setup-local.sh that supports the options below.
Interactive installation
Run without company/key options to use Anchor’s prompts. The administrator defaults to the existing non-root host account bettrdata:
sudo bash ./anchor-install/setup-local.sh "$HOME/Desktop/MaxCass+/BettrData_MaxCASSPlus_1.3.9.0.zip"If your host uses a different administrator account, override the default with an existing non-root account (replace ec2-user below as needed):
sudo bash ./anchor-install/setup-local.sh "$HOME/Desktop/MaxCass+/BettrData_MaxCASSPlus_1.3.9.0.zip" \
--admin-user ec2-userUnattended installation
Supply --customer-name and --security-key. The administrator defaults to bettrdata, which must be an existing non-root Linux account on this host; optionally override it with --admin-user. The company name must exactly match the licensed name; the security key must contain exactly 30 characters.
Set ANCHOR_SECURITY_KEY securely through your deployment’s secret-management process before running this example. The wrapper receives it through the explicit flag; it does not automatically read this variable.
sudo -n bash ./anchor-install/setup-local.sh "$HOME/Desktop/MaxCass+/BettrData_MaxCASSPlus_1.3.9.0.zip" \
--customer-name "BETTRDATA" \
--security-key "${ANCHOR_SECURITY_KEY:?Set your vendor-issued security ID first}"sudo -n fails rather than prompting for a sudo password. For manual use with sudo authentication, omit -n. Unattended mode requires root privileges.
--customer-name: the licensed company name.--admin-user: optional; defaults tobettrdata. Selects the existing non-root host Linux account to enroll as an Anchor administrator. This is separate from the cooker worker UID/GID. A missing or invalid account fails with an error; the script does not create it.--security-key: the vendor-issued security ID. Mode selection: Supplying both valid--customer-nameand--security-keyenables unattended setup;--admin-useris optional. If either company name or security key is missing, setup remains interactive and Anchor prompts again for both. The selected administrator (defaultbettrdata) is forwarded in either mode. Supplied invalid values fail before installation. No--non-interactive,--company, or--security-key-fileflag is needed or supported. Success: The script exits with code 0 only after its environment, package-installation, jobs-directory, and executable checks succeed. Installer or package failures return a nonzero code. Still complete the CASS smoke test below to verify runtime licensing and actual address processing. Existing environments: These flags initialize a new environment. Rerunning against an initialized environment installs the packages without rotating its existing company/security configuration. Packages requiring separate license-agreement acceptance must use interactive setup.
Treat the security ID as a secret. Do not paste a literal key into documentation, tickets, or recorded commands. Variable expansion avoids saving the literal key in shell history, but command-line arguments may still be visible in process listings, sudo logs, or audit tools. The wrapper disables its own tracing and does not print the supplied key; that does not remove operating-system-level exposure.
Replace the ZIP path with your actual download. The first argument is the ZIP file, not an extracted directory or the inner .tar.gz file. Run this command on the Linux host, not inside Docker.
The script unpacks the ZIP, initializes the Anchor environment when needed, installs the product and postal-data bundles, and prepares the jobs directory. You do not need to run the vendor installers separately.
The helper defaults the jobs-directory owner to UID/GID 1001:1001. If your deployment uses different worker IDs, pass those exact IDs. For example:
sudo BETTRDATA_UID=1000 BETTRDATA_GID=1000 \
bash ./anchor-install/setup-local.sh "$HOME/Desktop/MaxCass+/BettrData_MaxCASSPlus_1.3.9.0.zip"The IDs must match the cooker worker configuration; they are not necessarily the same as your login account. For interactive installation, answer the installer prompts:
- Confirm that you want to initialize the Anchor environment.
- Enter the company name exactly as Anchor issued it, including capitalization.
- Enter the vendor-issued 30-character security ID.
- Keep the default shared-data location unless your administrator has planned a different location.
- Review and confirm the installation paths.
For the BETTRDATA-issued license used to validate this setup, the company name is BETTRDATA, not “BettrData.” Other customers must use their own vendor-issued name.
The default locations are:
- Program:
/opt/anchor-software/maxcass-plus - Shared libraries:
/opt/anchor-software/lib - Configuration:
/etc/opt/anchor-software - Product configuration:
/etc/opt/anchor-software/maxcass-plus/config.xml - Postal data:
/var/opt/anchor-software/shared/cass - Job links:
/opt/anchor-software/maxcass-plus/jobs
Expected result: The helper finishes with “MaxCASS Plus local install is ready.”
A “pending dependencies” message while the product installs can be normal: the postal-data bundle is installed afterward. If the product is still not activated when setup finishes, contact support before continuing.
3. Verify the host installation and DPV security file
Check that the program and security file exist:
sudo test -x /opt/anchor-software/maxcass-plus/bin/maxcassplus && echo "MaxCASS executable found"
sudo ls -l /etc/.acixsec2/etc/.acixsec2 is the Linux DPV security file used by this installation. It must exist as a regular, nonempty file and be readable and writable by the cooker worker. A zero-byte file is not sufficient evidence of initialized DPV security; contact Anchor Support before changing it.
If the security file is missing, or DPV reports a lockout, stop and contact Anchor Support. Do not delete the file, create an empty replacement, or run security reset/unlock/bypass commands without Anchor’s instructions. Installation activation does not by itself prove runtime license authorization.
Run the supplied smoke test on the host:
sudo bash ./anchor-install/run-maxcass-smoke.shExpected result: DPV initializes, all 10 test records are processed, the job completes, and an output CSV is printed.
Keep run-maxcass-smoke.sh, maxcass-smoke-input.csv, and cass-local.zp4 together in anchor-install/. The host smoke script uses the adjacent controlbook template by default; no command-io checkout is needed.
The script retains its artifacts under a unique /data/cass-smoke-* directory, or /tmp/cass-smoke-* when writable /data is unavailable.
Do not use maxcassplus --help as a CASS validation test: MaxCASS treats that argument as a controlbook filename.
4. Enable local CASS in BettrData
Add or update these entries in the persistent BettrData configuration, normally ~/.bettrdata/.config:
Use your deployment’s configuration source if it differs. Setting these variables only in an interactive shell does not persist them for future platform launches.
Confirm that the cooker service receives these values through its Compose environment section. Older deployment files may need updating by your administrator.
Use the real MaxCASS binary, not a mock override. Remove any ANCHOR_LOCAL_MOCK setting or mock Compose override from the deployment.
The current local controlbook must:
- Keep DPV enabled.
- Disable RDI and adjunct geocoding for this CASS-only setup.
- Disable LC casing logic and use uppercase output.
- Run MaxCASS from each job’s writable working directory, not the program installation directory.
These settings are included in the updated BettrData integration. Remote AnchorConnect.ini credentials are not needed for this local CASS workflow.
5. Check the cooker container mounts
Under the cooker service’s existing volumes list, verify these mounts:
These are taken care of with the env vars in step #4. Leave defaults unless explicitly changed.
# Defaults, no changes req
volumes:
- /opt/anchor-software:/opt/anchor-software
- /etc/opt/anchor-software:/etc/opt/anchor-software:ro
- /var/opt/anchor-software:/var/opt/anchor-software
- /etc/.acixsec2:/etc/.acixsec2:rwKeep the deployment’s other volume entries. If you selected non-default host locations, map those locations to the corresponding container paths.
Important: Mount the specific security file, not the host’s entire /etc directory. Verify the host file exists before creating the container. Keep the security mount writable; do not copy it into the image or commit it to source control.
The jobs directory must be writable by the configured worker UID/GID. Keep the product installation protected; do not recursively loosen permissions on the program or data directories to solve job-output errors.
Have your administrator recreate cooker through your normal platform procedure after changing mounts or environment variables. Restarting an existing container alone does not apply changed mounts. General platform startup is outside this guide.
6. Test inside cooker as the actual worker
After the platform is running, open a cooker shell from its deployment directory:
docker compose exec cooker bashInside that shell, confirm the security file is visible:
ls -l /etc/.acixsec2Then run the smoke test under the same UID/GID as the worker:
setpriv \
--reuid="${BETTRDATA_UID:-1001}" \
--regid="${BETTRDATA_GID:-1001}" \
--init-groups \
env HOME="${BETTRDATA_HOME:-/data/.home}" \
ANCHOR_LOCAL_BINARY=/opt/anchor-software/maxcass-plus/bin/maxcassplus \
bash /app/shared/tests/anchor/run-maxcass-smoke.shThis assumes the default worker IDs are 1001:1001 when no explicit values are configured; confirm your deployment’s actual IDs first.
Expected result: All 10 records process successfully, DPV is enabled, and the job completes without permission errors. The output CSV includes ZIP, ZIP+4, delivery point, check digit, barcode, and DPV indicators.
A successful root test is useful, but it does not verify worker permissions. Cooker starts with root privileges for setup, then normally drops to the configured BettrData user.
If your packaged release does not include the smoke-test files, request them from BettrData Support rather than substituting the vendor’s flat-file sample into the CSV smoke script.
7. Run a small end-to-end BettrData job
- Upload a small CSV containing known deliverable addresses.
- Use a conversion configuration with address standardization enabled.
- Map address line 1, optional address line 2, city, state, and ZIP. Store ZIP as text so leading zeros are preserved.
- Run the conversion normally.
The integration performs three steps: Convert prepares the input → local MaxCASS validates addresses → Humpty combines the results and completes the job.
Confirm the final job output contains:
- The expected record count after configured header handling and drops.
- Standardized address values.
- ZIP, ZIP+4, delivery point, and check digit for successfully coded records.
- A DPV match result consistent with the MaxCASS return CSV.
- A completed BettrData conversion and report.
Not every input address will be DPV-confirmed. Missing GEO, RDI, or NCOA values are expected for this setup. MaxCASS layout-report text files are diagnostic artifacts; the current integration reads only the expected address-return CSV.
Troubleshooting
libadrvrfy_o.soInstallation complete
ADDRESS_SERVICE_TYPE=ANCHOR_LOCAL is persisted and passed to cooker.Keep postal databases and software updated using packages supplied by Anchor. Store licenses securely, and retain failed-job logs for support without exposing security IDs or security-file contents.