Skip to content

Troubleshooting

The three exit states

fe:verify, fe:doctor, and forgesync:health all speak the same language: exit 0 is healthy, exit 1 is broken (something needs fixing now), exit 2 is advisory (the app is fine; a data feed or a pending setup item needs attention). Advisory states do not page; broken states do.

Where to look, in order

  1. php artisan fe:doctor - is the BOX assembled right (scheduler, backups, certificate, caches)? No network calls; safe anytime.
  2. php artisan fe:verify - is the INSTALL healthy end to end (Shopify, Sage connector, queue really draining, webhooks present)?
  3. php artisan forgesync:status - what did each job do last, with messages.
  4. The Alerts page in ForgeSync (Shopify admin, Apps, ForgeSync, Alerts): every alert ForgeSync has raised, critical first, with what to do and who has seen it. The same records post to Slack and mail the role that owns them; the page is where they stay until the condition clears.

An alert keeps repeating

It is not repeating: it is one record that is still open. ForgeSync raises an alert once, counts every time the condition is seen again ("seen 14 times" on the Alerts page), and posts again only for a critical alert that is still open a day later. The record closes on its own when the condition clears (an order reaches Sage, a job runs again, the Sage connector answers). Acknowledge it so your team knows someone is on it; acknowledging does not close it.

A few alerts have no job that re-checks them, because the fix happens outside ForgeSync: a privacy request Shopify sent, a tax mismatch you correct in Sage. Those stay open until someone resolves them from the server; ask support if you cannot.

The Alerts page says nothing needs attention, but I got an email

Both are right. A critical alert mails the role that owns it the moment it is raised; if the condition cleared before you looked, the record is already under "Resolved in the last 30 days". If the mail names something the page never showed, the page could not be read at the time (the server itself was down); the mail is the record then.

Shopify says ForgeSync is not connected

On an install that uses the shared ForgeSync app, Shopify reaches your server through Keyway, and Keyway only knows your server once it is claimed. Run php artisan fe:verify and read the fleet:claimed row:

  • fail: the server was never claimed. Open the ForgeSync screen in the Shopify admin (Apps, then ForgeSync), copy the claim code, and run php artisan fe:claim <code>. A code works once and for seven days; opening the screen again shows a fresh one.
  • fail, wrong address: the server was claimed with an old address. Correct APP_URL, then claim again with a fresh code.
  • ok: the claim is fine. Check the shopify rows of the same output next; the app may not be approved on the store yet, which the install link from php artisan fe:shopify-connect fixes with one click.

Marketplace modules paused

The eBay and Amazon modules run only on the ForgeSync Pro plan. ForgeSync reads the plan from Shopify every 30 minutes and keeps the last confirmed answer, so a Shopify outage does not change what a box already knows.

What the shopify:plan row of fe:verify means:

  • skip: this install uses its own Shopify app, so there is no subscription to read and nothing is gated.
  • ok: the plan was confirmed live. On ForgeSync Core the marketplace jobs are simply not part of the plan, which is still ok.
  • warn, cached: Shopify could not be read, and the last confirmed ForgeSync Pro still stands for seven days from that reading.
  • warn, expired: Shopify has not confirmed the plan for more than seven days, so the install treats itself as ForgeSync Core until it can.
  • warn, not learned yet: this install has never read its plan, so it treats itself as ForgeSync Core and says so here, in the log and in the alerts channel.
  • warn, unrecognised: Shopify reports an active plan under a name this release does not know. The install treats itself as ForgeSync Core. Contact Keyway: recognising a new plan name is a release configuration that Keyway ships; nothing changes in your store.
  • warn, stored record not usable: the saved plan record could not be read (a hand edit or a partial restore). The install treats itself as ForgeSync Core; php artisan fe:plan --refresh rewrites the record from Shopify.

Whatever the row says, Shopify orders keep flowing and anything already in the export queue keeps exporting to Sage. Only the marketplace intake, inventory push and tracking push jobs pause; the eBay invoice reconcile keeps checking orders that are already in Sage.

To see what the box knows, run php artisan fe:plan. To read the plan from Shopify now, run php artisan fe:plan --refresh. The plan itself lives in the Shopify admin under Apps, then ForgeSync, then Plan; after changing it there, run the refresh or wait up to 30 minutes.

