i had same issue and solved it by edit config.json as this
{
"url": "http://myurl.com",
"secret": "..................",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "?????",
"database": "0"
}
}
Problem is fixed on latest master
version... please use that for now.
Used the below command as temporal fix for now...
Will upgrade when next stable is released
$ cp node_modules/socket.io-client/socket.io.js node_modules/socket.io-client/
Actually the command for the @mjason4x fix is on my setup:
$ cp node_modules/socket.io-client/dist/socket.io.js node_modules/socket.io-client/
@benabel What about...
$ ln -s node_modules/socket.io-client/dist/socket.io.js node_modules/socket.io-client/socket.io.js
@julian same problem, master
version solves it
So I just spun up a new instance to make some updated instructions because the documentation page is 2 years old.
I installed to v1.3.0 and had the forbbiden issue.
I checked out master and did the ./nodebb upgrade and now I am still unable to log in.
Also getting this on a clean install after switching to master.
@JaredBusch Hm.. did you ./nodebb upgrade
or ./nodebb build
after switching?
@julian said in Fresh Install Error - Cannot Login/Register & JS Reference Error:
@JaredBusch Hm.. did you
./nodebb upgrade
or./nodebb build
after switching?
./nodebb upgrade
Ah yes I see you did say that earlier. You pulled after you switched to master, too, right?
@julian said in Fresh Install Error - Cannot Login/Register & JS Reference Error:
Ah yes I see you did say that earlier. You pulled after you switched to master, too, right?
Yes, I did.
I am about to do this again.
I created this document as I was building things last night.
I figured once I had it repeatable, I would look at making a pull request on the official docs
I noticed this issue too. Just curious, is there any reason why this was merged into the v1.x.x branch instead of master?
@julian said in Fresh Install Error - Cannot Login/Register & JS Reference Error:
Ah yes I see you did say that earlier. You pulled after you switched to master, too, right?
I have made a new post with more detail on what I have done to recreate/replicate issues.
https://community.nodebb.org/topic/9915/new-install-leaves-me-with-session-mismatch-invalid-csrf