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-….loginstorage/logs/. Most problems leave a line there. - The browser console and its Network tab, for a problem in the web app.
- The health check:
/upon 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 says | What to do |
|---|---|
MISSING in the check | Install 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 one | Unpack 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 443 | Stop it, or see With Apache |
| nginx may not read the folder | The download is under /home or /root. Move it: sudo mv saas /var/www/ |
| nginx already serves the domain | Another site of this server has that name. Remove that site, or use another name |
| HTTPS certificate failed | A 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 name | The 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 failed | The server cannot reach registry.npmjs.org. Check its internet connection |
Building the web app failed, with Killed or heap out of memory | There is not enough memory. Add swap, or choose a server with 4 GB |
| A database called saas already has tables | Write its password in DB_PASSWORD in backend/.env, or another name in DB_DATABASE and DB_USERNAME |
| A service is not running | The 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 see | Cause | Fix |
|---|---|---|
| A network error | The web app cannot reach the API | Check NEXT_PUBLIC_API_BASE_URL, then run server/restart.sh |
| A CORS error in the console | The API does not trust the address of the web app | Set FRONTEND_URL, or CORS_ALLOWED_ORIGINS, in the API, then run server/restart.sh |
| You are sent back to the sign-in screen | The session cookie is not accepted | Set 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 twenty | Wait, 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 hours | Admin sign-ins last ADMIN_TOKEN_TTL_HOURS hours, 12 by default | Sign in again, or raise the value in the API's .env |
| Everyone seems to come from one IP address and hits the limit together | The API sits behind a proxy that is not in TRUSTED_PROXIES | List 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.
| What | Limit |
|---|---|
| Sign-up | 5 a minute |
| Customer sign-in and admin sign-in | 10 a minute, besides the blocks after wrong passwords |
| Leads from the public site | 5 a minute; the message of a lead holds at most 5,000 characters |
| Website chat messages | 20 a minute, besides the limits set under Settings → Billing rules |
| Bookings on a public booking page | 5 a minute; confirming, cancelling or moving a booking from its link, 20 a minute |
| The live demo of Settings → Demo Chat | 30 chat messages and 10 calls a minute, besides its limits per session and per day |
A channel does not connect
- “This connection link has expired or was already used”: each Connect link works once, for 30 minutes. Click Connect again on the Platforms page.
- “Started from another account”: the link was made by another customer. Sign in to your own account and click Connect there.
- Meta or Google refuses the redirect address (“URL blocked”,
redirect_uri_mismatch): the address registered with the provider differs from the one the API sends. RegisterFRONTEND_URL/platformsin the Meta app, andFRONTEND_URL/calendar/google/callbackandFRONTEND_URL/admin/calendar/google/callbackin the Google client. CheckFRONTEND_URLand any*_REDIRECT_URIoverride in the API; Settings → Integrations shows the addresses in use. - Back from Meta or Google, the panel asks you to sign in: the connection finishes in the panel, with the session of the signed-in account. Sign in with the account that clicked Connect, in the same browser: the connection then finishes. Another account gets “started from another account”.
- A message about the plan: the customer's plan allows no more channels, or not this type. Change the plan under Subscription → Packages, or move the customer to another plan.
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.
- 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 - 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 - The key of your chat provider is set, and the account has credit.
- 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.
- The agent is active, and the AI is not switched off for that conversation in the inbox.
- 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_KEYis 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_KEYdiffers fromREVERB_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; runsudo bash server/setup.shagain to add it. VOICE_BRIDGE_PUBLIC_WSS_URLis not a publicwss://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 sameVOICE_TOOL_INTERNAL_SECRET, orAPP_KEYwhen that is empty); restart the bridge after changing it. TWILIO_WEBHOOK_BASE_URLis 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 see | Cause | Fix |
|---|---|---|
| The code was not found | A typo, or another number from the purchase, such as the order number | Copy it again from your CodeCanyon Downloads page. See Your purchase code |
| The code belongs to another CodeCanyon item | The code of another item you bought | Enter the code of your Deskply purchase |
| The code is in use on another domain | The code is confirmed for another domain, and one license covers one domain | On 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 sites | Three copies on localhost, a private address or a .test name hold the code already, or this installation changed its domain three times in 30 days | Deactivate a copy you no longer use, or ask support to reset the code |
| This is a development copy | The API runs on localhost, a private address or a .test name | Such 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 cancelled | Envato refunded or cancelled the sale | A refunded code stays off. Buy a license and enter its code |
| The code is not confirmed yet | The site could not reach the license server | Nothing 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 domain | APP_URL changed after the code was confirmed | Enter 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_TAGchanged 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/imagesfolder of the web app and restart it: it keeps resized copies of images.