Hi, we see increased numbers of these log entries in mongoDB
{"t":{"$date":"2024-10-09T09:30:16.143+02:00"},"s":"I", "c":"COMMAND", "id":51803, "ctx":"conn39","msg":"Slow query","attr":{"type":"command","ns":"nodebb.objects","command":{"find":"objects","
filter":{"_key":"topics:tid"},"sort":{"score":1},"projection":{"_id":0,"_key":0,"score":0},"skip":129000,"limit":500,"lsid":{"id":{"$uuid":"dedb7031-7a1d-4cc0-82ba-1a47d0d18b35"}},"$db":"nodebb"},"
planSummary":"IXSCAN { _key: 1, score: -1 }","planningTimeMicros":123,"cursorid":669374630645032835,"keysExamined":129101,"docsExamined":101,"fromMultiPlanner":true,"replanned":true,"replanReason":
"cached plan was less efficient than expected: expected trial execution to take 10001 reads but it took at least 100011 reads","nBatches":1,"numYields":244,"nreturned":101,"queryHash":"A3928A9F","p
lanCacheKey":"ED34AECF","queryFramework":"sbe","reslen":2821,"locks":{"FeatureCompatibilityVersion":{"acquireCount":{"r":245}},"Global":{"acquireCount":{"r":245}}},"storage":{"data":{"bytesRead":21
6878,"timeReadingMicros":195}},"cpuNanos":224969561,"remote":"127.0.0.1:54830","protocol":"op_msg","durationMillis":224}}
What is the proper way to check if indexes are setup correctly?
We have left cache sizes in nodeBB as default so far - do they impact those kind of issues?
I see Post Cache Hit Ratio only at 25%.
I assume increasing the post cache size has effect on mem needed for the node process?
Thanks
SK
This is my config for mongo and redis:
{
"url": "https://mydomain",
"secret": "mykey",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "nodebb",
"password": "nodebb",
"database": "nodebb",
"uri": ""
},
"port": ["8900","8901","8902"],
"bcrypt_rounds": "21",
"bind_address": "127.0.0.1",
"isCluster": "false",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "2"
},
"session_store": {
"name": "redis",
"host":"127.0.0.1",
"port":"6379",
"password": "",
"database": "1",
"tls": {}
}
}
I see a problem with data on NodeBB, ex: when i change site title in /admin/settings/general, it effect is true on FE and Admin. After 5 mins ( around), title will be changed to site title old, after 5 or 10 mins more, site title new back. Maybe, logic sync is not true?
Shooud i use "session_store" redis server for scale up with 10k users realtime? ( just thinking)
Hello,
I've recently encountered something of the most weird kind : user accounts are mixed up. What I mean is that for example, a user A can login to their account, with their username and password, but will have access to an account B, including settings, emails, posts and more.
It is a profound security issue, and is also causing great confusion.
I've had to restore a backup of the database a few months back, and this issue did not appear at the time. Some accounts do no appear to be affected, as mine for example is normal.
Did anyone else have this issue ? Can I do anything to resolve it ?
I was thinking of deleting all the accounts and re-creating them and inviting the users to reset their passwords en masse, for example by exporting all the users to a CSV and then re-inviting them, but I am not sure it will resolve the issue.
It seems as if the user's ID have been linked to two accounts. A strange case of data schyzophrenia.
The forum is also extremely slow and shows a very high mongoDB usage.
Thank you for your help,
Cheers
I'm currently running NodeBB 3.9.0.
Howdy!
I was running 3.9.1 and just upgraded to 3.10.1. Both prior to the upgrade and now, I haven't been able to delete categories - which is what I believe "Purge Category" is meant to mean, but I don't see any documentation around this.
The Purge Category button seems to do nothing, in any category. I can't find any way to delete categories I don't want, and after creating a new test category I can't get rid of it either.
Am I missing something, or is there something I can do to find out why the button seems to do nothing? (This is happening in both Firefox & Chrome desktop versions on Linux, and when looking at the developer tools in Firefox there's not really anything that seems to happen anywhere when I click on the button - but, I'm not an expert at debugging sites, so I could easily be not doing the right things to get useful information out of it)
Hi @bh4-tech let's keep the discussion here so as to not pollute the other thread.
To debug federation issues you'll need to check the server-side logs as events happen. You can use activitypub.academy to send yourself public and private posts, which should be parsed by your app. Likely there is some error or perhaps your privileges are not set up correctly.
I Need to impliment the saml in my nodebb forum and i have created a plugin for that and im getting the response of the saml on my code but i'm not able to do the user login or signup with that, i have confussion on that what hook's or plugin i need to use to make that login or signup work. i'm also sharing my code so that you can help better. @baris @julian
router.post('/assert', async function (req, res) {
const decodedResponse = Buffer.from(req.body.SAMLResponse, 'base64').toString('utf-8');
const parser = new xml2js.Parser();
const saml_response = await parser.parseStringPromise(decodedResponse);
const issuer = saml_response['saml2p:Response']['saml2:Issuer'][0];
const assertion = saml_response['saml2p:Response']['saml2:Assertion'][0];
const subject = assertion['saml2:Subject'][0];
const nameId = subject['saml2:NameID'][0];
const existingUser = await User.getUidByEmail(nameId._);
if (existingUser) {
await authenticationController.onSuccessfulLogin(req, existingUser.uid);
return res.redirect('/home');
} else {
// Create a new user
const newUser = {
fullname: 'testfullname',
username: 'testfullname',
email: nameId._,
created_at: new Date(),
};
const result = await db.client.collection('objects').insertOne(newUser);
if (result.insertedId) {
await User.setUserField(result.insertedId, 'email', newUser.email);
// await UserEmail.confirmByUid(result.insertedId);
await authenticationController.onSuccessfulLogin(req, result.insertedId);
return res.redirect('/');
} else {
return res.status(500).send('Error creating new user.');
}
}
});
I get the following error trying to upgrade:
Ubuntu 24.04, PostgreSQL 17.0.1
3. Checking installed plugins for updates...Checking installed plugins and themes for updates... (node:188205) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Warning: An unexpected error occured when attempting to verify plugin upgradability
Error occurred during upgrade: TypeError: fetch failed
at node:internal/deps/undici/undici:13185:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async call (/var/www/vhosts/domain/NodeBB/src/request.js:37:19)
at async getSuggestedModules (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:78:27)
at async checkPlugins (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:101:27)
at async upgradePlugins (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:125:17)
at async Object.handler (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:29:4)
at async runSteps (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:55:5)
at async Object.runUpgrade [as upgrade] (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:98:3)
2024-10-09T13:53:09.962Z [4567/188205] - error: uncaughtException: fetch failed
TypeError: fetch failed
at node:internal/deps/undici/undici:13185:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async call (/var/www/vhosts/domain/NodeBB/src/request.js:37:19)
at async getSuggestedModules (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:78:27)
at async checkPlugins (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:101:27)
at async upgradePlugins (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:125:17)
at async Object.handler (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:29:4)
at async runSteps (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:55:5)
at async Object.runUpgrade [as upgrade] (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:98:3) {"date":"Wed Oct 09 2024 15:53:09 GMT+0200 (Central European Summer Time)","error":{},"exception":true,"os":{"loadavg":[1.34,0.84,0.38],"uptime":91367.25},"process":{"argv":["/opt/plesk/node/22/bin/node","/var/www/vhosts/domain/NodeBB/nodebb","upgrade"],"cwd":"/var/www/vhosts/domain/NodeBB","execPath":"/opt/plesk/node/22/bin/node","gid":1003,"memoryUsage":{"arrayBuffers":66859,"external":3415358,"heapTotal":25841664,"heapUsed":22144224,"rss":96079872},"pid":188205,"uid":10011,"version":"v22.9.0"},"stack":"TypeError: fetch failed\n at node:internal/deps/undici/undici:13185:13\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async call (/var/www/vhosts/domain/NodeBB/src/request.js:37:19)\n at async getSuggestedModules (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:78:27)\n at async checkPlugins (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:101:27)\n at async upgradePlugins (/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js:125:17)\n at async Object.handler (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:29:4)\n at async runSteps (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:55:5)\n at async Object.runUpgrade [as upgrade] (/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js:98:3)","trace":[{"column":13,"file":"node:internal/deps/undici/undici","function":null,"line":13185,"method":null,"native":false},{"column":5,"file":"node:internal/process/task_queues","function":"process.processTicksAndRejections","line":105,"method":"processTicksAndRejections","native":false},{"column":19,"file":"/var/www/vhosts/domain/NodeBB/src/request.js","function":"async call","line":37,"method":null,"native":false},{"column":27,"file":"/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js","function":"async getSuggestedModules","line":78,"method":null,"native":false},{"column":27,"file":"/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js","function":"async checkPlugins","line":101,"method":null,"native":false},{"column":17,"file":"/var/www/vhosts/domain/NodeBB/src/cli/upgrade-plugins.js","function":"async upgradePlugins","line":125,"method":null,"native":false},{"column":4,"file":"/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js","function":"async Object.handler","line":29,"method":"handler","native":false},{"column":5,"file":"/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js","function":"async runSteps","line":55,"method":null,"native":false},{"column":3,"file":"/var/www/vhosts/domain/NodeBB/src/cli/upgrade.js","function":"async Object.runUpgrade [as upgrade]","line":98,"method":"runUpgrade [as upgrade]","native":false}]}
Hi,
I have been having a nightmare updating mongod and nodebb.
My developer had successfully migrated nodebb to a new server with latest mongod and nodebb version , we migrated old data from old server to new server, all was good till yesterday but today there seems to be few issues. Site not loading for users. Yesterday users were complaining that imagemagick was not working so he disabled it. as users were unable to upload profile pics and i was not able to save admin changes.
now whenever i run nodebb, on live site i get socket io 403 forbidden.
I have read your posts here so its not origin url error since its happening on main url too https://chatrooms.talkwithstranger.com but i m temporarily redirecting to another page as users r having bad experience seeing broken site, you can see nodebb on this url
i have read ur posts here https://github.com/NodeBB/NodeBB/issues/5472 so its not this issue. its something else. @baris @julian
I did so many things but nothing worked, below i m providing you details.
root@Himalaya-New:/var/www/community# cat package.json | grep version
"version": "3.10.0",
"compare-versions": "6.1.1",
root@Himalaya-New:/var/www/community#
root@Himalaya-New:/var/www/community# mongod --version
db version v6.0.17
Build Info: {
"version": "6.0.17",
"gitVersion": "1b0ca02043c6d35d5cfdc91e21fc00a05d901539",
"openSSLVersion": "OpenSSL 3.0.13 30 Jan 2024",
"modules": [],
"allocator": "tcmalloc",
"environment": {
"distmod": "ubuntu2204",
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
Live url was https://chatrooms.talkwithstranger.com but because its down i am redirecting users to another page temporarily.
403 forbidden coming on socket io. yes i am using cloudflare but IP don't go through CF, right then why 403 forbidden?
[image: 1728739819423-79d7151e-6b97-4dbd-97c2-25ef6a46fe5c-image-resized.png]
Below are some history commands of what i tried so far but no luck.
1999 cd "/var/www/community"
2000 ./nodebb log
2001 sudo systemctl status mongod
2002 ./nodebb log
2003 ./nodebb restart
2004 ./nodebb log
2005 sudo systemctl restart mongod
2006 sudo systemctl status mongod
2007 ./nodebb log
2008 ./nodebb stop
2009 ./nodebb start
2010 ./nodebb log
2011 sudo tail -f /var/log/mongodb/mongod.log
2012 mongo
2013 mongod
2014 ps aux | grep mongod
2015 docker ps
2016 docker stop 86b913d8a821
2017 mongod
2018 sudo systemctl restart mongod
2019 mongo
2020 mongod
2021 ./nodebb log
2022 ./nodebb restart
2023 ./nodebb log
2024 sudo systemctl status mongod
2025 sudo systemctl stop mongod
2026* sudo systemctl start nongo
2027 sudo systemctl stop mongod
2028 sudo systemctl start mongod
2029 sudo systemctl status mongod
2030 sudo cat /var/log/mongodb/mongod.log
2031 df -h
2032 sudo systemctl start mongod
2033 sudo systemctl status mongod
2034*
2035 sudo systemctl status mongod
2036 sudo systemctl start mongod
2037 sudo systemctl status mongod
2038 sudo less /var/log/mongodb/mongod.log
2039 mongod
2040 sudo chown -R mongodb:mongodb /var/lib/mongodb
2041 sudo chown -R mongodb:mongodb /var/log/mongodb
2042 sudo systemctl start mongod
2043 sudo systemctl status mongod
2044 sudo systemctl stop mongod
2045 sudo systemctl start mongod
2046 sudo systemctl status mongod
2047 mongod
2048 sudo systemctl restart mongod
2049 sudo systemctl status mongod
2050 mongod
2051 ls -ld /var/lib/mongodb
2052 sudo chown -R mongodb:mongodb /var/lib/mongodb
2053 sudo systemctl start mongod
2054 sudo systemctl status mongod
2055 sudo less /var/log/mongodb/mongod.log
2056 sudo systemctl stop mongod
2057 sudo truncate -s 0 /var/log/mongodb/mongod.log
2058 sudo systemctl start mongod
2059 sudo systemctl status mongod
2060 sudo less /var/log/mongodb/mongod.log
2061 ps aux | grep mongod
2062 sudo kill 1126153
2063 ps aux | grep mongod
2064 sudo kill 1283446
2065 ps aux | grep mongod
2066 sudo pkill mongod
2067 ps aux | grep mongod
2068 ps aux | grep [m]ongod
2069 ./nodebb stop
2070 sudo kill -9 1283897
2071 sudo systemctl stop mongod
2072 ps aux | grep [m]ongod
2073 sudo less /var/log/mongodb/mongod.log
2074 ls -l /tmp/mongodb-27017.sock
2075 sudo rm /tmp/mongodb-27017.sock
2076 ls -ld /tmp
2077 sudo chown -R mongodb:mongodb /var/lib/mongodb
2078 sudo chown -R mongodb:mongodb /var/log/mongodb
2079 sudo systemctl start mongod
2080 sudo systemctl status mongod
2081 ./nodebb start
2082 ./nodebb log
2083 sudo systemctl status mongod
2084 ./nodebb log
2085 ./nodebb stop
2086 ./nodebb start
2087 ./nodebb stop
2088 ./nodebb start
2089 ./nodebb log
2090 mongo --host localhost --port 27017
2091 sudo less /var/log/mongodb/mongod.log
2092 sudo truncate -s 0 /var/log/mongodb/mongod.log
2093 sudo less /var/log/mongodb/mongod.log
2094 ./nodebb stop
2095 sudo less /var/log/mongodb/mongod.log
2096 sudo truncate -s 0 /var/log/mongodb/mongod.log
2097 sudo less /var/log/mongodb/mongod.log
2098 ./nodebb start
2099 sudo less /var/log/mongodb/mongod.log
2100 clear
2101 sudo less /var/log/mongodb/mongod.log
2102 ./nodebb log
2103 ./nodebb stop
2104 ./nodebb start
2105 ./nodebb log
2106 ./nodebb stop
2107 ls -l /tmp/mongodb-27017.sock
2108 ls -ld /tmp
2109 ./nodebb restart
2110 mongod
2111 history
2112 sudo systemctl status mongod
2113 sudo systemctl restart mongod
2114 sudo systemctl status mongod
2115 mongod
2116 sudo nano /lib/systemd/system/mongodb.service
2117 mongod --config /etc/mongod.conf
2118 systemctl status mongodb
2119 sudo nano /lib/systemd/system/mongodb.service
2120 sudo nano /etc/systemd/system/mongodb.service
2121 sudo systemctl stop mongodb
2122 sudo systemctl stop mongod
2123 sudo systemctl start mongod
2124 sudo systemctl statusmongod
2125 sudo systemctl status mongod
2126 mongod
2127 sudo chown -R mongodb:mongodb /var/lib/mongodb
2128 sudo systemctl start mongod
2129 sudo systemctl status mongod
2130 cat /var/log/mongodb/mongod.log
2131 sudo systemctl start mongod
2132 sudo systemctl status mongod
2133 sudo journalctl -u mongod.service -b
2134 mongod --config /etc/mongod.conf --syslog --fork
2135 sudo ls -l /var/log/mongodb/mongod.log
2136 sudo mongod --config /etc/mongod.conf --fork
2137 sudo systemctl start mongod
2138 sudo systemctl status mongod
2139 sudo tail -n 50 /var/log/mongodb/mongod.log
2140 sudo ls -l /tmp/mongodb-27017.sock
2141 ls -ld /tmp
2142 sudo rm /tmp/mongodb-27017.sock
2143 sudo systemctl start mongod
2144 sudo systemctl status mongod
2145 sudo tail -n 50 /var/log/mongodb/mongod.log
2146 ps aux | grep mongod
2147 sudo systemctl status mongod
2148 sudo systemctl restart mongod
2149 sudo systemctl status mongod
2150 [200~sudo killall mongod
2151 ~sudo pkill mongod
2152 sudo pkill mongod
2153 ps aux | grep mongod
2154 sudo killall mongod
2155 ps aux | grep mongod
2156 sudo systemctl start mongod
2157 sudo systemctl status mongod
2158 sudo less /var/log/mongodb/mongod.log
2159 sudo systemctl stop mongod
2160 sudo truncate -s 0 /var/log/mongodb/mongod.log
2161 sudo chown mongodb:mongodb /var/log/mongodb/mongod.log
2162 sudo systemctl start mongod
2163 sudo systemctl status mongod
2164 sudo less /var/log/mongodb/mongod.log
2165 ls -ld /var/lib/mongodb
2166 ls -l /var/lib/mongodb
2167 sudo chown mongodb:mongodb /var/lib/mongodb/WiredTiger.turtle
2168 sudo chown -R mongodb:mongodb /var/lib/mongodb
2169 sudo systemctl start mongod
2170 sudo systemctl status mongod
2171 ./nodebb status
2172 ./nodebb start
2173 ./nodebb log
2174 sudo systemctl status mongod
2175 mongod
2176 sudo lsof -i :27017
2177 ./nodebb log
2178 ./nodebb stop
2179 ./nodebb log
2180 docker ps
2181 Then check what is using 9001 using telnet and kill that processs
2182 sudo lsof -i :9001
2183 ./nodebb stop
2184 sudo systemctl status mongod
2185 sudo truncate -s 0 /var/log/mongodb/mongod.log
2186 sudo systemctl restart mongod
2187 sudo systemctl status mongod
2188 mongod
2189 ls -ld /tmp /var/lib/mongodb
2190 sudo rm -f /tmp/mongodb-27017.sock
2191 df -h
2192 mongod --config /etc/mongod.conf --verbose
2193 sudo systemctl status mongod
2194 sudo systemctl start mongod
2195 sudo systemctl status mongod
2196 sudo systemctl start mongod
2197 ls -ld /var/lib/mongodb
2198 sudo chown -R mongodb:mongodb /var/lib/mongodb
2199 sudo chmod 755 /var/lib/mongodb
2200 ps aux | grep mongod
2201 sudo systemctl start mongod
2202 sudo systemctl status mongod
2203 sudo systemctl restart mongod
2204 sudo systemctl status mongod
2205 ./nodebb log
2206 ./nodebb status
2207 ./nodebb start
2208 ./nodebb status
2209 ./nodebb log
2210 sudo systemctl status mongod
2211 sudo systemctl restart mongod
2212 sudo systemctl status mongod
2213 clear
2214 sudo systemctl status mongod
2215 ls -l logs/
2216 ./nodebb log
2217 ./nodebb stop
2218 DEBUG=* ./nodebb start
2219 ./nodebb log
2220 ./nodebb stop
2221 ./nodebb log
2222 ./nodebb start
2223 ./nodebb log
2224 ls -la /var/www/community/logs/
2225 ls
2226 whoami
2227 groups
2228 chown -R root:root /var/www/community/logs
2229 ./nodebb start
2230 ./nodebb log
2231 sudo systemctl status mongod
2232 nodebb version
2233 ./nodebb version
2234 cat package.json | grep version
2235 mongod --version
2236 history
My config
{
"url": "https://chatrooms.talkwithstranger.com",
"secret": "63c2f418-1e6f-4bbf-b3ed-22c30531318b",
"database": "mongo",
"port": [
],
"mongo": {
"host": "",
"port": "",
"username": "",
"password": "",
"database": ""
},
"redis": {
"host": "",
"port": "",
"database": 0
},
"socket.io": {
"cors": {
"origin": ["https://talkwithstranger.com"],
"credentials": true
}
},
"imagemagick": "/usr/bin/convert",
"graphicsmagick": "/usr/bin/gm"
}
mongod.conf
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
# engine:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port:
# bindIp: 127.0.0.1
bindIp: 0.0.0.0
# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
#security:
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
If u need logs, please tell me steps to truncate log file name and then repeat start or restart nodebb or mongo so i can give u correct logs as my log file is very huge for both so its hard to track what is the issue.
I also tried to check on main url at chatrooms.talkwithstranger.com but still JS console shows nothing and site shows empty
[image: 1728740511663-bc08b941-3024-4da0-a82e-97d180eae728-image-resized.png]
[image: 1728740522526-2caedf25-888f-4f62-8f04-0db30ec44d82-image-resized.png]
[image: 1728740607324-e2b38786-b5a5-4c9f-b91f-6d00c6bde2d2-image-resized.png]
Mongod log
[image: 1728740866768-3fd25439-4037-437e-be43-75f88f44aa2a-image-resized.png]
{"t":{"$date":"2024-10-12T13:46:01.380+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn203","msg":"client metadata","attr":{"remote":"127.0.0.1:47186","client":"conn203","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:01.399+00:00"},"s":"I", "c":"ACCESS", "id":20250, "ctx":"conn203","msg":"Authentication succeeded","attr":{"mechanism":"SCRAM-SHA-256","speculative":true,"principalName":"","authenticationDatabase":"","remote":"127.0.0.1:47186","extraInfo":{}}}
{"t":{"$date":"2024-10-12T13:46:01.403+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47202","uuid":"c7aca16d-cddf-4c35-a99a-69417ffd89e3","connectionId":204,"connectionCount":20}}
{"t":{"$date":"2024-10-12T13:46:01.405+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47216","uuid":"8142abbe-5256-4bae-a459-22d085d3ddbb","connectionId":205,"connectionCount":21}}
{"t":{"$date":"2024-10-12T13:46:01.409+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47218","uuid":"8946a9e8-4f17-41b2-929d-9dc8d6ac1bc2","connectionId":206,"connectionCount":22}}
{"t":{"$date":"2024-10-12T13:46:01.412+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn204","msg":"client metadata","attr":{"remote":"127.0.0.1:47202","client":"conn204","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:01.412+00:00"},"s":"I", "c":"ACCESS", "id":20250, "ctx":"conn200","msg":"Authentication succeeded","attr":{"mechanism":"SCRAM-SHA-
{"t":{"$date":"2024-10-12T13:46:01.424+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn206","msg":"client metadata","attr":{"remote":"127.0.0.1:47218","client":"conn206","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:01.425+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn205","msg":"client metadata","attr":{"remote":"127.0.0.1:47216","client":"conn205","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:01.427+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47226","uuid":"639f9dbf-f3b6-409c-9715-2b47c8ce4ca9","connectionId":207,"connectionCount":23}}
{"t":{"$date":"2024-10-12T13:46:01.428+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47236","uuid":"e637f2af-1d6b-40da-b560-b2f5ac12d121","connectionId":208,"connectionCount":24}}
{"t":{"$date":"2024-10-12T13:46:01.438+00:00"},"s":"I", "c":"NETWORK", "id":22943,
{"t":{"$date":"2024-10-12T13:46:01.486+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn213","msg":"client metadata","attr":{"remote":"127.0.0.1:47274","client":"conn213","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:01.496+00:00"},"s":"I", "c":"ACCESS", "id":20250, "ctx":"conn212","msg":"Authentication succeeded","attr":{"mechanism":"SCRAM-SHA-
{"t":{"$date":"2024-10-12T13:46:01.502+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47278","uuid":"7cf721bf-9f1d-4865-8a92-6edf5cf6f538","connectionId":214,"connectionCount":30}}
{"t":{"$date":"2024-10-12T13:46:01.503+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47280","uuid":"1f6cf7b3-751d-4d45-8a96-2096012057b4","connectionId":215,"connectionCount":31}}
{"t":{"$date":"2024-10-12T13:46:01.514+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn214","msg":"client metadata","attr":{"remote":"127.0.0.1:47278","client":"conn214","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:01.515+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn215","msg":"client metadata","attr":{"remote":"127.0.0.1:47280","client":"conn215","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:01.542+00:00"},"s":"I", "c":"ACCESS", "id":20250,
{"t":{"$date":"2024-10-12T13:46:02.984+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47282","uuid":"95ebe824-8617-4001-9db5-6a99cadd8157","connectionId":216,"connectionCount":32}}
{"t":{"$date":"2024-10-12T13:46:02.993+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47296","uuid":"5768f4d7-6941-4c84-ac3a-fe11e751361d","connectionId":217,"connectionCount":33}}
{"t":{"$date":"2024-10-12T13:46:03.003+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn216","msg":"client metadata","attr":{"remote":"127.0.0.1:47282","client":"conn216","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:03.013+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn217","msg":"client metadata","attr":{"remote":"127.0.0.1:47296","client":"conn217","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:03.022+00:00"},"s":"I", "c":"ACCESS", "id":20250,
{"t":{"$date":"2024-10-12T13:46:03.160+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47304","uuid":"38571c02-5145-4727-97e3-2b755bc1481d","connectionId":218,"connectionCount":34}}
{"t":{"$date":"2024-10-12T13:46:03.167+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn218","msg":"client metadata","attr":{"remote":"127.0.0.1:47304","client":"conn218","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:03.168+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47308","uuid":"4f54d0d2-fbd3-48d5-9c41-f8d6fb16e881","connectionId":219,"connectionCount":35}}
{"t":{"$date":"2024-10-12T13:46:03.169+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47314","uuid":"92cd8e96-f5ab-4243-b1fd-ffd5d3986f2d","connectionId":220,"connectionCount":36}}
{"t":{"$date":"2024-10-12T13:46:03.170+00:00"},"s":"I", "c":"ACCESS", "id":20250,
{"t":{"$date":"2024-10-12T13:46:03.187+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn219","msg":"client metadata","attr":{"remote":"127.0.0.1:47308","client":"conn219","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:03.193+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn220","msg":"client metadata","attr":{"remote":"127.0.0.1:47314","client":"conn220","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:03.197+00:00"},"s":"I", "c":"ACCESS", "id":20250, "ctx":"conn220","msg":"Authentication succeeded","attr":{"mechanism":"SCRAM-SHA-2
{"t":{"$date":"2024-10-12T13:46:03.289+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47324","uuid":"d7d3f921-4285-489c-9b55-48a1f1e2b54d","connectionId":221,"connectionCount":37}}
{"t":{"$date":"2024-10-12T13:46:03.299+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn221","msg":"client metadata","attr":{"remote":"127.0.0.1:47324","client":"conn221","negotiatedCompressors":[],"doc":{"driver":{"name":"nodejs","version":"6.9.0"},"platform":"Node.js v20.17.0, LE","os":{"name":"linux","architecture":"x64","version":"6.8.0-36-generic","type":"Linux"}}}}
{"t":{"$date":"2024-10-12T13:46:03.308+00:00"},"s":"I", "c":"ACCESS", "id":20250, "ctx":"conn221","msg":"Authentication succeeded","attr":{"mechanism":"SCRAM-SHA-256","speculative":true,"principalName":"","authenticationDatabase":"","remote":"","extraInfo":{}}}
So I have nodebb on my main domain, e.g. mysite.org
I want to put my own html page at mysite.org/extra
But browser says mysite.org/extra cant be reached, even though the subdurectory exists. Something in the nodebb install on main page is blocking it.
What is causing this and how do I get subdirectory usable?
debian@mail:~$ curl -vI https://packages.nodebb.org
* Trying [2604:a880:cad:d0::4d4:e001]:443...
* Connected to packages.nodebb.org (2604:a880:cad:d0::4d4:e001) port 443 (#0)
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server accepted http/1.1
* Server certificate:
* subject: CN=otherhome.ca
* start date: Sep 30 11:40:17 2024 GMT
* expire date: Dec 29 11:40:16 2024 GMT
* subjectAltName does not match packages.nodebb.org
* SSL: no alternative certificate subject name matches target host name 'packages.nodebb.org'
* Closing connection 0
* TLSv1.3 (OUT), TLS alert, close notify (256):
curl: (60) SSL: no alternative certificate subject name matches target host name 'packages.nodebb.org'
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Please fix this issue as soon as possible.
THX
: )
Dear friend,
i'm testing NodeBB on server: 64GB RAM with 6C/12T dedicate server, 512GB NVME.
I see problem when i have over 60k topic!
[image: 1728647323181-26edbca8-6309-497f-87b1-c8d3fcd81901-image-resized.png]
Testing case:
1. Site load very fast if i don't login.
2. Register slow.
3. Login with any user, loading page very slow.
When i check DB, i see NodeBB use one colum for everything which is problem? any sugest for my case?
I try with method:
1 server for mongoDB
1 server for redis session.
Config.json
{
"url": "https://nodebbv2.servicesio.com",
"secret": "f3e455ac-0a49-4d8d-b70f-50f99c6998aa",
"database": "redis",
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "nodebb",
"password": "nodebb",
"database": "nodebb",
"uri": ""
},
"port": ["4567", "4568" , "4569"],
"bcrypt_rounds": "21",
"bind_address": "0.0.0.0",
"isCluster": "false",
"session_store": {
"name": "redis",
"host":"127.0.0.1",
"port":"6379",
"password": "",
"database": "1"
}
}
Problem is same and i don't see any error log ( test with:. ./nodebb start or node app.js)
I saw some discussions for this before, but it seems like it never has been pursued.
Would it be possible to create a plugin which enables a forum wide gallery? Similar to what other forums offer.
Features:
Upload images outside of topics
Create and manage albums
Allow users to comment and like images
Widget to display latest images
Notify image/album owners of new comments/likes
How complex is this?
Would this be interesting for the nodeBB team to integrate as an offical plugin?
I would more than happy drop in a few hundred bucks to get this going, eventually multiple people would want to hop in.
tl;dr — you can now send me DMs. I blatently and unforgivingly abused the NodeBB chat system to make this work.
Ever since I started this project at the start of 2024, I knew that posts with limited visibility were going to be a sore spot. ActivityPub has the concept of "addressing", with the following valid entries:
An actor (as:Person or similar) uri
A followers collection (?!?!?!)
The public collection
However, posts and topics in NodeBB have their privileges and access scoped to the category, which meant that while it is able to restrict visibility/posting/etc. to specific users, the system was not flexible enough to handle individual posts with different user visibilities.
Given that limitation, up until this week, if your object did not contain the public collection https://www.w3.org/ns/activitystreams#Public, it was automatically and unceremoniously dropped because there was no way NodeBB could display it to the targeted user without leaking it to other users.
I had gone through a couple iterations to try to figure out a way to make this work, but none stuck (see the follow-up technical post for more details), and I had just about relegated it to the "think on this for awhile" pile until a recent post by @[email protected] got me thinking outside of the box:
and your forums, direct messages, and inbox can have different feature sets.
Emphasis mine.
Unlike topics and posts, NodeBB's chat system is not constrained by the privilege system, and each chat room has its own collection of members, which in many ways made it a better fit!
I put together a proof-of-concept in a couple days, and we're test driving it now. So my apologies if in the past year you tried to DM me, and I didn't respond. I wasn't ignoring you, NodeBB just didn't know how to handle it, promise!
Have you ever set up Basic Authentication on NodeBB?
I'm talking about basic authentication provided by the web server itself.
I implemented that basic authentication but when I try to login it's always says "We were unable to log you in, likely due to an expired session. Please try again".
How can I solve it?
-
General Discussion
A place to talk about whatever you want
-
NodeBB Development
Stay tuned here to hear more about new releases and features of NodeBB!
-
Feature Requests
You have a cool idea about NodeBB? Post it here.
-
-
NodeBB Themes
A public listing of community themes created by the NodeBB community. -
Technical Support
Need help with installing or configuring NodeBB? Look here.
Copyright © 2024 NodeBB | Contributors