Skip to content

Docker container missing files

Uncategorized
3 2 28
  • Hi, i get theae errors when i try start node Container.

    2025-05-20T14:27:47.735Z [4567/57] - info: Initializing NodeBB v4.4.1 https://forum.its-egner.de
    2025-05-20T14:27:50.677Z [4567/57] - 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:633:25)\n    at async Object.readFile (node:internal/fs/promises:1237: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"}
    2025-05-20T14:27:51.346Z [4567/57] - info: [socket.io] Restricting access
    to origin: https://forum.its-egner.de:*
    2025-05-20T14:27:51.409Z [4567/57] - error: [emailer] Failed to build custom email templates
    Error: ENOENT: no such file or directory, scandir '/usr/src/app/build/public/templates'
        at async Object.readdir (node:internal/fs/promises:949:18)
        at async file.walk (/usr/src/app/src/file.js:150:18)
        at async Promise.all (index 1)
        at async buildCustomTemplates (/usr/src/app/src/emailer.js:75:33)
    2025-05-20T14:27:51.431Z [4567/57] - warn: [plugins] "nodebb-plugin-embed" is active but not installed.
    2025-05-20T14:27:51.431Z [4567/57] - warn: [plugins] "nodebb-plugin-math-captcha" is active but not installed.
    2025-05-20T14:27:51.605Z [4567/57] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
      * nodebb-plugin-emoji-android
    
  • support@community.nodebb.orgS support@community.nodebb.org shared this topic
  • You have to build you own image with the plugins you want installed on every update

    this is my Dockerfile (just add the plugins you use)

    FROM ghcr.io/nodebb/nodebb:latest
    
    # Install NodeBB plugins
    RUN npm install \
        nodebb-plugin-cards \
        nodebb-plugin-link-preview \
        nodebb-plugin-tenor-gif
    
    # Expose the default NodeBB port
    EXPOSE 4567
    
  • Ashutosh-Verma Thanks for your advice. Will save Time during Update.

    If you want add healthcheck to your nodebb Docker, visit:

    And here the Update Script with all of my Plugins for Ubuntu 24

    git fetch
    git reset --hard origin/v4.x
    chown -R 1001:1001 .docker public
    docker-compose -f docker-compose-orgi.yml build
    docker-compose -f docker-compose-orgi.yml up -d
    docker exec -i nodebb-nodebb-1 npm install \
        nodebb-plugin-embed \
        nodebb-plugin-math-captcha \
        nodebb-plugin-embed \
        nodebb-plugin-emoji-android \
        nodebb-plugin-google-analytics \
        nodebb-plugin-sso-google \
        nodebb-plugin-tenor-gif
    
    

    Greetings