inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.23k stars 762 forks source link

Getting Internal Server Error when generating parts list from Admin #8358

Closed mikeabiz closed 4 hours ago

mikeabiz commented 5 hours ago

Please verify that this bug has NOT been raised before.

Describe the bug*

I have installed the 16.0 development version and have been running it. Tried to generate a parts list for around 1k parts but have been getting an internal server error.

My hardware specs is an Intel Celeron on a J1900 motherboard with 8 GB RAM and 256 GB SSD

Steps to Reproduce

Go to admin Go to parts Select Export Select CSV fileImage Image Image Image Image

Expected behaviour

Parts list will be generated

Deployment Method

Version Information

Version Information:

InvenTree-Version: 0.16.0 dev Django Version: 4.2.14

Database: sqlite3 Debug-Mode: False Deployed using Docker: False Platform: Linux-5.10.0-31-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'}]

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

Relevant log output

No response

SchrodingersGat commented 5 hours ago

This looks to be an identical issue to https://github.com/inventree/InvenTree/issues/7650

Basically, the "old" library we use for exporting is inefficient - and will be removed after our next release.

You can export via the "download data" button in the part table - and this should be a lot quicker, and prevent the proxy server from timing-out the request

mikeabiz commented 4 hours ago

Thanks. Have been able to complete the download.