inventree / InvenTree

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

I success install Inventree in Docker on Ubuntu20.04 Server, it's display running, but i can't open website by lan. #7707

Closed zly20129 closed 3 months ago

zly20129 commented 3 months ago

Deployment Method

Describe the problem*

I success install Inventree in Docker on Ubuntu20.04 Server, it's display running, but i can't open website by lan.

In Firefox, I only saw a blank page, even after multiple refreshes, it still remains blank.

I use another ubuntu(vmware) nc-vz [Inventree-Ubuntu-Server ip] [port], it show follow. zly@ubuntu20server:~/inventree/contrib/container$ nc -vz 1.1.1.17 80 Connection to 1.1.1.17 80 port [tcp/http] succeeded! I try execute sudo ufw disable on Inventree-Ubuntu-Server, issue is persit.

Steps to Reproduce

  1. cd ~
  2. git clone https://gitee.com/zly20129/inventree.git
  3. cd inventree
  4. git checkout stable
  5. cd ~/inventree/contrib/container
  6. nano .env
  7. `# InvenTree environment variables for docker compose deployment

Specify the location of the external data volume

By default, placed in local directory 'inventree-data'

INVENTREE_EXT_VOLUME=/home/zly/inventree-data

Default web port for the InvenTree server

INVENTREE_WEB_PORT=80

Ensure debug is false for a production setup

INVENTREE_DEBUG=False INVENTREE_LOG_LEVEL=WARNING

InvenTree admin account details

Un-comment (and complete) these lines to auto-create an admin acount

INVENTREE_ADMIN_USER=隐藏 INVENTREE_ADMIN_PASSWORD=隐藏 INVENTREE_ADMIN_EMAIL=隐藏

Database configuration options

INVENTREE_DB_ENGINE=postgresql INVENTREE_DB_NAME=inventree INVENTREE_DB_HOST=inventree-db INVENTREE_DB_PORT=5432

Database credentials - These should be changed from the default values!

INVENTREE_DB_USER=pguser INVENTREE_DB_PASSWORD=隐藏

Redis cache setup (disabled by default)

Un-comment the following lines to enable Redis cache

Note that you will also have to run docker-compose with the --profile redis command

Refer to settings.py for other cache options

INVENTREE_CACHE_HOST=inventree-cache

INVENTREE_CACHE_PORT=6379

Options for gunicorn server

INVENTREE_GUNICORN_TIMEOUT=90

Enable custom plugins?

INVENTREE_PLUGINS_ENABLED=True

Run migrations automatically?

INVENTREE_AUTO_UPDATE=True

Image tag that should be used

INVENTREE_TAG=stable

Site URL - update this to match your host

INVENTREE_SITE_URL="http://inventree.localhost"

INVENTREE_SITE_URL="http://localhost"

Base currency code (or use env var INVENTREE_BASE_CURRENCY)

INVENTREE_BASE_CURRENCY=CNY

COMPOSE_PROJECT_NAME=inventree`

  1. Install and Run in Docker.
  2. Open website 1.1.1.17:80 on LAN Windows Firefox.

Relevant log output

