issues icon indicating copy to clipboard operation
issues copied to clipboard

No configuration found for event hub Agent

Open Omzig opened this issue 1 year ago • 4 comments

Version

4.2.21

Severity

Low

Environment

Nested IIS

Steps to Reproduce

trying to use the https://docs.powershelluniversal.com/api/event-hubs

  • installed event hub agent on another machine
  • configured %ProgramData%\PowerShellUniversal\eventHubClient.json

Expected behavior

connected

Actual behavior

2024-06-11 15:37:24.220 -05:00 [ERR] No configuration found.

Additional Environment data

No response

Screenshots/Animations

No response

Omzig avatar Jun 11 '24 20:06 Omzig

I can't reproduce this.

image

I used configuration straight from the docs.

2024-06-19 09:21:44.684 -05:00 [INF] Connected to server http://localhost:5000 at hub eventHub.

adamdriscoll avatar Jun 19 '24 14:06 adamdriscoll

/sigh, maybe i did something dumb.... setup a support call? maybe it will only be a 10min thing?

Omzig avatar Jun 19 '24 14:06 Omzig

I could schedule something later. One thing I would check would be to look in event viewer. I noticed the error you are seeing in the log file because the service first started without the config file. Then I created it but didn't have the server running. The event hub client service crashed but didn't log to the log file. The event log had a clear error message.

adamdriscoll avatar Jun 19 '24 14:06 adamdriscoll

event viewer: Service started successfully.

Omzig avatar Jun 19 '24 14:06 Omzig

Circling back on this one...

I added a bunch more logging to v5 event hubs to make it easier to diagnosis this. I also had a hard time getting them configured. 😵‍💫 Can you also share the JSON file?

adamdriscoll avatar Aug 06 '24 19:08 adamdriscoll

Let's finally get this scheduled because I want to look at:

  • #3384
  • #3386
  • #3574
  • #3577

I can't reproduce any of these items and need to see what I'm missing.

adamdriscoll avatar Aug 16 '24 23:08 adamdriscoll

when do you want to work on it?

Omzig avatar Aug 19 '24 18:08 Omzig

remove the .txt from the file /facepalm

Omzig avatar Aug 22 '24 21:08 Omzig