Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error creating DefaultJobPCI-Synthetics.xlsx #125

Closed
diegohormazabal opened this issue Sep 3, 2023 · 4 comments
Closed

error creating DefaultJobPCI-Synthetics.xlsx #125

diegohormazabal opened this issue Sep 3, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@diegohormazabal
Copy link

diegohormazabal commented Sep 3, 2023

`2023-09-03 03:30:49,469 [DEBUG] Saving Dashboard Workbook
2023-09-03 03:30:51,420 [INFO] Creating presentation from output folder: DefaultJobPCI
2023-09-03 03:30:51,544 [DEBUG] STREAM b'IHDR' 16 13
2023-09-03 03:30:51,549 [DEBUG] STREAM b'IDAT' 41 32768
2023-09-03 03:30:51,550 [DEBUG] STREAM b'IHDR' 16 13
2023-09-03 03:30:51,550 [DEBUG] STREAM b'IDAT' 41 32768
2023-09-03 03:30:51,550 [DEBUG] STREAM b'IHDR' 16 13
2023-09-03 03:30:51,550 [DEBUG] STREAM b'IDAT' 41 32768
2023-09-03 03:30:51,551 [DEBUG] STREAM b'IHDR' 16 13
2023-09-03 03:30:51,551 [DEBUG] STREAM b'IDAT' 41 32768
2023-09-03 03:30:51,551 [DEBUG] STREAM b'IHDR' 16 13
2023-09-03 03:30:51,551 [DEBUG] STREAM b'IDAT' 41 32768
2023-09-03 03:30:51,551 [DEBUG] STREAM b'IHDR' 16 13
2023-09-03 03:30:51,551 [DEBUG] STREAM b'IDAT' 41 32768
2023-09-03 03:30:51,594 [INFO] Creating CX HAM Use Case PPT for DefaultJobPCI
2023-09-03 03:30:51,956 [ERROR] Traceback (most recent call last):
File "core\Engine.py", line 199, in run
File "core\Engine.py", line 362, in finalize
File "output\presentations\cxPptFsoUseCases.py", line 527, in createCxHamUseCasePpt
File "output\presentations\cxPptFsoUseCases.py", line 66, in init
File "pandas\util_decorators.py", line 311, in wrapper
File "pandas\io\excel_base.py", line 457, in read_excel
File "pandas\io\excel_base.py", line 1376, in init
File "pandas\io\excel_base.py", line 1250, in inspect_excel_format
File "pandas\io\common.py", line 795, in get_handle
FileNotFoundError: [Errno 2] No such file or directory: 'output/DefaultJobPCI\DefaultJobPCI-Synthetics.xlsx'

2023-09-03 03:30:51,956 [DEBUG] localhost - Closing connection
2023-09-03 03:30:51,956 [DEBUG] asyncio - Task count: 2 - EventLoop delay 3.0310

@alexafshar
Copy link
Collaborator

alexafshar commented Sep 11, 2023

Possibly due to no Synthetics job available over the prior 24 hours when you ran the tool ? the config tool operates mostly on the last 24 hours data set when hitting the API's. If that is not the case and you have synthetics job in the last 24 hours and still see the issue and you'd like me to look at it further, email me directly with the full log file. Do not post here! aleafsha@cisco.com

@aridnei
Copy link

aridnei commented Sep 15, 2023

I see similar error. Like @alexafshar said I think it can be due no Synthetics found...

08:59:27 2023-09-15 04:59:27,100 [INFO] Creating Synthetics Report Workbook
08:59:27 2023-09-15 04:59:27,101 [WARNING] No data found for Synthetics
08:59:27 2023-09-15 04:59:27,101 [INFO] Creating Dashboard Report Workbook
09:00:48 2023-09-15 05:00:36,929 [INFO] Creating presentation from output folder: DefaultJob
09:00:48 2023-09-15 05:00:45,707 [INFO] Creating CX HAM Use Case PPT for DefaultJob
09:01:15 2023-09-15 05:01:12,831 [ERROR] Traceback (most recent call last):
09:01:15 File "/config-assessment-tool/backend/core/Engine.py", line 199, in run
09:01:15 self.finalize(startTime)
09:01:15 File "/config-assessment-tool/backend/core/Engine.py", line 362, in finalize
09:01:15 createCxHamUseCasePpt(self.jobFileName)
09:01:15 File "/config-assessment-tool/backend/output/presentations/cxPptFsoUseCases.py", line 527, in createCxHamUseCasePpt
09:01:15 excels = ExcelSheets(directory,
09:01:15 File "/config-assessment-tool/backend/output/presentations/cxPptFsoUseCases.py", line 66, in init
09:01:15 self.workbooks[filename] = pd.read_excel(full_path, sheet_name=None)
09:01:15 File "/config-assessment-tool/backend/.venv/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
09:01:15 return func(*args, **kwargs)
09:01:15 File "/config-assessment-tool/backend/.venv/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 457, in read_excel
09:01:15 io = ExcelFile(io, storage_options=storage_options, engine=engine)
09:01:15 File "/config-assessment-tool/backend/.venv/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 1376, in init
09:01:15 ext = inspect_excel_format(
09:01:15 File "/config-assessment-tool/backend/.venv/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 1250, in inspect_excel_format
09:01:15 with get_handle(
09:01:15 File "/config-assessment-tool/backend/.venv/lib/python3.9/site-packages/pandas/io/common.py", line 795, in get_handle
09:01:15 handle = open(handle, ioargs.mode)
09:01:15 FileNotFoundError: [Errno 2] No such file or directory: 'output/DefaultJob/DefaultJob-Synthetics.xlsx'

@alexafshar
Copy link
Collaborator

I'll add a handler to catch this particular exception and simply INFO report on missing synthetics job instead.

@alexafshar alexafshar added the bug Something isn't working label Mar 19, 2024
@alexafshar alexafshar added this to In progress in config-assessment-tool Mar 19, 2024
@alexafshar alexafshar self-assigned this Mar 19, 2024
alexafshar added a commit to alexafshar/config-assessment-tool that referenced this issue Apr 1, 2024
…s), Appdynamics#125 (fix post processing error when no synthetics jobs on customer controller)
alexafshar added a commit that referenced this issue Apr 1, 2024
…ix post processing error when no synthetics jobs on customer controller) (#137)
@alexafshar alexafshar moved this from In progress to In Master in config-assessment-tool Apr 1, 2024
@alexafshar alexafshar moved this from In Master to Relased in config-assessment-tool May 6, 2024
@alexafshar
Copy link
Collaborator

fixed in v1.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants