Issues with Nginx and Domain
-
I recommend getting nginx and nodebb working with just your IP address.
server_name 1.2.3.4;
then when that working you switch it to use the domain. -
@PitaJ It was working with my IP. I had the warning box "looks like you lost connection to nodebb etc etc.." and I saw how to fix it and one method is by using your domain. Then i did everything in the docs, It didn't worked then i tried howtoforge method and still. After that forum stopped working on IP and you already saw what happend when i try to use the domain. Note that I completely uninstalled NGINX before switching from docs method to howtoforge
-
This post is deleted!
-
Either your password is wrong or mongo isn't running. Try restarting the mongod service.
-
@PitaJ Fixed that, Now im Getting this while executing
./nodebb setup
root@SAMPFIVE:~/nodebb# ./nodebb setup package.json not found. Populating package.json... OK Dependencies outdated or not yet installed. Installing them now... npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated [email protected]: Fixed a critical issue with BSON serialization documented in CVE-2019-2391, see https://bit.ly/2KcpXdo for more details npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t git://github.com/thomaspark/bootswatch.git npm ERR! npm ERR! fatal: failed to stat '/root/nodebb': Permission denied npm ERR! npm ERR! exited with error code: 128 npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-06-07T17_22_46_686Z-debug.log Error installing dependencies! message: Command failed: npm install --production stdout: null stderr: null /root/nodebb/src/cli/package-install.js:72 throw e; ^ Error: Command failed: npm install --production at checkExecSyncError (child_process.js:630:11) at Object.execSync (child_process.js:666:15) at Object.installAll (/root/nodebb/src/cli/package-install.js:63:9) at Object.<anonymous> (/root/nodebb/src/cli/index.js:60:18) at Module._compile (internal/modules/cjs/loader.js:1138:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) at Module.load (internal/modules/cjs/loader.js:986:32) at Function.Module._load (internal/modules/cjs/loader.js:879:14) at Module.require (internal/modules/cjs/loader.js:1026:19) at require (internal/modules/cjs/helpers.js:72:18) { status: 1, signal: null, output: [ null, null, null ], pid: 4032, stdout: null, stderr: null }
-
Done. So you guys want me to put my domain "sampfive.me" in this line right?
-
@Dan-Reyes Again, it's in the documentation. Read it carefully.
If it's https://sampfive.me then enter this.
But @PitaJ advised you to first test with IP before adding your domain. This parameter can be modified in config.json
-
@Dan-Reyes And I advised you to check your redirection in your reverse proxy, which you didn't do because sampfive.me seems to be already redirected.
-
@Dan-Reyes Try with http://66.96.162.138:4567 as url in config.json
-
@Dan-Reyes sorry to hear you're having issues.
I will preface this with the simple fact that you did get NodeBB working, and it's nginx that's giving you trouble. Nginx is sometimes difficult to get right, especially if you do not have experience with it.
So let's break down the steps. You want NodeBB working with Nginx but nginx is giving you a blank page.
Firstly, let's get your latest configs, can you paste your nginx config (for NodeBB), and your NodeBB
config.json
?Secondly, you want sampfive.me or forum.sampfive.me?
-
@julian Hello Issue is already fixed thanks to @Per0x It was Nginx yes, But now i have a problem. For some reason the forum don't load new profile pictures. Let me explain you;
I upload my first profile picture, everyone can see it. But if i update my profile picture no one can see the new one until they delete Cache/cookies.