• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Magicmirror in Kubernetes

Scheduled Pinned Locked Moved Solved Troubleshooting
3 Posts 2 Posters 479 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    gerbenvs
    last edited by Dec 11, 2023, 10:22 AM

    Hello,

    I do want to run Magicmirror in my Kubernetes cluster, but the image doesn’t start.
    When the pod is starting, it’s crashing with this error:

    magicmirror@2.25.0 server
    node ./serveronly

    node:internal/modules/cjs/loader:1147
    throw err;
    ^

    Error: Cannot find module ‘/opt/magic_mirror/js/…/modules/default/defaultmodules’
    Require stack:

    • /opt/magic_mirror/js/app.js
    • /opt/magic_mirror/serveronly/index.js
      at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
      at Module._resolveFilename (/opt/magic_mirror/node_modules/module-alias/index.js:49:29)
      at Module._load (node:internal/modules/cjs/loader:985:27)
      at Module.require (node:internal/modules/cjs/loader:1235:19)
      at require (node:internal/modules/helpers:176:18)
      at Object. (/opt/magic_mirror/js/app.js:17:24)
      at Module._compile (node:internal/modules/cjs/loader:1376:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1435:10)
      at Module.load (node:internal/modules/cjs/loader:1207:32)
      at Module._load (node:internal/modules/cjs/loader:1023:12)
      at Module.require (node:internal/modules/cjs/loader:1235:19)
      at require (node:internal/modules/helpers:176:18)
      at Object. (/opt/magic_mirror/serveronly/index.js:1:13)
      at Module._compile (node:internal/modules/cjs/loader:1376:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1435:10)
      at Module.load (node:internal/modules/cjs/loader:1207:32) {
      code: ‘MODULE_NOT_FOUND’,
      requireStack: [
      ‘/opt/magic_mirror/js/app.js’,
      ‘/opt/magic_mirror/serveronly/index.js’
      ]
      }

    Node.js v20.10.0
    npm notice
    npm notice New patch version of npm available! 10.2.3 -> 10.2.5
    npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
    npm notice Run npm install -g npm@10.2.5 to update!
    npm notice

    When I login to the pod and run ’ npm run server’, I do see the same message.

    I have mounted /config, /css and /modules to persistent volumes. Because this is an initial deployment, all volumes are still empty.

    Any ideas?

    Gerben

    G 1 Reply Last reply Dec 11, 2023, 11:47 AM Reply Quote 0
    • G Offline
      gerbenvs @gerbenvs
      last edited by Dec 11, 2023, 11:47 AM

      I think I have the solution for this error.
      Had to run the entrypoint.sh script. That copies all default modules to correct folder.

      K 1 Reply Last reply Dec 11, 2023, 9:49 PM Reply Quote 0
      • K Offline
        karsten13 @gerbenvs
        last edited by Dec 11, 2023, 9:49 PM

        @gerbenvs

        I played around with a helm and a kustomize setup …

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          2/3
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy