Troubleshooting Guide for Setting Up the HttpRunnerManager Environment

This article first wishes readers a happy Lantern Festival and then provides a comprehensive step‑by‑step troubleshooting guide for installing and configuring the HttpRunnerManager environment, covering Python, Django, RabbitMQ, MySQL, character‑set settings, remote access, and required Python packages.

360 Quality & Efficiency
360 Quality & Efficiency
360 Quality & Efficiency
Troubleshooting Guide for Setting Up the HttpRunnerManager Environment

Before building the HttpRunnerManager environment the author encountered many pitfalls; this article shares those problems and their solutions to help others facing the same issues.

The environment requires a Python runtime (preferably version 3.0 or higher), a MySQL server, and the RabbitMQ message broker. After installing RabbitMQ, Erlang must be installed with a version compatible with the chosen RabbitMQ release.

1. Version selection : Use Python 3+ because Django 2.x (or higher) is needed; older Django 1.x versions may cause compatibility problems.

2. RabbitMQ web‑admin login issue : The default guest user can only log in from localhost. Create a new user with appropriate permissions and use it to log in.

3. Django version : Install a newer Django version, e.g., pip install django==2.1.1, to avoid incompatibility with the author's code.

4. djcelery installation : The djcelery package may be missing; install it via pip install django-celery.

5. mysqlclient installation : Install Visual C++ build tools or download a matching .whl file from https://www.lfd.uci.edu/~gohlke/pythonlibs/ and install it with pip install mysqlclient‑…‑cp38‑cp38‑win_amd64.whl (example).

6. Database character‑set issue : MySQL must use UTF‑8 encoding. Either set the character set when creating the database, or modify an existing database with:

SHOW VARIABLES LIKE '%char%';
SET character_set_database=utf8;

7. Remote MySQL access problem : By default MySQL restricts remote connections. Update the user table to allow any host and flush privileges:

mysql -u root -p
USE mysql;
UPDATE user SET host='%' WHERE user='root';
SELECT host, user FROM user;
FLUSH PRIVILEGES;

8. yaml module installation : If the yaml module is missing, install it with pip install pyyaml.

After following these steps the HttpRunnerManager environment should be fully functional.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

PythonBackend DevelopmentmysqlRabbitMQDjango
360 Quality & Efficiency
Written by

360 Quality & Efficiency

360 Quality & Efficiency focuses on seamlessly integrating quality and efficiency in R&D, sharing 360’s internal best practices with industry peers to foster collaboration among Chinese enterprises and drive greater efficiency value.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.