For the operator
This page is for the person who runs the AdayoCRM server. Users do not need it: the user pages say what a user does.
Upgrade order
This is the move from release 0.24.0 to release 1.0.0. The steps of a later upgrade from 1.0.0 come with that release: do not use make upgrade for it.
The server is upgraded ahead of the plugin.
- Take a backup with
make backup. - Upgrade the server with
make upgrade VERSION=1.0.0. Wait for the lineupgrade: RESULT upgraded. - Run the full check, then the check of the public path.
- Upgrade the plugin on each surface. The steps for a user are on Upgrade.
Release 1.0.0 adds no tool, no parameter and no return field, so no connector needs a refresh. Plugin 0.24.0 keeps working with a 1.0.0 server.
Switch coaching on
Coming soon (1.1.0) Coaching lets a user share their own voice profile with a manager or an admin, to coach them on how they write. See Share your voice profile for coaching. Coaching is off after the upgrade, in each workspace, until you switch it on.
- First the company tells its staff, in writing, how coaching works. A user can share their own profile with one manager or admin. A user can take the share back at any time. Each read is recorded, and the user sees these reads.
- Only then type
make coaching STATE=on BY=<your name>. The command records your name and the time. On an install with more than one workspace, addADAYO_WORKSPACE=<workspace name>. - To switch coaching off, type
make coaching STATE=off BY=<your name>. The shares are kept, and no profile is read while coaching is off.
The access log lists each read of a shared profile. Add a user gives the command that invites a manager or a service user.
Check a deploy
A deploy of an install that runs on a hosted Linux server is checked in two places.
- On the server, as the install’s own user,
make check-deployruns the install guard, the tunnel configuration, the database checks, the sign-in and read-tool checks against the install’s own address, the log check and the backup status. - From your Mac, in a clean checkout of the same release,
make verify-public PUBLIC_URL=https://<your host>checks that exactly one connector serves the public address and runs the public checks. It never starts anything on the Mac.
The hosted server
A hosted Linux server installs security updates by itself at night. When an update needs a reboot, the reboot comes in a fixed early-morning window, after the nightly backup.
What the outage alert watches
Every install runs an outage alert every five minutes. It checks:
- the backup
- the public health check
- the free disk share
- restarts of a service in the last hour
- the server’s own errors in the last hour
- refused sign-ins in the last hour
A check alerts after two failures in a row. The first run on which every check passes sends the all-clear. An alert names only a number, never a path, a service, a person or a message. The public health check covers the tunnel and the certificate, so neither has a check of its own.
Database accounts
- Coming soon (1.0.1)
make envwrites two database passwords into the install’s settings file, one for the server and the mail worker and one for the documents export. You do not type them, and the command prints one line for each password it writes and never the password. The server, the mail worker and the documents export no longer use the database’s administrator account: each connects with its own account, which can read and write the CRM’s records and cannot change the database’s structure. The documents export reads four tables only. The containers run without administrator rights, on a file system they cannot change. - Coming soon (1.0.1) At an upgrade,
make upadds the two passwords to an older install’s settings file and sets them on the database. It never changes a password that is already there. - Coming soon (1.0.1) If the server’s log says that the password check failed for the server’s database account, or that no password was supplied,
make uphas not run since the upgrade. Runmake up, thenmake server-up. If the mail worker runs, start it again withmake ingest-up.
When make refuses to run
Coming soon (1.0.1) An install’s make command refuses to run when make’s own variables come from the shell, the settings file or the command line, or with -i (--ignore-errors). Run it without them, for example env -u MAKEFLAGS -u GNUMAKEFLAGS -u MAKEFILES make <target>. The refusal comes before the command does anything, and nothing is changed. make reads variable definitions and flags from these, so a value or a flag that nobody typed could pass a check as if you typed it. One of make’s own variables (MAKEFLAGS, GNUMAKEFLAGS, MFLAGS, MAKEOVERRIDES, MAKEFILES or MAKECMDGOALS) typed on the command line as NAME=value is refused: leave the argument out, and give -k, -n or -s as flags, for example make add-user EMAIL=<address> ROLE=member. MAKE or MAKE_COMMAND from the shell, the settings file or the command line is refused too, because every inner make step runs MAKE: run env -u MAKE -u MAKE_COMMAND make <target>, and remove such a line from the settings file. A shell profile that exports MAKEFLAGS, for example for -j8, or MAKE, for example MAKE=gmake, is refused the same way.
Coming soon (1.0.1) make reset, make seed, make verify and make migrate-roundtrip delete or rewrite an install’s data. Each one refuses to run on a checkout that is not the scratch stack, unless the command line names the checkout’s own compose project, as ALLOW_DESTRUCTIVE=<compose project>. A value that comes from the shell or from the settings file is refused, and so is a value that names another project. When a command refuses, it changes nothing. make reset also refuses while the database does not answer and the data volume exists. Start the database with make up, then run make reset again. Never type ALLOW_DESTRUCTIVE on a live install. To run one of them on purpose while the shell sets MAKEFLAGS or GNUMAKEFLAGS, remove both variables for that one run: env -u MAKEFLAGS -u GNUMAKEFLAGS make <target> ALLOW_DESTRUCTIVE=<compose project>.