Installation Troubleshooting
Resolve common issues encountered during the NexWrite installation process on VPS, PaaS, or localhost with this comprehensive troubleshooting guide.
If you’re experiencing difficulties during the NexWrite installation or deployment process, this guide will help you identify and fix common issues. Below you’ll find error categories with detailed solutions.
Before You Begin
Before diving into specific problems, ensure the following:
- Your system meets all server requirements.
- You’re using the latest version of the NexWrite ZIP archive.
- You’ve followed the appropriate installation guide for your environment:
VPS, PaaS, or Localhost.
Common Issues and Solutions
404 Error at /install or Blank Page
404 Error at /install or Blank Page
If you open /install
and get a 404 error or a blank screen:
-
Check Nginx or hosting config: Make sure your Nginx (or other proxy) is pointing to the
public
folder inside your project: -
Verify that files are extracted: Ensure the script archive was fully extracted and no files are missing.
-
Wrong working directory: Make sure you’re running the server from the project root (
/var/www/medium-clone
).
MongoDB Connection Errors
MongoDB Connection Errors
If you get a “MongoError” or “Failed to connect to MongoDB” message:
-
Incorrect URI: Double-check your MongoDB connection string. Examples:
- MongoDB Atlas:
- Local MongoDB:
- MongoDB Atlas:
-
IP Whitelist (Atlas only): Ensure your server IP is added to the Network Access in MongoDB Atlas.
-
Authentication failure: Make sure the username and password used in your URI match the user created in your MongoDB instance.
-
Firewall or port issue: If self-hosted, ensure port 27017 is open.
Installation Wizard Fails or Doesn't Load
Installation Wizard Fails or Doesn't Load
If the /install
page fails to load, shows a spinner forever, or crashes:
-
Check server logs:
-
Missing .env or config issues: During installation, no
.env
file is required — all variables are created automatically. Do not attempt to preconfigure.env
. -
Browser cache: Clear the browser cache or try opening
/install
in incognito mode. -
SSL misconfig: If using HTTPS, verify your SSL certificate and redirect rules (especially with Nginx or Cloudflare).
Server Crashes or Restarts on Its Own
Server Crashes or Restarts on Its Own
If the Node.js server crashes after install or mid-use:
-
Check PM2 logs:
-
Uncaught exceptions: Common causes include:
- Wrong JWT secret (rare if set through the wizard)
- Invalid MongoDB connection
- Out-of-memory issues on small VPS (upgrade to at least 2GB RAM)
-
Fix file permission issues:
-
Restart PM2 properly:
Admin Login Not Working After Setup
Admin Login Not Working After Setup
If you’ve completed setup but can’t log in:
-
Wrong credentials: Double-check spelling, case sensitivity, and extra spaces.
-
MongoDB write failure: If the admin account wasn’t saved to the database, it’s usually a connection issue. Revisit
/install
. -
Browser autofill conflict: Clear your browser autofill data or try from incognito mode.
-
Try resetting via Mongo CLI: If you’re advanced, log into MongoDB and reset the admin user manually (available upon request via support).
-
Admin panel features not showing: If you log in but don’t see all admin features (e.g., missing menus or buttons), it may be caused by an expired or invalid token. Simply log out and log back in — this will refresh your session and restore full access to the admin interface.
500 Internal Server Error or App Not Responding
500 Internal Server Error or App Not Responding
-
Check PM2 logs:
-
Static files not found: NexWrite ships with a prebuilt frontend. If you see static file errors, ensure the contents of the
client/build
or embedded React build are present inside thepublic
folder. You should not need to rebuild anything. -
Insufficient resources: VPS must have at least 2GB RAM. Use
htop
ortop
to monitor memory usage. -
Port already in use: Make sure no other service (e.g., previous Node process) is running on the same port.
Additional Debugging Tips
-
Always check PM2 logs:
-
If using Nginx, check:
-
Inspect your MongoDB connection separately using a tool like MongoDB Compass.
-
Verify SSL and HTTPS redirect rules are correctly set up if you enabled HTTPS.
Getting Further Help
If you’re still facing issues:
-
Collect the following information:
- Error logs (
pm2 logs
, Nginx logs) - VPS specs (RAM, OS version)
- Steps to reproduce the error
- Screenshot or full error message
- Error logs (
-
Contact our support team:
📩 support@jooj.us
Most issues are solved by checking the logs and carefully reviewing each step of the installation. If something fails, don’t panic — 90% of problems are minor misconfigurations or missing steps.