Skip to content

Module sqlite is missing #6

@cmoulliard

Description

@cmoulliard

Issue

When we deploy the helm chart

DOMAIN_NAME="192.168.1.90.nip.io"
cat <<EOF > $HOME/demo-backstage/my-values.yml
backstage:
  image:
    registry: "docker.io/library"
    repository: "backstage"
    tag: "dev"
EOF

helm repo add backstage https://vinzscam.github.io/backstage-chart
helm install -f $HOME/demo-backstage/my-values.yml  --create-namespace -n backstage my-backstage

from a project created using npx @backstage/create-app

npx @backstage/create-app
...
yarn dev
yarn build
yarn build-image -t backstage:dev
kind load docker-image backstage:dev

then we got the following error as by default the module better-sqlite3 is not packaged within the node application when we build it

Log of the backend pod

...
Backend failed to start up, Error: Knex: run
$ npm install @vscode/sqlite3 --save
Cannot find module 'better-sqlite3'
Require stack:
- /app/node_modules/knex/lib/dialects/better-sqlite3/index.js
- /app/node_modules/knex/lib/knex-builder/internal/config-resolver.js
- /app/node_modules/knex/lib/knex-builder/Knex.js
- /app/node_modules/knex/lib/index.js
- /app/node_modules/knex/knex.js
- /app/node_modules/@backstage/backend-common/dist/index.cjs.js
- /app/packages/backend/dist/index.cjs.js

The documentation page should include a warning message to explain how the image should be created and which packages should be packaged

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions