Closed fais3000 closed 3 years ago
@rez0n I verified. The start script is indeed not calling ./nodebb upgrade. I was able to fix it by going into container and running. ./nodebb upgrade
Hi, first of all, today NodeBB was released stable v1.15.0
Due to building pipeline issue, currently beta
, stable
and latest
= v1.15.0
So, pulling beta
tag today, you'll get the latest released version.
I was spin up a clear instance using nodebb:v1.15.0-rc.3
and have a benchpressjs errors too, but the forum is live.
nodebb_1 | 2020-11-05T16:45:30.180Z [4567/177] - info: Initializing NodeBB v1.15.0-rc.3 http://localhost
nodebb_1 | [benchpressjs] Unable to build or find a suitable native module, falling back to JS version.
nodebb_1 | [benchpressjs] This will result in much longer template build times.
nodebb_1 | [benchpressjs] prebuilt module failed to load: linux_72
nodebb_1 | [benchpressjs] If the above module is not available at `node_modules/benchpressjs/rust/benchpress-rs/pre-built/`,
nodebb_1 | [benchpressjs] you can manually build benchpress-rs following the instructions here:
nodebb_1 | [benchpressjs] `https://github.com/benchpressjs/benchpressjs/blob/master/README.md#manually-building-native-module`
Then I updated image tag to nodebb:v1.15.0
it was built with errors, but seems forum is upgraded and alive.
nodebb_1 | 2020-11-05T16:53:47.181Z [4567/12] - error: [build] client js bundle build failed
nodebb_1 | 2020-11-05T16:53:47.182Z [4567/12] - error: [build] Encountered error during build step
nodebb_1 | Error: ENOENT: no such file or directory, open '/usr/src/app/build/public/rjs-bundle-client.js'
nodebb_1 | Error occurred during upgrade: Error: ENOENT: no such file or directory, open '/usr/src/app/build/public/rjs-bundle-client.js'
nodebb_1 | 2020-11-05T16:53:47.186Z [4567/12] - error: uncaughtException: ENOENT: no such file or directory, open '/usr/src/app/build/public/rjs-bundle-client.js'
nodebb_1 | Error: ENOENT: no such file or directory, open '/usr/src/app/build/public/rjs-bundle-client.js' {"error":{"errno":-2,"code":"ENOENT","syscall":"open","path":"/usr/src/app/build/public/rjs-bundle-client.js"},"stack":"Error: ENOENT: no such file or directory, open '/usr/src/app/build/public/rjs-bundle-client.js'","exception":true,"date":"Thu Nov 05 2020 16:53:47 GMT+0000 (Coordinated Universal Time)","process":{"pid":12,"uid":0,"gid":0,"cwd":"/usr/src/app","execPath":"/usr/local/bin/node","version":"v12.19.0","argv":["/usr/local/bin/node","/usr/src/app/nodebb","upgrade","-sbi"],"memoryUsage":{"rss":143851520,"heapTotal":98816000,"heapUsed":75113752,"external":1591674,"arrayBuffers":83542}},"os":{"loadavg":[0.26,0.23,0.18],"uptime":127962},"trace":[]}
nodebb_1 | 2020-11-05T16:53:47.187Z [4567/12] - error: [build] admin js bundle build failed
I will work on these errors to fix soon, it was appeared by some changes in the building or releasing changes. But they do not break the forum.
But yes, forum initializing as v1.15.0-rc.3
anyway, I will work on that too.
The ./nodebb upgrade -sbi
is executing on each container startup.
nodebb_1 | Updating NodeBB...
Found an issue with version upgrading. I will push changes soon.
@rez0n Updated from 1.15.0 to 1.15.1. Upgraded properly, good work!
Regarding the build error, should i create a separate issue so we can keep track of it?
@fais3000 I'm already fixed the build error in the same commit.
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS" NAME="Ubuntu" VERSION="20.04.1 LTS (Focal Fossa)"
Existing Installation running on Nodebb Docker image NodeBB v1.15.0-rc.3 through nibrev/nodebb:beta
After changing the docker compose image to nibrev/nodebb:v1.15.0. Docker pulled the latest image but the container is stuck on old version.
Logs
There are bunch of other errors in the build flow, that may be a problem too. Portainer (docker monitoring/management software) shows that the image attached with the stack is actually nibrev/nodebb:v1.15.0. So my hunch is that
./nodebb upgrade
is not being called or failing.