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

not be able to deploy it on coolify #4267

Open
4 tasks done
muskdevops opened this issue May 10, 2024 · 6 comments
Open
4 tasks done

not be able to deploy it on coolify #4267

muskdevops opened this issue May 10, 2024 · 6 comments
Labels
🐞 bug Something isn't working

Comments

@muskdevops
Copy link

muskdevops commented May 10, 2024

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing?

2024-05-10T09:00:43.313361428Z None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

2024-05-10T09:00:47.098335721Z Traceback (most recent call last):

2024-05-10T09:00:47.098348680Z File "/usr/local/bin/gunicorn", line 8, in

2024-05-10T09:00:47.098351327Z sys.exit(run())

2024-05-10T09:00:47.098353069Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 67, in run

2024-05-10T09:00:47.098354740Z WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()

2024-05-10T09:00:47.098356294Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 236, in run

2024-05-10T09:00:47.098357792Z super().run()

2024-05-10T09:00:47.098359182Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 72, in run

2024-05-10T09:00:47.098360636Z Arbiter(self).run()

2024-05-10T09:00:47.098362031Z File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 58, in init

2024-05-10T09:00:47.098363528Z self.setup(app)

2024-05-10T09:00:47.098365026Z File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 118, in setup

2024-05-10T09:00:47.098366541Z self.app.wsgi()

2024-05-10T09:00:47.098367975Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi

2024-05-10T09:00:47.098369479Z self.callable = self.load()

2024-05-10T09:00:47.098370867Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load

2024-05-10T09:00:47.098372338Z return self.load_wsgiapp()

2024-05-10T09:00:47.098373722Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp

2024-05-10T09:00:47.098375232Z return util.import_app(self.app_uri)

2024-05-10T09:00:47.098376737Z File "/usr/local/lib/python3.10/site-packages/gunicorn/util.py", line 371, in import_app

2024-05-10T09:00:47.098378253Z mod = importlib.import_module(module)

2024-05-10T09:00:47.098379666Z File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module

2024-05-10T09:00:47.098381176Z return _bootstrap._gcd_import(name[level:], package, level)

2024-05-10T09:00:47.098382584Z File "", line 1050, in _gcd_import

2024-05-10T09:00:47.098384364Z File "", line 1027, in _find_and_load

2024-05-10T09:00:47.098385864Z File "", line 1006, in _find_and_load_unlocked

2024-05-10T09:00:47.098387367Z File "", line 688, in _load_unlocked

2024-05-10T09:00:47.098388928Z File "", line 883, in exec_module

2024-05-10T09:00:47.098390462Z File "", line 241, in _call_with_frames_removed

2024-05-10T09:00:47.098397864Z File "/app/api/app.py", line 210, in

2024-05-10T09:00:47.098399796Z app = create_app()

2024-05-10T09:00:47.098401191Z File "/app/api/app.py", line 80, in create_app

2024-05-10T09:00:47.098402603Z app.config.from_object(Config())

2024-05-10T09:00:47.098403996Z File "/app/api/config.py", line 197, in init

2024-05-10T09:00:47.098406008Z self.BROKER_USE_SSL = self.CELERY_BROKER_URL.startswith('rediss://')

2024-05-10T09:00:47.098407561Z AttributeError: 'NoneType' object has no attribute 'startswith'

2024-05-10T09:00:49.453732971Z None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

2024-05-10T09:00:52.763687871Z Traceback (most recent call last):

2024-05-10T09:00:52.763730592Z File "/usr/local/bin/gunicorn", line 8, in

2024-05-10T09:00:52.763733009Z sys.exit(run())

2024-05-10T09:00:52.763734581Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 67, in run

2024-05-10T09:00:52.763736287Z WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()

2024-05-10T09:00:52.763737891Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 236, in run

2024-05-10T09:00:52.763739539Z super().run()

2024-05-10T09:00:52.763756152Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 72, in run

2024-05-10T09:00:52.763757628Z Arbiter(self).run()

2024-05-10T09:00:52.763759010Z File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 58, in init

2024-05-10T09:00:52.763760502Z self.setup(app)

2024-05-10T09:00:52.763761857Z File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 118, in setup

2024-05-10T09:00:52.763763320Z self.app.wsgi()

2024-05-10T09:00:52.763764759Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi

2024-05-10T09:00:52.763766225Z self.callable = self.load()

2024-05-10T09:00:52.763767576Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load

2024-05-10T09:00:52.763769044Z return self.load_wsgiapp()

2024-05-10T09:00:52.763770398Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp

2024-05-10T09:00:52.763771867Z return util.import_app(self.app_uri)

2024-05-10T09:00:52.763773234Z File "/usr/local/lib/python3.10/site-packages/gunicorn/util.py", line 371, in import_app

2024-05-10T09:00:52.763774711Z mod = importlib.import_module(module)

2024-05-10T09:00:52.763776146Z File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module

2024-05-10T09:00:52.763777617Z return _bootstrap._gcd_import(name[level:], package, level)

2024-05-10T09:00:52.763786251Z File "", line 1050, in _gcd_import

2024-05-10T09:00:52.763788071Z File "", line 1027, in _find_and_load

2024-05-10T09:00:52.763789490Z File "", line 1006, in _find_and_load_unlocked

2024-05-10T09:00:52.763790929Z File "", line 688, in _load_unlocked

2024-05-10T09:00:52.763792340Z File "", line 883, in exec_module

