Learn Django Celery - Installing RabbitMQ on Windows and Test

Поділитися
Вставка
  • Опубліковано 27 січ 2025

КОМЕНТАРІ • 77

  • @jkozlowski
    @jkozlowski 4 роки тому +6

    OMG thank you. I was looking on every forum and no one gave me a solution, until I watched your video.

  • @ibraheemkhaleel9607
    @ibraheemkhaleel9607 4 роки тому

    Thank you sooo much. "--pool=solo" is a life savior. Why people have not discussed it much. You are the best.

  • @Skyline-c7r
    @Skyline-c7r 9 місяців тому

    Oh my gosh!!!! Thank you, thank youuuu sir!!!! I've been sitting for 16 hours for this problem.

  • @abdullahatif7854
    @abdullahatif7854 Рік тому

    I had set everything up on my windows machine after quite a bit of hassle. And then, when I saw I saw the title of this video, I thought let's just skip it. But then I didn't and thankfully I learnt a couple of new things like I wasn't doing like --pool=solo. I didn't know that. Hence, Iwas seeing received msg on the celery terminal but not the result from the add function. Thanks man.

  • @ijazahmad-j1k
    @ijazahmad-j1k 10 місяців тому +1

    thank you so much dear sir.
    i am trying celery since last 3 days and have checked many tutorials and blogs and no one mention --pool=solo
    you mentioned this.
    and it done my work
    thanx agai sir.

    • @veryacademy
      @veryacademy  10 місяців тому

      You are most welcome. Do try docker though.

  • @Brocollipy
    @Brocollipy 3 роки тому +5

    Great simple video, Many thanks.
    I had the following problems with solutions.
    *RabbitMQ server wouldn't start - Answer: It was already running in the background so I had to load "RabbitMQ Server - stop" from the windows start menu.
    *On running celery command I got "No Module named 'grp'" - Answer: It needs an earlier version to work. So I needed to :
    pip uninstall celery
    pip install celer==5.0.5

  • @SeaTaj
    @SeaTaj 3 роки тому +1

    You are a god amongst men. Thank you for that windows trick!

  • @eduardorpg64
    @eduardorpg64 Рік тому

    THIS HELPED ME A LOT! I'm using Windows, and I initially used your Ubuntu tutorial to use Celery, and I was wondering why my Windows machine never printed the 'print()' nor 'return' statements from my tasks. Turns out that I had to use the '--pool=solo' command. THANKS!

  • @bini-4-christ
    @bini-4-christ 11 місяців тому +1

    Thank you so much. This was very helpful.

  • @pablogenius5562
    @pablogenius5562 Рік тому +1

    I don't know speak english verry well but thank you verry much i done 3 weeks to search solution (grâce à toi j'ai pu résoudre le problème merci)

  • @dishantrathi9145
    @dishantrathi9145 3 роки тому

    It works with latest stuff (python, django, RabbitMQ) ("--pool=solo" is a life savior).

  • @Twoman-bodyweight-journey
    @Twoman-bodyweight-journey 3 роки тому +1

    great i had this problem running celery on windows, but adding --pool=solo was the solution.tnx

  • @auroshisray9140
    @auroshisray9140 2 роки тому +1

    Thanks for keeping it simple and effective

  • @zakariahamedoun4448
    @zakariahamedoun4448 4 роки тому

    This Work for me !!
    * Celery : v4.3.0
    * pip install gevent
    * celery -A worker -l info -P gevent
    * my tasks.py file is in the same directory as manage.py

  • @PremlalPremkumar
    @PremlalPremkumar 4 роки тому +1

    Thank you. This worked!

  • @MrRahul15937
    @MrRahul15937 Рік тому

    Do i need to mention broker url as well?

  • @rishabhsharma667
    @rishabhsharma667 3 роки тому

    Sir you are just awesome :-)

  • @rithikraj9664
    @rithikraj9664 4 роки тому +2

    I am getting "Error: Invalid value for '-A' / '--app': module 'proj.celery' has no attribute 'celery'" after running "celery -A proj worker -l info --pool=solo".

    • @veryacademy
      @veryacademy  4 роки тому

      What celery version are you using? Some people have have had problems with celery 5 and the A command.

    • @rithikraj9664
      @rithikraj9664 4 роки тому

      @@veryacademy Yes I am using celery 5. Which version should I use ? Thanks.

    • @kritagyakumarsingh3684
      @kritagyakumarsingh3684 4 роки тому

      same problem

  • @kelvinmagar7120
    @kelvinmagar7120 4 роки тому

    Thanks bro! You saved my day.

    • @veryacademy
      @veryacademy  4 роки тому

      Glad I could help - this can be a nightmare to get started in some Window environments! Hopefully all is good for you.

    • @kelvinmagar7120
      @kelvinmagar7120 4 роки тому +1

      @@veryacademy yeah it worked like a charm.
      Turns out the last piece of command '--pool=solo' was what's missing in my case..
      Thanks again mate..keep them great vids coming.

    • @veryacademy
      @veryacademy  4 роки тому

      @@kelvinmagar7120 This might be worth a read, as using this might have some implications when remote-controlling (not sure what you are planning) www.distributedpython.com/2018/10/26/celery-execution-pool/

  • @MatheusHenrique-rt9fc
    @MatheusHenrique-rt9fc Рік тому

    Please, did someone deployed django and celery to a windows server instance? How to properly run it without docker in a production enviroment?

  • @goodlearner2379
    @goodlearner2379 4 роки тому +1

    This is perfect! Well done 👍 thank you so much 😊

  • @santiagoortizceballos8256
    @santiagoortizceballos8256 3 роки тому

    You save my life bro! I have been dealing with tasks that are accepted but never been executed due to the way I started the worker (without pool=true) 🤦‍♂Is there any doc where celery explain that? I read a lot but never found something like that. Anyway, Thank you so much! Greetings from colombia 👋

  • @pranjulsingh658
    @pranjulsingh658 3 роки тому +1

    It gives me an error every time:
    ModuleNotFoundError: No module named 'grp'

    • @yousifshalby3421
      @yousifshalby3421 3 роки тому

      if u find a solution please tell because I have this problem too

    • @Brocollipy
      @Brocollipy 3 роки тому +1

      @@yousifshalby3421 @pranjul singh Hi guys, I found the answer to this on Stack Overflow. It's to do with the version of celery. You need to go to a previous version, with the following:
      pip uninstall celery
      pip install celery==5.0.5

    • @mohamedkamelbadr436
      @mohamedkamelbadr436 3 роки тому

      me too have the same problem

  • @majetysaiabhinesh7239
    @majetysaiabhinesh7239 4 роки тому +2

    Initially, I did not get how to execute it but later these 2 steps I got it in PowerShell as admin
    1)C:\Program Files\RabbitMQ Server
    abbitmq_server-3.8.9\sbin>.
    abbitmq-service.bat stop
    2)C:\Program Files\RabbitMQ Server
    abbitmq_server-3.8.9\sbin>.
    abbitmq-server.bat

  • @abhiramits5653
    @abhiramits5653 3 роки тому

    Thank you!

  • @anselsolomon6270
    @anselsolomon6270 4 роки тому

    Using windows 8 with the steps u have shown here, its showing ....Please either set ERLANG_HOME to point to your Erlang installation or place the RabbitMQ server distribution in the Erlang lib folder

    • @veryacademy
      @veryacademy  4 роки тому

      Thank you Ansel, really sorry I don't have a copy of Windows 8.1 to test this problem. However it sounds like you need to go to Start > Settings > Control Panel > System > Advanced > Environment Variables. Create the system environment variable ERLANG_HOME and set it to the full path of the directory which contains bin\erl.exe. 👍

    • @anselsolomon6270
      @anselsolomon6270 4 роки тому

      I will try. I really appreciate your quick response...this issue has hang me up for a while now...i appreciate u.

    • @veryacademy
      @veryacademy  4 роки тому

      Any luck?

    • @anselsolomon6270
      @anselsolomon6270 4 роки тому

      Its still not working

    • @anselsolomon6270
      @anselsolomon6270 4 роки тому

      I don't know whether this issue is specifically to windows 8.1??

  • @ychevarrias
    @ychevarrias 2 роки тому

    mmm how deploy on windows server?

  • @supersecretname3686
    @supersecretname3686 4 роки тому +5

    So the error I got was "BOOT FAILURE" "[error] ERROR: distribution port 25672 in use by another node: rabbit@DESKTOP" when I tried to start rabbitmq-server.bat
    To resolve it I opened powershell as admin > cd ../../ > cd '.\Program Files\RabbitMQ Server
    abbitmq_server-3.8.9\sbin\' > .
    abbitmq-service.bat stop > .
    abbitmq-server.bat - and it ran fine - hope this can help someone else.
    Love the videos!

    • @veryacademy
      @veryacademy  4 роки тому +1

      Thank you for that - this can be such an awkward setup - in addition for anyone struggling, I have made a tutorial in the docker series where you can easily get Redis working in Docker with Django 👍

    • @ervinanoh3791
      @ervinanoh3791 4 роки тому +1

      Thank you very much, it worked for me

    • @majetysaiabhinesh7239
      @majetysaiabhinesh7239 4 роки тому

      Initially, I did not get how to execute it but later these 2 steps I got it in PowerShell as admin
      1)C:\Program Files\RabbitMQ Server
      abbitmq_server-3.8.9\sbin>.
      abbitmq-service.bat stop
      2)C:\Program Files\RabbitMQ Server
      abbitmq_server-3.8.9\sbin>.
      abbitmq-server.bat

    • @Noritoshi-r8m
      @Noritoshi-r8m 2 роки тому

  • @rimshamariam474
    @rimshamariam474 3 роки тому +1

    Hey can you tell me how I could run this in a production environment on windows?

    • @veryacademy
      @veryacademy  3 роки тому

      Hi Rimsha, I can honestly say I have never run in Windows in production.

    • @rimshamariam474
      @rimshamariam474 3 роки тому

      @@veryacademy thanks for your reply!

  • @marcatef1937
    @marcatef1937 4 роки тому

    I had a problem with Rabbitmq Server, when i ran rabbitmq server file as an administrator the cmd opened and loaded for a while and then it was closed for no reason, I even don't know the error to search for in google.

    • @leonwinkel6084
      @leonwinkel6084 4 роки тому +1

      had a similar problem (cmd window was open maby for one milisecond), then installed erlang as an admin and it worked

    • @marcatef1937
      @marcatef1937 4 роки тому

      @@leonwinkel6084 thanks so much I will try it

    • @rutujpande4816
      @rutujpande4816 4 роки тому

      @@leonwinkel6084 i am getting an error while installing erlang as admin...did you find any such issues as well?

  • @hassanelabdallah5013
    @hassanelabdallah5013 3 роки тому

    Hello, can you please explain more about docker?

  • @thetravellingdream3480
    @thetravellingdream3480 4 роки тому

    Hi bro, I tried to follow all the steps you have done, I started my windows as an administrator then I installed erlang and rabbitmq from the page you mentioned, however I got a failure boot error....do you have any idea why I got that error? thanks in advance

    • @veryacademy
      @veryacademy  4 роки тому

      Hi Mon, it is tricky to help you from a distance with this one, but I would be first interested in seeing the error log or if there is an error code? I presume you have done the normal things of turn it off and on again 😊 - Does Celery load up okay? What version of Windows are you using? Did you install it in the default folder? How are you trying to run the package - you said as administrator, do you start Rabbit as Admin? Have you tried reinstalling it? If there is any other text/error messages that would be interesting to know about if you can paste it here

    • @thetravellingdream3480
      @thetravellingdream3480 4 роки тому

      @@veryacademy I reinstalled Erlang and Rabbitmq, now I am getting a message saying Erlang_Home not set correctly even though when I installed Erlang and rabbitmq I was logged on as an administrator. I am using windows 10 and I tried to run it by right clicking on the server file and choosing run as administrator as you have shown in the video

    • @thetravellingdream3480
      @thetravellingdream3480 4 роки тому

      Ok so I installed an older version of Erlang 23.0.2 which helped a bit. Now when I start the RabbitMQ server with the start option it actually starts without any error, but if I go to open the server file as an administrator it still crashes. Can I just use the start option and not worry about opening it manually ?

    • @rutujpande4816
      @rutujpande4816 4 роки тому

      @@veryacademy Hey..Even i am getting same error as @Mon W . Iam on the version 3.8.11...When i start the RabbitMQ server with thhe start option from the start menu..it actualy starts, but if i try to open the file as admin , it throws up boot error.

  • @bettybunbun9664
    @bettybunbun9664 Рік тому

    You keep saying "virtual machine" in this video. Don't you mean "virtual environment?"

  • @PietervandenBosch-z9q
    @PietervandenBosch-z9q Рік тому

    On windows i am getting: raise VerificationError('%s: %s' % (e.__class__.__name__, e))
    cffi.VerificationError: CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 using python 3.10 and celery 5.2.7 do you have any idea?