Applying order.0010_purchaseorderlineitem_notes... OK
  Applying stock.0006_stockitem_purchase_order... OK
  Applying stock.0007_auto_20190618_0042... OK
  Applying stock.0008_stockitemtracking_url... OK
  Applying stock.0009_auto_20190715_2351... OK
  Applying build.0001_initial... OK
  Applying build.0002_auto_20190520_2204... OK
  Applying build.0003_auto_20190525_2355... OK
  Applying build.0004_auto_20190525_2356... OK
  Applying build.0005_auto_20190604_2217... OK
  Applying stock.0010_stockitem_build... OK
  Applying stock.0011_auto_20190908_0404... OK
  Applying stock.0012_auto_20190908_0405... OK
  Applying stock.0013_auto_20190908_0916... OK
  Applying stock.0014_auto_20190908_0918... OK
  Applying stock.0015_auto_20190913_1407... OK
  Applying stock.0016_auto_20191118_2146... OK
  Applying stock.0017_auto_20191118_2311... OK
  Applying stock.0018_auto_20200202_0103... OK
  Applying stock.0019_auto_20200202_1024... OK
  Applying stock.0020_auto_20200206_1213... OK
  Applying stock.0021_auto_20200215_2232... OK
  Applying stock.0022_auto_20200217_1109... OK
  Applying stock.0023_auto_20200318_1027... OK
  Applying stock.0024_auto_20200405_2239... OK
  Applying stock.0025_auto_20200405_2243... OK
  Applying stock.0026_stockitem_uid... OK
  Applying order.0011_auto_20190615_1928... OK
  Applying order.0012_auto_20190617_1943... OK
  Applying order.0013_auto_20191118_2323... OK
  Applying order.0014_auto_20191118_2328... OK
  Applying order.0015_auto_20200201_2346... OK
  Applying order.0016_purchaseorderattachment... OK
  Applying order.0017_auto_20200331_1000... OK
  Applying order.0018_auto_20200406_0151... OK
  Applying order.0019_purchaseorder_supplier_reference... OK
  Applying order.0020_auto_20200420_0940... OK
  Applying order.0021_auto_20200420_1010... OK
  Applying order.0022_salesorderlineitem_part... OK
  Applying order.0023_auto_20200420_2309... OK
  Applying stock.0027_stockitem_sales_order... OK
  Applying stock.0028_auto_20200421_0724... OK
  Applying stock.0029_auto_20200421_2359... OK
  Applying stock.0030_auto_20200422_0015... OK
  Applying order.0024_salesorderallocation... OK
  Applying stock.0031_auto_20200422_0209... OK
  Applying order.0025_auto_20200422_0222... OK
  Applying order.0026_auto_20200422_0224... OK
  Applying order.0027_auto_20200422_0236... OK
  Applying order.0028_auto_20200423_0956... OK
  Applying order.0029_auto_20200423_1042... OK
  Applying build.0006_auto_20190913_1407... OK
  Applying build.0007_auto_20191118_2321... OK
  Applying build.0008_auto_20200201_1247... OK
  Applying build.0009_auto_20200210_1032... OK
  Applying build.0010_auto_20200318_1027... OK
  Applying build.0011_auto_20200406_0123... OK
  Applying build.0012_build_sales_order... OK
  Applying build.0013_auto_20200425_0507... OK
  Applying build.0014_auto_20200425_1243... OK
  Applying build.0015_auto_20200425_1350... OK
  Applying stock.0032_stockitem_build_order... OK
  Applying stock.0033_auto_20200426_0539... OK
  Applying order.0030_auto_20200426_0551... OK
  Applying build.0016_auto_20200426_0551... OK
  Applying stock.0034_auto_20200426_0602... OK
  Applying stock.0035_auto_20200502_2308... OK
  Applying stock.0036_stockitemattachment... OK
  Applying stock.0037_stockitemattachment_user... OK
  Applying stock.0038_stockitemattachment_upload_date... OK
  Applying stock.0039_auto_20200513_0016... OK
  Applying stock.0040_stockitemtestresult... OK
  Applying stock.0041_stockitemtestresult_notes... OK
  Applying stock.0042_auto_20200523_0121... OK
  Applying stock.0043_auto_20200525_0420... OK
  Applying stock.0044_auto_20200528_1036... OK
  Applying stock.0045_stockitem_customer... OK
  Applying stock.0046_auto_20200605_0931... OK
  Applying stock.0047_auto_20200605_0932... OK
  Applying stock.0048_auto_20200807_2344... OK
  Applying stock.0049_auto_20200820_0454... OK
  Applying stock.0050_auto_20200821_1403... OK
  Applying stock.0051_auto_20200928_0928... OK
  Applying stock.0052_stockitem_is_building... OK
  Applying stock.0053_auto_20201110_0513... OK
  Applying stock.0054_remove_stockitem_build_order... OK
  Applying stock.0055_auto_20201117_1453... OK
  Applying stock.0056_stockitem_expiry_date... OK
  Applying stock.0057_stock_location_item_owner... OK
  Applying stock.0058_stockitem_packaging... OK
  Applying stock.0059_auto_20210404_2016... OK
  Applying stock.0060_auto_20210511_1713... OK
  Applying stock.0061_auto_20210511_0911... OK
  Applying stock.0062_auto_20210511_2151... OK
  Applying stock.0063_auto_20210511_2343... OK
  Applying stock.0064_auto_20210621_1724... OK
  Applying stock.0065_auto_20210701_0509... OK
  Applying stock.0066_stockitem_scheduled_for_deletion... OK
  Applying part.0058_remove_partsellpricebreak_cost... OK
  Applying part.0059_auto_20201112_1112... OK
  Applying part.0053_partcategoryparametertemplate... OK
  Applying part.0060_merge_20201112_1722... OK
  Applying company.0028_remove_supplierpricebreak_cost... OK
  Applying company.0029_company_currency... OK
  Applying company.0030_auto_20201112_1112... OK
  Applying company.0031_auto_20210103_2215... OK
  Applying part.0061_auto_20210104_2331... OK
  Applying part.0061_auto_20210103_2313... OK
  Applying part.0062_merge_20210105_0056... OK
  Applying part.0063_bomitem_inherited... OK
  Applying part.0064_auto_20210404_2016... OK
  Applying part.0065_auto_20210505_2144... OK
  Applying part.0066_bomitem_allow_variants... OK
  Applying part.0067_partinternalpricebreak... OK
  Applying part.0068_part_unique_part... OK
  Applying part.0069_auto_20210701_0509... OK
  Applying part.0070_alter_part_variant_of... OK
  Applying part.0071_alter_partparametertemplate_name... OK
  Applying part.0072_bomitemsubstitute... OK
  Applying part.0073_auto_20211013_1048... OK
  Applying part.0074_partcategorystar... OK
  Applying stock.0067_alter_stockitem_part... OK
  Applying stock.0068_stockitem_serial_int... OK
  Applying stock.0069_auto_20211109_2347... OK
  Applying stock.0070_auto_20211128_0151... OK
  Applying django_q.0001_initial... OK
  Applying django_q.0002_auto_20150630_1624... OK
  Applying django_q.0003_auto_20150708_1326... OK
  Applying django_q.0004_auto_20150710_1043... OK
  Applying django_q.0005_auto_20150718_1506... OK
  Applying django_q.0006_auto_20150805_1817... OK
  Applying django_q.0007_ormq... OK
  Applying stock.0071_auto_20211205_1733... OK
  Applying stock.0072_remove_stockitem_scheduled_for_deletion... OK
  Applying stock.0073_alter_stockitem_belongs_to... OK
  Applying stock.0074_alter_stockitem_batch... OK
  Applying stock.0075_auto_20220515_1440... OK
  Applying stock.0076_alter_stockitem_status... OK
  Applying stock.0077_alter_stockitem_notes... OK
  Applying company.0032_auto_20210403_1837... OK
  Applying company.0033_auto_20210410_1528... OK
  Applying company.0034_manufacturerpart... OK
  Applying company.0035_supplierpart_update_1... OK
  Applying company.0036_supplierpart_update_2... OK
  Applying company.0037_supplierpart_update_3... OK
  Applying company.0038_manufacturerpartparameter... OK
  Applying company.0039_auto_20210701_0509... OK
  Applying company.0040_alter_company_currency... OK
  Applying company.0041_alter_company_options... OK
  Applying company.0042_supplierpricebreak_updated... OK
  Applying company.0043_manufacturerpartattachment... OK
  Applying company.0044_auto_20220607_2204... OK
  Applying company.0045_alter_company_notes... OK
  Applying company.0046_alter_company_image... OK
  Applying stock.0078_alter_stockitem_supplier_part... OK
  Applying stock.0079_alter_stocklocation_name... OK
  Applying stock.0080_stocklocation_pathstring... OK
  Applying stock.0081_auto_20220801_0044... OK
  Applying stock.0082_alter_stockitem_link... OK
  Applying stock.0083_stocklocation_icon... OK
  Applying stock.0084_auto_20220903_0154... OK
  Applying stock.0085_auto_20220903_0225... OK
  Applying stock.0086_remove_stockitem_uid... OK
  Applying stock.0087_auto_20220912_2341... OK
  Applying stock.0088_remove_stockitem_infinite... OK
  Applying stock.0089_alter_stockitem_purchase_price... OK
  Applying stock.0090_stocklocation_structural... OK
  Applying stock.0091_alter_stockitem_delete_on_deplete... OK
  Applying stock.0092_alter_stockitem_updated... OK
  Applying stock.0093_auto_20230217_2140... OK
  Applying company.0047_supplierpart_pack_size... OK
  Applying stock.0094_auto_20230220_0025... OK
  Applying stock.0095_stocklocation_external... OK
  Applying stock.0096_auto_20230330_1121... OK
  Applying stock.0097_alter_stockitem_notes... OK
  Applying stock.0098_auto_20230427_2033... OK
  Applying stock.0099_alter_stockitem_status... OK
  Applying stock.0100_auto_20230515_0004... OK
  Applying build.0017_auto_20200426_0612... OK
  Applying build.0018_build_reference... OK
  Applying build.0019_auto_20201019_1302... OK
  Applying build.0020_auto_20201019_1325... OK
  Applying build.0021_auto_20201020_0908_squashed_0026_auto_20201023_1228... OK
  Applying build.0022_buildorderattachment... OK
  Applying build.0023_auto_20201110_0911... OK
  Applying build.0024_auto_20201201_1023... OK
  Applying build.0025_build_target_date... OK
  Applying build.0026_auto_20210216_1539... OK
  Applying build.0027_auto_20210404_2016... OK
  Applying build.0028_builditem_bom_item... OK
  Applying build.0029_auto_20210601_1525... OK
  Applying build.0030_alter_build_reference... OK
  Applying build.0031_build_reference_int... OK
  Applying build.0032_auto_20211014_0632... OK
  Applying build.0033_auto_20211128_0151... OK
  Applying build.0034_alter_build_reference_int... OK
  Applying build.0035_alter_build_notes... OK
  Applying build.0036_auto_20220707_1101... OK
  Applying build.0037_build_priority... OK
  Applying build.0038_alter_build_responsible... OK
  Applying build.0039_auto_20230317_0816... OK
  Applying build.0040_auto_20230404_1310... OK
  Applying build.0041_alter_build_title... OK
  Applying build.0042_alter_build_notes... OK
  Applying stock.0100_stockitem_consumed_by... OK
  Applying stock.0101_stockitemtestresult_metadata... OK
  Applying part.0075_auto_20211128_0151... OK
  Applying part.0076_auto_20220516_0819... OK
  Applying part.0077_alter_bomitem_unique_together... OK
  Applying part.0078_auto_20220606_0024... OK
  Applying part.0079_alter_part_notes... OK
  Applying part.0080_alter_part_image... OK
  Applying part.0081_alter_partcategory_name... OK
  Applying part.0082_partcategory_pathstring... OK
  Applying part.0083_auto_20220731_2357... OK
  Applying part.0084_partcategory_icon... OK
  Applying part.0085_partparametertemplate_description... OK
  Applying part.0086_auto_20220912_0007... OK
  Applying part.0087_bomitem_consumable... OK
  Applying part.0088_alter_partparametertemplate_name... OK
  Applying part.0089_auto_20221112_0128... OK
  Applying part.0090_auto_20221115_0816... OK
  Applying part.0091_partstocktake... OK
  Applying part.0092_part_last_stocktake... OK
  Applying part.0093_auto_20230115_1404... OK
  Applying part.0094_alter_part_units... OK
  Applying part.0095_alter_part_responsible... OK
  Applying part.0096_auto_20230211_0029... OK
  Applying part.0097_partstocktakereport... OK
  Applying part.0098_auto_20230214_1115... OK
  Applying part.0099_alter_bomitem_inherited... OK
  Applying part.0100_alter_bomitem_reference... OK
  Applying part.0101_bomitem_validated... OK
  Applying part.0102_auto_20230314_0112... OK
  Applying part.0103_auto_20230317_0816... OK
  Applying part.0104_alter_part_description... OK
  Applying part.0105_alter_part_notes... OK
  Applying part.0106_part_tags... OK
  Applying part.0107_alter_part_tags... OK
  Applying part.0108_auto_20230516_1334... OK
  Applying part.0109_auto_20230517_1048... OK
  Applying build.0043_buildline... OK
  Applying build.0044_auto_20230528_1410... OK
  Applying build.0045_builditem_build_line... OK
  Applying build.0046_auto_20230606_1033... OK
  Applying build.0047_auto_20230606_1058... OK
  Applying build.0048_build_project_code... OK
  Applying build.0049_alter_builditem_build_line... OK
  Applying build.0050_auto_20240508_0138... OK
  Applying users.0006_alter_ruleset_name... OK
  Applying users.0007_alter_ruleset_name... OK
  Applying users.0008_apitoken... OK
  Applying users.0009_auto_20231020_2356... OK
  Applying users.0010_alter_apitoken_key... OK
  Applying common.0020_customunit... OK
  Applying common.0021_auto_20230805_1748... OK
  Applying common.0022_projectcode_responsible... OK
  Applying part.0110_alter_part_units... OK
  Applying part.0111_auto_20230521_1350... OK
  Applying company.0048_auto_20220913_0312... OK
  Applying company.0049_company_metadata... OK
  Applying company.0050_alter_company_website... OK
  Applying company.0051_alter_supplierpricebreak_price... OK
  Applying company.0052_alter_supplierpricebreak_updated... OK
  Applying company.0053_supplierpart_updated... OK
  Applying company.0054_companyattachment... OK
  Applying company.0055_auto_20230317_0816... OK
  Applying company.0056_alter_company_notes... OK
  Applying company.0057_auto_20230427_2033... OK
  Applying company.0058_auto_20230515_0004... OK
  Applying company.0059_supplierpart_pack_units... OK
  Applying company.0060_auto_20230519_0344... OK
  Applying company.0061_remove_supplierpart_pack_size... OK
  Applying company.0062_contact_metadata... OK
  Applying company.0063_auto_20230502_1956... OK
  Applying company.0064_move_address_field_to_address_model... OK
  Applying company.0065_remove_company_address... OK
  Applying company.0066_auto_20230616_2059... OK
  Applying company.0067_alter_supplierpricebreak_price_currency... OK
  Applying company.0068_auto_20231120_1108... OK
  Applying company.0069_company_active... OK
  Applying django_q.0008_auto_20160224_1026... OK
  Applying django_q.0009_auto_20171009_0915... OK
  Applying django_q.0010_auto_20200610_0856... OK
  Applying django_q.0011_auto_20200628_1055... OK
  Applying django_q.0012_auto_20200702_1608... OK
  Applying django_q.0013_task_attempt_count... OK
  Applying django_q.0014_schedule_cluster... OK
  Applying django_q.0015_alter_schedule_schedule_type... OK
  Applying django_q.0016_schedule_intended_date_kwarg... OK
  Applying django_q.0017_task_cluster_alter... OK
  Applying error_report.0001_initial... OK
  Applying exchange.0001_initial... OK
  Applying flags.0012_replace_migrations_for_wagtail_independence... OK
  Applying flags.0013_add_required_field... OK
  Applying label.0001_initial... OK
  Applying label.0002_stockitemlabel_enabled... OK
  Applying label.0003_stocklocationlabel... OK
  Applying label.0004_auto_20210111_2302... OK
  Applying label.0005_auto_20210113_2302... OK
  Applying label.0006_auto_20210222_1535... OK
  Applying label.0007_auto_20210513_1327... OK
  Applying label.0008_auto_20210708_2106... OK
  Applying label.0009_auto_20230317_0816... OK
  Applying label.0010_buildlinelabel... OK
  Applying label.0011_auto_20230623_2158... OK
  Applying label.0012_labeloutput... OK
  Applying machine.0001_initial... OK
  Applying order.0031_auto_20200426_0612... OK
  Applying order.0032_auto_20200427_0044... OK
  Applying order.0033_auto_20200512_1033... OK
  Applying order.0034_auto_20200512_1054... OK
  Applying order.0035_auto_20200513_0016... OK
  Applying order.0036_auto_20200831_0912... OK
  Applying order.0037_auto_20201110_0911... OK
  Applying order.0038_auto_20201112_1737... OK
  Applying order.0039_auto_20201112_2203... OK
  Applying order.0040_salesorder_target_date... OK
  Applying order.0041_auto_20210114_1728... OK
  Applying order.0042_auto_20210310_1619... OK
  Applying order.0043_auto_20210330_0013... OK
  Applying order.0044_auto_20210404_2016... OK
  Applying order.0045_auto_20210504_1946... OK
  Applying order.0046_purchaseorderlineitem_destination... OK
  Applying order.0047_auto_20210701_0509... OK
  Applying order.0048_auto_20210702_2321... OK
  Applying order.0049_alter_purchaseorderlineitem_unique_together... OK
  Applying order.0050_alter_purchaseorderlineitem_destination... OK
  Applying order.0051_auto_20211014_0623... OK
  Applying order.0052_auto_20211014_0631... OK
  Applying order.0053_auto_20211128_0151... OK
  Applying order.0053_salesordershipment... OK
  Applying order.0054_salesorderallocation_shipment... OK
  Applying order.0055_auto_20211025_0645... OK
  Applying order.0056_alter_salesorderallocation_shipment... OK
  Applying order.0057_salesorderlineitem_shipped... OK
  Applying order.0058_auto_20211126_1210... OK
  Applying order.0059_salesordershipment_tracking_number... OK
  Applying order.0060_auto_20211129_1339... OK
  Applying order.0054_auto_20211201_2139... OK
  Applying order.0061_merge_0054_auto_20211201_2139_0060_auto_20211129_1339... OK
  Applying order.0062_auto_20220228_0321... OK
  Applying order.0063_alter_purchaseorderlineitem_unique_together... OK
  Applying order.0064_purchaseorderextraline_salesorderextraline... OK
  Applying order.0065_alter_purchaseorderlineitem_part... OK
  Applying order.0066_alter_purchaseorder_supplier... OK
  Applying order.0067_auto_20220516_1120... OK
  Applying order.0068_alter_salesorderallocation_unique_together... OK
  Applying order.0069_auto_20220524_0508... OK
  Applying order.0070_auto_20220620_0728... OK
  Applying order.0071_auto_20220628_0133... OK
  Applying order.0072_alter_salesorder_reference... OK
  Applying order.0073_alter_purchaseorder_reference... OK
  Applying order.0074_auto_20220709_0108... OK
  Applying order.0075_auto_20221110_0108... OK
  Applying order.0076_auto_20221111_0153... OK
  Applying order.0077_auto_20230129_0154... OK
  Applying order.0078_auto_20230304_0721... OK
  Applying order.0079_auto_20230304_0904... OK
  Applying order.0080_auto_20230317_0816... OK
  Applying order.0081_auto_20230314_0725... OK
  Applying order.0082_auto_20230314_1259... OK
  Applying order.0083_returnorderextraline... OK
  Applying order.0084_auto_20230321_1111... OK
  Applying order.0085_auto_20230322_1056... OK
  Applying order.0086_auto_20230323_1108... OK
  Applying order.0087_alter_salesorder_status... OK
  Applying order.0088_auto_20230403_1402... OK
  Applying order.0089_auto_20230404_0030... OK
  Applying order.0090_auto_20230412_1752... OK
  Applying order.0091_auto_20230419_0037... OK
  Applying order.0092_auto_20230419_0250... OK
  Applying order.0093_auto_20230426_0248... OK
  Applying order.0094_auto_20230514_2331... OK
  Applying order.0095_salesordershipment_delivery_date... OK
  Applying order.0096_alter_returnorderlineitem_outcome... OK
  Applying order.0097_auto_20230529_0107... OK
  Applying order.0098_auto_20231024_1844... OK
  Applying otp_static.0001_initial... OK
  Applying otp_static.0002_throttling... OK
  Applying otp_static.0003_add_timestamps... OK
  Applying otp_totp.0001_initial... OK
  Applying otp_totp.0002_auto_20190420_0723... OK
  Applying otp_totp.0003_add_timestamps... OK
  Applying part.0112_auto_20230525_1606... OK
  Applying part.0113_auto_20230531_1205... OK
  Applying part.0114_alter_part_minimum_stock... OK
  Applying part.0115_part_responsible_owner... OK
  Applying part.0116_auto_20231023_0332... OK
  Applying part.0117_remove_part_responsible... OK
  Applying part.0118_auto_20231024_1844... OK
  Applying part.0119_auto_20231120_0457... OK
  Applying part.0120_parttesttemplate_key... OK
  Applying part.0121_auto_20240207_0344... OK
  Applying part.0122_parttesttemplate_enabled... OK
  Applying plugin.0001_initial... OK
  Applying plugin.0002_alter_pluginconfig_options... OK
  Applying plugin.0003_pluginsetting... OK
  Applying plugin.0004_alter_pluginsetting_key... OK
  Applying plugin.0005_notificationusersetting... OK
  Applying plugin.0006_pluginconfig_metadata... OK
  Applying plugin.0007_auto_20230805_1748... OK
  Applying plugin.0008_pluginconfig_package_name... OK
  Applying report.0001_initial... OK
  Applying report.0002_delete_reporttemplate... OK
  Applying report.0003_testreport_enabled... OK
  Applying report.0004_auto_20200823_1104... OK
  Applying report.0005_auto_20210119_0815... OK
  Applying report.0006_reportsnippet... OK
  Applying report.0007_auto_20210204_1617... OK
  Applying report.0008_auto_20210204_2100... OK
  Applying report.0009_testreport_revision... OK
  Applying report.0010_auto_20210205_1201... OK
  Applying report.0011_auto_20210212_2024... OK
  Applying report.0012_buildreport... OK
  Applying report.0013_testreport_include_installed... OK
  Applying report.0014_purchaseorderreport_salesorderreport... OK
  Applying report.0015_auto_20210403_1837... OK
  Applying report.0016_auto_20210513_1303... OK
  Applying report.0017_auto_20230317_0816... OK
  Applying report.0018_returnorderreport... OK
  Applying report.0019_returnorderreport_metadata... OK
  Applying report.0020_stocklocationreport... OK
  Applying report.0021_auto_20231009_0144... OK
  Applying socialaccount.0001_initial... OK
  Applying socialaccount.0002_token_max_lengths... OK
  Applying socialaccount.0003_extra_data_default_dict... OK
  Applying socialaccount.0004_app_provider_id_settings... OK
  Applying socialaccount.0005_socialtoken_nullable_app... OK
  Applying socialaccount.0006_alter_socialaccount_extra_data... OK
  Applying stock.0102_alter_stockitem_status... OK
  Applying stock.0103_stock_location_types... OK
  Applying stock.0104_alter_stockitem_purchase_price_currency... OK
  Applying stock.0105_stockitemtestresult_template... OK
  Applying stock.0106_auto_20240207_0353... OK
  Applying stock.0107_remove_stockitemtestresult_test_and_more... OK
  Applying stock.0108_auto_20240219_0252... OK
  Applying stock.0109_add_additional_test_fields... OK
  Applying stock.0110_alter_stockitemtestresult_finished_datetime_and_more... OK
  Applying taggit.0006_rename_taggeditem_content_type_object_id_taggit_tagg_content_8fc721_idx... OK
  Applying user_sessions.0001_initial... OK
  Applying user_sessions.0002_auto_20151208_1536... OK
  Applying user_sessions.0003_auto_20161205_1516... OK
  Applying users.0011_auto_20240523_1640...Cleared all user sessions to deal with GHSA-2crp-q9pc-457j
 OK
Maintenance mode was not disabled - forcing it now
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Operations to perform:
  Synchronize unmigrated apps: allauth, allauth_2fa, corsheaders, crispy_forms, dbbackup, dj_rest_auth, django_cleanup, django_filters, django_ical, django_otp, djmoney, drf_spectacular, formtools, generic, import_export, maintenance_mode, markdownify, messages, mptt, registration, rest_framework, runserver_nostatic, staticfiles, web
  Apply all migrations: InvenTree, account, admin, auth, build, common, company, contenttypes, django_q, error_report, exchange, flags, label, machine, order, otp_static, otp_totp, part, plugin, report, socialaccount, stock, taggit, user_sessions, users
Synchronizing apps without migrations:
  Creating tables...
    Running deferred SQL...
Running migrations:
  No migrations to apply.
========================================
InvenTree database migrations completed!
Skipping frontend update!
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Rendered all files in /home/inventree/src/backend/InvenTree/templates/js/translated
Collecting static files...
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Python version 3.11.9 - /usr/local/bin/python3
File “/home/inventree/src/backend/InvenTree/locale/pt_br/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/zh/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/th/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/bg/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/es_MX/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sv/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/hu/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sk/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/zh_Hans/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/uk/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/it/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/he/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/zh_hant/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fa/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/da/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/pt/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/es/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/lv/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ja/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ko/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/id/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/en/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/vi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/nl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ru/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/pl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/tr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/no/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/cs/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/hi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/de/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/el/LC_MESSAGES/django.po” is already compiled and up to date.
InvenTree translation coverage: 19%

