NodeBB have a work plugin for upload files on S3?
-
UPD
On 3.0.0 version NodeBB all this plugins didn't work, the ACP (admin/plugins/s3-uploads) show error
req.csrfToken is not a function
@dasmeta/nodebb-plugin-upload
@NodeBB-Community/nodebb-plugin-s3-uploads
@nodebb-plugin-s3-uploads-updated-againAnd after installed this plugins, the console show alert about npm packages vulnerabilities... it's not good.
user@server:/var/www/forum/nodebb# npm install NodeBB-Community/nodebb-plugin-s3-uploads npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. added 63 packages, and audited 1559 packages in 14s 180 packages are looking for funding run `npm fund` for details 24 vulnerabilities (11 moderate, 11 high, 2 critical)
-
-
-
Any thoughts on when the plugin will be fixed for 3.x?
-
Hi All, is there anyone using S3 nowadays?
-
I updated our fork at https://github.com/NodeBB-Community/nodebb-plugin-s3-uploads to nodebb 3.2.0 and up. Latest version is
@nodebb/[email protected]
. -
Hey everyone,
I'm having a bit of trouble with the Amazon S3 plugin (@nodebb/nodebb-plugin-s3-uploads 3.0.7). I installed it successfully, but I can't find the settings in the Admin Control Panel (ACP) to add my AWS credentials. Has anyone else experienced this? Any ideas on how to access the settings or manually input my credentials? I am using fresh installed NodeBB v3.12.1
Also, I came across a note on GitHub suggesting using Environment Variables or Instance Metadata instead of directly entering credentials. Could someone shed some light on how to set that up? Any help would be greatly appreciated!
-
Yes, I activated the plugin. However, when I try to rebuild & restart in the ACP, the loading animation spins indefinitely and never completes. I checked the logs and found this (the output is the same as in cli):
./nodebb build started 2025-01-02T14:14:55.538Z [4567/152874] - info: [build] Building in series mode 2025-01-02T14:14:55.539Z [4567/152874] - info: [build] plugin static dirs build started 2025-01-02T14:14:55.560Z [4567/152874] - info: [build] plugin static dirs build completed in 0.021sec 2025-01-02T14:14:55.561Z [4567/152874] - info: [build] requirejs modules build started 2025-01-02T14:14:55.728Z [4567/152874] - info: [build] requirejs modules build completed in 0.168sec 2025-01-02T14:14:55.729Z [4567/152874] - info: [build] client js bundle build started 2025-01-02T14:14:55.735Z [4567/152874] - info: [build] client js bundle build completed in 0.007sec 2025-01-02T14:14:55.735Z [4567/152874] - info: [build] admin js bundle build started 2025-01-02T14:14:55.738Z [4567/152874] - info: [build] admin js bundle build completed in 0.002sec 2025-01-02T14:14:55.738Z [4567/152874] - info: [build] client side styles build started Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 2 │ @import "bootstrap/scss/mixins/banner"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ - 2:9 root stylesheet Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 4 │ @import "bootstrap/scss/functions"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ - 4:9 root stylesheet Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 5 │ @import "./scss/overrides"; │ ^^^^^^^^^^^^^^^^^^ ╵ - 5:9 root stylesheet Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 6 │ @import "overrides.scss"; │ ^^^^^^^^^^^^^^^^ ╵ - 6:9 root stylesheet Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 7 │ @import "bootstrap/scss/variables"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ - 7:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use string.quote instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 57 │ $breadcrumb-divider: quote("→"); │ ^^^^^^^^^^ ╵ scss/overrides.scss 57:22 @import - 5:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use color.mix instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 207 │ @return mix(white, $color, $weight); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ bootstrap/scss/_functions.scss 207:11 tint-color() bootstrap/scss/_variables.scss 79:12 @import - 7:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use color.mix instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 212 │ @return mix(black, $color, $weight); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ bootstrap/scss/_functions.scss 212:11 shade-color() bootstrap/scss/_variables.scss 84:12 @import - 7:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use color.mix instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 342 │ $light-bg-subtle: mix($gray-100, $white) !default; │ ^^^^^^^^^^^^^^^^^^^^^^ ╵ bootstrap/scss/_variables.scss 342:27 @import - 7:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use math.unit instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 11 │ @if $prev-num == null or unit($num) == "%" or unit($prev-num) == "%" { │ ^^^^^^^^^^ ╵ bootstrap/scss/_functions.scss 11:30 -assert-ascending() bootstrap/scss/_variables.scss 494:1 @import - 7:9 root stylesheet Warning: 651 repetitive deprecation warnings omitted. Run in verbose mode to see all warnings. 2025-01-02T14:15:01.308Z [4567/152874] - info: [build] client side styles build completed in 5.57sec 2025-01-02T14:15:01.308Z [4567/152874] - info: [build] admin control panel styles build started Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 1 │ @import "admin/overrides"; │ ^^^^^^^^^^^^^^^^^ ╵ - 1:9 root stylesheet Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 2 │ @import "bootstrap/scss/bootstrap"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ - 2:9 root stylesheet Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 3 │ @import "mixins"; │ ^^^^^^^^ ╵ - 3:9 root stylesheet Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 4 │ @import "fontawesome/loader"; │ ^^^^^^^^^^^^^^^^^^^^ ╵ - 4:9 root stylesheet Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. More info and automated migrator: https://sass-lang.com/d/import ╷ 5 │ @import "fontawesome/style-solid"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ - 5:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use color.mix instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 26 │ $btn-ghost-hover-color: mix($light, $dark, 90%); │ ^^^^^^^^^^^^^^^^^^^^^^^ ╵ admin/overrides.scss 26:25 @import - 1:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use color.mix instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 28 │ $btn-ghost-hover-color-dark: mix($dark, $light, 90%); │ ^^^^^^^^^^^^^^^^^^^^^^^ ╵ admin/overrides.scss 28:30 @import - 1:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use color.mix instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 207 │ @return mix(white, $color, $weight); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ ../../../bootstrap/scss/_functions.scss 207:11 tint-color() ../../../bootstrap/scss/_variables.scss 79:12 @import bootstrap/scss/bootstrap.scss 8:9 @import - 2:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use color.mix instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 212 │ @return mix(black, $color, $weight); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ ../../../bootstrap/scss/_functions.scss 212:11 shade-color() ../../../bootstrap/scss/_variables.scss 84:12 @import bootstrap/scss/bootstrap.scss 8:9 @import - 2:9 root stylesheet Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0. Use color.mix instead. More info and automated migrator: https://sass-lang.com/d/import ╷ 342 │ $light-bg-subtle: mix($gray-100, $white) !default; │ ^^^^^^^^^^^^^^^^^^^^^^ ╵ ../../../bootstrap/scss/_variables.scss 342:27 @import bootstrap/scss/bootstrap.scss 8:9 @import - 2:9 root stylesheet Warning: 634 repetitive deprecation warnings omitted. Run in verbose mode to see all warnings. 2025-01-02T14:15:03.903Z [4567/152874] - info: [build] admin control panel styles build completed in 2.595sec 2025-01-02T14:15:03.904Z [4567/152874] - info: [build] templates build started 2025-01-02T14:15:03.982Z [4567/152874] - warn: [meta/templates] Partial not loaded: partials/breadcrumbs.tpl 2025-01-02T14:15:03.983Z [4567/152874] - warn: [meta/templates] Partial not loaded: partials/breadcrumbs.tpl 2025-01-02T14:15:03.985Z [4567/152874] - warn: [meta/templates] Partial not loaded: partials/paginator.tpl 2025-01-02T14:15:04.181Z [4567/152874] - warn: [meta/templates] Partial not loaded: partials/paginator.tpl 2025-01-02T14:15:04.270Z [4567/152874] - warn: [meta/templates] Partial not loaded: partials/paginator.tpl 2025-01-02T14:15:04.367Z [4567/152874] - info: [build] templates build completed in 0.463sec 2025-01-02T14:15:04.367Z [4567/152874] - info: [build] languages build started 2025-01-02T14:15:06.849Z [4567/152874] - info: [build] languages build completed in 2.482sec 2025-01-02T14:15:06.849Z [4567/152874] - info: [build] Bundling with Webpack. 280 assets 730 modules ERROR in ./build/public/src/modules/topicThumbs.js 104:6-106:8 Module not found: Error: Can't resolve 'composer' in '/home/xxxxx/htdocs/xxxxx/build/public/src/modules' webpack 5.97.1 compiled with 1 error in 13176 ms 2025-01-02T14:15:21.511Z [4567/152874] - info: [build] Asset compilation successful. Completed in 25.971sec.
I tried rebuild & restart from the ACP, ./nodebb reset -p, ./nodebb build from the command line, but I'm still encountering the same problem.
Now whenever i click Rebuild & Restart in ACP, nothing happens.