@baris said in what happened in Recent.js ? (Is it possible cause in Database?):
Seems like you have a topic with an invalid cid, should be fixed in master.
I have changed the branch into master,and it can run well now. Thanks you very much.
I wonder, wouldn't be a good thing to automatically backup the database when a schema change happened with the ./nodebb upgrade
script?
Ideally, yes, but I can't guarantee permissions on the redis database. For example, in default Ubuntu installs, the dump is located at /var/lib/redis, and has -rw-rw----
permissions, owned by redis:redis
, so my unprivileged user won't be able to access it
Indeed, there is restricted permissions on redis dumb.
Would it be unsafe to include NodeBB user in Redis group?
Probably would be fine, but some may balk because it would allow a potentially compromised NodeBB app to read db dumps from other applications.
In any case, because it's not the default, it can't be in core, because it would be broken for 99% of the users