You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow the guide, deploy the reverse_image_search example, while using the non-default port for MySql and using env MYSQL_PORT pass it to the server. But server start failed.
Trackback log:
Traceback (most recent call last):
File "src/main.py", line 33, in <module>
MYSQL_CLI = MySQLHelper()
File "/home/jibin/1018/bootcamp/solutions/reverse_image_search/quick_deploy/server/src/mysql_helpers.py", line 11, in __init__
local_infile=True)
File "/home/jibin/1018/bootcamp/solutions/reverse_image_search/quick_deploy/server/venv/lib/python3.6/site-packages/pymysql/connections.py", line 290, in __init__
raise ValueError("port should be of type int")
ValueError: port should be of type int
Expected Behavior
Hope server started
Steps To Reproduce
1. export MYSQL_PORT=33060
2. start server by code python main.py
3. Got error output.
Software version
Milvus: 2.0.0rc7, not related
Server: N/A
Client: N/A
Anything else?
Have some investigation on code, in config.py some value are read from env, but the code like MYSQL_PORT = os.getenv("MYSQL_PORT", 3306) will always got a string value while MYSQL_PORT is set, so a type cast to number here is needed.
I'll raise PR for fix it.
The text was updated successfully, but these errors were encountered:
matrixji
added a commit
to matrixji/bootcamp
that referenced
this issue
Oct 19, 2021
Is there an existing issue for this?
Current Behavior
Follow the guide, deploy the reverse_image_search example, while using the non-default port for MySql and using env MYSQL_PORT pass it to the server. But server start failed.
Trackback log:
Expected Behavior
Hope server started
Steps To Reproduce
Software version
Anything else?
Have some investigation on code, in
config.py
some value are read from env, but the code likeMYSQL_PORT = os.getenv("MYSQL_PORT", 3306)
will always got a string value while MYSQL_PORT is set, so a type cast to number here is needed.I'll raise PR for fix it.
The text was updated successfully, but these errors were encountered: