Can not login to NodeBB. Login or password wrong
-
I have lost access to my forum.
Sequence of steps:
- Installing a new instance on the server. Server behind Cloudflare. Initially, I did not receive a local certificate, everything worked behind a Cloudflare certificate.
- Transferring the database from a local instance (worked on Mac OS) to the server.
- Successful login, further setting in the admin panel. The forum has been switched to maintenance mode.
- After some time, I notice that I can't log in to another browser. I am getting an invalid username or password error. I can still work in the admin panel.
- After some time, I am thrown out of the admin panel. And now I'm logged in to the forum (I see all topics, although the forum is in maintenance mode), but to enter the admin panel, a login / password page opens, which the system does not accept.
I've tried almost everything. I set up a local certificate and tried to access the forum directly bypassing Cloudflare. I have enabled developer mode (no cache) and full SSL/TLS on Cloudflare. The problem is obviously not this.
Next, I reset the cookie domain: db.objects.update({_key: "config"}, {$set: {cookieDomain: ""}});
Also no effect. I do not understand what the problem is. I have already read all the threads on this forum regarding authentication failures and have probably tried all the recipes.Forum: https://kimry.net
NodeBB v2.8.5
Node.js v18.13.0.
MongoDB 6.0.4
Ubuntu 22.04.1Nginx config:
server { listen 80; server_name kimry.net; return 301 https://$server_name$request_uri; } server { listen 443 ssl http2; server_name kimry.net; ssl_certificate /etc/nginx/ssl/kimry.net/cert.pem; ssl_certificate_key /etc/nginx/ssl/kimry.net/key.pem; ssl_dhparam /etc/nginx/ssl/kimry.net/dhparams.pem; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
config.json
{ "url": "https://kimry.net", "secret": "----", "database": "mongo", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "nodebb", "password": ----- "database": "nodebb", "uri": "" } }
-
log
nodebb@AMS1536:~/nodebb$ ./nodebb start -l Starting NodeBB with logging output Hit Ctrl-C to exit The NodeBB process will continue to run in the background Use "./nodebb stop" to stop the NodeBB server 79.132.4.59 - - [30/Jan/2023:23:02:25 +0000] "POST /login HTTP/1.1" 403 35 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 89.104.101.89 - - [30/Jan/2023:23:05:23 +0000] "GET / HTTP/1.1" 503 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36" 89.104.101.89 - - [30/Jan/2023:23:05:24 +0000] "GET / HTTP/1.1" 503 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36" 89.104.101.89 - - [30/Jan/2023:23:05:32 +0000] "GET / HTTP/1.1" 503 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36" 89.104.101.89 - - [30/Jan/2023:23:05:34 +0000] "GET / HTTP/1.1" 503 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36" 2023-01-30T23:05:41.810Z [4567/1226] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2023-01-30T23:05:41.812Z [4567/1226] - info: [app] Web server closed to connections. 2023-01-30T23:05:41.815Z [4567/1226] - info: [app] Live analytics saved. 2023-01-30T23:05:41.831Z [4567/1226] - info: [app] Database connection closed. 2023-01-30T23:05:41.831Z [4567/1226] - info: [app] Shutdown complete. NodeBB v2.8.5 Copyright (C) 2013-2023 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For the full license, please visit: http://www.gnu.org/copyleft/gpl.html Clustering enabled: Spinning up 1 process(es). 2023-01-30T23:05:49.679Z [4567/10877] - info: Initializing NodeBB v2.8.5 https://kimry.net 2023-01-30T23:05:51.677Z [4567/10877] - info: [socket.io] Restricting access to origin: https://kimry.net:* (node:10877) [LRU_CACHE_UNBOUNDED] UnboundedCacheWarning: TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption. (Use `node --trace-warnings ...` to show where the warning was created) 2023-01-30T23:05:52.184Z [4567/10877] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it. * nodebb-plugin-dbsearch * nodebb-rewards-essentials 2023-01-30T23:05:52.236Z [4567/10877] - warn: [helpers.setupAdminPageRoute(/admin/plugins/customize)] passing `middleware` as the third param is deprecated, it can now be safely removed 2023-01-30T23:05:52.241Z [4567/10877] - info: [plugins/spam-be-gone] Settings loaded 2023-01-30T23:05:52.277Z [4567/10877] - info: [api] Adding 1 route(s) to `api/v3/plugins` 2023-01-30T23:05:52.286Z [4567/10877] - info: [router] Routes added 2023-01-30T23:05:57.288Z [4567/10877] - warn: [plugins] Callback timed out, hook 'static:privileges.categories.init' in plugin 'nodebb-plugin-poll' 2023-01-30T23:05:57.292Z [4567/10877] - info: 🎉 NodeBB Ready 2023-01-30T23:05:57.293Z [4567/10877] - info: 🤝 Enabling 'trust proxy' 2023-01-30T23:05:57.295Z [4567/10877] - info: 📡 NodeBB is now listening on: 0.0.0.0:4567 2023-01-30T23:05:57.295Z [4567/10877] - info: 🔗 Canonical URL: https://kimry.net io: 0 emit [ 'checkSession', 0 ] io: 0 emit [ 'setHostname', 'AMS1536' ] io: 0 on [ { type: 2, nsp: '/', id: 0, data: [ 'meta.reconnected', null ] } ] 2023-01-30T23:06:02.253Z [4567/10877] - error: meta.reconnected Error: [[pages:maintenance.text, 💬 КИМРЫ.NET]] at checkMaintenance (/home/nodebb/nodebb/src/socket.io/index.js:195:8) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async onMessage (/home/nodebb/nodebb/src/socket.io/index.js:152:3) io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] io: 1 on [ { type: 2, nsp: '/', id: 0, data: [ 'meta.reconnected', null ] } ] io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] io: 1 on [ { type: 2, nsp: '/', id: 0, data: [ 'meta.reconnected', null ] } ] 79.132.4.59 - - [30/Jan/2023:23:08:04 +0000] "POST /login?local=1 HTTP/1.1" 403 35 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:09:24 +0000] "GET /api/?_=1675119357274 HTTP/1.1" 503 49 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:09:31 +0000] "GET / HTTP/1.1" 503 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 0 emit [ 'checkSession', 0 ] io: 0 emit [ 'setHostname', 'AMS1536' ] 79.132.4.59 - - [30/Jan/2023:23:09:33 +0000] "GET /service-worker.js HTTP/1.1" 304 - "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:20:02 +0000] "GET / HTTP/1.1" 503 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 0 emit [ 'checkSession', 0 ] io: 0 emit [ 'setHostname', 'AMS1536' ] 79.132.4.59 - - [30/Jan/2023:23:20:04 +0000] "GET /service-worker.js HTTP/1.1" 200 550 "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:20:04 +0000] "GET /api/login?_=1675120802537 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:20:19 +0000] "POST /login HTTP/1.1" 403 35 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:20:24 +0000] "POST /login HTTP/1.1" 403 35 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:20:25 +0000] "POST /login HTTP/1.1" 403 35 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:20:31 +0000] "POST /login HTTP/1.1" 403 35 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:20:39 +0000] "POST /login HTTP/1.1" 403 35 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 2023-01-30T23:20:59.973Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:21:00 +0000] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] io: 1 on [ { type: 2, nsp: '/', id: 0, data: [ 'meta.rooms.enter', { enter: 'categories' } ] } ] 79.132.4.59 - - [30/Jan/2023:23:21:00 +0000] "GET /manifest.webmanifest HTTP/1.1" 304 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:21:02 +0000] "GET /service-worker.js HTTP/1.1" 304 - "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:21:04 +0000] "GET /admin HTTP/1.1" 302 72 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 2023-01-30T23:21:04.251Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:21:04 +0000] "GET /login?local=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] 79.132.4.59 - - [30/Jan/2023:23:21:04 +0000] "GET /manifest.webmanifest HTTP/1.1" 304 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:21:06 +0000] "GET /service-worker.js HTTP/1.1" 304 - "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 2023-01-30T23:21:06.866Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:21:06 +0000] "GET /login?local=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:21:07 +0000] "GET /manifest.webmanifest HTTP/1.1" 304 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] 79.132.4.59 - - [30/Jan/2023:23:21:08 +0000] "GET /service-worker.js HTTP/1.1" 304 - "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:21:11 +0000] "GET /manifest.webmanifest HTTP/1.1" 304 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 2023-01-30T23:21:11.697Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:21:11 +0000] "GET /login?local=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 2023-01-30T23:21:18.417Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:21:18 +0000] "GET /login?local=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] 79.132.4.59 - - [30/Jan/2023:23:21:19 +0000] "GET /manifest.webmanifest HTTP/1.1" 200 1009 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:21:21 +0000] "GET /service-worker.js HTTP/1.1" 304 - "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:21:25 +0000] "POST /login?local=1 HTTP/1.1" 403 35 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 142.93.245.64 - - [30/Jan/2023:23:26:56 +0000] "GET / HTTP/1.1" 503 - "-" "Mozilla/5.0 (X11; U; Linux arm7tdmi; rv:1.8.1.11) Gecko/20071130 Minimo/0.025" io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] io: 1 on [ { type: 2, nsp: '/', id: 1, data: [ 'meta.reconnected', null ] } ] io: 1 on [ { type: 2, nsp: '/', id: 0, data: [ 'meta.reconnected', null ] } ] 79.132.4.59 - - [30/Jan/2023:23:34:10 +0000] "GET /assets/uploads/system/favicon.ico?v=6evjicudach HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 0 emit [ 'checkSession', 0 ] io: 0 emit [ 'setHostname', 'AMS1536' ] io: 0 on [ { type: 2, nsp: '/', id: 0, data: [ 'meta.reconnected', null ] } ] 2023-01-30T23:34:10.934Z [4567/10877] - error: meta.reconnected Error: [[pages:maintenance.text, 💬 КИМРЫ.NET]] at checkMaintenance (/home/nodebb/nodebb/src/socket.io/index.js:195:8) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async onMessage (/home/nodebb/nodebb/src/socket.io/index.js:152:3) 2023-01-30T23:35:17.622Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:35:17 +0000] "GET /login?local=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:17 +0000] "GET /assets/templates/500.js?_=1675121717790 HTTP/1.1" 200 961 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] 79.132.4.59 - - [30/Jan/2023:23:35:17 +0000] "GET /assets/templates/modules/taskbar.js?_=1675121717791 HTTP/1.1" 200 546 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:18 +0000] "GET /manifest.webmanifest HTTP/1.1" 304 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:19 +0000] "GET /service-worker.js HTTP/1.1" 304 - "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:23 +0000] "GET /service-worker.js HTTP/1.1" 304 - "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:26 +0000] "GET /manifest.webmanifest HTTP/1.1" 304 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 2023-01-30T23:35:26.412Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:35:26 +0000] "GET /login?local=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 2023-01-30T23:35:27.462Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:35:27 +0000] "GET /login?local=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:27 +0000] "GET /assets/plugins/nodebb-plugin-emoji/emoji/styles.css?v=6evjicudach HTTP/1.1" 200 96 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:27 +0000] "GET /assets/client-lumen.css?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:27 +0000] "GET /assets/nodebb.min.js?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/src/modules/composer.js?v=6evjicudach HTTP/1.1" 200 107 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/templates/composer.tpl?v=6evjicudach HTTP/1.1" 200 8057 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/language/ru/topic.json?v=6evjicudach HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/src/modules/composer/uploads.js?v=6evjicudach HTTP/1.1" 200 118 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/src/modules/composer/drafts.js?v=6evjicudach HTTP/1.1" 200 117 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/src/modules/composer/tags.js?v=6evjicudach HTTP/1.1" 200 115 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/src/modules/composer/categoryList.js?v=6evjicudach HTTP/1.1" 200 123 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/src/modules/composer/autocomplete.js?v=6evjicudach HTTP/1.1" 200 123 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/src/modules/composer/resize.js?v=6evjicudach HTTP/1.1" 200 117 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/language/ru/markdown.json?v=6evjicudach HTTP/1.1" 200 564 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/language/ru/tags.json?v=6evjicudach HTTP/1.1" 200 340 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/language/ru/modules.json?v=6evjicudach HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/language/ru/error.json?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/language/ru/global.json?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/templates/500.js?_=1675121728155 HTTP/1.1" 200 961 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/language/ru/modules.json?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/templates/modules/taskbar.js?_=1675121728156 HTTP/1.1" 200 546 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /manifest.webmanifest HTTP/1.1" 200 1009 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:28 +0000] "GET /assets/uploads/system/favicon.ico?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:30 +0000] "GET /service-worker.js HTTP/1.1" 304 - "https://kimry.net/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:31 +0000] "GET /admin HTTP/1.1" 302 72 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 2023-01-30T23:35:31.957Z [4567/10877] - warn: Missing translation "qanda:menu.unsolved" for language "ru" 79.132.4.59 - - [30/Jan/2023:23:35:31 +0000] "GET /login?local=1 HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/plugins/nodebb-plugin-emoji/emoji/styles.css?v=6evjicudach HTTP/1.1" 200 96 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/client-lumen.css?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/nodebb.min.js?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/src/modules/composer.js?v=6evjicudach HTTP/1.1" 200 107 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/src/modules/composer/uploads.js?v=6evjicudach HTTP/1.1" 200 118 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/src/modules/composer/drafts.js?v=6evjicudach HTTP/1.1" 200 117 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/src/modules/composer/autocomplete.js?v=6evjicudach HTTP/1.1" 200 123 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/templates/composer.tpl?v=6evjicudach HTTP/1.1" 200 8057 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/src/modules/composer/tags.js?v=6evjicudach HTTP/1.1" 200 115 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/src/modules/composer/resize.js?v=6evjicudach HTTP/1.1" 200 117 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/src/modules/composer/categoryList.js?v=6evjicudach HTTP/1.1" 200 123 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/language/ru/modules.json?v=6evjicudach HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/language/ru/tags.json?v=6evjicudach HTTP/1.1" 200 340 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/language/ru/markdown.json?v=6evjicudach HTTP/1.1" 200 564 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/language/ru/topic.json?v=6evjicudach HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/language/ru/global.json?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/language/ru/error.json?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/language/ru/modules.json?v=6evjicudach HTTP/1.1" 200 - "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/templates/500.js?_=1675121732466 HTTP/1.1" 200 961 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" io: 1 emit [ 'checkSession', 1 ] io: 1 emit [ 'setHostname', 'AMS1536' ] 79.132.4.59 - - [30/Jan/2023:23:35:32 +0000] "GET /assets/templates/modules/taskbar.js?_=1675121732467 HTTP/1.1" 200 546 "https://kimry.net/login?local=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
-
What exact login error are you getting? Can you take a screenshot?
-
@baris
I only use https and with the $scheme option I get an "invalid csrf" error when I tried to login to the forum for the first time (only with a cloudflare certificate) and couldn't login due to this error. Now I have already installed a local certificate and I can try to return $scheme but I don't see much point in it because it's still only https everywhere. -
Interesting fact, due to the fact that I am logged into the frontend, I was able to change the language of the forum. When I tried to change the password nothing happens. I can enter any nonsense in the "Current Password" field and the form accepts it without errors. But I don't know if the password changes.
I also suspect that when trying to login, there is no request to the database at all, because the error message is issued instantly. Yes, I know that NodeBB is very fast and JS can exchange data quickly. But there doesn't seem to be any delay at all.
Is it possible to disable maintenance mode without going to the admin panel? Perhaps my problems are somehow related to this.
-
Console output:
ServiceWorker registration succeeded. nodebb.min.js?v=6evjicudach:9 [hooks] Changes to hooks on this page … nodebb.min.js?v=6evjicudach:9 [hooks] Registered action:ajaxify.start ()=>{g.temporary.forEach(u=>{g.unregister(u.hookName,u.method),g.temporary.delete(u)})} nodebb.min.js?v=6evjicudach:9 [hooks] Registered action:ajaxify.end ƒ (){document.body.removeEventListener("click",u),s.forEach(function(r){r.click()}),s=[]} nodebb.min.js?v=6evjicudach:9 [hooks] Registered filter:taskbar.push O=>{O.options.className="taskbar-"+O.module,O.module==="composer"?O.options.icon="fa-commenting-o":O.module==="chat"&&O.element.length&&!O.element.hasClass("active")&&y(O.element)} nodebb.min.js?v=6evjicudach:9 [hooks] Registered action:taskbar.pushed O=>{if(O.module==="chat"){x(O);var L=O.element.data();L&&L.options&&!L.options.isSelf&&y(O.element)}} nodebb.min.js?v=6evjicudach:9 [hooks] Registered action:ajaxify.end ƒ (){ajaxify.isCold()||(k=!0)} nodebb.min.js?v=6evjicudach:9 [hooks] Registered filter:navigator.scroll M=>(L.autoHidingNavbar("setDisableAutohide",!0),M) nodebb.min.js?v=6evjicudach:9 [hooks] Registered action:navigator.scrolled ()=>{L.autoHidingNavbar("setDisableAutohide",!1)} nodebb.min.js?v=6evjicudach:9 [hooks] Registered action:ajaxify.end ƒ (){ajaxify.isCold()||(k=!0)} nodebb.min.js?v=6evjicudach:9 [hooks] Registered action:ajaxify.end ()=>{t(),e(),h.showEmailConfirmWarning()} nodebb.min.js?v=6evjicudach:9 [hooks] Unregistered action:ajaxify.end ()=>{t(),e(),h.showEmailConfirmWarning()} nodebb.min.js?v=6evjicudach:61 POST https://kimry.net/login?local=1 403 send @ nodebb.min.js?v=6evjicudach:61 ajax @ nodebb.min.js?v=6evjicudach:61 i.fn.ajaxSubmit @ nodebb.min.js?v=6evjicudach:45 (анонимная) @ login.1278fe0c80a9b48a32c0.min.js:1 dispatch @ nodebb.min.js?v=6evjicudach:58 he.handle @ nodebb.min.js?v=6evjicudach:58
-
const passwordMatch = await user.isPasswordCorrect(uid, password, req.ip); if (!passwordMatch) { return next(new Error('[[error:invalid-login-credentials]]')); }
If you're seeing "invalid login credentials", the only code path that sends that specific error back is... if your password is incorrect.
-
@julian said in Can not login to NodeBB. Login or password wrong:
const passwordMatch = await user.isPasswordCorrect(uid, password, req.ip);
if (!passwordMatch) {
return next(new Error('Invalid login credentials'));
}What should I do with this code?
-
@julian said in Can not login to NodeBB. Login or password wrong:
If you're seeing "invalid login credentials", the only code path that sends that specific error back is... if your password is incorrect.
If the password is incorrect, how can an admin be logged into the front of the forum but not into the admin panel at the same time?
-
@Kosiak said in Can not login to NodeBB. Login or password wrong:
Interesting fact, due to the fact that I am logged into the frontend, I was able to change the language of the forum. When I tried to change the password nothing happens. I can enter any nonsense in the "Current Password" field and the form accepts it without errors. But I don't know if the password changes.
How can this behavior be explained?
-
@julian said in Can not login to NodeBB. Login or password wrong:
If this is your development database, then drop the database and start over.
This is a ported forum from another engine. Accordingly, I made a lot of edits locally, then transferred to the server where I continued the setup. Yes, definitely, if I rolled back the version that exists on my mac, I would lose a few hours of development and configuration, but I wouldn't spend many hours looking for a login problem. However, I have already wasted this time and I have no guarantees that the problem will not return in a few hours after I re-upload the database from the local version. Perhaps the problem is in the combination of settings that I made in the admin panel, or perhaps an electron flying out of a distant star got into the transistor of my server, corrupting my password. Who knows. However, if I could find a solution or problem that caused the situation, I could sleep more peacefully. Today I have the opportunity to roll back without losing too much, who knows if there will be such an opportunity the next time it happens. I am not a supporter of leaving unresolved problems behind.
-
I reuploaded the database from my local version. It wasn't easy and restore with "mongorestore --drop" failed. Despite the fact that mongorestore reported that everything was done, nothing has changed. Perhaps NodeBB has a cache somewhere, but I don't know anything about it. I had to first manually delete the mongodb database and then use mongorestore. I restarted Nodebb and got a working version. I can login. However, everything is extremely slow. I have never seen NodeBB run slower than wordpress on apache without a cache. Refreshing some pages takes tens of seconds. Unfortunately, it's almost morning and I have to go to bed because I don't understand anything anymore.
If anyone has an idea what happened with the speed and how to fix it feel free to write it to me.