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

No module named 'api.apps' #105

Open
Jackxwb opened this issue Dec 7, 2021 · 8 comments
Open

No module named 'api.apps' #105

Jackxwb opened this issue Dec 7, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@Jackxwb
Copy link

Jackxwb commented Dec 7, 2021

I used docker to build the image, but port 8000 was occupied and failed to start.

Creating spleeter-web_frontend_1    ... done
Creating spleeter-web_redis_1    ... done
Creating spleeter-web_celery-slow_1 ...
Creating spleeter-web_celery-fast_1 ...
Creating spleeter-web_api_1         ... error
Creating spleeter-web_celery-slow_1 ... done
Creating spleeter-web_celery-fast_1 ... done
0.0:8000 failed: port is already allocated

ERROR: for api  Cannot start service api: driver failed programming external connectivity on endpoint spleeter-web_api_1 (78dfbd67a1d4afbe00a8f9e8145d01ada08d9c41fe3622ef1584334f64a7384c): Bind for 0.0.0.0:8000 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

I enter the container, modify the port and try to start the container. The web page prompts "err_connection_reset", and the error "no module named 'API. Apps" is displayed in the container log

Applying migrations
Traceback (most recent call last):
  File "manage.py", line 21, in <module>
    main()
  File "manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/local/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.7/site-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "/usr/local/lib/python3.7/site-packages/django/apps/config.py", line 212, in create
    mod = import_module(mod_path)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'api.apps'
Traceback (most recent call last):
  File "manage.py", line 21, in <module>
    main()
  File "manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/local/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.7/site-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "/usr/local/lib/python3.7/site-packages/django/apps/config.py", line 212, in create
    mod = import_module(mod_path)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'api.apps'
Starting server
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 110, in inner_run
    autoreload.raise_last_exception()
  File "/usr/local/lib/python3.7/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
    raise _exception[1]
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
    autoreload.check_errors(django.setup)()
  File "/usr/local/lib/python3.7/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.7/site-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "/usr/local/lib/python3.7/site-packages/django/apps/config.py", line 212, in create
    mod = import_module(mod_path)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'api.apps'
@JeffreyCA
Copy link
Owner

What command did you use to build the image? Can you try setting the DEV_WEBSERVER_PORT environment variable to something other than 8000?

@Jackxwb
Copy link
Author

Jackxwb commented Dec 8, 2021

What command did you use to build the image? Can you try setting the DEV_WEBSERVER_PORT environment variable to something other than 8000?

I deleted the image and added dev to the .env file_ DEV_WEBSERVER_PORT=5001, re execute docker-compose -f docker-compose.yml -f docker-compose.dev.yml up and a large number of errors appear on the console

# docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
Creating spleeter-web_frontend_1 ... done
Creating spleeter-web_redis_1    ... done
Creating spleeter-web_api_1         ... done
Creating spleeter-web_celery-fast_1 ... done
Creating spleeter-web_celery-slow_1 ... done
Creating spleeter-web_nginx_1       ... done
Attaching to spleeter-web_frontend_1, spleeter-web_redis_1, spleeter-web_celery-slow_1, spleeter-web_celery-fast_1, spleeter-web_api_1, spleeter-web_nginx_1
frontend_1     | Starting frontend
redis_1        | 1:C 08 Dec 2021 12:51:18.277 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1        | 1:C 08 Dec 2021 12:51:18.277 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1        | 1:C 08 Dec 2021 12:51:18.277 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1        | 1:M 08 Dec 2021 12:51:18.369 * Running mode=standalone, port=6379.
redis_1        | 1:M 08 Dec 2021 12:51:18.370 # Server initialized
redis_1        | 1:M 08 Dec 2021 12:51:18.370 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled (set to 'madvise' or 'never').
redis_1        | 1:M 08 Dec 2021 12:51:18.416 * Loading RDB produced by version 6.0.16
redis_1        | 1:M 08 Dec 2021 12:51:18.416 * RDB age 16651 seconds
redis_1        | 1:M 08 Dec 2021 12:51:18.416 * RDB memory usage when created 0.77 Mb
redis_1        | 1:M 08 Dec 2021 12:51:18.416 * DB loaded from disk: 0.018 seconds
redis_1        | 1:M 08 Dec 2021 12:51:18.416 * Ready to accept connections
celery-slow_1  | Starting Celery (slow)
celery-fast_1  | Starting Celery (fast)
api_1          | Applying migrations
nginx_1        | Service nginx disabled
spleeter-web_nginx_1 exited with code 0
frontend_1     |
frontend_1     | > [email protected] dev /webapp/frontend
frontend_1     | > webpack --config webpack.dev.config.js --watch
frontend_1     |
api_1          | /usr/local/bin/api-entrypoint.sh: line 14:     7 Illegal instruction     (core dumped) python3.7 manage.py makemigrations api
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
frontend_1     |
frontend_1     | webpack is watching the files…
frontend_1     |
api_1          | /usr/local/bin/api-entrypoint.sh: line 15:    15 Illegal instruction     (core dumped) python3.7 manage.py migrate
api_1          | Starting server
spleeter-web_celery-fast_1 exited with code 132
spleeter-web_celery-slow_1 exited with code 132
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
api_1          | Watching for file changes with StatReloader
api_1          | Performing system checks...
api_1          |
frontend_1     | Hash: 375efbbe47d1f2183006
frontend_1     | Version: webpack 4.46.0
frontend_1     | Time: 46020ms
frontend_1     | Built at: 12/08/2021 12:52:31 PM
frontend_1     |                           Asset      Size   Chunks                         Chunk Names
frontend_1     |                     favicon.ico  32.2 KiB           [emitted]
frontend_1     |                     favicon.svg   117 KiB           [emitted]
frontend_1     |    main-375efbbe47d1f2183006.js   443 KiB     main  [emitted] [immutable]  main
frontend_1     | runtime-375efbbe47d1f2183006.js  6.13 KiB  runtime  [emitted] [immutable]  runtime
frontend_1     | vendors-375efbbe47d1f2183006.js  11.3 MiB  vendors  [emitted] [immutable]  vendors
frontend_1     | Entrypoint main = runtime-375efbbe47d1f2183006.js vendors-375efbbe47d1f2183006.js main-375efbbe47d1f2183006.js
frontend_1     | [0awF] ./src/models/MusicParts.ts 214 bytes {main} [built]
frontend_1     | [2YZa] ./src/index.tsx 843 bytes {main} [built]
frontend_1     | [F2Rz] ./src/models/Separator.ts 681 bytes {main} [built]
frontend_1     | [HcQC] ./src/Utils.tsx 1.96 KiB {main} [built]
frontend_1     | [Ifuh] ./src/svg/remove.svg 599 bytes {main} [built]
frontend_1     | [QkUo] ./src/models/PartId.ts 59 bytes {main} [built]
frontend_1     | [RS8A] ./src/svg/restart.svg 463 bytes {main} [built]
frontend_1     | [YuTi] (webpack)/buildin/module.js 497 bytes {vendors} [built]
frontend_1     | [b0tz] ./src/Constants.tsx 568 bytes {main} [built]
frontend_1     | [bFXI] ./src/models/YouTubeLinkFetchStatus.ts 464 bytes {main} [built]
frontend_1     | [vRnG] ./src/svg/cancel.svg 483 bytes {main} [built]
frontend_1     | [yLpj] (webpack)/buildin/global.js 472 bytes {vendors} [built]
frontend_1     |     + 2860 hidden modules
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeartsFill.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeartsFill.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeartsFill.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeartsLine.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeartsLine.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeartsLine.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeavyShowersFill.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeavyShowersFill.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeavyShowersFill.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeavyShowersLine.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeavyShowersLine.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHeavyShowersLine.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHistoryFill.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHistoryFill.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHistoryFill.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHistoryLine.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHistoryLine.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHistoryLine.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome2Fill.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome2Fill.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome2Fill.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome2Line.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome2Line.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome2Line.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome3Fill.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome3Fill.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome3Fill.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome3Line.d.ts'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome3Line.esm.js'
frontend_1     | Error from chokidar (/webapp/frontend/node_modules/@react-icons/all-files/ri): Error: ENOSPC: System limit for number of file watchers reached, watch '/webapp/frontend/node_modules/@react-icons/all-files/ri/RiHome3Line.js'
...
(A large number of errors)
...

After that, it seems that the service has been started and stopped in the console
such as

spleeter-web_celery-slow_1 exited with code 132
spleeter-web_celery-fast_1 exited with code 132
spleeter-web_api_1 exited with code 252
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:    10 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:    10 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
api_1          | Applying migrations
api_1          | /usr/local/bin/api-entrypoint.sh: line 14:     7 Illegal instruction     (core dumped) python3.7 manage.py makemigrations api
api_1          | /usr/local/bin/api-entrypoint.sh: line 15:    15 Illegal instruction     (core dumped) python3.7 manage.py migrate
api_1          | Starting server
api_1          | Watching for file changes with StatReloader
api_1          | Performing system checks...
api_1          |
api_1          | Applying migrations
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:    10 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
api_1          | /usr/local/bin/api-entrypoint.sh: line 14:     7 Illegal instruction     (core dumped) python3.7 manage.py makemigrations api
api_1          | /usr/local/bin/api-entrypoint.sh: line 15:    15 Illegal instruction     (core dumped) python3.7 manage.py migrate
api_1          | Starting server
api_1          | Watching for file changes with StatReloader
api_1          | Performing system checks...
api_1          |
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
api_1          | spleeter-web_celery-slow_1 exited with code 132
spleeter-web_celery-fast_1 exited with code 132
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:    10 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:    10 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:    10 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-fast_1  | Starting Celery (fast)
celery-fast_1  | ./celery-fast-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
celery-slow_1  | Starting Celery (slow)
celery-slow_1  | ./celery-slow-entrypoint.sh: line 11:     8 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
spleeter-web_api_1 exited with code 252

In the container panel, you can see that the nginx image failed to start
image
image

@JeffreyCA
Copy link
Owner

Can you try the suggestion here: #73 ?

If you use the .dev Docker Compose file then it will disable nginx

@Jackxwb
Copy link
Author

Jackxwb commented Dec 9, 2021

I executed echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p and then re executed docker compose. I didn't see a lot of errors, but it was still stopping and restarting
I access the 5001 port of the server and it doesn't work. It is displayed in the doocker log

Applying migrations
/usr/local/bin/api-entrypoint.sh: line 14:     8 Illegal instruction     (core dumped) python3.7 manage.py makemigrations api
/usr/local/bin/api-entrypoint.sh: line 15:    16 Illegal instruction     (core dumped) python3.7 manage.py migrate
Starting server
Watching for file changes with StatReloader
Performing system checks...

I am running in my low-power NAS, and the CPU utilization is high at startup. Does this matter?

CPU model            : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
Number of cores      : 4
CPU frequency        : 1198.077 MHz
Total amount of Mem  : 3591 MB (1910 MB Used)
Total amount of Swap : 3751 MB (3719 MB Used)
System uptime        : 147 days, 20 hour 41 min
Load average         : 1.19, 1.79, 2.62
OS                   : Debian GNU/Linux 10( openmediavault )
Arch                 : x86_64 (64 Bit)
Kernel               : 5.10.0-0.bpo.7-amd64
Virt                 : No Virt

@JeffreyCA
Copy link
Owner

Yeah it's possible there some resource limitation.

Can you try using the prod images instead: docker-compose.yml, docker-compose.prod.yml, and docker-compose.prod.selfhost.yml. And update the paths in docker-compose.prod.selfhost.yml from /path/to/media to something like ./media.

I think Webpack might be taking too much memory if using the dev config.

@jtagcat
Copy link
Contributor

jtagcat commented Jan 13, 2022

I can say that I don't have any touchable resource limitations.

