Demo mode: changes are disabled.

Skip to content

Troubleshooting

Last updated

The problems people most often meet while installing and running Deskply, what causes each one, and how to fix it.

Where to look first

  • The log of the API: the newest laravel-….log in storage/logs/. Most problems leave a line there.
  • The browser console and its Network tab, for a problem in the web app.
  • The health check: /up on the API answers with status 200 when the application runs.

The setup stops

It names the step and the reason. Correct that and run the same command again. Everything it printed is in server/setup.log.

What it saysWhat to do
MISSING in the checkInstall or update that part. The line has a link to its maker's guide
The Node.js it finds is too old, and another program needs that oneUnpack a second, newer one into /opt/node, where it is found, or name its place: --node /path/to/node
Another web server has port 80 or 443Stop it, or see With Apache
nginx may not read the folderThe download is under /home or /root. Move it: sudo mv saas /var/www/
nginx already serves the domainAnother site of this server has that name. Remove that site, or use another name
HTTPS certificate failedA domain does not point to this server yet, or port 80 is closed, also in the router in front of it. Correct the DNS record or the firewall, wait, and run the setup again
This server reaching the API by its nameThe router does not let the server reach its own public address. Add the line it prints to /etc/hosts, then run it again
Packages of the web app failedThe server cannot reach registry.npmjs.org. Check its internet connection
Building the web app failed, with Killed or heap out of memoryThere is not enough memory. Add swap, or choose a server with 4 GB
A database called saas already has tablesWrite its password in DB_PASSWORD in backend/.env, or another name in DB_DATABASE and DB_USERNAME
A service is not runningThe line names the command that shows why, such as sudo journalctl -u saas-web -n 50

The API answers 503 or sends you to /install

The installation has not finished. Run sudo bash server/setup.sh again: it continues where it stopped.

The installer cannot connect to the database

php artisan app:install stops with Cannot connect to the database configured in DB_*, followed by PostgreSQL's error and a line that names the setting to change. The most common one is fe_sendauth: no password supplied: DB_PASSWORD is empty, usually because DB_USERNAME=postgres was kept, and that superuser has no password on a new server. Create a user and a database for the API and write both in backend/.env. The setup does that for you; by hand, see By hand.

Composer detected issues in your platform

Every page of the API shows this, or a blank error, when the PHP that runs it is older than 8.4. Check the version the web server and the processes use, not only the one in your terminal: they can differ. Compare php -v with php-fpm8.5 -v, install PHP 8.4 or newer where it is older, and run sudo bash server/setup.sh again: it uses the newest PHP of the server.

Every save says it is disabled in the demo

The API answers 403 with the code DEMO_MODE because DEMO_MODE=true is set in its .env. That is only for a public demo. Remove it, and NEXT_PUBLIC_DEMO_MODE from the web app, then run sudo bash server/restart.sh.

Sign-in fails in the web app

What you seeCauseFix
A network errorThe web app cannot reach the APICheck NEXT_PUBLIC_API_BASE_URL, then run server/restart.sh
A CORS error in the consoleThe API does not trust the address of the web appSet FRONTEND_URL, or CORS_ALLOWED_ORIGINS, in the API, then run server/restart.sh
You are sent back to the sign-in screenThe session cookie is not acceptedSet NEXTAUTH_URL to the exact address in the browser, and NEXTAUTH_SECRET to a value of your own
Too many attempts (status 429)Five wrong passwords block that email from that address for 15 minutes; an admin account is blocked for 60 minutes after twentyWait, or for an admin run sudo bash server/artisan.sh admin:reset-password with the email, which also lifts the block
The admin is signed out after some hoursAdmin sign-ins last ADMIN_TOKEN_TTL_HOURS hours, 12 by defaultSign in again, or raise the value in the API's .env
Everyone seems to come from one IP address and hits the limit togetherThe API sits behind a proxy that is not in TRUSTED_PROXIESList the proxy's addresses in TRUSTED_PROXIES. See Behind a proxy

Status 429: too many requests

The API limits how often one visitor may call its public and sign-in addresses, counted per IP address (so TRUSTED_PROXIES must be right). A request over a limit gets status 429 and works again after a minute.

WhatLimit
Sign-up5 a minute
Customer sign-in and admin sign-in10 a minute, besides the blocks after wrong passwords
Leads from the public site5 a minute; the message of a lead holds at most 5,000 characters
Website chat messages20 a minute, besides the limits set under Settings → Billing rules
Bookings on a public booking page5 a minute; confirming, cancelling or moving a booking from its link, 20 a minute
The live demo of Settings → Demo Chat30 chat messages and 10 calls a minute, besides its limits per session and per day

An upload is refused

The API looks at what a file really contains, not at its name, and stores it as that type. HTML, SVG and script files are refused whatever they are called, because a browser could run them. Knowledge files must be PDF, Word (DOC or DOCX), TXT, CSV or JSON, at most 10 MB each.

A setting has no effect

A change to backend/.env or frontend/.env.local is applied by sudo bash server/restart.sh. It refreshes the cached settings, builds the web app again and restarts everything.

The agent does not reply