zly@ubuntu20server:~/inventree/contrib/container$ ss -tuln
Netid  State   Recv-Q  Send-Q                      Local Address:Port    Peer Address:Port  Process  
udp    UNCONN  0       0                           127.0.0.53%lo:53           0.0.0.0:*              
udp    UNCONN  0       0                          1.1.1.17%ens33:68           0.0.0.0:*              
udp    UNCONN  0       0        [fe80::20c:29ff:feb7:83a7]%ens33:546             [::]:*              
tcp    LISTEN  0       4096                        127.0.0.53%lo:53           0.0.0.0:*              
tcp    LISTEN  0       128                               0.0.0.0:22           0.0.0.0:*              
tcp    LISTEN  0       4096                              0.0.0.0:443          0.0.0.0:*              
tcp    LISTEN  0       4096                              0.0.0.0:80           0.0.0.0:*              
tcp    LISTEN  0       128                                  [::]:22              [::]:*              
tcp    LISTEN  0       4096                                 [::]:443             [::]:*              
tcp    LISTEN  0       4096                                 [::]:80              [::]:*    

zly@ubuntu20server:~/inventree/contrib/container$ docker compose up -d
WARN[0000] /home/zly/inventree/contrib/container/docker-compose.yml: `version` is obsolete 
[+] Running 4/0
 ✔ Container inventree-db      Running                                                          0.0s 
 ✔ Container inventree-server  Running                                                          0.0s 
 ✔ Container inventree-worker  Running                                                          0.0s 
 ✔ Container inventree-proxy   Running
SchrodingersGat commented 3 months ago

Did you run the initial docker compose exec inventree-server invoke update command?

zly20129 commented 3 months ago

Did you run the initial docker compose exec inventree-server invoke update command?

No, i try it now, Tks!!!

wolflu05 commented 3 months ago

Site URL - update this to match your host

INVENTREE_SITE_URL="http://inventree.localhost/"

INVENTREE_SITE_URL="http://localhost/"

Maybe you also need to configure your site url correctly

zly20129 commented 3 months ago

docker compose exec inventree-server invoke update

I want to know how to manual set proxy? Such as docker-compose up -e HTTP_PROXY=1.1.1.13:10809 -e HTTPS_PROXY=1.1.1.13:10809 -d your_service_name. 1.1.1.13:10809 is V2RayN proxy. I'm in China, if i not use proxy, that i will see as follow: zly@ubuntu20server:~/inventree/contrib/container$ docker compose exec inventree-server invoke update WARN[0000] /home/zly/inventree/contrib/container/docker-compose.yml:version` is obsolete Installing required python packages from 'src/backend/requirements.txt' Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (24.0) Collecting pip Downloading pip-24.1.2-py3-none-any.whl.metadata (3.6 kB) Requirement already satisfied: setuptools in /root/.local/lib/python3.11/site-packages (69.5.1) Collecting setuptools Downloading setuptools-71.1.0-py3-none-any.whl.metadata (6.6 kB) Downloading pip-24.1.2-py3-none-any.whl (1.8 MB) ━━ 0.1/1.8 MB 18.1 kB/s eta 0:01:35 ERROR: Exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher yield File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 561, in read data = self._fp_read(amt) if not fp_closed else b"" ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/http/client.py", line 473, in read s = self.fp.read(amt) ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/socket.py", line 706, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/ssl.py", line 1314, in recv_into return self.read(nbytes, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/ssl.py", line 1166, in read return self._sslobj.read(len, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper return func(self, options, args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 377, in run requirement_set = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 179, in resolve self.factory.preparer.prepare_linked_requirements_more(reqs) File "/usr/local/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 552, in prepare_linked_requirements_more self._complete_partial_requirements( File "/usr/local/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 467, in _complete_partialrequirements for link, (filepath, ) in batch_download: File "/usr/local/lib/python3.11/site-packages/pip/_internal/network/download.py", line 183, in call for chunk in chunks: File "/usr/local/lib/python3.11/site-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar for chunk in iterable: File "/usr/local/lib/python3.11/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks for chunk in response.raw.stream( File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream data = self.read(amt=amt, decode_content=decode_content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 560, in read with self._error_catcher(): File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. zly@ubuntu20server:~/inventree/contrib/container$ docker compose -e HTTP_PROXY=1.1.1.13:10809 -e HTTPS_PROXY=1.1.1.13:10809 exec inventree-server invoke update unknown shorthand flag: 'e' in -e`

zly20129 commented 3 months ago

Site URL - update this to match your host

INVENTREE_SITE_URL="http://inventree.localhost/"

INVENTREE_SITE_URL="http://localhost/"

Maybe you also need to configure your site url correctly

Hmm...I have carefully read the document on this part, but I did not find any substantial helpful explanations. In the end, I could only modify it according to the content on the CSDN blog, which is loaclhost. 这部分我仔细读过文档,但我没有找到任何有实质性帮助的说明,最终只能按照csdn博客上的内容修改,即loaclhost。

zly20129 commented 3 months ago

