Created on 12-23-2022 05:03 AM Edited on 12-23-2022 05:03 AM By Jean-Philippe_P
Description | This article describes how to solve the exchange connector error - Unsupported tzinfo type: _PytzShimTimezone(datetime.timezone.utc, 'UTC'). |
Scope | Fortisoar Exchange Connector v4.0.0 or 4.1.0. |
Solution |
For Exchange v4.0.0: 2) Open the below file - vi /opt/cyops/configs/integrations/connectors/exchange_4_0_0/configuration.pyOn line number 19 which is - from exchangelib importappend UTC to the list. 3. Restart uwsgi service systemctl restart uwsgi.
For Exchange v4.1.0:
In the FortiSOAR command line, run the following commands under the root user and restart uwsgi - systemctl restart uwsgi.
If the issue still persists, it is necessary to downgrade the tzlocal dependency to version 3.0.0 as below:
1) Go inside the below folder cd /opt/cyops/configs/integrations/packages/lib/python3.9/site-packages 2. rm -rf tzlocal*. 3) Activate the integration environment and install tzlocal version 3.0. 3.1 source /opt/cyops-integrations/.env/bin/activate 3.2 pip install tzlocal==3.0. 4. Restart uwsgi - systemctl restart uwsgi. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.