Use this article when the server went read-only and you suspect the computer's clock, a long time without internet, or a missing license file. You will be able to find which of the three it is and bring the server back to full use.
Before you start #
- Access to the server computer and its internet connection.
- Owner or admin sign-in, to read the license message.
Find the cause #
- Call
GET /healthand read thelicencefield.read_onlymeans writes are paused. - Open a write screen and read the message it shows. Match it below.
| Message starts with | Cause | Fix |
|---|---|---|
| Reconnect to the internet to keep using your trial. | A trial went more than 72 hours without a successful check. | Steps for offline, below. |
| This computer has not been able to check your license for more than 45 days. | A paid license went more than 45 days without a successful check. | Steps for offline, below. |
| This computer needs to check your license online before records can be added. | The license state file was missing or restored from an old copy while records exist. | Steps for a lost state file, below. |
| This computer's clock is behind where it has been. | The date and time were set earlier than a time the server has already seen. | Steps for the clock, below. |
| Your trial has ended. | Day 14 of the trial has passed. | Buy a license. The clock cannot change this. |
Steps for offline #
- Connect the server computer to the internet and make sure it can reach
https://thepopstreet.com. - Restart the server to check at once, or wait up to 6 hours for the next check.
- Call
GET /healthand confirmlicenceisactive.
Steps for a lost state file #
- Connect the server computer to the internet.
- Restart the server. It asks the license service for a fresh answer at start.
- Wait a few minutes, then confirm
GET /healthshowsactive. Writes stay paused until that check succeeds, and reading, export and backup keep working throughout.
Steps for the clock #
- Set the computer's date, time and time zone right, and switch on automatic time from the operating system.
- Connect to the internet and restart the server.
- After the next successful check, the server decides from the license service's time and the clock message goes away.
Check that it worked #
GET /health shows licence: active, and adding a record succeeds.
Afterwards #
- Keep automatic time on, so the computer's clock stays close to the license service's time.
- Leave the server connected to the internet. A trial needs a check every 72 hours, and a paid license every 45 days.
- Keep
licence-state.jsonin the data folder. The server also keeps the newest time it has seen in its database and in the operating system key store, so a deleted file cannot reset it.
Technical details
- When the computer's clock and the license service's signed time differ by more than 10 minutes, the server writes a warning to its log and uses the license service's time for every decision until the next check.
- The server reads the newest of three copies of the time it has seen:
licence-state.json, thelicence_markrow in the database, and the key store entry namedlicence-mark-followed by a short code made from the data folder path. - Without a state file, the server blocks writes while the database holds an account, until a check succeeds.
If something goes wrong #
- The check fails every 6 hours while the internet works: send your supplier the license key and the time of the failed check from the server log.
- The license service refuses a second trial key with
trial_used: this installation already runs one trial key. Buy a license to continue.