docker compose exec inventree-server invoke update

I want to know how to manual set proxy? Such as docker-compose up -e HTTP_PROXY=1.1.1.13:10809 -e HTTPS_PROXY=1.1.1.13:10809 -d your_service_name. 1.1.1.13:10809 is V2RayN proxy. I'm in China, if i not use proxy, that i will see as follow: zly@ubuntu20server:~/inventree/contrib/container$ docker compose exec inventree-server invoke update WARN[0000] /home/zly/inventree/contrib/container/docker-compose.yml:version` is obsolete Installing required python packages from 'src/backend/requirements.txt' Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (24.0) Collecting pip Downloading pip-24.1.2-py3-none-any.whl.metadata (3.6 kB) Requirement already satisfied: setuptools in /root/.local/lib/python3.11/site-packages (69.5.1) Collecting setuptools Downloading setuptools-71.1.0-py3-none-any.whl.metadata (6.6 kB) Downloading pip-24.1.2-py3-none-any.whl (1.8 MB) ━━ 0.1/1.8 MB 18.1 kB/s eta 0:01:35 ERROR: Exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher yield File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 561, in read data = self._fp_read(amt) if not fp_closed else b"" ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/http/client.py", line 473, in read s = self.fp.read(amt) ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/socket.py", line 706, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/ssl.py", line 1314, in recv_into return self.read(nbytes, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/ssl.py", line 1166, in read return self._sslobj.read(len, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper return func(self, options, args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 377, in run requirement_set = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 179, in resolve self.factory.preparer.prepare_linked_requirements_more(reqs) File "/usr/local/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 552, in prepare_linked_requirements_more self._complete_partial_requirements( File "/usr/local/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 467, in _complete_partialrequirements for link, (filepath, ) in batch_download: File "/usr/local/lib/python3.11/site-packages/pip/_internal/network/download.py", line 183, in call for chunk in chunks: File "/usr/local/lib/python3.11/site-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar for chunk in iterable: File "/usr/local/lib/python3.11/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks for chunk in response.raw.stream( File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream data = self.read(amt=amt, decode_content=decode_content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 560, in read with self._error_catcher(): File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. zly@ubuntu20server:~/inventree/contrib/container$ docker compose -e HTTP_PROXY=1.1.1.13:10809 -e HTTPS_PROXY=1.1.1.13:10809 exec inventree-server invoke update unknown shorthand flag: 'e' in -e`

Oh, i find it by chatgpt! Add the follow text in docker-conpose.conf services: inventree-server: environment:

zly20129 commented 3 months ago

Did you run the initial docker compose exec inventree-server invoke update command?

It success run, but website also blank. 屏幕截图 2024-07-22 184458

zly@ubuntu20server:~/inventree/contrib/container$ docker compose exec inventree-server invoke update
WARN[0000] /home/zly/inventree/contrib/container/docker-compose.yml: `version` is obsolete 
Installing required python packages from 'src/backend/requirements.txt'
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (24.0)
Collecting pip
  Downloading pip-24.1.2-py3-none-any.whl.metadata (3.6 kB)
Requirement already satisfied: setuptools in /root/.local/lib/python3.11/site-packages (69.5.1)
Collecting setuptools
  Downloading setuptools-71.1.0-py3-none-any.whl.metadata (6.6 kB)
