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

After update - Variable "ErrorActionPreference" or common parameter is set to Stop #329

Closed
ttmader opened this issue Jan 20, 2023 · 7 comments

Comments

@ttmader
Copy link

ttmader commented Jan 20, 2023

Hi,

After updating to the latest version I see this in the log:

Transcript started, output file is /var/log/sexigraf/ViOfflineInventory.log
2023-01-20T17:28:16.4593792+00:00 [INFO] ViOfflineInventory v0.9.68
2023-01-20T17:28:16.4653737+00:00 [INFO] Importing PowerCli and Graphite PowerShell modules ...
2023-01-20T17:28:19.1938797+00:00 [INFO] Looking for another ViOfflineInventory ...
2023-01-20T17:28:19.2090493+00:00 [INFO] VI servers listing ...
PS>TerminatingError(Get-Content): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot find path '/tmp/vmw_vcsa_lab.key' because it does not exist."
2023-01-20T17:28:19.2422041+00:00 [WARN] SessionToken not found, invalid or connection failure
2023-01-20T17:28:19.2428040+00:00 [WARN] Attempting explicit connection ...
2023-01-20T17:28:22.1161223+00:00 [INFO] Connected to vCenter vcsa.lab version 6.7.0 build 19299595
2023-01-20T17:28:22.1226587+00:00 [INFO] Start processing vCenter/ESX vcsa.lab ...
2023-01-20T17:28:22.2038893+00:00 [INFO] Collecting objects in vcsa.local ...
2023-01-20T17:28:22.9333035+00:00 [INFO] Building hashtables ...
2023-01-20T17:28:23.1743338+00:00 [INFO] Writing Vm Inventory files ...
2023-01-20T17:28:23.1811093+00:00 [INFO] Writing Esx Inventory files ...
2023-01-20T17:28:23.1823215+00:00 [INFO] Writing Datastore Inventory files ...
PS>$global:?
True


PowerShell transcript end
End time: 20230120172823


What should I do?

Thanks.

@ttmader ttmader changed the title Before update - Variable "ErrorActionPreference" or common parameter is set to Stop After update - Variable "ErrorActionPreference" or common parameter is set to Stop Jan 20, 2023
@rschitz
Copy link
Member

rschitz commented Jan 20, 2023

Hi, did you enable "VI" collect for this vcenter ?

@ttmader
Copy link
Author

ttmader commented Jan 20, 2023

Yes.

The statistics seem to work but that error appears.

image

@rschitz
Copy link
Member

rschitz commented Jan 20, 2023

what the vi log says?

@ttmader
Copy link
Author

ttmader commented Jan 23, 2023

Yes, VI log

@rschitz
Copy link
Member

rschitz commented Jan 23, 2023

can you share what the VI log says? This is the inventory log.

@ttmader
Copy link
Author

ttmader commented Jan 24, 2023

I just went in to check the log and those errors no longer appear. I've restarted it several times with no errors.

Seems like it just needed time after the update.

Thanks a lot for everything!

@rschitz
Copy link
Member

rschitz commented Jan 24, 2023

strange but ok, if it appears again we'll dig into it. thanks for reporting

@rschitz rschitz closed this as completed Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants