Does anyone have any suggestions for this? It's not urgent, but wondering what I can do myself? Even code tweaks I can do on my own?
wayne.workman
Posts
-
"BANNED" tag is harsh, options to customize? -
"BANNED" tag is harsh, options to customize?Hello,
One of my group's members passed away recently. I'd like to secure his NodeBB forums account, but the only way I see to do it is by banning him. He's not banned, he's just gone. I don't want that ugly red "BANNED" flag by his name, it is disrespectful.
What other options are there to secure a user's account? Can I choose what banner they get? Can I choose to not display the "Banned" flag anywhere?
I would suggest allowing custom banners for disabled accounts, individually:
- Banned
- Inactive
- No label shown anywhere.
Thanks,
Wayne -
Badges not showing@PitaJ This solved it for me. Thank you.
-
Badges not showingHi NodeBB people, you folks are awesome. I have a minor, not critical problem that I am asking for help with. I've made a new group called 'Officers'. There's two users in that group. One of those users's badge shows in the forums, the other users badge doesn't show.
I did do some google searching for "nodebb badge not showing" and I found some pretty old posts, like 2+ years old. So I thought I'd open a new thread. Hope that's alright.
Details:
NodeBB version: v1.12.0
Node version: v10.15.3
OS: Debian 9Details that may or may not matter:
The user who's badge shows is not a member of administrators, the user who's badge does not show is also a member of administrators.Steps I've taken:
Removed users and re-added them. Rebuilt & restarted forums. Refreshed browser. Deleted & recreated the group. No happiness from any of those.For the user whose badge doesn't show - no badge shows for him at all. I've got the forums setup so that administrator badges are not shown. But I do want to display officer badges.
Please help? What to do? I have no idea.
Thanks,
Wayne -
Incorrect URL after login@julian I found this: https://github.com/NodeBB/NodeBB/issues/4734
Using the certbot configuration, I edited/etc/nginx/sites-available/default
Leaving the certbot managed parts as they are, my custom config looks like this now:
proxy_set_header X-Forwarded-Proto $scheme; location / { proxy_pass http://127.0.0.1:4567; }
The special part is the x-forwarded-proto line, that's what I was needing all along.
And in
/home/nodebb/nodebb/config.json
I'm setting the URL with https:{ "url": "https://forums.mydomain.com", "secret": "<REDACTED>", "database": "mongo", "port": "4567", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "nodebb", "password": "<REDACTED>", "database": "nodebb", "uri": "" } }
This resolved my problem.
-
v1.12.0 error: uncaughtException: Could not locate the bindings file.@PitaJ Your suggestion did work - but I had a lot of problems doing it, partly because of my own fault. Here's what happened.
I went into
node_modules
and just did arm -rf *
in there, emptying out the dir. Then I tried to run the./nodebb install
and it failed with several dependency errors. I tried sorting them out, but decided to take a copy of thenode_modules
directory from my home-based POC nodebb box that is using node 10.15.3, and I shipped that up to the prod forums - and put it into place, fixing ownership, and starting nodebb - and that worked, and it appears now that I can upload images. Awesome.I respectfully suggest you advise folks to make backups of directories when you ask them to remove directories. The better of us of course take backups before hand - and normally I do but didn't this time (I'm too trusting). The lesser of us don't think of these things - and reminders go a long ways.
Again, thanks for your help @PitaJ you can consider this one solved!
-
v1.12.0 error: uncaughtException: Could not locate the bindings file.@PitaJ So this is strange. I downgraded the forums to
v10.15.3
and still I'm getting errors when uploading photos.2019-03-23T20:37:11.013Z [4567/610] - error: uncaughtException: Could not locate the bindings file. Tried: → /home/nodebb/NodeBB/node_modules/sharp/build/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/compiled/10.15.3/linux/x64/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v64-linux-x64/sharp.node Error: Could not locate the bindings file. Tried: → /home/nodebb/NodeBB/node_modules/sharp/build/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/compiled/10.15.3/linux/x64/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v64-linux-x64/sharp.node at bindings (/home/nodebb/NodeBB/node_modules/bindings/bindings.js:124:9) at Object.<anonymous> (/home/nodebb/NodeBB/node_modules/sharp/lib/constructor.js:10:34) at Module._compile (internal/modules/cjs/loader.js:701:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) at Module.load (internal/modules/cjs/loader.js:600:32) at tryModuleLoad (internal/modules/cjs/loader.js:539:12) at Function.Module._load (internal/modules/cjs/loader.js:531:3) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) at Object.<anonymous> (/home/nodebb/NodeBB/node_modules/sharp/lib/index.js:3:15) {"error":{"tries":["/home/nodebb/NodeBB/node_modules/sharp/build/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/compiled/10.15.3/linux/x64/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v64-linux-x64/sharp.node"]},"stack":"Error: Could not locate the bindings file. Tried:\n → /home/nodebb/NodeBB/node_modules/sharp/build/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/compiled/10.15.3/linux/x64/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v64-linux-x64/sharp.node\n at bindings (/home/nodebb/NodeBB/node_modules/bindings/bindings.js:124:9)\n at Object.<anonymous> (/home/nodebb/NodeBB/node_modules/sharp/lib/constructor.js:10:34)\n at Module._compile (internal/modules/cjs/loader.js:701:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)\n at Module.load (internal/modules/cjs/loader.js:600:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:539:12)\n at Function.Module._load (internal/modules/cjs/loader.js:531:3)\n at Module.require (internal/modules/cjs/loader.js:637:17)\n at require (internal/modules/cjs/helpers.js:22:18)\n at Object.<anonymous> (/home/nodebb/NodeBB/node_modules/sharp/lib/index.js:3:15)","exception":true,"date":"Sat Mar 23 2019 20:37:11 GMT+0000 (Coordinated Universal Time)","process":{"pid":610,"uid":1001,"gid":1001,"cwd":"/home/nodebb/NodeBB","execPath":"/usr/local/bin/node","version":"v10.15.3","argv":["/usr/local/bin/node","/home/nodebb/NodeBB/app.js"],"memoryUsage":{"rss":161124352,"heapTotal":125444096,"heapUsed":99242192,"external":37354140}},"os":{"loadavg":[0.42431640625,0.14453125,0.05078125],"uptime":68},"trace":[{"column":9,"file":"/home/nodebb/NodeBB/node_modules/bindings/bindings.js","function":"bindings","line":124,"method":null,"native":false},{"column":34,"file":"/home/nodebb/NodeBB/node_modules/sharp/lib/constructor.js","function":null,"line":10,"method":null,"native":false},{"column":30,"file":"internal/modules/cjs/loader.js","function":"Module._compile","line":701,"method":"_compile","native":false},{"column":10,"file":"internal/modules/cjs/loader.js","function":"Module._extensions..js","line":712,"method":".js","native":false},{"column":32,"file":"internal/modules/cjs/loader.js","function":"Module.load","line":600,"method":"load","native":false},{"column":12,"file":"internal/modules/cjs/loader.js","function":"tryModuleLoad","line":539,"method":null,"native":false},{"column":3,"file":"internal/modules/cjs/loader.js","function":"Module._load","line":531,"method":"_load","native":false},{"column":17,"file":"internal/modules/cjs/loader.js","function":"Module.require","line":637,"method":"require","native":false},{"column":18,"file":"internal/modules/cjs/helpers.js","function":"require","line":22,"method":null,"native":false},{"column":15,"file":"/home/nodebb/NodeBB/node_modules/sharp/lib/index.js","function":null,"line":3,"method":null,"native":false}]} 2019-03-23T20:37:11.014Z [4567/610] - error: Could not locate the bindings file. Tried: → /home/nodebb/NodeBB/node_modules/sharp/build/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/compiled/10.15.3/linux/x64/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v64-linux-x64/sharp.node {"tries":["/home/nodebb/NodeBB/node_modules/sharp/build/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/compiled/10.15.3/linux/x64/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v64-linux-x64/sharp.node"]}
I've rebooted the system, and rebuilt/updated NodeBB and still have this issue.
-
v1.12.0 error: uncaughtException: Could not locate the bindings file.@PitaJ I'm on v11.12.0 Do I really need to downgrade?
-
v1.12.0 error: uncaughtException: Could not locate the bindings file.@FrankM Thanks for your help. I did that, still not working.
-
v1.12.0 error: uncaughtException: Could not locate the bindings file.Hi, I'm using NodeBB v1.12.0 on Debian 9, I use an Nginx reverse proxy that also does SSL. I'm having problems uploading .jpg pictures to threads. The .jpg I'm trying to upload is
880.4 kB
in size, it's dimensions are1536x1152
pixels.Below are the errors produced when I try to upload a .jpg, I've replaced my real domain name with
mydomain.com
2019-03-18T03:51:21.602Z [4567/1193] - error: uncaughtException: Could not locate the bindings file. Tried: → /home/nodebb/NodeBB/node_modules/sharp/build/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/compiled/11.12.0/linux/x64/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v67-linux-x64/sharp.node Error: Could not locate the bindings file. Tried: → /home/nodebb/NodeBB/node_modules/sharp/build/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/compiled/11.12.0/linux/x64/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v67-linux-x64/sharp.node at bindings (/home/nodebb/NodeBB/node_modules/bindings/bindings.js:124:9) at Object.<anonymous> (/home/nodebb/NodeBB/node_modules/sharp/lib/constructor.js:10:34) at Module._compile (internal/modules/cjs/loader.js:799:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10) at Module.load (internal/modules/cjs/loader.js:666:32) at tryModuleLoad (internal/modules/cjs/loader.js:606:12) at Function.Module._load (internal/modules/cjs/loader.js:598:3) at Module.require (internal/modules/cjs/loader.js:705:19) at require (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous> (/home/nodebb/NodeBB/node_modules/sharp/lib/index.js:3:15) {"error":{"tries":["/home/nodebb/NodeBB/node_modules/sharp/build/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/compiled/11.12.0/linux/x64/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v67-linux-x64/sharp.node"]},"stack":"Error: Could not locate the bindings file. Tried:\n → /home/nodebb/NodeBB/node_modules/sharp/build/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/compiled/11.12.0/linux/x64/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node\n → /home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v67-linux-x64/sharp.node\n at bindings (/home/nodebb/NodeBB/node_modules/bindings/bindings.js:124:9)\n at Object.<anonymous> (/home/nodebb/NodeBB/node_modules/sharp/lib/constructor.js:10:34)\n at Module._compile (internal/modules/cjs/loader.js:799:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)\n at Module.load (internal/modules/cjs/loader.js:666:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:606:12)\n at Function.Module._load (internal/modules/cjs/loader.js:598:3)\n at Module.require (internal/modules/cjs/loader.js:705:19)\n at require (internal/modules/cjs/helpers.js:14:16)\n at Object.<anonymous> (/home/nodebb/NodeBB/node_modules/sharp/lib/index.js:3:15)","exception":true,"date":"Mon Mar 18 2019 03:51:21 GMT+0000 (Coordinated Universal Time)","process":{"pid":1193,"uid":1001,"gid":1001,"cwd":"/home/nodebb/NodeBB","execPath":"/usr/bin/node","version":"v11.12.0","argv":["/usr/bin/node","/home/nodebb/NodeBB/app.js"],"memoryUsage":{"rss":118304768,"heapTotal":82726912,"heapUsed":73430176,"external":36187401}},"os":{"loadavg":[0.16015625,0.0537109375,0.064453125],"uptime":1297},"trace":[{"column":9,"file":"/home/nodebb/NodeBB/node_modules/bindings/bindings.js","function":"bindings","line":124,"method":null,"native":false},{"column":34,"file":"/home/nodebb/NodeBB/node_modules/sharp/lib/constructor.js","function":null,"line":10,"method":null,"native":false},{"column":30,"file":"internal/modules/cjs/loader.js","function":"Module._compile","line":799,"method":"_compile","native":false},{"column":10,"file":"internal/modules/cjs/loader.js","function":"Module._extensions..js","line":810,"method":".js","native":false},{"column":32,"file":"internal/modules/cjs/loader.js","function":"Module.load","line":666,"method":"load","native":false},{"column":12,"file":"internal/modules/cjs/loader.js","function":"tryModuleLoad","line":606,"method":null,"native":false},{"column":3,"file":"internal/modules/cjs/loader.js","function":"Module._load","line":598,"method":"_load","native":false},{"column":19,"file":"internal/modules/cjs/loader.js","function":"Module.require","line":705,"method":"require","native":false},{"column":16,"file":"internal/modules/cjs/helpers.js","function":"require","line":14,"method":null,"native":false},{"column":15,"file":"/home/nodebb/NodeBB/node_modules/sharp/lib/index.js","function":null,"line":3,"method":null,"native":false}]} 2019-03-18T03:51:21.602Z [4567/1193] - error: Could not locate the bindings file. Tried: → /home/nodebb/NodeBB/node_modules/sharp/build/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/compiled/11.12.0/linux/x64/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node → /home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v67-linux-x64/sharp.node {"tries":["/home/nodebb/NodeBB/node_modules/sharp/build/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/out/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/Debug/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/out/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/Release/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/build/default/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/compiled/11.12.0/linux/x64/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/release/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/debug/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/addon-build/default/install-root/sharp.node","/home/nodebb/NodeBB/node_modules/sharp/lib/binding/node-v67-linux-x64/sharp.node"]} 2019-03-18T03:51:21.603Z [4567/1193] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2019-03-18T03:51:21.606Z [4567/1193] - info: [app] Web server closed to connections. 2019-03-18T03:51:21.606Z [4567/1193] - info: [app] Live analytics saved. 2019-03-18T03:51:21.607Z [4567/1193] - info: [app] Database connection closed. 2019-03-18T03:51:21.607Z [4567/1193] - info: [app] Shutdown complete. [cluster] Child Process (1193) has exited (code: 1, signal: null) [cluster] Spinning up another process... 2019-03-18T03:51:21.873Z [4567/1229] - info: Initializing NodeBB v1.12.0 http://forums.mydomain.com [benchpressjs] Unable to build or find a suitable native module, falling back to JS version 2019-03-18T03:51:23.267Z [4567/1229] - info: [socket.io] Restricting access to origin: http://forums.mydomain.com:* 2019-03-18T03:51:23.490Z [4567/1229] - info: Routes added 2019-03-18T03:51:23.492Z [4567/1229] - info: NodeBB Ready 2019-03-18T03:51:23.497Z [4567/1229] - info: Enabling 'trust proxy' 2019-03-18T03:51:23.500Z [4567/1229] - info: NodeBB is now listening on: 0.0.0.0:4567
-
Incorrect URL after login@julian The big benefit of using certbot is it sets up a cron job and that job will automatically get you a new cert when your previous one is close to expiring.
root@debian:/home/wayne# cat /etc/letsencrypt/options-ssl-nginx.conf # This file contains important security parameters. If you modify this file # manually, Certbot will be unable to automatically provide future security # updates. Instead, Certbot will print and log an error message with a path to # the up-to-date file that you will need to refer to when manually updating # this file. ssl_session_cache shared:le_nginx_SSL:1m; ssl_session_timeout 1440m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";
-
Incorrect URL after loginAny other ideas on this? I think probably this is being caused by the URL field in the config.json file not being what users use - but my problem is when I set it to
https
it breaks the site entirely. How do I set it up so that Nginx can do SSL and this not be a problem? -
Incorrect URL after login@PitaJ I have.
-
strange login routeI'm having the same issue: https://community.nodebb.org/topic/13753/incorrect-url-after-login
-
Incorrect URL after login -
Incorrect URL after loginThis file is the only one I have edited by hand:
/etc/nginx/sites-available/default
the only parts I changed were the ones where you seeproxy_pass
The rest, certbot touched, or it's default config for debian 9.
For what it's worth, I really don't think the nginx config is at fault here... It works perfectly fine for everything else in NodeBB - the only issue is the landing page immediately after login.
## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # https://www.nginx.com/resources/wiki/start/ # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ # https://wiki.debian.org/Nginx/DirectoryStructure # # In most cases, administrators will remove this file from sites-enabled/ and # leave it as reference inside of sites-available where it will continue to be # updated by the nginx packaging team. # # This file will automatically load configuration files provided by other # applications, such as Drupal or Wordpress. These applications will be made # available underneath a path with that package name, such as /drupal8. # # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. ## # Default server configuration # server { listen 80 default_server; listen [::]:80 default_server; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name _; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. proxy_pass http://127.0.0.1:4567; } # pass PHP scripts to FastCGI server # #location ~ \.php$ { # include snippets/fastcgi-php.conf; # # # With php-fpm (or other unix sockets): # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; # # With php-cgi (or other tcp sockets): # fastcgi_pass 127.0.0.1:9000; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # Virtual Host configuration for example.com # # You can move that to a different file under sites-available/ and symlink that # to sites-enabled/ to enable it. # #server { # listen 80; # listen [::]:80; # # server_name example.com; # # root /var/www/example.com; # index index.html; # # location / { # try_files $uri $uri/ =404; # } #} server { # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name forums.mydomain.com; # managed by Certbot location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. proxy_pass http://127.0.0.1:4567; } # pass PHP scripts to FastCGI server # #location ~ \.php$ { # include snippets/fastcgi-php.conf; # # # With php-fpm (or other unix sockets): # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; # # With php-cgi (or other tcp sockets): # fastcgi_pass 127.0.0.1:9000; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/forums.mydomain.com/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/forums.mydomain.com/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = forums.mydomain.com) { return 301 https://$host$request_uri; } # managed by Certbot listen 80 ; listen [::]:80 ; server_name forums.mydomain.com; return 404; # managed by Certbot }
-
Incorrect URL after login@PitaJ How can I best do that? Inside of
/etc/nginx
there's several files and directories. What's the norm for sharing that? I can tar it all up and share here if that's ok. -
Incorrect URL after loginI've also tried rebooting the server - and clearing my cookies for the site, same result.
-
Incorrect URL after login@baris Changing it to that results in an error when I try to log in. After providing correct credentials, the URL becomes:
https://forums.mydomain.com/login?error=csrf-invalid
And the error message displayed is:Login Unsuccessful We were unable to log you in, likely due to an expired session. Please try again
-
Incorrect URL after login@baris In my config.json I have this setup:
{ "url": "http://forums.mydomain.com", "secret": "REDACTED", "database": "mongo", "port": "4567", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "nodebb", "password": "REDACTED", "database": "nodebb", "uri": "" } }
I have a reverse proxy setup with Nginx, it does SSL offloading.
I'm using Debian 9.
CertBot setup SSL inside of Nginx for me.I don't think my nginx configuration is at fault because everything else works except for the 'landing page' after logging in. What are your thoughts?
Thanks for your help!