Git Product home page Git Product logo

Comments (4)

Claudio-Merola avatar Claudio-Merola commented on June 12, 2024

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.

alecorgit avatar alecorgit commented on June 12, 2024

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.

alecorgit avatar alecorgit commented on June 12, 2024

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.

Claudio-Merola avatar Claudio-Merola commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.