Common Sage-side causes

  • Connector unreachable: the ERP server rebooted and the service is not Automatic, or the firewall rule was lost in a change. fe:verify names which.
  • Logon failure: the Sage service user's password was rotated or the account was disabled. The connector cannot sign in; orders queue safely until it can.
  • Connector refused ForgeSync's key: the connector answers but will not accept the key ForgeSync sends, usually after one side was reinstalled or re-paired without the other. The alert says so in those words. Re-pair: on the ForgeSync server php artisan fe:sage:pair --show prints the pair, and the connector installer on the Sage server takes it from the env file it is given. Orders queue safely meanwhile.
  • Connector answering with errors, or with something ForgeSync cannot read: Sage itself is down behind the connector, the connector service needs a restart, or a proxy or sign-in page sits in the path. One alert per change of cause, and one when it is back.
  • No spare seat: every concurrent license seat is in use; sessions cannot open. Free a seat or add one.
  • Orders queue but do not book: check the export queue screen; each parked row carries the reason Sage gave.

Alert emails and Slack posts link straight to the order's page in ForgeSync. ForgeSync runs inside the Shopify admin, so a link opened from a mail client has no sign-in yet and shows a page with two choices: Open ForgeSync in Shopify, which opens the same page inside Shopify admin, or open this page directly, which uses the direct admin and its password. Nothing is wrong when you see that page; it is the sign-in.

If the Shopify choice lands on the dashboard rather than the order, tell Keyway support: the link into Shopify depends on the app's URL being set to the /admin path in the Dev Dashboard.

The embedded admin keeps asking to be reopened

Opening ForgeSync from the Shopify admin logs in, then the next click shows the "open ForgeSync from Shopify admin" page again. The browser is dropping the session cookie, because inside the Shopify admin frame it only keeps a cookie that is SameSite=None, Secure and Partitioned. Shipped installs have those values; a .env written before 2026-10-28 may still carry the old ones. php artisan fe:doctor reports it as embedded-cookie. The fix, in .env:

SESSION_SAME_SITE=none
SESSION_SECURE_COOKIE=true
SESSION_PARTITIONED_COOKIE=true

then php artisan config:cache as the app user. No restart is needed.

The admin shows "wrong_audience" instead of opening

Opening ForgeSync from the Shopify admin shows {"ok":false,"code":"wrong_audience",...}. Shopify signed you in to Keyway's shared ForgeSync app, but your install's env file names a different app, usually one it used before. php artisan fe:doctor reports it as app-id and prints the ID to use. The fix, in .env:

FORGESYNC_SHOPIFY_CLIENT_ID=<the ID fe:doctor prints>

then php artisan config:cache as the app user, and reopen ForgeSync from the Shopify admin.

A notice from Keyway is showing in the admin

A coloured strip at the top of every admin page headed "Security notice from Keyway", "Subscription notice from Keyway", "Maintenance notice from Keyway" or similar is a message Keyway sent to this install. Your install checked its signature before showing it; nothing that did not come from Keyway's notice key can appear there. Read it, follow the link if there is one, and press Mark as seen: any signed-in staff member can, and the name is kept on the Install page. The same notice was mailed to the role it is for (the security contact, the account owner, or IT on call).

If the mail never arrived but the strip is there, the strip is the record; fe:verify names a notice that could not be mailed and the sender state is read with php artisan fe:mail:probe on the server. On an install where the embedded admin cannot hold a login yet (the section above), mark a notice as seen on the server instead:

php artisan fe:notices --ack <notice id> --actor "<your name>"
php artisan fe:notices --list

If fe:verify says FORGESYNC_NOTICE_PUBLIC_KEY is blank, no notice can reach this install at all: the key is on the same line as the release key you were given at install. Put it in the env file and run php artisan config:cache as the app user.

Slack alerts stopped

Run php artisan fe:slack:probe. A rejected token means the app was uninstalled or reinstalled in Slack: paste the new token with php artisan fe:slack:setup --token=.... An archived or missing channel is named in the table; re-run fe:slack:setup to recreate it (without --token it reuses the token already on the server). For a private channel the probe prints the /invite @ForgeSync hint. While Slack is down, warning and critical alerts arrive at the alert email instead.

An alert went to the wrong person, or to nobody

Who hears about what is the contact directory: ForgeSync > Settings > Contacts in the Shopify admin, or php artisan fe:roles on the server. A role with nobody on it mails the list you gave at install; a role with nobody AND no list shows a banner on every admin page and is the one case fe:roles:check exits 1 for. Put a person on the role; the next alert reaches them, with no restart. A person who left: retire them and name who takes over (see Contacts and roles).

fe:verify reports a contacts row (advisory) and fe:doctor a settings-ledger row: a running value that differs from the newest ledger entry means a file was edited by hand; change it again through fe:settings:set and the ledger agrees.

What never to do

  • Never run migrate:rollback (it refuses anyway; see the update runbook).
  • Never regenerate the application key on an existing install.
  • Never edit values directly in Sage that the integration owns (the external-key column above all).
  • Never edit config_slices/tenant.php or .env by hand to change a setting: use the Settings tab or fe:settings:set, which validate, apply, read back and ledger the change.