Check these in order.

  1. The API answers with status 200. It writes the replies itself, inside the request that brings the message; the queue worker has no part in them.
    Terminal
    curl -sI https://api.example.com/up | head -1
  2. The log of the API has no error from the moment of the message.
    Terminal
    grep -h ERROR /var/www/saas/backend/storage/logs/laravel*.log | tail -5
  3. The key of your chat provider is set, and the account has credit.
  4. The message reached the API. In the Meta app, the webhook must be verified and subscribed to messages, and the API must answer on a public HTTPS address.
  5. The agent is active, and the AI is not switched off for that conversation in the inbox.
  6. The customer has AI credits left this month, bought credits, or an own AI key their plan allows. Usage & Limits in their panel shows it.

Knowledge files stay unprocessed

  • The queue worker is not running: systemctl status 'saas-queue@*'. Installed by hand, it must read all four queues.
  • GEMINI_API_KEY is missing while embeddings use Gemini.
  • pgvector is not enabled in the database. Run CREATE EXTENSION vector; as a superuser.

Live updates do not arrive

New messages only show after a refresh. The panels cannot reach the websocket server.

  • Reverb is not running: systemctl status saas-reverb.
  • NEXT_PUBLIC_PUSHER_KEY differs from REVERB_APP_KEY, or the host, port or scheme do not match.
  • The site is on HTTPS but the websocket is not. See Live updates.

The phone agent does not answer

  • The voice bridge is not running: systemctl status saas-voice. It is there only when you answered yes to the phone agent; run sudo bash server/setup.sh again to add it.
  • VOICE_BRIDGE_PUBLIC_WSS_URL is not a public wss:// address that reaches port 9500 through your TLS proxy. Twilio must be able to open it from the internet.
  • The audio stream was not started by your API. The bridge only accepts streams whose parameters the API signed in the call's instructions to Twilio, so the API and the bridge must read the same .env (the same VOICE_TOOL_INTERNAL_SECRET, or APP_KEY when that is empty); restart the bridge after changing it.
  • TWILIO_WEBHOOK_BASE_URL is not the public HTTPS address of the API. Disconnect the number and connect it again after you correct it, so its webhooks are set again.
  • The OpenAI key has no access to the Realtime model, or the account has no credit.

The purchase code is not accepted

Settings → License, the web installer and the setup say why a code is not accepted.

What you seeCauseFix
The code was not foundA typo, or another number from the purchase, such as the order numberCopy it again from your CodeCanyon Downloads page. See Your purchase code
The code belongs to another CodeCanyon itemThe code of another item you boughtEnter the code of your Deskply purchase
The code is in use on another domainThe code is confirmed for another domain, and one license covers one domainOn that site, press Deactivate on this site under Settings → License, then enter the code here. If that site is gone, ask support to reset the code
The code has used up its domain moves or development sitesThree copies on localhost, a private address or a .test name hold the code already, or this installation changed its domain three times in 30 daysDeactivate a copy you no longer use, or ask support to reset the code
This is a development copyThe API runs on localhost, a private address or a .test nameSuch a copy never takes live payments or bank transfer, whatever the license. Use Stripe test keys there; live payments work on the site's own domain
The code was refunded or cancelledEnvato refunded or cancelled the saleA refunded code stays off. Buy a license and enter its code
The code is not confirmed yetThe site could not reach the license serverNothing stops, and the code is checked again every hour. The API server must reach https://crinsider.onestweb.com on port 443; a firewall that blocks outgoing HTTPS stops the check. Then press Check now
The license was confirmed for another domainAPP_URL changed after the code was confirmedEnter the code again under Settings → License. That moves the license to the new domain, up to three times in 30 days

Customers read “Online payments aren't available”

Customers read "Online payments aren't available on this site yet" and cannot choose a paid plan, and as the admin, sending a payment link or giving a customer a paid plan answers "Live payments need an Extended License". Stripe is in live mode, and the site has no confirmed Extended License.

Enter an Extended License purchase code under Settings → License, or use Stripe test keys while you test. Subscriptions Stripe already bills keep renewing either way. Bank transfer needs an Extended License too, so businesses do not see it until there is one, in test mode as well. See License.

A payment does not activate the plan

The customer paid, but the app never heard about it.

  • The queue worker is not running. The API saves each Stripe event and the worker handles it, so the plan starts only once the worker runs.
  • The Stripe webhook is not registered, or points at the wrong address.
  • The endpoint does not send every event in the list under Settings → Payment methods. See Register the webhook.
  • The signing secret in Settings → Payment methods belongs to another endpoint. Test mode and live mode have different secrets.
  • STRIPE_PROJECT_TAG changed after the plans were created.

Stripe lists every delivery and its answer under Developers → Webhooks, and an event can be sent again from there. The API tries the events it could not process again every hour, and each night it compares every running subscription with Stripe and corrects the ones that differ.

Emails do not arrive

Press Send a test email under Settings → Integrations → Email (SMTP) to check the mail server. Check the settings there (or the MAIL_* values in the API's .env while nothing is saved there), then look in the spam folder. If the emails are there, set up SPF and DKIM for your sending domain. See Email.

Images do not load, or the old logo shows

  • Avatars and uploads from another host need that host in IMAGE_REMOTE_HOSTS.
  • A logo you uploaded in Settings → Branding appears within a few minutes: the web app reads the brand again every five minutes.
  • If you replaced one of the default files in public/ instead, delete the .next/cache/images folder of the web app and restart it: it keeps resized copies of images.