Comments (4)
Hi @alecorgit
I uploaded a version 3.1.14. It does not fix your issues. But now we should be able to see more details on what is going on.
When it stales at "Building Report - 98% Complete." at least you should see the name of the module that the report is getting stuck.
Now the logfile for the diagram should be created every time and I hope it will give some hint of what is going bad during that part.
Also, are you running the script in Powershell Core or Windows Powershell?
Thanks
from ari.
Hi @Claudio-Merola, I used Windows PowerShell 5.1 and even using 3.1.14 version, the XML and the log files are not created.
On the same computer I just tried to run the script in 2 different subscriptions that have the issue, using PowerShell 7.4.0
They both get stuck on:
DEBUG: Looking for the following file: R:\ARI-AzureResourceInventory\ARI-main\Extras\Charts.ps1
DEBUG: Finished Charts Phase.
In the first subscription the XML is created but it is not complete (all the subnets and some vNETs are missing), the log:
DrawIOCoreJob - 2024-03-13_09_58_01 - Starting Draw.IO Job
DrawIOCoreJob - 2024-03-13_09_58_01 - Running Local
DrawIOCoreJob - 2024-03-13_09_58_01 - Calling Draw.IO Thread
DrawIOCoreFile - 2024-03-13_09_58_13 - Starting Draw.IO file
DrawIOCoreFile - 2024-03-13_09_58_13 - Setting XML files to be clean
DrawIOCoreFile - 2024-03-13_09_58_13 - Cleaning old files
DrawIOCoreFile - 2024-03-13_09_58_13 - Starting Organization Function
DrawIOCoreFile - 2024-03-13_09_58_13 - Starting Network Topology Function
DrawIONetwork - 2024-03-13_09_58_13 - Starting Network Diagram Job...
DrawIOCoreFile - 2024-03-13_09_58_13 - Starting Subscription Function
DrawIOCoreFile - 2024-03-13_09_58_13 - Waiting for Jobs to complete
DrawIONetwork - 2024-03-13_09_59_17 - Setting Subnet files
DrawIONetwork - 2024-03-13_09_59_17 - Calling Variables0 Function
DrawIONetwork - 2024-03-13_09_59_17 - Waiting Variables Job to complete
DrawIONetwork - 2024-03-13_10_00_19 - Setting Variables
DrawIONetwork - 2024-03-13_10_00_19 - Defining XML file
DrawIONetwork - 2024-03-13_10_00_19 - Calling Stensils
DrawIONetwork - 2024-03-13_10_00_19 - Calling OnPremNet
DrawIONetwork - 2024-03-13_10_02_41 - Calling as FullEnvironment
DrawIONetwork - 2024-03-13_10_04_30 - Waiting Job2 to complete
In the second subscription the XML is created with 0KB and it hangs on:
DrawIOCoreJob - 2024-03-13_13_14_43 - Starting Draw.IO Job
DrawIOCoreJob - 2024-03-13_13_14_43 - Running Local
DrawIOCoreJob - 2024-03-13_13_14_43 - Calling Draw.IO Thread
DrawIOCoreFile - 2024-03-13_13_14_58 - Starting Draw.IO file
DrawIOCoreFile - 2024-03-13_13_14_58 - Setting XML files to be clean
DrawIOCoreFile - 2024-03-13_13_14_58 - Cleaning old files
DrawIOCoreFile - 2024-03-13_13_14_58 - Starting Organization Function
DrawIOCoreFile - 2024-03-13_13_14_58 - Starting Network Topology Function
DrawIONetwork - 2024-03-13_13_14_58 - Starting Network Diagram Job...
DrawIOCoreFile - 2024-03-13_13_14_58 - Starting Subscription Function
DrawIOCoreFile - 2024-03-13_13_14_58 - Waiting for Jobs to complete
DrawIONetwork - 2024-03-13_13_17_16 - Setting Subnet files
DrawIONetwork - 2024-03-13_13_17_16 - Calling Variables0 Function
DrawIONetwork - 2024-03-13_13_17_16 - Waiting Variables Job to complete
DrawIONetwork - 2024-03-13_13_19_29 - Setting Variables
DrawIONetwork - 2024-03-13_13_19_29 - Defining XML file
DrawIONetwork - 2024-03-13_13_19_29 - Calling Stensils
DrawIONetwork - 2024-03-13_13_19_29 - Calling OnPremNet
We can focus and continue troubleshooting using PowerShell 7.
Thanks
from ari.
Hi @Claudio-Merola, I did further tests.
I confirm that using Windows PowerShell 5.1 and also using version 3.1.14, the XML and log files are not created for 2 subscriptions.
On the same computer using PowerShell 7.4.0, the XML files and log are created, the longest step is "- Waiting Job2 to complete" and after a few hours the scripts end.
Unfortunately these subscriptions are very large with many objects, the xml file is over 2 MB and at a certain point, viewing the network graph, the peers no longer appear and the VNETs are all crowded together.
I would say that the problem of the xml file not being created and the script not finishing can be solved, for these subscriptions, using PowerShell 7.4.
Thanks
from ari.
Hi @alecorgit
Thanks for the update.
That behavior is VERY strange, I don't see why the script would stall with PS.5 and work with PS.7.
I suspect some improvements in the way PS.7 deals with long running and big memory consumption threads. but is just a guest
But I'm glad you were able to workaround it with PS.7.
from ari.
Related Issues (20)
- Azure Firewall - Add option to toggle between rule count and actual rules HOT 3
- Ari Storage Error HOT 3
- version 3.1.14 not producing any output in a simple environment without these changes. HOT 1
- draw.io Error Duplicate ID-No puedo abrir el diagrama HOT 2
- changing the output method from excel to SQL or table storage HOT 2
- AzureResourceInventory.ps1 has command that causes issues HOT 3
- Header/Footer Setup for DrawIO Output HOT 3
- Getting an error when executing this xml file for diagram HOT 2
- Report - Overview tab mostly blank - "pivottable report can't overlap a table" HOT 5
- I would like to add azure inventory Services Azure Database for PostgreSQL flexible servers. HOT 5
- NIC Info HOT 1
- Azure Backup and Replication HOT 1
- Security center HOT 1
- SQL DB HOT 2
- Unused Resource or Orphange Resouce details. HOT 3
- Error running ARI HOT 12
- Create a Visio Diagram option (-Diagram) HOT 2
- Release for version 3.1.16 HOT 1
- Command Line Is Too Long HOT 19
- -SubscriptionID parameter is not used HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ari.