2024-05-10T09:00:52.763793832Z File "", line 241, in _call_with_frames_removed

2024-05-10T09:00:52.763795370Z File "/app/api/app.py", line 210, in

2024-05-10T09:00:52.763796860Z app = create_app()

2024-05-10T09:00:52.763798240Z File "/app/api/app.py", line 80, in create_app

2024-05-10T09:00:52.763799670Z app.config.from_object(Config())

2024-05-10T09:00:52.763800992Z File "/app/api/config.py", line 197, in init

2024-05-10T09:00:52.763802964Z self.BROKER_USE_SSL = self.CELERY_BROKER_URL.startswith('rediss://')

2024-05-10T09:00:52.763804402Z AttributeError: 'NoneType' object has no attribute 'startswith'

2024-05-10T09:00:55.256429308Z None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

2024-05-10T09:00:58.443578769Z Traceback (most recent call last):

2024-05-10T09:00:58.443619530Z File "/usr/local/bin/gunicorn", line 8, in

2024-05-10T09:00:58.443622387Z sys.exit(run())

2024-05-10T09:00:58.443624073Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 67, in run

2024-05-10T09:00:58.443625799Z WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()

2024-05-10T09:00:58.443627553Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 236, in run

2024-05-10T09:00:58.443629103Z super().run()

2024-05-10T09:00:58.443630603Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 72, in run

2024-05-10T09:00:58.443632101Z Arbiter(self).run()

2024-05-10T09:00:58.443633541Z File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 58, in init

2024-05-10T09:00:58.443635033Z self.setup(app)

2024-05-10T09:00:58.443636516Z File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 118, in setup

2024-05-10T09:00:58.443638046Z self.app.wsgi()

2024-05-10T09:00:58.443639569Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi

2024-05-10T09:00:58.443641088Z self.callable = self.load()

2024-05-10T09:00:58.443642486Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load

2024-05-10T09:00:58.443652591Z return self.load_wsgiapp()

2024-05-10T09:00:58.443654357Z File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp

2. Describe the feature you'd like to see

deployment on coolify

3. How will this feature improve your workflow or experience?

include node command only to run this applciation, it would be optional if we can run though docker compose or node

4. Additional context or comments

Kindly can we use yarn install , yarn build, yarn start to run this applciation.
It would help us alot

5. Can you help us with this feature?

  • I am interested in contributing to this feature.
Copy link

dosubot bot commented May 10, 2024

To address the AttributeError related to CELERY_BROKER_URL and ensure that PyTorch, TensorFlow >= 2.0, or Flax are correctly detected for deployment on Coolify, follow these steps:

  1. Fix AttributeError for CELERY_BROKER_URL: Ensure CELERY_BROKER_URL is defined in your environment variables or in the DEFAULTS dictionary in your configuration file with a fallback value, such as 'CELERY_BROKER_URL': 'redis://localhost:6379/0'.

  2. Ensure Detection of PyTorch, TensorFlow, or Flax:

    • List PyTorch, TensorFlow >= 2.0, or Flax in your requirements.txt with the appropriate versions.
    • Make sure your deployment environment in Coolify installs these dependencies, possibly through a Dockerfile or a virtual environment setup.
    • If necessary, add runtime checks for these libraries in your application to verify their presence and versions.
  3. Configure Coolify for Python Dependencies: Check your Coolify deployment settings to ensure they're set up to handle Python applications with these dependencies, including the correct build commands and environment variables.

By following these steps, you should be able to resolve the AttributeError and ensure your application's dependencies are correctly detected and used during deployment on Coolify.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label May 10, 2024
@muskdevops
Copy link
Author

CELERY_BROKER_URL: redis://:redis@...*:9026/0

@muskdevops
Copy link
Author

same isuue

Copy link

dosubot bot commented May 10, 2024

To resolve the AttributeError related to CELERY_BROKER_URL and ensure the detection of PyTorch, TensorFlow >= 2.0, or Flax for deployment on Coolify, follow these steps:

  1. Ensure CELERY_BROKER_URL is Correctly Set: The error suggests that CELERY_BROKER_URL might not be correctly recognized by your application. Double-check that you've set this environment variable in Coolify's application settings. It should look something like this:

    export CELERY_BROKER_URL='redis://:password@hostname:port/db_number'

    Replace the placeholder values with your actual Redis broker details. This environment variable needs to be accessible to your application at runtime.

  2. Include Necessary Libraries in Dependencies: Make sure PyTorch, TensorFlow >= 2.0, or Flax are listed in your requirements.txt or equivalent dependency file. Here's an example entry for your requirements.txt:

    torch==1.8.1
    tensorflow>=2.0
    flax==0.3.4
    

    Adjust the versions as needed for your project. Ensure your deployment process installs these dependencies, typically with a command like pip install -r requirements.txt.

  3. Check Deployment Environment Resources: PyTorch, TensorFlow, and Flax can be resource-intensive. Verify that your deployment environment in Coolify has the necessary CPU, GPU, and memory resources to support these libraries.

By correctly setting the CELERY_BROKER_URL and ensuring your dependencies are properly declared and installed, you should overcome the issues with library detection and the AttributeError.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@lvjiajjjlzy
Copy link

Using Docker can save a lot of trouble

@syedmusaali359
Copy link

Using Docker can save a lot of trouble

I am using docker compose to run this application, still getting these issue.

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