admin Hello serv00 Support,
I am having persistent issues getting my Node.js application to start and run correctly under Phusion Passenger on my account. My Discord bot, which includes an Express web API, is currently offline because Passenger is not launching it.
My Username: ericperry
Affected Domain: weiget.ericperry.serv00.net (configured as Node.js type website)
Problem Description:
When I try to access the web API endpoint at https://weiget.ericperry.serv00.net/widget, I consistently receive a 404 Not Found error.
Crucially, my application's error log file (/usr/home/ericperry/domains/weiget.ericperry.serv00.net/logs/error.log) remains completely empty after multiple devil www restart commands. This indicates that Passenger is not even attempting to start the application, or is failing at an extremely early, silent stage, thus generating no logs. My Discord bot is also currently offline because of this.
Steps I have already taken and confirmed:
Application Files: All Node.js application files (app.js, node_modules/, package.json, .env, db.sqlite) are correctly located in the designated directory: /usr/home/ericperry/domains/weiget.ericperry.serv00.net/public_nodejs/.
Entry Point: index.js was renamed to app.js (ls -l app.js confirms existence and correct permissions).
Module Type: I have converted app.js to CommonJS format (using require() instead of import) and removed the "type": "module" field from package.json.
Static Files: Confirmed that there is no public subdirectory within /usr/home/ericperry/domains/weiget.ericperry.serv00.net/public_nodejs/ to avoid static file conflicts.
Permissions: All relevant directories (public_nodejs/ and logs/) and files (app.js) have correct permissions (e.g., 755 for directories, 644 for app.js).
Environment Variables: My ~/.bash_profile file has been created and contains all necessary export variables (DISCORD_TOKEN, GUILD_ID, AMAP_KEY, AQICN_TOKEN, etc.) for the bot to run. I've run source ~/.bash_profile.
Restart Attempts: I have repeatedly used devil www restart weiget.ericperry.serv00.net to restart the application.
PM2 Interference: Confirmed that there are no lingering pm2 processes (e.g., pm2 list shows an empty list).
Code Functionality: The bot's code itself works correctly when launched manually (e.g., via npm start in an SSH session, as observed before migrating to Passenger).
Request for Assistance:
Given that the error.log remains empty, it strongly suggests that Phusion Passenger is failing to initialize or execute my Node.js application at a fundamental level that I cannot diagnose from my user account.
Could you please investigate the Passenger configuration for weiget.ericperry.serv00.net and determine why it is not starting my Node.js application? I need assistance in ensuring that HTTP/HTTPS requests to dynamic routes like /widget are correctly handled by my running Node.js application.
Thank you for your time and help.
um