Azure Cognitive Services custom Speech-to-Text test seems frozen, how to stop? - speech-to-text

A custom Azure Speech-to-Text test seems to be frozen, cannot be stopped/deleted.
I started a trial with Azure Cognitive Services, custom speech-to-tekst according https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-custom-speech-test-data. I succesfully uploaded some .wav files and a UTF-8 BOM encoded text file with one word/utterance per line. Next I created a test project and selected v4.2 unified and V3.0 universal (LM Adapt) as models and started the processing. The test type is inspection and it's status is processing, but that is now for 5 whole days.
I cannot interrupt or delete the test (error message: Delete test failed. Delete 'xxx test1' failed. Error message: The accuracy test did not complete yet.
I seems to be the same issue as this one: Microsoft Cognitive services - Speech customization testing processing seems freezed
Any suggestions on 1) how to stop/delete the test, 2) to get the test finished correctly?

A new release of the Azure Cognitive services speech portal resolved both my issues.

Related

Deploying an Azure Function from VS Code - Succesfull but not visible in the Portal

I created a function and I am trying to deploy it from VS Code by clicking the Deploy to Function App.... The Deployment runs successfully based on the output log - Deployment successful but then when I go to the portal, the function is not listed under Functions.
What shall I do and what is the problem here?
When I debug in VS Code, I get this: No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
Unfortunatly I would not know if those steps don't work for uploading. The deployment finishes, and every single time it becomes visible in my portal. Uh, maybe there is a slight difference. The app service itself is pre-created via terraform. Just the uploading of the code I do via VSC.
As far as deletion goes:
Open the resource group, in the list lookup the App Service. Select the checkbox in front of it. Delete in the top nav bar of that pane.
Trying to delete it any other way will indeed give you the "Not found" error.
I've had the same 'issue', in my case it turns out that the issue was a bad entry in the requirements.txt
I had an incorrect line with 'io' and when it was present despite the deployment appearing to complete successfully in VS code, the function was not updated if it was previously deployed or not deployed if it wasn't resulting in the same 'no results' in the functions list.
Having other requirements such as 'numpy' or 'scipy' worked just fine.
It's an old thread but maybe it'll be helpful to whoever gets here in the future.
Even as of now, some changes I make in VS Code seem to take time to be immediately visible on the portal. I had a similar issue with resources, i.e. creating a resource from VS Code wouldn't make it immediately visible on Azure Portal. You can always go to Functions on the portal and click Refresh. Also try going to Advanced Tools, then Kudu and checking if your function can be found there.
One word of advice: if you publish your functions from VS Code, then work on that resource only from VS Code. You will find it reiterated all over Azure Functions docs that:
Publishing to an existing function app overwrites the content of that
app in Azure.

Azure function - "Did not find any initialized language workers"