Downloading pip-24.1.2-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 2.2 MB/s eta 0:00:00
Downloading setuptools-71.1.0-py3-none-any.whl (2.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 8.3 MB/s eta 0:00:00
Installing collected packages: setuptools, pip
  Attempting uninstall: setuptools
    Found existing installation: setuptools 69.5.1
    Uninstalling setuptools-69.5.1:
      Successfully uninstalled setuptools-69.5.1
  Attempting uninstall: pip
    Found existing installation: pip 24.0
    Uninstalling pip-24.0:
      Successfully uninstalled pip-24.0
Successfully installed pip-24.1.2 setuptools-71.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: asgiref==3.8.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 3)) (3.8.1)
Requirement already satisfied: async-timeout==4.0.3 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 9)) (4.0.3)
Requirement already satisfied: attrs==23.2.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 13)) (23.2.0)
Requirement already satisfied: babel==2.15.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 19)) (2.15.0)
Requirement already satisfied: bleach==6.1.0 in /root/.local/lib/python3.11/site-packages (from bleach[css]==6.1.0->-r src/backend/requirements.txt (line 23)) (6.1.0)
Requirement already satisfied: brotli==1.1.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 27)) (1.1.0)
Requirement already satisfied: certifi==2024.2.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 112)) (2024.2.2)
Requirement already satisfied: cffi==1.16.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 118)) (1.16.0)
Requirement already satisfied: charset-normalizer==3.3.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 174)) (3.3.2)
Requirement already satisfied: coreapi==2.3.3 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 266)) (2.3.3)
Requirement already satisfied: coreschema==0.0.4 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 269)) (0.0.4)
Requirement already satisfied: cryptography==42.0.7 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 273)) (42.0.7)
Requirement already satisfied: cssselect2==0.7.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 309)) (0.7.0)
Requirement already satisfied: defusedxml==0.7.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 313)) (0.7.1)
Requirement already satisfied: deprecated==1.2.14 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 319)) (1.2.14)
Requirement already satisfied: diff-match-patch==20230430 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 326)) (20230430)
Requirement already satisfied: dj-rest-auth==6.0.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 330)) (6.0.0)
Requirement already satisfied: django==4.2.14 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 332)) (4.2.14)
Requirement already satisfied: django-allauth==0.61.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 366)) (0.61.1)
Requirement already satisfied: django-allauth-2fa==0.11.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 369)) (0.11.1)
Requirement already satisfied: django-cleanup==8.1.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 372)) (8.1.0)
Requirement already satisfied: django-cors-headers==4.3.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 375)) (4.3.1)
Requirement already satisfied: django-crispy-forms==1.14.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 378)) (1.14.0)
Requirement already satisfied: django-dbbackup==4.1.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 381)) (4.1.0)
Requirement already satisfied: django-error-report-2==0.4.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 384)) (0.4.2)
Requirement already satisfied: django-filter==24.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 387)) (24.2)
Requirement already satisfied: django-flags==5.0.13 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 390)) (5.0.13)
Requirement already satisfied: django-formtools==2.5.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 393)) (2.5.1)
Requirement already satisfied: django-ical==1.9.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 396)) (1.9.2)
Requirement already satisfied: django-import-export==3.3.7 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 399)) (3.3.7)
Requirement already satisfied: django-js-asset==2.2.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 402)) (2.2.0)
Requirement already satisfied: django-maintenance-mode==0.21.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 406)) (0.21.1)
Requirement already satisfied: django-markdownify==0.9.3 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 409)) (0.9.3)
Requirement already satisfied: django-money==3.2.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 412)) (3.2.0)
Requirement already satisfied: django-mptt==0.16.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 415)) (0.16.0)
Requirement already satisfied: django-otp==1.5.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 418)) (1.5.0)
Requirement already satisfied: django-picklefield==3.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 422)) (3.2)
Requirement already satisfied: django-q-sentry==0.1.6 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 426)) (0.1.6)
Requirement already satisfied: django-q2==1.6.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 428)) (1.6.2)
Requirement already satisfied: django-recurrence==1.11.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 431)) (1.11.1)
Requirement already satisfied: django-redis==5.4.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 435)) (5.4.0)
Requirement already satisfied: django-sesame==3.2.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 438)) (3.2.2)
Requirement already satisfied: django-sql-utils==0.7.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 441)) (0.7.0)
Requirement already satisfied: django-sslserver==0.22 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 444)) (0.22)
Requirement already satisfied: django-stdimage==6.0.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 446)) (6.0.2)
Requirement already satisfied: django-taggit==5.0.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 449)) (5.0.1)
Requirement already satisfied: django-user-sessions==2.0.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 452)) (2.0.0)
Requirement already satisfied: django-weasyprint==2.3.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 455)) (2.3.0)
Requirement already satisfied: django-xforwardedfor-middleware==2.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 458)) (2.0)
Requirement already satisfied: djangorestframework==3.14.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 460)) (3.14.0)
Requirement already satisfied: djangorestframework-simplejwt==5.3.1 in /root/.local/lib/python3.11/site-packages (from djangorestframework-simplejwt[crypto]==5.3.1->-r src/backend/requirements.txt (line 467)) (5.3.1)
Requirement already satisfied: drf-spectacular==0.27.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 470)) (0.27.2)
Requirement already satisfied: dulwich==0.22.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 473)) (0.22.1)
Requirement already satisfied: et-xmlfile==1.1.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 521)) (1.1.0)
Requirement already satisfied: feedparser==6.0.11 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 525)) (6.0.11)
Requirement already satisfied: fonttools==4.51.0 in /root/.local/lib/python3.11/site-packages (from fonttools[woff]==4.51.0->-r src/backend/requirements.txt (line 528)) (4.51.0)
Requirement already satisfied: googleapis-common-protos==1.63.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 572)) (1.63.0)
Requirement already satisfied: grpcio==1.63.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 578)) (1.63.0)
Requirement already satisfied: gunicorn==22.0.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 626)) (22.0.0)
Requirement already satisfied: html5lib==1.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 629)) (1.1)
Requirement already satisfied: icalendar==5.0.12 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 633)) (5.0.12)
Requirement already satisfied: idna==3.7 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 637)) (3.7)
Requirement already satisfied: importlib-metadata==7.0.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 641)) (7.0.0)
Requirement already satisfied: inflection==0.5.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 648)) (0.5.1)
Requirement already satisfied: itypes==1.2.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 652)) (1.2.0)
Requirement already satisfied: jinja2==3.1.4 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 656)) (3.1.4)
Requirement already satisfied: jsonschema==4.22.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 660)) (4.22.0)
Requirement already satisfied: jsonschema-specifications==2023.12.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 664)) (2023.12.1)
Requirement already satisfied: markdown==3.6 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 668)) (3.6)
Requirement already satisfied: markuppy==1.14 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 672)) (1.14)
Requirement already satisfied: markupsafe==2.1.5 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 675)) (2.1.5)
Requirement already satisfied: oauthlib==3.2.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 737)) (3.2.2)
Requirement already satisfied: odfpy==1.4.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 741)) (1.4.1)
Requirement already satisfied: openpyxl==3.1.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 744)) (3.1.2)
Requirement already satisfied: opentelemetry-api==1.24.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 748)) (1.24.0)
Requirement already satisfied: opentelemetry-exporter-otlp==1.24.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 760)) (1.24.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.24.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 763)) (1.24.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc==1.24.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 769)) (1.24.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-http==1.24.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 773)) (1.24.0)
Requirement already satisfied: opentelemetry-instrumentation==0.45b0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 777)) (0.45b0)
Requirement already satisfied: opentelemetry-instrumentation-django==0.45b0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 785)) (0.45b0)
Requirement already satisfied: opentelemetry-instrumentation-redis==0.45b0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 788)) (0.45b0)
Requirement already satisfied: opentelemetry-instrumentation-requests==0.45b0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 791)) (0.45b0)
Requirement already satisfied: opentelemetry-instrumentation-wsgi==0.45b0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 794)) (0.45b0)
Requirement already satisfied: opentelemetry-proto==1.24.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 798)) (1.24.0)
Requirement already satisfied: opentelemetry-sdk==1.24.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 805)) (1.24.0)
Requirement already satisfied: opentelemetry-semantic-conventions==0.45b0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 811)) (0.45b0)
Requirement already satisfied: opentelemetry-util-http==0.45b0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 820)) (0.45b0)
Requirement already satisfied: packaging==24.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 827)) (24.0)
Requirement already satisfied: pdf2image==1.17.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 831)) (1.17.0)
Requirement already satisfied: pillow==10.3.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 834)) (10.3.0)
Requirement already satisfied: pint==0.21 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 910)) (0.21)
Requirement already satisfied: pip-licenses==4.4.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 913)) (4.4.0)
Requirement already satisfied: prettytable==3.10.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 916)) (3.10.0)
Requirement already satisfied: protobuf==4.25.3 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 920)) (4.25.3)
Requirement already satisfied: py-moneyed==3.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 935)) (3.0)
Requirement already satisfied: pycparser==2.22 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 939)) (2.22)
Requirement already satisfied: pydyf==0.10.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 943)) (0.10.0)
Requirement already satisfied: pyjwt==2.8.0 in /root/.local/lib/python3.11/site-packages (from pyjwt[crypto]==2.8.0->-r src/backend/requirements.txt (line 947)) (2.8.0)
Requirement already satisfied: pyphen==0.15.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 953)) (0.15.0)
Requirement already satisfied: pypng==0.20220715.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 957)) (0.20220715.0)
Requirement already satisfied: python-barcode==0.15.1 in /root/.local/lib/python3.11/site-packages (from python-barcode[images]==0.15.1->-r src/backend/requirements.txt (line 961)) (0.15.1)
Requirement already satisfied: python-dateutil==2.9.0.post0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 964)) (2.9.0.post0)
Requirement already satisfied: python-dotenv==1.0.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 970)) (1.0.1)
Requirement already satisfied: python-fsutil==0.14.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 973)) (0.14.1)
Requirement already satisfied: python3-openid==3.2.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 977)) (3.2.0)
Requirement already satisfied: pytz==2024.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 981)) (2024.1)
Requirement already satisfied: pyyaml==6.0.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 988)) (6.0.1)
Requirement already satisfied: qrcode==7.4.2 in /root/.local/lib/python3.11/site-packages (from qrcode[pil]==7.4.2->-r src/backend/requirements.txt (line 1043)) (7.4.2)
Requirement already satisfied: rapidfuzz==3.9.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1047)) (3.9.0)
Requirement already satisfied: redis==5.0.4 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1138)) (5.0.4)
Requirement already satisfied: referencing==0.35.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1142)) (0.35.1)
Requirement already satisfied: regex==2024.4.28 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1148)) (2024.4.28)
Requirement already satisfied: requests==2.31.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1228)) (2.31.0)
Requirement already satisfied: requests-oauthlib==2.0.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1236)) (2.0.0)
Requirement already satisfied: rpds-py==0.18.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1240)) (0.18.1)
Requirement already satisfied: sentry-sdk==2.1.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1343)) (2.1.1)
Collecting setuptools==69.5.1 (from -r src/backend/requirements.txt (line 1347))
  Downloading setuptools-69.5.1-py3-none-any.whl (894 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 894.6/894.6 kB 1.7 MB/s eta 0:00:00
Requirement already satisfied: sgmllib3k==1.0.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1353)) (1.0.0)
Requirement already satisfied: six==1.16.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1356)) (1.16.0)
Requirement already satisfied: sqlparse==0.5.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1363)) (0.5.0)
Requirement already satisfied: tablib==3.5.0 in /root/.local/lib/python3.11/site-packages (from tablib[html,ods,xls,xlsx,yaml]==3.5.0->-r src/backend/requirements.txt (line 1369)) (3.5.0)
Requirement already satisfied: tinycss2==1.2.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1373)) (1.2.1)
Requirement already satisfied: typing-extensions==4.11.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1380)) (4.11.0)
Requirement already satisfied: uritemplate==4.1.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1389)) (4.1.1)
Requirement already satisfied: urllib3==2.2.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1395)) (2.2.1)
Requirement already satisfied: wcwidth==0.2.13 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1402)) (0.2.13)
Requirement already satisfied: weasyprint==61.2 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1406)) (61.2)
Requirement already satisfied: webencodings==0.5.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1410)) (0.5.1)
Requirement already satisfied: whitenoise==6.6.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1418)) (6.6.0)
Requirement already satisfied: wrapt==1.16.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1421)) (1.16.0)
Requirement already satisfied: xlrd==2.0.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1496)) (2.0.1)
Requirement already satisfied: xlwt==1.3.0 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1500)) (1.3.0)
Requirement already satisfied: zipp==3.18.1 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1504)) (3.18.1)
Requirement already satisfied: zopfli==0.2.3 in /root/.local/lib/python3.11/site-packages (from -r src/backend/requirements.txt (line 1508)) (0.2.3)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 71.1.0
    Uninstalling setuptools-71.1.0:
      Successfully uninstalled setuptools-71.1.0
Successfully installed setuptools-69.5.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
Installing plugin packages from '/home/inventree/data/plugins.txt'
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
Backing up InvenTree database...
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Backing Up Database: inventree
 pg_dump --dbname=postgresql://pguser:zly20010814@inventree-db:5432/inventree --format=custom 
Backup size: 65.4 KiB
Writing file to default-d2ed34dcd020-2024-07-22-104227.psql.bin.gz
Backing up InvenTree media files...
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Backup size: 2.0 KiB
Writing file to d2ed34dcd020-2024-07-22-104231.tar.gz
Running InvenTree database migrations...
========================================
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
No changes detected
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Operations to perform:
  Synchronize unmigrated apps: allauth, allauth_2fa, corsheaders, crispy_forms, dbbackup, dj_rest_auth, django_cleanup, django_filters, django_ical, django_otp, djmoney, drf_spectacular, formtools, generic, import_export, maintenance_mode, markdownify, messages, mptt, registration, rest_framework, runserver_nostatic, staticfiles, web
  Apply all migrations: InvenTree, account, admin, auth, build, common, company, contenttypes, django_q, error_report, exchange, flags, label, machine, order, otp_static, otp_totp, part, plugin, report, socialaccount, stock, taggit, user_sessions, users
Synchronizing apps without migrations:
  Creating tables...
    Running deferred SQL...
Running migrations:
  No migrations to apply.
========================================
InvenTree database migrations completed!
Skipping frontend update!
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Rendered all files in /home/inventree/src/backend/InvenTree/templates/js/translated
Collecting static files...
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Python version 3.11.9 - /usr/local/bin/python3
File “/home/inventree/src/backend/InvenTree/locale/ru/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fa/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/vi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/pl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/he/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/da/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/pt_br/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/nl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/lv/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/en/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/no/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/zh/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/uk/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/pt/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sv/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/cs/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sk/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/es/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ja/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/th/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/es_MX/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/de/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/zh_hant/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/id/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/hu/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/hi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/zh_Hans/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/tr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/it/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ko/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/bg/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/el/LC_MESSAGES/django.po” is already compiled and up to date.
InvenTree translation coverage: 19%
zly@ubuntu20server:~/inventree/contrib/container$ nano docker-compose.yml 
zly@ubuntu20server:~/inventree/contrib/container$ docker compose up -d
WARN[0000] /home/zly/inventree/contrib/container/docker-compose.yml: `version` is obsolete 
[+] Running 4/4
 ✔ Container inventree-db      Running                                                          0.0s 
 ✔ Container inventree-server  Started                                                         13.7s 
 ✔ Container inventree-proxy   Started                                                         10.9s 
 ✔ Container inventree-worker  Started                                                         10.9s 
zly@ubuntu20server:~/inventree/contrib/container$ docker compose up -d
WARN[0000] /home/zly/inventree/contrib/container/docker-compose.yml: `version` is obsolete 
[+] Running 4/0
 ✔ Container inventree-db      Running                                                          0.0s 
 ✔ Container inventree-server  Running                                                          0.0s 
 ✔ Container inventree-worker  Running                                                          0.0s 
 ✔ Container inventree-proxy   Running                                                          0.0s 
zly@ubuntu20server:~/inventree/contrib/container$ 
SchrodingersGat commented 3 months ago

Hmm, can you try the update command with the -f option e.g.

docker compose exec inventree server invoke update -f

zly20129 commented 3 months ago

Oh my god, I actually succeeded, but it wasn't resolved through updates. I found an article that says the server needs to set a static IP and then fill in the INVENTREE_SITE-URL with the static IP. For example, if the static IP I set is 1.1.1.12, then INVENTREE_SITE-URL should be set=“ http://1.1.1.12 . I am very puzzled about this: why is there no detailed explanation in the document? 我滴天,我竟然成功了,但并不是通过更新的方式解决的。 我找到了一篇文章,里边说服务器要设置静态IP,然后把静态IP填到INVENTREE_SITE_URL里边。 比如说我设置的静态IP是1.1.1.12,那就应该设置INVENTREE_SITE_URL="http://1.1.1.12"。 对此,我非常疑惑:为什么文档里没有任何的详细说明?

zly20129 commented 3 months ago

问题已经得到解决,我将要关闭这个链接,非常感谢二位大佬的帮助!!! The problem has been resolved, and I am going to close this link. Thank you very much for your help!!!