• Hello!
    I have been playing with NodeBB for a few days and I was having a great time (thanks for the great work).
    Since this morning tho I am getting Error: [[error:theme-not-found]] when running ./nodebb setup on a freshly cloned repo.

    Anyone able to cast some light?

    thanks

    470d9190-3a84-4a63-a15d-dfdf44c1bbcf-image.png

  • NodeBB Admin

    Is nodebb-theme-persona inside node_modules folder? That error means the active theme is not installed in the node_modules folder.


  • Can you provide the full output of ./nodebb setup? Please copy the actual text and put it in a code block.


  • @baris
    Yes it is (I cloned the git repo and run ./nodebb setup)

    44da020e-8651-4674-a45a-c8c8cddc80a7-image.png


  • thanks @PitaJ

     ⚾️   ~/Sites/personal/nodebb/nodebb   master  ./nodebb setup
    2022-11-21T15:39:51.446Z [49131] - info: NodeBB Setup Triggered via Command Line
    
    Welcome to NodeBB v2.5.8!
    
    This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
    Press enter to accept the default setting (shown in brackets).
    2022-11-21T15:39:51.515Z [49131] - info:
    Now configuring mongo database:
    2022-11-21T15:39:53.313Z [49131] - info: [database] Checking database indices.
    2022-11-21T15:39:53.611Z [49131] - info: [database] Checking database indices done!
    2022-11-21T15:39:54.244Z [49131] - verbose: [minifier] utilizing a maximum of 7 additional threads
    Configuration Saved OK
    Populating database with default configs, if not already set...
    2022-11-21T15:39:54.664Z [49131] - warn: [cache-buster] could not read cache buster ENOENT: no such file or directory, open '/Users/ale/Sites/personal/nodebb/nodebb/build/cache-buster' {"code":"ENOENT","errno":-2,"path":"/Users/ale/Sites/personal/nodebb/nodebb/build/cache-buster","stack":"Error: ENOENT: no such file or directory, open '/Users/ale/Sites/personal/nodebb/nodebb/build/cache-buster'","syscall":"open"}
    Previous theme detected, skipping enabling default theme
    Categories OK. Found 6 categories.
    Administrator found, skipping Admin setup
    2022-11-21T15:39:55.055Z [49131] - info: Global Moderators group found, skipping creation!
    Enabling default plugins
    2022-11-21T15:39:55.823Z [49131] - info: [install/defaultPlugins] customDefaults undefined
    2022-11-21T15:39:55.824Z [49131] - info: [install/enableDefaultPlugins] activating default plugins {"0":"nodebb-plugin-composer-default","1":"nodebb-plugin-markdown","2":"nodebb-plugin-mentions","3":"nodebb-widget-essentials","4":"nodebb-rewards-essentials","5":"nodebb-plugin-emoji","6":"nodebb-plugin-emoji-android"}
    2022-11-21T15:39:56.346Z [49131] - verbose: [build] Querying CPU core count for build strategy
    2022-11-21T15:39:56.347Z [49131] - verbose: [build] System returned 8 cores, opting for parallel build strategy
    2022-11-21T15:39:56.348Z [49131] - verbose: [build] building the following targets: plugin static dirs, requirejs modules, client js bundle, admin js bundle, client side styles, admin control panel styles, templates, languages
      started
    2022-11-21T15:39:57.728Z [49131] - error: [build] Encountered error preparing for build
    Error: [[error:theme-not-found]]
        at Themes.setupPaths (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/themes.js:162:9)
        at async beforeBuild (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:68:3)
        at async exports.build (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:181:3)
        at async exports.buildAll (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:252:2)
        at async Object.setup (/Users/ale/Sites/personal/nodebb/nodebb/src/cli/setup.js:32:3)
    2022-11-21T15:39:57.728Z [49131] - error: [build] Encountered error during build step
    Error: [[error:theme-not-found]]
        at Themes.setupPaths (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/themes.js:162:9)
        at async beforeBuild (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:68:3)
        at async exports.build (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:181:3)
        at async exports.buildAll (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:252:2)
        at async Object.setup (/Users/ale/Sites/personal/nodebb/nodebb/src/cli/setup.js:32:3)
    2022-11-21T15:39:57.734Z [49131] - error: uncaughtException: [[error:theme-not-found]]
    Error: [[error:theme-not-found]]
        at Themes.setupPaths (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/themes.js:162:9)
        at async beforeBuild (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:68:3)
        at async exports.build (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:181:3)
        at async exports.buildAll (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:252:2)
        at async Object.setup (/Users/ale/Sites/personal/nodebb/nodebb/src/cli/setup.js:32:3) {"date":"Mon Nov 21 2022 16:39:57 GMT+0100 (Central European Standard Time)","error":{},"exception":true,"os":{"loadavg":[1.6728515625,2.64404296875,2.15771484375],"uptime":199650},"process":{"argv":["/Users/ale/.nvm/versions/node/v16.15.0/bin/node","/Users/ale/Sites/personal/nodebb/nodebb/nodebb","setup"],"cwd":"/Users/ale/Sites/personal/nodebb/nodebb","execPath":"/Users/ale/.nvm/versions/node/v16.15.0/bin/node","gid":20,"memoryUsage":{"arrayBuffers":19763562,"external":22262793,"heapTotal":108445696,"heapUsed":82599864,"rss":148406272},"pid":49131,"uid":501,"version":"v16.15.0"},"stack":"Error: [[error:theme-not-found]]\n    at Themes.setupPaths (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/themes.js:162:9)\n    at async beforeBuild (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:68:3)\n    at async exports.build (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:181:3)\n    at async exports.buildAll (/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js:252:2)\n    at async Object.setup (/Users/ale/Sites/personal/nodebb/nodebb/src/cli/setup.js:32:3)","trace":[{"column":9,"file":"/Users/ale/Sites/personal/nodebb/nodebb/src/meta/themes.js","function":"Themes.setupPaths","line":162,"method":"setupPaths","native":false},{"column":3,"file":"/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js","function":"async beforeBuild","line":68,"method":null,"native":false},{"column":3,"file":"/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js","function":"async exports.build","line":181,"method":"build","native":false},{"column":2,"file":"/Users/ale/Sites/personal/nodebb/nodebb/src/meta/build.js","function":"async exports.buildAll","line":252,"method":"buildAll","native":false},{"column":3,"file":"/Users/ale/Sites/personal/nodebb/nodebb/src/cli/setup.js","function":"async Object.setup","line":32,"method":"setup","native":false}]}
    
  • NodeBB Admin

    Previous theme detected, skipping enabling default theme What is the active theme? Can you post the output of ./nodebb plugins?


  • initially it was like this:

    image.png

    I installed the missing plugin and theme and I still have the same error.

    Btw, if I clone the repo to a new folder and run the setup I get:

    ./nodebb setup
    Dependencies outdated or not yet installed.
    Installing them now...
    
    npm WARN deprecated [email protected]: Please use another csrf package
    npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
    npm WARN deprecated [email protected]: this library is no longer supported
    npm WARN deprecated [email protected]: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
    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]: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
    npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
    
    added 990 packages, and audited 991 packages in 2m
    
    91 packages are looking for funding
      run `npm fund` for details
    
    5 high severity vulnerabilities
    
    Some issues need review, and may require choosing
    a different dependency.
    
    Run `npm audit` for details.
    OK
    
    2022-11-22T13:21:37.225Z [30836] - info: NodeBB Setup Triggered via Command Line
    
    Welcome to NodeBB v2.5.8!
    
    This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
    Press enter to accept the default setting (shown in brackets).
    URL used to access this NodeBB (http://localhost:4567)
    Please enter a NodeBB secret (05327707-e84a-49c4-b1c6-2f828315b8ca)
    Would you like to submit anonymous plugin usage to nbbpm? (yes) no
    Which database to use (mongo)
    2022-11-22T13:21:47.575Z [30836] - info:
    Now configuring mongo database:
    MongoDB connection URI: (leave blank if you wish to specify host, port, username/password and database individually)
    Format: mongodb://[username:[email protected]]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] mongodb+srv://waldorf:[email protected]/?retryWrites=true&w=majority

    2022-11-22T13:21:50.794Z [30836] - info: [database] Checking database indices.
    2022-11-22T13:21:50.838Z [30836] - info: [database] Checking database indices done!
    2022-11-22T13:21:53.312Z [30836] - verbose: [minifier] utilizing a maximum of 0 additional threads
    Configuration Saved OK
    Populating database with default configs, if not already set...
    2022-11-22T13:21:53.392Z [30836] - warn: [cache-buster] could not read cache buster ENOENT: no such file or directory, open '/srv/nodebb/waldorf_2/build/cache-buster' {"code":"ENOENT","errno":-2,"path":"/srv/nodebb/waldorf_2/build/cache-buster","stack":"Error: ENOENT: no such file or directory, open '/srv/nodebb/waldorf_2/build/cache-buster'","syscall":"open"}
    Previous theme detected, skipping enabling default theme
    Categories OK. Found 4 categories.
    Administrator found, skipping Admin setup
    2022-11-22T13:21:53.437Z [30836] - info: Global Moderators group found, skipping creation!
    Enabling default plugins
    2022-11-22T13:21:53.557Z [30836] - info: [install/defaultPlugins] customDefaults undefined
    2022-11-22T13:21:53.557Z [30836] - info: [install/enableDefaultPlugins] activating default plugins {"0":"nodebb-plugin-composer-default","1":"nodebb-plugin-markdown","2":"nodebb-plugin-mentions","3":"nodebb-widget-essentials","4":"nodebb-rewards-essentials","5":"nodebb-plugin-emoji","6":"nodebb-plugin-emoji-android"}
    2022-11-22T13:21:53.790Z [30836] - verbose: [build] Querying CPU core count for build strategy
    2022-11-22T13:21:53.811Z [30836] - verbose: [build] System returned 1 cores, opting for series build strategy
    2022-11-22T13:21:53.815Z [30836] - verbose: [build] building the following targets: plugin static dirs, requirejs modules, client js bundle, admin js bundle, client side styles, admin control panel styles, templates, languages
      started
    2022-11-22T13:21:54.058Z [30836] - error: [build] Encountered error preparing for build
    Error: [[error:theme-not-found]]
        at Themes.setupPaths (/srv/nodebb/waldorf_2/src/meta/themes.js:162:9)
        at async beforeBuild (/srv/nodebb/waldorf_2/src/meta/build.js:68:3)
        at async exports.build (/srv/nodebb/waldorf_2/src/meta/build.js:181:3)
        at async exports.buildAll (/srv/nodebb/waldorf_2/src/meta/build.js:252:2)
        at async Object.setup (/srv/nodebb/waldorf_2/src/cli/setup.js:32:3)
    2022-11-22T13:21:54.059Z [30836] - error: [build] Encountered error during build step
    Error: [[error:theme-not-found]]
        at Themes.setupPaths (/srv/nodebb/waldorf_2/src/meta/themes.js:162:9)
        at async beforeBuild (/srv/nodebb/waldorf_2/src/meta/build.js:68:3)
        at async exports.build (/srv/nodebb/waldorf_2/src/meta/build.js:181:3)
        at async exports.buildAll (/srv/nodebb/waldorf_2/src/meta/build.js:252:2)
        at async Object.setup (/srv/nodebb/waldorf_2/src/cli/setup.js:32:3)
    2022-11-22T13:21:54.064Z [30836] - error: uncaughtException: [[error:theme-not-found]]
    Error: [[error:theme-not-found]]
        at Themes.setupPaths (/srv/nodebb/waldorf_2/src/meta/themes.js:162:9)
        at async beforeBuild (/srv/nodebb/waldorf_2/src/meta/build.js:68:3)
        at async exports.build (/srv/nodebb/waldorf_2/src/meta/build.js:181:3)
        at async exports.buildAll (/srv/nodebb/waldorf_2/src/meta/build.js:252:2)
        at async Object.setup (/srv/nodebb/waldorf_2/src/cli/setup.js:32:3) {"date":"Tue Nov 22 2022 14:21:54 GMT+0100 (Central European Standard Time)","error":{},"exception":true,"os":{"loadavg":[1.19,0.62,0.3],"uptime":175524.23},"process":{"argv":["/home/freeconomy/.nvm/versions/node/v16.15.1/bin/node","/srv/nodebb/waldorf_2/nodebb","setup"],"cwd":"/srv/nodebb/waldorf_2","execPath":"/home/freeconomy/.nvm/versions/node/v16.15.1/bin/node","gid":1001,"memoryUsage":{"arrayBuffers":19488372,"external":22254547,"heapTotal":89587712,"heapUsed":70197624,"rss":156049408},"pid":30836,"uid":1001,"version":"v16.15.1"},"stack":"Error: [[error:theme-not-found]]\n    at Themes.setupPaths (/srv/nodebb/waldorf_2/src/meta/themes.js:162:9)\n    at async beforeBuild (/srv/nodebb/waldorf_2/src/meta/build.js:68:3)\n    at async exports.build (/srv/nodebb/waldorf_2/src/meta/build.js:181:3)\n    at async exports.buildAll (/srv/nodebb/waldorf_2/src/meta/build.js:252:2)\n    at async Object.setup (/srv/nodebb/waldorf_2/src/cli/setup.js:32:3)","trace":[{"column":9,"file":"/srv/nodebb/waldorf_2/src/meta/themes.js","function":"Themes.setupPaths","line":162,"method":"setupPaths","native":false},{"column":3,"file":"/srv/nodebb/waldorf_2/src/meta/build.js","function":"async beforeBuild","line":68,"method":null,"native":false},{"column":3,"file":"/srv/nodebb/waldorf_2/src/meta/build.js","function":"async exports.build","line":181,"method":"build","native":false},{"column":2,"file":"/srv/nodebb/waldorf_2/src/meta/build.js","function":"async exports.buildAll","line":252,"method":"buildAll","native":false},{"column":3,"file":"/srv/nodebb/waldorf_2/src/cli/setup.js","function":"async Object.setup","line":32,"method":"setup","native":false}]}
    

    Would you please be able to confirm such a scenario? Freshly cloned repo and just run the setup

    I tried this on:

    • Mac mini M1 - Ventura 13.0.1
    • Ubuntu 18.04.6

  • @cuginoAle I just noticed this

    Previous theme detected, skipping enabling default theme
    

    Can you confirm whether this was with a fresh database as well?

  • GNU/Linux Admin

    @cuginoAle said in Theme not found:

    Previous theme detected, skipping enabling default theme

    As @baris and @PitaJ mentioned, this line is peculiar. It means your database contains a configuration, so NodeBB setup tries to keep it in place.

    It means a custom theme is set (oxide?) which isn't installed, since it is not bundled with NodeBB.

    To be clear, cloning to a fresh directory won't reset the database contents 😄


  • Oh thanks @julian!
    I didn't realise that, thanks for clarifying it!
    All working now 🙂

    cheers

  • Topic has been marked as solved   C   cuginoAle 

Suggested Topics

| | | |