Configuring CherryPy for QATrack+ on Windows Server

118 views
Skip to first unread message

tessy udoh

unread,
Sep 27, 2023, 2:35:24 PM9/27/23
to QATrack+
Hi Randle,

I'm trying to install QATrack+ on a Windows server and I'm running into issues starting CherryPy.  I get this error in the log:  "Error starting service: The service did not respond to the start or control request in a timely fashion." 
When I run this command: python .\manage.py runserver 127.0.0.1:80, I also get the following error:
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "C:\Program Files\Python39\lib\threading.py", line 973, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python39\lib\threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "C:\QATrack\deploy\venvs\qatrack31\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "C:\QATrack\deploy\venvs\qatrack31\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "C:\QATrack\deploy\venvs\qatrack31\lib\site-packages\django\utils\autoreload.py", line 77, in raise_last_exception
    raise _exception[1]
  File "C:\QATrack\deploy\venvs\qatrack31\lib\site-packages\django\core\management\__init__.py", line 337, in execute
    autoreload.check_errors(django.setup)()
  File "C:\QATrack\deploy\venvs\qatrack31\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "C:\QATrack\deploy\venvs\qatrack31\lib\site-packages\django\__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\QATrack\deploy\venvs\qatrack31\lib\site-packages\django\apps\registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "C:\QATrack\deploy\venvs\qatrack31\lib\site-packages\django\apps\config.py", line 90, in create
    module = import_module(entry)
  File "C:\Program Files\Python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'genericdropdown'

Any ideas on what might be wrong?

Thanks

Randle Taylor

unread,
Sep 28, 2023, 12:43:20 PM9/28/23
to tessy udoh, QATrack+
Hi Tessy,

It looks like the genericdropdown package was not installed correctly when setting up your virtualenv.  Can you activate your virtualenv again and try `pip install -r requirements/win.txt` again?  Are there any errors shown?

Randy



--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/cea55ecf-6a6e-4775-8428-4277b162c0fbn%40googlegroups.com.
Message has been deleted

tessy udoh

unread,
Sep 28, 2023, 2:24:56 PM9/28/23
to QATrack+
Hey,

Nope, I don't get any errors it ran successfully. I still get the 'Error starting service: The service did not respond to the start or control request in a timely fashion.' for CherryPy.

Tessy.

Randle Taylor

unread,
Sep 28, 2023, 3:54:45 PM9/28/23
to tessy udoh, QATrack+
Can you look in the logs directory to see if there have been any log files written that could help diagnose the issue?

Thanks,
Randy

tessy udoh

unread,
Sep 29, 2023, 8:57:24 AM9/29/23
to QATrack+
Yeah there's nothing in std_err and std_out is where I get the "request didn't respond in a timely manner" error. I don't have a cherry_py_err file though.

Thanks,
Tessy.

Randle Taylor

unread,
Sep 29, 2023, 10:40:27 AM9/29/23
to tessy udoh, QATrack+
If you activate the virtual env and do "pip freeze" does django_genericdropdown appear in the list?

If not try:


then try runserver again.

Randy

tessy udoh

unread,
Sep 29, 2023, 12:59:55 PM9/29/23
to QATrack+
Okay I had to install it but runserver is working now. CherryPy still isn't starting up though.

Thanks,
Tessy.

tessy udoh

unread,
Oct 4, 2023, 4:40:18 PM10/4/23
to QATrack+
Hi Randle,

I'm still unable to get CherryPy to start. I get this error:  "The code execution cannot proceed because python39.dll was not found. Reinstalling the program may fix this problem" from pyservice.exe. 

Any ideas on how to fix this? I've tried copying the dll file to C:\deploy\venvs\qatrack3\Lib\site-packages\win32 manually but no luck.

Thanks,
Tessy.
On Friday, September 29, 2023 at 10:40:27 AM UTC-4 Randle Taylor wrote:

Randle Taylor

unread,
Oct 5, 2023, 7:17:13 PM10/5/23
to tessy udoh, QATrack+
Something is a bit odd, I'm not sure why the python dll wouldn't be found.

Another thing you can try is copying deploy/win/cherrypy_deploy.py into the main qatrack directory activating your virtualenv and then running python cherrypy_deploy.py then visit http://localhost:8030 in the browser (you can change the port in the cherrypy_deploy file if you want). That should eliminate the Windows service part of the equation and ensure things can run under cherry py.

Some people have also had to run a pywin32 post install script as detailed here:  https://groups.google.com/g/qatrack/c/FYwDHGy28WI/m/emRHhDIYCAAJ



Reply all
Reply to author
Forward
0 new messages