Issues information
- OS: MacOS
- databases: AWS Managed MongoDB
- Programming language and version: Python 3.10.2
- Link to your project on Github/Gitlab: N/A
- Link to your application: https://console.qovery.com/platform/organization/b75561af-ab0b-4e44-ad7f-df8cf973fa39/projects/5c6545b0-6914-44ea-add6-e043646373e6/environments/7c54ff6e-00f0-4c03-a386-0278bba3dec6/applications/f2f130e2-d50f-4cd4-9f53-def9a7883de1/summary
Your issue
Although we have not gone live yet, our prod env has started giving the following timeout error when trying to connect to the managed MongoDB instance. Any ideas why this could be? It worked previously, and I don’t think any changes to prod have been made. This issue would bring our entire application down if it was live in production - I am not sure if it is a Qovery issue, or we accidentally changed something without realising.
|11 May, 18:39:55.639|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|└ MongoClient(host=['z9f5978fc-mongodb.zab943a2a.rustrocks.me:27017'], document_class=dict, tz_aware=False, connect=False, ssl=Tru...|
| --- | --- | --- | --- |
|11 May, 18:39:55.639|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|File "/usr/local/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1921, in _get_server_session|
|11 May, 18:39:55.639|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|return self._topology.get_server_session()|
|11 May, 18:39:55.639|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|File "/usr/local/lib/python3.10/site-packages/pymongo/topology.py", line 520, in get_server_session|
|11 May, 18:39:55.639|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|session_timeout = self._check_session_support()|
|11 May, 18:39:55.639|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|└ <Topology <TopologyDescription id: 626037ada9b9df407795933a, topology_type: Single, servers: [<ServerDescription ('z9f5978fc-mon...|
|11 May, 18:39:55.640|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|File "/usr/local/lib/python3.10/site-packages/pymongo/topology.py", line 499, in _check_session_support|
|11 May, 18:39:55.640|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|self._select_servers_loop(|
|11 May, 18:39:55.640|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|File "/usr/local/lib/python3.10/site-packages/pymongo/topology.py", line 218, in _select_servers_loop|
|11 May, 18:39:55.640|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|raise ServerSelectionTimeoutError(|
|11 May, 18:39:55.640|app-zf2f130e2-5b88677d96-fcc4h|7b01c8|pymongo.errors.ServerSelectionTimeoutError: z9f5978fc-mongodb.zab943a2a.rustrocks.me:27017: timed out, Timeout: 30s, Topology Description: <TopologyDescription id: 626037ada9b9df407795933a, topology_type: Single, servers: [<ServerDescription ('z9f5978fc-mongodb.zab943a2a.rustrocks.me', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('z9f5978fc-mongodb.zab943a2a.rustrocks.me:27017: timed out')>]>|
Dockerfile content (if any)
FROM python:3.10.2-buster
COPY requirements.txt requirements.txt
RUN python -m pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
CMD python main.py
Thanks,
Kevin