Can anyone help here? I've not been able to figure anything out past this point.
Mike Kunkel
Posts
-
Migrating to a new DB host - Can't connect, undefined -
Migrating to a new DB host - Can't connect, undefinedWe are attempting to move our MongoDB install to a different server. I set that up and used
mongorestore
to restore amongodump
from the previous server. After that I changed the config.json to point to the new host, and I tried to connect.When running
node app.js
I get:27/4 16:31 [8274] - info: NodeBB v1.4.0 Copyright (C) 2013-2017 NodeBB Inc. 27/4 16:31 [8274] - info: This program comes with ABSOLUTELY NO WARRANTY. 27/4 16:31 [8274] - info: This is free software, and you are welcome to redistribute it under certain conditions. 27/4 16:31 [8274] - info: 27/4 16:31 [8274] - info: Time: Thu Apr 27 2017 16:31:42 GMT-0400 (EDT) 27/4 16:31 [8274] - info: Initializing NodeBB v1.4.0 27/4 16:31 [8274] - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: undefined 27/4 16:31 [8274] - error: err=socketHandler, trace=, bin=undefined, sizeOfMessage=1347703880, bytesRead=undefined, stubBuffer=undefined
What am I missing here?
-
Can't post, javascript not loading@julian I found this after re-reading the NodeBB NGINX configuration docs
nginx must be on version 1.4.x to properly support websockets. Debian/Ubuntu uses 1.2, although it will work there will be a reduction in functionality.
Previously, in the same doc:
NGINX version v1.3.13 or greater
I'm not sure if that is just a sign of an outdated doc, or if there is actually some type of incompatibility (which apparently doesn't surface everywhere). All I know is that by reverting to 1.4.x, all functionality was restored.
-
Can't post, javascript not loadingThis is resolved. For anyone who comes across this later, the solution was to downgrade nginx to 1.4.x. This is due to issues with websockets in later versions.
-
Can't post, javascript not loadingI forgot to add something that could be important. I had upgraded nginx to 1.10.1. I believe it was 1.4.x before.
-
Can't post, javascript not loadingI received reports that our NodeBB forum was not working properly. When I checked, clicking the New Topic button does nothing. Clicking Login to enter the admin console opens a new tab saying "forbidden".
I checked the browser console and see two errors:GET http://forum.server.com/nodebb.min.js?519f041b-2879-4a4d-9da5-5babe9232ee7 net::ERR_INCOMPLETE_CHUNKED_ENCODING
Uncaught ReferenceError: require is not defined at login:439
I'm not sure why nodebb.min.js is not loading. If I try to open that url in the browser, it does not work, but does work if I remove the query string.
I upgraded to latest NodeBB and it still doesn't work.
For more context, I had been doing some server maintenance last night and may have caused a problem. I changed nothing in the nginx config for NodeBB. I did reboot the server and had to manually start NodeBB.
Is it possible that there is a service that I also need to start manually? Help!
-
NodeBB as an SSO provider?I guess that could work. I was hoping that NodeBB could somehow be set up as an oauth2 provider. Any guidance on if that is possible would be appreciated.
-
NodeBB as an SSO provider?We originally thought that NodeBB was going to be all that we need, but discovered a need for a wiki or knowledge base. We would need that service to be restricted to users of our forum, but don't want to force users to create a second account.
I've been looking around and haven't had any luck. Is there anything that would allow NodeBB to act as an SSO provider for other services?