spleeter-api_1                    | Waiting for asset creation
spleeter-celery-slow_1            | Starting Celery (slow)
spleeter-celery-fast_1            | Starting Celery (fast)
spleeter-frontend_1               | Starting frontend
spleeter-frontend_1               |
spleeter-frontend_1               | > [email protected] build /webapp/frontend
spleeter-frontend_1               | > webpack --config webpack.prod.config.js
spleeter-frontend_1               |
spleeter-redis_1                  | 1:C 13 Jan 2022 02:43:14.909 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
spleeter-redis_1                  | 1:C 13 Jan 2022 02:43:14.909 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=1, just started
spleeter-redis_1                  | 1:C 13 Jan 2022 02:43:14.909 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
spleeter-redis_1                  | 1:M 13 Jan 2022 02:43:14.911 * Running mode=standalone, port=6379.
spleeter-redis_1                  | 1:M 13 Jan 2022 02:43:14.911 # Server initialized
spleeter-redis_1                  | 1:M 13 Jan 2022 02:43:14.913 * Loading RDB produced by version 6.0.16
spleeter-redis_1                  | 1:M 13 Jan 2022 02:43:14.913 * RDB age 36 seconds
spleeter-redis_1                  | 1:M 13 Jan 2022 02:43:14.913 * RDB memory usage when created 0.77 Mb
spleeter-redis_1                  | 1:M 13 Jan 2022 02:43:14.913 * DB loaded from disk: 0.002 seconds
spleeter-redis_1                  | 1:M 13 Jan 2022 02:43:14.913 * Ready to accept connections
spleeter-celery-fast_1            | ./celery-fast-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q fast_queue --concurrency $CELERY_FAST_QUEUE_CONCURRENCY --statedb=./celery/celery-fast.state
spleeter-celery-slow_1            | ./celery-slow-entrypoint.sh: line 11:     9 Illegal instruction     (core dumped) celery -A api worker -l INFO -Q slow_queue --concurrency $CELERY_SLOW_QUEUE_CONCURRENCY --statedb=./celery/celery-slow.state
cfg_spleeter-celery-fast_1 exited with code 132
cfg_spleeter-celery-slow_1 exited with code 132

and a while later:

