Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke functions failing - Cannot export database #8910

Open
2 of 6 tasks
Keybored02 opened this issue Jan 18, 2025 · 3 comments
Open
2 of 6 tasks

Invoke functions failing - Cannot export database #8910

Keybored02 opened this issue Jan 18, 2025 · 3 comments
Labels
bug Identifies a bug which needs to be addressed question This is a question

Comments

@Keybored02
Copy link

Keybored02 commented Jan 18, 2025

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

I am trying to create a .json of the database to migrate installations from BM to Docker, but cannot perform invoke export-records. I tried both within and outside the env. If inside the env, the message error is as this, outside the env is this. I could replicate this issue on a new VM with a fresh install.
What I tried:

  • sudo inventree run cli update --uv
  • checking the config.yaml file for typos (anonymized copy here): the static directory is setup correctly.

Steps to Reproduce

  1. Run invoke export-records -f data.json inside of /opt/inventree.

Expected behaviour

A .json file is generated.

Deployment Method

  • Docker
  • Package
  • Bare metal
  • Other - added info in Steps to Reproduce

Version Information

Version Information:

InvenTree-Version: 0.17.0
Django Version: 4.2.17

Database: sqlite3
Debug-Mode: False
Deployed using Docker: False
Platform: Linux-5.10.0-33-amd64-x86_64-with-glibc2.31
Installer: None

Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.1.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.1.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}, {'name': 'KiCadLibraryPlugin', 'slug': 'kicad-library-plugin', 'version': '1.4.3'}]

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

Relevant log output

@Keybored02 Keybored02 added bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team labels Jan 18, 2025
@matmair
Copy link
Member

matmair commented Jan 18, 2025

The error message indicates that „ INVENTREE_STATIC_ROOT“ is not set. Is your install currently working because it should not with that missing.

@Keybored02
Copy link
Author

Keybored02 commented Jan 18, 2025

Currently working, and the config.yaml has the correct path set too.

I get the same error on a VM I set up to test this exact issue. Same OS and install procedure (version do differ, the VM runs the latest 0.17.2).

@matmair matmair removed the triage:not-checked Item was not checked by the core team label Jan 20, 2025
@Keybored02
Copy link
Author

I brought both instances up to date to 0.17.2, and the issue persists. I couldn't run invoke migrate or static either. The database keeps running without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed question This is a question
Projects
None yet
Development

No branches or pull requests

2 participants