Get started
Color

Clock and offline troubleshooting

Fix read-only mode that follows a wrong computer clock, a long time offline, or a lost license state file.

For
OwnerAdministrator
Hosting
Any hosting
Devices
Server
Business
All businesses

Checked against Pop Dispatch 0.1.0

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 #

  1. Call GET /health and read the licence field. read_only means writes are paused.
  2. Open a write screen and read the message it shows. Match it below.
Message starts withCauseFix
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 #

  1. Connect the server computer to the internet and make sure it can reach https://thepopstreet.com.
  2. Restart the server to check at once, or wait up to 6 hours for the next check.
  3. Call GET /health and confirm licence is active.

Steps for a lost state file #

  1. Connect the server computer to the internet.
  2. Restart the server. It asks the license service for a fresh answer at start.
  3. Wait a few minutes, then confirm GET /health shows active. Writes stay paused until that check succeeds, and reading, export and backup keep working throughout.

Steps for the clock #

  1. Set the computer's date, time and time zone right, and switch on automatic time from the operating system.
  2. Connect to the internet and restart the server.
  3. 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.json in 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, the licence_mark row in the database, and the key store entry named licence-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.