Azure / DaaS

This is the source code repository for the Diagnostics As A Service component of Azure App Service
MIT License
11 stars 14 forks source link

Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. #151

Closed bbrandt closed 9 months ago

bbrandt commented 9 months ago

Unable to collect a memory dump because DaaS is not running DaaS is not running because it can't find Newtonsoft.Json. Should this dependency be deployed with DaaS to my Azure Function App?

[01/18/2024 23:06:12 > a66d27: SYS INFO] Detected WebJob file/s were updated, refreshing WebJob
[01/18/2024 23:06:12 > a66d27: SYS INFO] Status changed to Starting
[01/18/2024 23:06:12 > a66d27: SYS INFO] WebJob singleton setting is False
[01/18/2024 23:06:13 > a66d27: SYS INFO] Run script 'DaasRunner.exe' with script host - 'WindowsScriptHost'
[01/18/2024 23:06:13 > a66d27: SYS INFO] Status changed to Running
[01/18/2024 23:09:21 > a66d27: SYS INFO] WebJob is stopping due to website shutting down
[01/18/2024 23:09:21 > a66d27: SYS INFO] Status changed to Stopping
[01/18/2024 23:09:26 > a66d27: ERR ] Thread was being aborted.
[01/18/2024 23:09:26 > a66d27: SYS INFO] WebJob process was aborted
[01/18/2024 23:09:26 > a66d27: SYS INFO] Status changed to Stopped
[01/18/2024 23:09:34 > a66d27: SYS INFO] Status changed to Starting
[01/18/2024 23:09:34 > a66d27: SYS INFO] WebJob singleton setting is False
[01/18/2024 23:09:34 > a66d27: SYS INFO] Run script 'DaasRunner.exe' with script host - 'WindowsScriptHost'
[01/18/2024 23:09:35 > a66d27: SYS INFO] Status changed to Running
[01/19/2024 00:09:34 > a66d27: SYS INFO] WebJob is still running
[01/19/2024 12:09:34 > a66d27: SYS INFO] WebJob is still running
[01/19/2024 14:26:21 > a66d27: INFO] Including any child processes
[01/19/2024 14:26:21 > a66d27: INFO] Will take dump of following processes:
[01/19/2024 14:26:21 > a66d27: INFO]   w3wp - Id: 14676
[01/19/2024 14:26:21 > a66d27: INFO] w3wp is 64-bit
[01/19/2024 14:26:21 > a66d27: INFO] Comand:
[01/19/2024 14:26:22 > a66d27: INFO] C:\Program Files (x86)\SiteExtensions\DaaS\3.9.23829.01\bin\DiagnosticTools\procdump.exe  -accepteula -r -dc "InvokedViaDaasConsole-Memory" -ma 14676 C:\local\Temp\Logs\240119_1425553170\aw0sdwk0000CQ\aw0sdwk0000CQ_w3wp_14676_20240119-142621.dmp
[01/19/2024 14:27:58 > a66d27: ERR ] 
[01/19/2024 14:27:58 > a66d27: ERR ] Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
[01/19/2024 14:27:58 > a66d27: ERR ]    at StackTracer.Program.Main(String[] args)
[01/19/2024 14:33:18 > 9a92f1: SYS INFO] Status changed to Starting
[01/19/2024 14:33:18 > 9a92f1: SYS INFO] WebJob singleton setting is False
[01/19/2024 14:33:18 > 9a92f1: SYS INFO] Run script 'DaasRunner.exe' with script host - 'WindowsScriptHost'
[01/19/2024 14:33:18 > 9a92f1: SYS INFO] Status changed to Running
[01/19/2024 14:38:19 > a66d27: INFO] Including any child processes
[01/19/2024 14:38:19 > a66d27: INFO] Will take dump of following processes:
[01/19/2024 14:38:19 > a66d27: INFO]   w3wp - Id: 12892
[01/19/2024 14:38:19 > a66d27: INFO] w3wp is 64-bit
[01/19/2024 14:38:19 > a66d27: INFO] Comand:
[01/19/2024 14:38:19 > a66d27: INFO] C:\Program Files (x86)\SiteExtensions\DaaS\3.9.23829.01\bin\DiagnosticTools\procdump.exe  -accepteula -r -dc "InvokedViaDaasConsole-Memory" -ma 12892 C:\local\Temp\Logs\240119_1438038193\aw0sdwk0000CQ\aw0sdwk0000CQ_w3wp_12892_20240119-143819.dmp
[01/19/2024 14:45:33 > a66d27: SYS INFO] WebJob is stopping due to website shutting down
[01/19/2024 14:45:33 > a66d27: SYS INFO] Status changed to Stopping
[01/19/2024 14:45:38 > a66d27: ERR ] Thread was being aborted.
[01/19/2024 14:45:39 > a66d27: SYS INFO] WebJob process was aborted
[01/19/2024 14:45:39 > a66d27: SYS INFO] Status changed to Stopped
[01/19/2024 15:33:18 > 9a92f1: SYS INFO] WebJob is still running
[01/19/2024 15:34:54 > c0a474: SYS INFO] Status changed to Starting
[01/19/2024 15:34:56 > c0a474: SYS INFO] WebJob singleton setting is False
[01/19/2024 15:34:57 > c0a474: SYS INFO] Run script 'DaasRunner.exe' with script host - 'WindowsScriptHost'
[01/19/2024 15:34:57 > c0a474: SYS INFO] Status changed to Running
[01/19/2024 15:43:37 > 9a92f1: INFO] Including any child processes
[01/19/2024 15:43:37 > 9a92f1: INFO] Will take dump of following processes:
[01/19/2024 15:43:37 > 9a92f1: INFO]   w3wp - Id: 5116
[01/19/2024 15:43:37 > 9a92f1: INFO] w3wp is 64-bit
[01/19/2024 15:43:37 > 9a92f1: INFO] Comand:
[01/19/2024 15:43:37 > 9a92f1: INFO] C:\Program Files (x86)\SiteExtensions\DaaS\3.9.23829.01\bin\DiagnosticTools\procdump.exe  -accepteula -r -dc "InvokedViaDaasConsole-Memory" -ma 5116 C:\local\Temp\Logs\240119_1543286414\aw0sdwk0000CR\aw0sdwk0000CR_w3wp_5116_20240119-154337.dmp
[01/19/2024 15:47:03 > 9a92f1: SYS INFO] WebJob is stopping due to website shutting down
[01/19/2024 15:47:03 > 9a92f1: SYS INFO] Status changed to Stopping
[01/19/2024 15:47:08 > 9a92f1: ERR ] Thread was being aborted.
[01/19/2024 15:47:08 > 9a92f1: SYS INFO] WebJob process was aborted
[01/19/2024 15:47:08 > 9a92f1: SYS INFO] Status changed to Stopped
[01/19/2024 16:34:57 > c0a474: SYS INFO] WebJob is still running
[01/19/2024 17:03:39 > c0a474: SYS INFO] WebJob is stopping due to website shutting down
[01/19/2024 17:03:39 > c0a474: SYS INFO] Status changed to Stopping
[01/19/2024 17:03:44 > c0a474: ERR ] Thread was being aborted.
[01/19/2024 17:03:44 > c0a474: SYS INFO] WebJob process was aborted
[01/19/2024 17:03:44 > c0a474: SYS INFO] Status changed to Stopped
[01/19/2024 17:04:02 > c0a474: SYS INFO] Status changed to Starting
[01/19/2024 17:04:02 > c0a474: SYS INFO] WebJob singleton setting is False
[01/19/2024 17:04:03 > c0a474: SYS INFO] Run script 'DaasRunner.exe' with script host - 'WindowsScriptHost'
[01/19/2024 17:04:03 > c0a474: SYS INFO] Status changed to Running
[01/19/2024 17:08:12 > c0a474: SYS INFO] WebJob is stopping due to website shutting down
[01/19/2024 17:08:12 > c0a474: SYS INFO] Status changed to Stopping
[01/19/2024 17:08:17 > c0a474: ERR ] Thread was being aborted.
[01/19/2024 17:08:17 > c0a474: SYS INFO] WebJob process was aborted
[01/19/2024 17:08:17 > c0a474: SYS INFO] Status changed to Stopped
[01/19/2024 17:08:24 > c0a474: SYS INFO] Status changed to Starting
[01/19/2024 17:08:24 > c0a474: SYS INFO] WebJob singleton setting is False
[01/19/2024 17:08:25 > c0a474: SYS INFO] Run script 'DaasRunner.exe' with script host - 'WindowsScriptHost'
[01/19/2024 17:08:25 > c0a474: SYS INFO] Status changed to Running
[01/19/2024 17:47:22 > c0a474: SYS INFO] WebJob is stopping due to website shutting down
[01/19/2024 17:47:22 > c0a474: SYS INFO] Status changed to Stopping
[01/19/2024 17:47:25 > c0a474: SYS INFO] Status changed to Starting
[01/19/2024 17:47:25 > c0a474: SYS INFO] WebJob singleton setting is False
[01/19/2024 17:47:27 > c0a474: SYS WARN] Failed to delete temporary directory
[01/19/2024 17:47:27 > c0a474: ERR ] Thread was being aborted.
[01/19/2024 17:47:27 > c0a474: SYS INFO] Run script 'DaasRunner.exe' with script host - 'WindowsScriptHost'
[01/19/2024 17:47:27 > c0a474: SYS INFO] WebJob process was aborted
[01/19/2024 17:47:27 > c0a474: SYS INFO] Status changed to Running
[01/19/2024 17:47:27 > c0a474: SYS INFO] Status changed to Stopped
[01/19/2024 18:47:25 > c0a474: SYS INFO] WebJob is still running
bbrandt commented 9 months ago

After deploying my function app a couple more times this went away and DaaS is running, allowing me to collect a memory dump. Weird.