I'm running an Azure function in Azure, the function gets triggered by a file being uploaded to blob storage container. The function detects the new blob (file) but then outputs the following message - Did not find any initialized language workers.
Setup:
Azure function using Python 3.6.8
Running on linux machine
Built and deployed using azure devops (for ci/cd capability)
Blob Trigger Function
I have run the code locally using the same blob storage container, the same configuration values and the local instance of the azure function works as expected.
The functions core purpose is to read in the .xml file uploaded into blob storage container and parse and transform the data in the xml to be stored as Json in cosmos db.
I expect the process to complete like on my local instance with my documents in cosmos db, but it looks like the function doesn't actually get to process anything due to the following error:
Did not find any initialized language workers
Troy Witthoeft's answer was almost certainly the right one at the time the question was asked, but this error message is very general. I've had this error recently on runtime 3.0.14287.0. I saw the error on many attempted invocations over about 1 hour, but before and after that everything worked fine with no intervention.
I worked with an Azure support engineer who gave some pointers that could be generally useful:
Python versions: if you have function runtime version ~3 set under the Configuration blade, then the platform may choose any of python versions 3.6, 3.7, or 3.8 to run your code. So you should test your code against all three of these versions. Or, as per that link's suggestion, create the function app using the --runtime-version switch to specify a specific python version.
Consumption plans: this error may be related to a consumption-priced app having idled off and taking a little longer to warm back up again. This depends, of course, on the usage pattern of the app. (I infer (but the Engineer didn't say this) that perhaps if the Azure datacenter my app is in happens to be quite busy when my app wants to restart, it might just have to wait for some resources to become available.). You could address this either by paying for an always-on function app, or by rigging some kind of heartbeat process to stop the app idling for too long. (Easiest with a HTTP trigger: probably just ping it?)
The Engineer was able to see a lower-level error message generated by the Azure platform, that wasn't available to me in Application Insights: ARM authentication token validation failed. This was raised in Microsoft.Azure.WebJobs.Script.WebHost.Security.Authentication.ArmAuthenticationHandler.HandleAuthenticate() at /src/azure-functions-host/src/WebJobs.Script.WebHost/Security/Authentication/Arm/ArmAuthenticationHandler.cs. There was a long stack trace with innermost exception being: System.Security.Cryptography.CryptographicException : Padding is invalid and cannot be removed.. Neither of us were able to make complete sense of this and I'm not clear whether the responsibility for this error lies within the HandleAuthenticate() call, or outside (invalid input token from... where?).
The last of these points may be some obscure bug within the Azure Functions Host codebase, or some other platform problem, or totally misleading and unrelated.
Same error but different technology, environment, and root cause.
Technology Net 5, target system windows. In my case, I was using dependency injection to add a few services, I was getting one parameter from the environment variables inside the .ConfigureServices() section, but when I deployed I forget to add the variable to the application settings in azure, because of that I was getting this weird error.
This is due to SDK version, I would suggest to deploy fresh function App in Azure and deploy your code there. 2 things to check :
Make sure your local function app SDK version matches with Azure function app.
Check python version both side.
This error is most likely github issue #4384. This bug was identified, and a fix was released mid-june 2020. Apps running on version 3.0.14063 or greater should be fine. List of versions is here.
You can use azure application insights to check your version. KUSTO Query the logs. The exception table, azure SDK column has your version.
If you are on the dedicated App Service plan, you may be able to "pull" the latest version from Microsoft by deleting and redeploying your app. If you are on consumption plan, then you may need to wait for this bugfix to rollout to all servers.
Took me a while to find the cause as well, but it was related to me installing a version of protobuf explicitly which conflicted with what was used by Azure Functions. Fair, there was a warning about that in the docs. How I found it: went to <your app name>.scm.azurewebsites.net/api/logstream and looked for any errors I could find.

Microsoft Cognitive services - Speech customization testing processing seems freezed

I upload sucessfully data to speech customization (wav audio+ txt transcription) for just one audio in a zip file according to Microsoft docs: https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-custom-speech-test-data. When i click to add a test i choose data and it's taking an eternity to process results and never stops processing. My audio is in pt-BR model. Any idea?
I cannot interrupt or deleting tests while it's processing
There is currently an issue in the service, so it doesn't set the status of a test to failed, after we experienced an internal error. A fix for that will be deployed this or next week. After that you should see the test going to a failed state and you can delete it.
Afterwards you should be able to create an accuracy test with the same data and models and it should succeed.

IBM Watson Tradeoff Analytics Back-end service is not available

I'm trying to integrate Watson Tradeoff Analytics service into my external project to SAP WEB IDE, so I have downloaded the following example:
github.com/dolevdotan/tradeoff-analytics-v2-vanilla-nodejs
Inside the Service on Bluemix I got the following credentials
generated
I put this credentials inside app.js
I'm running my service and it's good at the beggining, but in case of pressed button "Help Me Decide" and the following error appears:
Oops! Something went wrong
Back-end service is not available. Please try again later.
The most interesting is now! If I run the following link with deployed official TradeOff Example:
tradeoff-analytics-v2-demo.mybluemix.net/#cars
My own service will work as expected after that, without any errors. But I need to run this link first. Why so strange? What shall I do to correct it and avoid?
Thanks!

Azure Background Service

We have a background worker role that runs a few services for us. A communication service and a notification service. when i run my code locally both these services run and Im able to write to a log and all seems fine. When I point my config files at production connections strings and other production variables and run my local code against it - it all works as expected. When I push the code to Azure my service doesnt seem to run, I no longer see any data being written to my log table.
We have another solution where we do the same thing (communication and notification service) and this works as expected in this other solution.
I have compared all references in our working solution to those references in our non-working solution - all needed dlls have been set to copyLocal=true - We've tried a variety of different tools to see what the issue is but we have not been able to pin point the exact issue.
EDITED:
This is a simple process in the background
I write to the log using a built logging utility - this log table exists on our sql azure database
We verify that this is working - on account that the service spins up with the azure utility and eventually says 'Ready' - in past occurances - we'd get the error messages or it would just continue to spin.
Our service is started up by the WorkerRole.cs file - Run / OnStart.

Resources