Closed BryanWilhite closed 5 years ago
added space between &
call operator and command: https://github.com/BryanWilhite/Songhay.Dashboard/commit/404c56b844f633b99f9ec14a3abfadccbad6eb40
actually, according to the kudu log there is no error:
[05/31/2019 13:34:47 > 270fc7: SYS INFO] Status changed to Initializing
[05/31/2019 13:34:47 > 270fc7: SYS INFO] Run script 'run.ps1' with script host - 'PowerShellScriptHost'
[05/31/2019 13:34:47 > 270fc7: SYS INFO] Status changed to Running
[05/31/2019 13:34:48 > 270fc7: INFO] Songhay.Dashboard.Shell 1.0.0.0
[05/31/2019 13:34:48 > 270fc7: INFO]
[05/31/2019 13:34:48 > 270fc7: INFO]
[05/31/2019 13:34:48 > 270fc7: INFO]
[05/31/2019 13:34:48 > 270fc7: INFO] Activities Assembly:
[05/31/2019 13:34:48 > 270fc7: INFO] Songhay.Dashboard.Activities 2.2.0.0
[05/31/2019 13:34:48 > 270fc7: INFO] Songhay System company dashboard activities.
[05/31/2019 13:34:48 > 270fc7: INFO] (C) Bryan D. Wilhite 2019
[05/31/2019 13:34:48 > 270fc7: INFO] Loading configuration...
[05/31/2019 13:34:48 > 270fc7: INFO] Building configuration...
[05/31/2019 13:34:49 > 270fc7: INFO] songhay-log Verbose: 0 : verifying D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\data...
[05/31/2019 13:34:49 > 270fc7: INFO] songhay-log Verbose: 0 : downloading to D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\data\app.json...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : writing server serverMeta...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : downloading D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\data\codepen.json.json...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : downloading D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\data\flickr.json.json...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : downloading D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\data\github.json.json...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : downloading D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\data\stackoverflow.json.json...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : downloading D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\data\studio.json.json...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : writing feeds/codepen...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : writing feeds/flickr...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : writing feeds/github...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : writing feeds/stackoverflow...
[05/31/2019 13:34:50 > 270fc7: INFO] songhay-log Information: 0 : writing feeds/studio...
[05/31/2019 13:34:51 > 270fc7: INFO] songhay-log Verbose: 0 : Getting block-blob reference app.json...
[05/31/2019 13:34:51 > 270fc7: INFO] songhay-log Verbose: 0 : Uploading D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\data\app.json...
[05/31/2019 13:34:51 > 270fc7: INFO] Window title cannot be longer than 1023 characters.
[05/31/2019 13:34:51 > 270fc7: INFO] At D:\local\Temp\jobs\triggered\job-studio-dash\btit54yx.vne\run.ps1:9 char:1
[05/31/2019 13:34:51 > 270fc7: INFO] + & dotnet Songhay.Dashboard.Shell.dll 'AppDataActivity'
[05/31/2019 13:34:51 > 270fc7: INFO] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[05/31/2019 13:34:51 > 270fc7: INFO] + CategoryInfo : InvalidArgument: (:) [], PSArgumentException
[05/31/2019 13:34:51 > 270fc7: INFO] + FullyQualifiedErrorId : Argument
[05/31/2019 13:34:51 > 270fc7: INFO]
[05/31/2019 13:34:51 > 270fc7: SYS INFO] Status changed to Failed
[05/31/2019 13:34:51 > 270fc7: SYS ERR ] Job failed due to exit code 1
something set the exit code to 1
🚩
appealing to fundamentals, i am seeing that my use of the call operator, &
, [docs] is misplaced as it is used for deriving commands from strings
📚 https://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx
this form appears to be an improvement:
Set-Location $PSScriptRoot
$p = Start-Process dotnet -ArgumentList "Songhay.Dashboard.Shell.dll AppDataActivity" -NoNewWindow -PassThru -Wait
exit $p.ExitCode
the -NoNewWindow
argument should totally eliminate this issue 🔥 👍
https://github.com/projectkudu/kudu/issues/2635