spleeter-frontend_1               | Hash: 0234d98b2e6b059e2ee8
spleeter-frontend_1               | Version: webpack 4.46.0
spleeter-frontend_1               | Time: 42208ms
spleeter-frontend_1               | Built at: 01/13/2022 2:43:59 AM
spleeter-frontend_1               |                  Asset      Size  Chunks                    Chunk Names
spleeter-frontend_1               |            favicon.ico  32.2 KiB          [emitted]
spleeter-frontend_1               |            favicon.svg   117 KiB          [emitted]
spleeter-frontend_1               |                main.js   188 KiB       0  [emitted]         main
spleeter-frontend_1               |             runtime.js  1.46 KiB       1  [emitted]         runtime
spleeter-frontend_1               |             vendors.js  1.33 MiB       2  [emitted]  [big]  vendors
spleeter-frontend_1               | vendors.js.LICENSE.txt  4.27 KiB          [emitted]
spleeter-frontend_1               | Entrypoint main [big] = runtime.js vendors.js main.js
spleeter-frontend_1               | [+YzT] ./node_modules/react-bootstrap/esm/Nav.js + 3 modules 5.11 KiB {2} [built]
spleeter-frontend_1               |     |    4 modules
spleeter-frontend_1               | [2YZa] ./src/index.tsx + 53 modules 271 KiB {0} [built]
spleeter-frontend_1               |     | ./src/index.tsx 843 bytes [built]
spleeter-frontend_1               |     | ./src/models/Separator.ts 987 bytes [built]
spleeter-frontend_1               |     | ./src/Constants.tsx 568 bytes [built]
spleeter-frontend_1               |     | ./src/Utils.tsx 1.96 KiB [built]
spleeter-frontend_1               |     | ./src/models/YouTubeLinkFetchStatus.ts 464 bytes [built]
spleeter-frontend_1               |     | ./src/models/PartId.ts 59 bytes [built]
spleeter-frontend_1               |     | ./src/models/MusicParts.ts 214 bytes [built]
spleeter-frontend_1               |     | ./src/svg/cancel.svg 483 bytes [built]
spleeter-frontend_1               |     | ./src/svg/remove.svg 599 bytes [built]
spleeter-frontend_1               |     | ./src/svg/restart.svg 463 bytes [built]
spleeter-frontend_1               |     |     + 44 hidden modules
spleeter-frontend_1               | [6ctO] ./node_modules/react-bootstrap/esm/Navbar.js + 4 modules 11.2 KiB {2} [built]
spleeter-frontend_1               |     |    5 modules
spleeter-frontend_1               | [7Tkq] ./node_modules/@jeffreyca/react-jinke-music-player/es/index.js + 36 modules 245 KiB {2} [built]
spleeter-frontend_1               |     |    37 modules
spleeter-frontend_1               | [91je] ./node_modules/react-bootstrap/node_modules/@restart/hooks/esm/useWillUnmount.js + 1 modules 700 bytes {2} [built]
spleeter-frontend_1               |     |    2 modules
spleeter-frontend_1               | [DjlD] ./node_modules/awesome-debounce-promise/dist/index.es.js + 2 modules 5.74 KiB {2} [built]
spleeter-frontend_1               |     |    3 modules
spleeter-frontend_1               | [JUMO] ./node_modules/react-bootstrap/esm/ProgressBar.js + 1 modules 5.17 KiB {2} [built]
spleeter-frontend_1               |     |    2 modules
spleeter-frontend_1               | [LhCv] ./node_modules/history/esm/history.js + 2 modules 30.6 KiB {2} [built]
spleeter-frontend_1               |     |    3 modules
spleeter-frontend_1               | [QojX] ./node_modules/react-bootstrap/esm/Form.js + 13 modules 23.3 KiB {2} [built]
spleeter-frontend_1               |     |    14 modules
spleeter-frontend_1               | [XlTo] ./node_modules/tone/build/esm/index.js + 917 modules 1.19 MiB {2} [built]
spleeter-frontend_1               |     |    918 modules
spleeter-frontend_1               | [dDCJ] ./node_modules/react-bootstrap/esm/OverlayTrigger.js + 61 modules 103 KiB {2} [built]
spleeter-frontend_1               |     |    62 modules
spleeter-frontend_1               | [dI71] ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules 481 bytes {2} [built]
spleeter-frontend_1               |     |    2 modules
spleeter-frontend_1               | [sjrs] ./node_modules/react-bootstrap/esm/ListGroup.js + 1 modules 3.72 KiB {2} [built]
spleeter-frontend_1               |     |    2 modules
spleeter-frontend_1               | [yLpj] (webpack)/buildin/global.js 472 bytes {2} [built]
spleeter-frontend_1               | [zM5D] ./node_modules/react-bootstrap/esm/Modal.js + 18 modules 39.5 KiB {2} [built]
spleeter-frontend_1               |     |    19 modules
spleeter-frontend_1               |     + 1750 hidden modules
cfg_spleeter-frontend_1 exited with code 0

Might be indeed due to #104

@JeffreyCA
Copy link
Owner

JeffreyCA commented Jan 13, 2022

I wonder if it's Tensorflow related. Someone mentioned to me previously about getting Illegal Instructions errors when running on macOS M1 chip. It could be the same issue on other types of hardware too.

Can you connect to one of the celery or api containers, run python, and then import tensorflow? Does it spit out any errors/warnings?

The frontend container exiting is expected, I updated the instructions so that it builds the frontend code once instead of continuously watching the files.

@jtagcat
Copy link
Contributor

jtagcat commented Jan 13, 2022

It is. I tested it on a Ryzen system, it worked. The machine I want to run it on is on Xeon X5670, what's declared as too old.

I suspect the max tensorflow 1.5 / no AVX is the reason. I can't install currently available 1.5 packages on the platform, I'll try building it the second time.

edit: yup, 1.14.0 noavx build seems to work, https://github.com/furas/tensorflow-no-avx worked for me; need time to incorporate it for self though

edit: The hardware I'm running on got updated, with AVX and other beans. Unsubscribing from here, mention me if needed.

@JeffreyCA JeffreyCA added the bug Something isn't working label Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants