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.
RalphORama
Posts
-
[solved] Error running `./nodebb upgrade` when updating from v1.10.1 to v1.10.2 -
[solved] Error running `./nodebb upgrade` when updating from v1.10.1 to v1.10.2First of all, here's the console output and here's the contents of the full log
I'm upgrading from NodeBB 1.10.1 to 1.10.2 following the upgrade guide, and run into an error whenever I run
./nodebb upgrade
. I followed the steps in the guide without issue (shutdown, backup git fetch/reset), but./nodebb upgrade
errors out no matter what I do. It appears to be an issue with[email protected]
not finding the filenode_modules/sharp/install/libvips
, which I can confirm is not on the disk.I'm not sure how to fix this issue, any advice would be appreciated.
System info:
- Ubuntu Server 18.04 LTS 4.15.0-39-generic
node -v
: v10.13.0npm -v
: 6.4.1
EDIT: I attempted to solve the issue by running
rm -rf node_modules; ./nodebb upgrade
and am now getting the following error:> [email protected] install /var/www/friendos.club/node_modules/benchpressjs > cd rust/benchpress-rs && npm install sh: 1: cd: can't cd to rust/benchpress-rs npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] install: `cd rust/benchpress-rs && npm install` npm ERR! Exit status 2
-
Error: Cannot find module 'uglify-es' since upgrading to 1.8.1Update: Even though the upgrade docs say to skip step 4 if running a minor upgrade, I executed
./nodebb upgrade
. That fixed my issue. -
Error: Cannot find module 'uglify-es' since upgrading to 1.8.1Hello all,
I just upgraded my forum instance from 1.8.0 to 1.8.1. I am now unable to start the forum.
I get the following error:
[cluster] Spinning up another process... 2018-04-29T23:34:58.363Z [15609] - info: Initializing NodeBB v1.8.1 https://friendos.club 2018-04-29T23:34:59.119Z [15609] - error: Error: Cannot find module 'uglify-es' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/var/www/friendos.club/src/meta/minifier.js:5:14) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) module.js:549 throw err; ^ Error: Cannot find module 'uglify-es' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/var/www/friendos.club/src/meta/minifier.js:5:14) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) [cluster] Child Process (15609) has exited (code: 7, signal: null)
I followed the upgrade guide, then had this problem. Since then, I've tried the following fixes:
npm install --production
rm -rf node_modules; npm install --production
npm i uglify-es
(404 Not Found: uglify-es@latest)sudo chown -R www-data:www-data /var/www/friendos.club
I'm not sure what I can do to fix this problem. Any help would be appreciated. Thank you.
-
Can't move, edit, disable, or delete categories.Turns out my issues were stemming from CloudFlare not liking socket dot io, so disable CloudFlare if this happens to you!
-
Can't move, edit, disable, or delete categories.user@localhost $ git checkout master Branch master set up to track remote branch master from origin. Switched to a new branch 'master' user@localhost $ git pull Already up-to-date.
Still ran ./nodebb upgrade, then started the forum, the error persists.
-
Can't move, edit, disable, or delete categories.@baris I'm able to edit them, but when I click save all the values reset. I'm using Waterfox 32, but have also tried in Google Chrome
Edit: Here's the code for the edit button that doesn't do anything
<small><i class="fa fa-edit"></i></small>
-
Can't move, edit, disable, or delete categories.@baris When I click edit (I'm assuming you mean this icon: http://puu.sh/cqsle/37a8d868eb.png), nothing happens. I expect the name "Announcements" would turn into a text box or something, but it doesn't. If I change other settings and click save, the page reloads and I'm greeted with the exact same settings, not the modified ones.
Here's my log: http://pastebin.com/3NxZHQ7w (I replaced the IP of the redis database and the location of the files with {redacted})
As for master, I'm not sure how to switch out of the v0.5.x branch. When I run git pull, I get "Already up to date."
Edit: This may be inconsequential, but just in case... My full stack is currently CloudFlare > Server > Nginx > NodeBB. Node and Redis are running on the same server, and I'm running NodeBB as a user that only has the rights to access the folder NodeBB is installed in and all subfolders.
-
Can't move, edit, disable, or delete categories.I'm using Redis 2.8.4
As for revision, how can I check that? I assume I'm on the most recent release (I used git clone -b v0.5.x when installing) but I'm not sure how to check.
Edit: on git checkout v0.5.x I get Your branch is up-to-date with 'origin/v0.5.x'.Edit 2: I was able to disable one category, and I'm not sure why. I restarted nodebb a few times to see if that would fix my problem, and that happened.Edit 3: For whatever reason, I'm now able to disable categories, but unable to purge them or edit their details.
-
Can't move, edit, disable, or delete categories.After installing NodeBB, I've run into a strange error. I can edit settings and post topics, but I can't purge or disable any of the default categories. I can create new categories, but after I create the category, I can't purge it or disable it. My settings.json is configured correctly, and everything works besides removing categories.
I haven't seen anything in the log files about this, the only error I get originates from output.log:
warn: [plugins/nodebb-widget-essentials] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. warn: [plugins/nodebb-widget-essentials] In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset plugin="nodebb-widget-essentials".
I've made sure my installation is up to date, and restarted a few times. Is there anything I can do to fix this?