Skip to content
  • 3.12.0 Upgrade Support

    Pinned Technical Support
    23
    0 Votes
    23 Posts
    2k Views
    eeeeeE
    @phenomlab Thanks for your advice and help as always, its working now with fastmail, with your custom set up and the app password
  • NodeBB and Cloudflare

    General Discussion
    5
    1 Votes
    5 Posts
    2k Views
    D
    Is this still an issue? I cannot find any more info in the docs and I would like to use CF with Nodebb...
  • NodeBB and Threads

    ActivityPub
    10
    4 Votes
    10 Posts
    121 Views
    Jupiter RowlandJ
    @Scott M. Stolz Like a diaspora* dev once said: Threads didn't "implement ActivityPub", they "implemented Mastodon".
  • 0 Votes
    1 Posts
    13 Views
    Q
    I have seen the environment variables for reading the project, but I still need to initialize the project using these environment variables. const envConfMap = { CONFIG: 'config', NODEBB_CONFIG: 'config', NODEBB_URL: 'url', NODEBB_PORT: 'port', NODEBB_ADMIN_USERNAME: 'admin:username', NODEBB_ADMIN_PASSWORD: 'admin:password', NODEBB_ADMIN_EMAIL: 'admin:email', NODEBB_DB: 'database', NODEBB_DB_HOST: 'host', NODEBB_DB_PORT: 'port', NODEBB_DB_USER: 'username', NODEBB_DB_PASSWORD: 'password', NODEBB_DB_NAME: 'database', NODEBB_DB_SSL: 'ssl', }; What is the docker-composer.yml used for startup networks: 1panel-network: external: true services: nodebb: container_name: ${CONTAINER_NAME} deploy: resources: limits: cpus: ${CPUS} memory: ${MEMORY_LIMIT} environment: - TZ=Asia/Shanghai - NODEBB_PORT=4567 - NODEBB_URL=http://127.0.0.1:4567 - NODEBB_ADMIN_EMAIL="[email protected]" - NODEBB_ADMIN_PASSWORD="xxxxxxx" - NODEBB_ADMIN_USERNAME="admin" - NODEBB_DB="postgres" - NODEBB_DB_HOST="127.0.0.1" - NODEBB_DB_NAME="nodebb" - NODEBB_DB_PASSWORD="xxxxxxx" - NODEBB_DB_PORT=5432 - NODEBB_DB_USER="nodebb" image: ghcr.io/nodebb/nodebb:3.12.2 labels: createdBy: Apps networks: - 1panel-network ports: - 4567:4567 restart: always volumes: - ${NODEBB_ROOT_PATH}/node_modules:/usr/src/app/node_modules - ${NODEBB_ROOT_PATH}/build:/usr/src/app/build - ${NODEBB_ROOT_PATH}/uploads:/usr/src/app/public/uploads - ${NODEBB_ROOT_PATH}/config:/opt/config - ${NODEBB_ROOT_PATH}/setup.json:/usr/src/app/setup.json What I hope for is to achieve unmanned installation
  • How to hace nice URLs?

    Unsolved Technical Support
    6
    0 Votes
    6 Posts
    79 Views
    <baris>B
    Slugify doesn't remove the special characters @darkpollo mentioned. const s = await app.require('slugify'); console.log(s('a title with speacial chars á é í ó in it')) a-title-with-speacial-chars-á-é-í-ó-in-it The issue I saw was they were encoded if the entire url from the address bar is copied. [image: 1736451559579-97941ea7-8608-4f5d-9874-8e8cebfc59e5-image.png]
  • Improving docker support

    General Discussion
    7
    5 Votes
    7 Posts
    535 Views
    julianJ
    @ANONYMOUSKOREAN the Dockerfile is maintained by the community, since we don't use it at NodeBB ourselves. That said, it would be very appreciated if you were to help keep the file updated
  • WordPress follow failure

    ActivityPub
    1
    3 Votes
    1 Posts
    20 Views
    julianJ
    @[email protected] Thought you might be interested... I attempted to follow @[email protected] from NodeBB and found a fun little race condition! NodeBB sends the follow and waits for the request to complete before recording the details of the follow (for backreferencing the eventual accept). WordPress seems to fire back the Accept, and then wraps up the response. I imagine a lot of implementors do the same, but it just so happens that WordPress' response time (or at least the swf site's) is juuust slow enough to reliably have the Accept come in before the Follow finishes. So NodeBB hadn't recorded the follow request when it received the Accept, so the follow failed I've adjusted my code now so the backreference is saved before sending the Follow.
  • Docker build issue

    Unsolved Technical Support
    1
    0 Votes
    1 Posts
    27 Views
    F
    Hello friends, I am facing a big issue that is blocking me with Nodebb I tried building NodeBB using the postgress configuration with docker but I am getting this issue. I really don't know what is happening. The .docker/build folder is empty and is not generating nothing. I tried in Windows and in MacOS. The error is the same. Could somebody help me please? This issue is blocking me a lot. PD: I am using the code from github, not a modify version by me. Thanks for your help! nodebb-1 | 2025-01-08T23:33:41.761Z [4567/86] - info: 🎉 NodeBB Ready nodebb-1 | 2025-01-08T23:33:41.762Z [4567/86] - info: 🤝 Enabling 'trust proxy' nodebb-1 | 2025-01-08T23:33:41.763Z [4567/86] - info: 📡 NodeBB is now listening on: 0.0.0.0:4567 nodebb-1 | 2025-01-08T23:33:41.763Z [4567/86] - info: 🔗 Canonical URL: http://localhost nodebb-1 | 2025-01-08T23:33:42.063Z [4567/86] - error: uncaughtException: ENOENT: no such file or directory, open '/usr/src/app/build/public/src/service-worker.js' nodebb-1 | Error: ENOENT: no such file or directory, open '/usr/src/app/build/public/src/service-worker.js' nodebb-1 | at async open (node:internal/fs/promises:638:25) nodebb-1 | at async readFile (node:internal/fs/promises:1242:14) nodebb-1 | at async Controller.generate (/usr/src/app/src/controllers/service-worker.js:13:19) {"date":"Wed Jan 08 2025 23:33:42 GMT+0000 (Coordinated Universal Time)","error":{"code":"ENOENT","errno":-2,"path":"/usr/src/app/build/public/src/service-worker.js","syscall":"open"},"exception":true,"os":{"loadavg":[0.49,0.49,0.29],"uptime":8437.17},"process":{"argv":["/usr/local/bin/node","/usr/src/app/app.js"],"cwd":"/usr/src/app","execPath":"/usr/local/bin/node","gid":1001,"memoryUsage":{"arrayBuffers":714282,"external":4294458,"heapTotal":94744576,"heapUsed":64312264,"rss":192311296},"pid":86,"uid":1001,"version":"v22.13.0"},"stack":"Error: ENOENT: no such file or directory, open '/usr/src/app/build/public/src/service-worker.js'\n at async open (node:internal/fs/promises:638:25)\n at async readFile (node:internal/fs/promises:1242:14)\n at async Controller.generate (/usr/src/app/src/controllers/service-worker.js:13:19)","trace":[{"column":25,"file":"node:internal/fs/promises","function":"async open","line":638,"method":null,"native":false},{"column":14,"file":"node:internal/fs/promises","function":"async readFile","line":1242,"method":null,"native":false},{"column":19,"file":"/usr/src/app/src/controllers/service-worker.js","function":"async Controller.generate","line":13,"method":"generate","native":false}]} nodebb-1 | 2025-01-08T23:33:42.063Z [4567/86] - error: Error: ENOENT: no such file or directory, open '/usr/src/app/build/public/src/service-worker.js' nodebb-1 | at async open (node:internal/fs/promises:638:25) nodebb-1 | at async readFile (node:internal/fs/promises:1242:14) nodebb-1 | at async Controller.generate (/usr/src/app/src/controllers/service-worker.js:13:19) nodebb-1 | 2025-01-08T23:33:42.063Z [4567/86] - info: [app] Shutdown (SIGTERM/SIGINT/SIGQUIT) Initialised. nodebb-1 | 2025-01-08T23:33:42.064Z [4567/86] - info: [app] Web server closed to connections. nodebb-1 | 2025-01-08T23:33:42.071Z [4567/86] - info: [app] Live analytics saved. nodebb-1 | 2025-01-08T23:33:42.072Z [4567/86] - info: [app] Database connection closed. nodebb-1 | 2025-01-08T23:33:42.072Z [4567/86] - info: [app] Shutdown complete. nodebb-1 | [cluster] Child Process (86) has exited (code: 1, signal: null) nodebb-1 | [cluster] Spinning up another process... nodebb-1 | 2025-01-08T23:33:42.201Z [4567/118] - info: Initializing NodeBB v4.0.0-rc.4 http://localhost nodebb-1 | 2025-01-08T23:33:42.684Z [4567/118] - warn: [cache-buster] could not read cache buster ENOENT: no such file or directory, open '/usr/src/app/build/cache-buster' {"code":"ENOENT","errno":-2,"path":"/usr/src/app/build/cache-buster","stack":"Error: ENOENT: no such file or directory, open '/usr/src/app/build/cache-buster'\n at async open (node:internal/fs/promises:638:25)\n at async Object.readFile (node:internal/fs/promises:1242:14)\n at async read (/usr/src/app/src/meta/cacheBuster.js:31:18)\n at async Configs.init (/usr/src/app/src/meta/configs.js:90:17)\n at async start.start (/usr/src/app/src/start.js:19:3)","syscall":"open"} nodebb-1 | 2025-01-08T23:33:42.953Z [4567/118] - info: [socket.io] Restricting access to origin: http://localhost:* nodebb-1 | 2025-01-08T23:33:43.011Z [4567/118] - info: [api] Adding 0 route(s) to `api/v3/plugins` nodebb-1 | 2025-01-08T23:33:43.019Z [4567/118] - info: [router] Routes added nodebb-1 | 2025-01-08T23:33:43.025Z [4567/118] - info: 🎉 NodeBB Ready nodebb-1 | 2025-01-08T23:33:43.026Z [4567/118] - info: 🤝 Enabling 'trust proxy' nodebb-1 | 2025-01-08T23:33:43.027Z [4567/118] - info: 📡 NodeBB is now listening on: 0.0.0.0:4567 nodebb-1 | 2025-01-08T23:33:43.027Z [4567/118] - info: 🔗 Canonical URL: http://localhost
  • Xenforo vs NodeBB vs Invision in 2025 (and Beyond)

    General Discussion
    4
    0 Votes
    4 Posts
    147 Views
    Jessica BrownC
    I'm not sure Sylvester speaks for everyone (or at least me), and I want to offer my perspective. Personally, I think NodeBB is an amazing product. I've probably installed it 20 times or more across various environments; Ubuntu, RHEL, OpenSUSE, and even created a Docker instance for testing. It’s a fantastic piece of software with a lot of potential. That said, my needs eventually led me in a different direction. I was looking for something more enterprise-ready, more sysadmin-oriented, and a bit more aligned with my development style. The NodeBB team is incredible, and they were very supportive during my time using it. But ultimately, time was a critical factor for me, and I needed a platform that I could build on quickly without hitting too many roadblocks. Since I had an extra $500, I decided to give Invision Board a shot. In just a few days, I was able to build a custom template in about 2 hours, create webhooks, make API calls, and develop a few applications. I even put together a IPS database viewer that interacts with a PHP script to pull database info, convert it to JSON, and display it in a way that allows me to track changes, drill down into data, and generate reports. NodeBB is definitely going places, and I still think it’s a great platform. However, for my specific use case, building features like Clubs, Articles, Blogs, Galleries, Coding Snippets, Wikipedia API integrations, and more, I needed something that offered those tools out of the box or with customization that I can develop with. I spent a week trying to build a custom template in NodeBB and couldn’t get it right, whereas I built one for Invision in just two hours, and I had my additional features up and running within four days. At the end of the day, it comes down to finding the right tool for the job. NodeBB is a fantastic project with a bright future, but Invision was a better fit for what I needed right now. Please don't hate me NodeBB peeps... I will be using this system on my clients (with a subscription so I don't have to host it ) and still give the praise!
  • NodeJS version upgrade or not?

    Solved Technical Support
    3
    0 Votes
    3 Posts
    50 Views
    D
    @baris Thanks!!
  • How can I modify content of list posts at profile page?

    Unsolved Technical Support
    2
    +1
    0 Votes
    2 Posts
    32 Views
    <baris>B
    You will have to modify the template for that page which is at https://github.com/NodeBB/nodebb-theme-harmony/blob/main/templates/account/posts.tpl, keep in mind you that page is showing posts and you want to change them to show as topics so you will have to add make changes to the data as well, possibly using the hook filter:account/posts.build
  • Nodebb can't loading a module

    Unsolved Technical Support
    2
    +1
    0 Votes
    2 Posts
    20 Views
    <baris>B
    If you are adding a new client side js module, you need to define it in your plugin.json see the quickstart plugin https://github.com/NodeBB/nodebb-plugin-quickstart/blob/master/plugin.json#L23
  • 0 Votes
    5 Posts
    144 Views
    D
    thanks you so much!
  • Amazon SES doesn't send mail

    Solved Technical Support
    3
    +1
    0 Votes
    3 Posts
    42 Views
    SerdarS
    @baris I changed port to 587 and connection to StartTLS. It worked! Maybe it was related my host firewall rules. Idk, but it fixed. Thanks
  • Version Upgrade Steps from 2.8 to Current

    Solved Technical Support
    6
    0 Votes
    6 Posts
    65 Views
    J
    Awesome, thanks for the info!
  • 1 Votes
    5 Posts
    56 Views
    <baris>B
    My changes and the local login privilege only applies to regular logins so should be fine.
  • 0 Votes
    1 Posts
    36 Views
    Y
    Hello, I found that many examples need start a new mongodb container when installing nodebb. However, I have installed mongodb in a container on my server. I have created a root user and root passward for the mongodb. But I haven't create a database. Then how to install nodebb in this case, what's should be modified in the docker compose file in order to run correctly? Thanks.
  • Social Web After Hours at FOSDEM 2025

    ActivityPub
    6
    1 Votes
    6 Posts
    45 Views
    naturzukunftN
    @evan good advice
  • There's a command for unattended upgrades?

    Solved Technical Support
    4
    0 Votes
    4 Posts
    273 Views
    <baris>B
    https://github.com/NodeBB/NodeBB/issues/13023
  • Upgrade command stuck once finished

    Unsolved Technical Support
    1
    1 Votes
    1 Posts
    23 Views
    D
    My upgrade script get stuck on this Build finished at 13:19:30 by 0.000s Build finished at 13:19:30 by 0.000s Build finished at 13:19:30 by 0.000s Instead of the normal one: Build finished at 13:19:30 by 0.000s Build finished at 13:19:30 by 0.000s Build finished at 13:19:30 by 0.000s 2025-01-05T13:19:31.074Z [4567,4568/2226960] - info: [build] Bundling took 7664 ms 2025-01-05T13:19:31.076Z [4567,4568/2226960] - info: The only issue is that my script manager does not get the signal of "done" and then I ineed to reset the deployment status. Not a big deal, but I would love to know if this is common and what can I do to force the end of the gbuild. Thanks