@PitaJ said in Syntax error when ./nodebb upgrade:
@oplik0 that's entirely incorrect. git fetch does literally nothing to local files, and even if it did, ./nodebb upgrade only affects the database and files that aren't handled by git.
Oh, possible. It probably fixed things for me because my problems were mostly due to me messing with NodeBB files. It seemed to reset the upgrade then, but that probably was because it didn't get to actually changing anything while I broke it.
We'd probably have to roll our own upgrade script that calls npm install with a version number. npm upgrade is too risky, since it downloads the latest version of a module, irrespective of any configured versioning in your package.json.
Our themes and plugins aren't comparible with older versions, so they might end up installing a version that is too new and break their forum...
I fixed my own issue. Apparently some install scripts fail when run as root (or with sudo). I'm not sure why this is the case, but I got everything to work by running sudo chown -R ralph:www-data /path/to/nodebb && ./nodebb upgrade as a standard user.
It was already dump.rdb so I left it that way. Restarted redis and still no forum.
Could the directory structure be at fault? I didn't have the new redis at the location you pointed to, it was at /var/lib/redis/redis-2.8.9. (both redis.conf files point at dump.rdb by the way).
EDIT: It's back now! You da' man. I'm still not sure which is the real redis.conf file though.