Git Product home page Git Product logo

Comments (5)

sumitmalik51 avatar sumitmalik51 commented on May 12, 2024 1

Hi @sadukie, Could you please check on this?

from mcw-predictive-maintenance-for-remote-field-devices.

Divyasri199 avatar Divyasri199 commented on May 12, 2024 1

Hi @sadukie ,
I tried deleting the scrolling service from ML endpoint and tried rerunning the cells and it worked for me.
I am closing the issue. Thanks for your help.

from mcw-predictive-maintenance-for-remote-field-devices.

sadukie avatar sadukie commented on May 12, 2024 1

@Divyasri199 Thanks! This helps a lot. Looking at the very bottom, this is the issue:

"Service scoringservice with the same name already exists, please use a different service name or delete the existing service

Something else to note - when I ran through this, it took almost a full 10 minutes for Cmd 60 to run.

from mcw-predictive-maintenance-for-remote-field-devices.

sadukie avatar sadukie commented on May 12, 2024

@Divyasri199 @sumitmalik51 Can I get more details on the error message with the WebserviceException? You might need to scroll to the bottom of that cell's output to get more clear messaging on what's going on.

That particular cell - Cmd 60 - connects to the Azure Machine Learning Workspace, which is set up as part of the Before the hands-on lab setup guide, Task 6. Since it relies on user input, make sure you check Cmd 56 and have the values entered correctly.

  • subscription_id should be your Azure subscription ID.
  • resource_group should be the resource group for your Machine Learning Workspace.
  • workspace_name should be the name of your Machine Learning Workspace.
  • workspace_region is set to eastus.

from mcw-predictive-maintenance-for-remote-field-devices.

Divyasri199 avatar Divyasri199 commented on May 12, 2024

Hi @sadukie,
Please find the details of the error message.

image

image

WebserviceException Traceback (most recent call last)
in
1 webservice = deployModelAsWebService(ws,
2 model_paths=['models/anomaly_score.h5', 'models/scaler.pkl'],
----> 3 model_names=['anomaly-detection-model', 'anomaly-detection-scaler'])
4 print(webservice.state)

in deployModelAsWebService(ws, model_paths, model_names, scoring_script_filename, conda_packages, conda_file, runtime, cpu_cores, memory_gb, tags, description, service_name)
53 models=registered_models,
54 inference_config=inference_config,
---> 55 deployment_config=aci_config)
56 webservice.wait_for_deployment(show_output=True)
57

/local_disk0/.ephemeral_nfs/envs/pythonEnv-c861b684-859d-4057-86af-6d8023d0f221/lib/python3.7/site-packages/azureml/core/model.py in deploy(workspace, name, models, inference_config, deployment_config, deployment_target, overwrite, show_output)
1668 if use_env_path:
1669 return Model._deploy_with_environment(workspace, name, models, inference_config, deployment_config,
-> 1670 deployment_target, overwrite, show_output)
1671
1672 # ContainerImage-based webservice.

/local_disk0/.ephemeral_nfs/envs/pythonEnv-c861b684-859d-4057-86af-6d8023d0f221/lib/python3.7/site-packages/azureml/core/model.py in _deploy_with_environment(workspace, name, models, inference_config, deployment_config, deployment_target, overwrite, show_output)
1876 return Model._deploy_with_environment_image_request(workspace, name, environment_image_request,
1877 deployment_config, deployment_target, overwrite,
-> 1878 show_output)
1879
1880 @staticmethod

/local_disk0/.ephemeral_nfs/envs/pythonEnv-c861b684-859d-4057-86af-6d8023d0f221/lib/python3.7/site-packages/azureml/core/model.py in _deploy_with_environment_image_request(workspace, name, environment_image_request, deployment_config, deployment_target, overwrite, show_output)
1925
1926 return Webservice._deploy_webservice(workspace, name, webservice_payload, overwrite, webservice_class,
-> 1927 show_output)
1928
1929 def get_sas_urls(self):

/local_disk0/.ephemeral_nfs/envs/pythonEnv-c861b684-859d-4057-86af-6d8023d0f221/lib/python3.7/site-packages/azureml/core/webservice/webservice.py in _deploy_webservice(workspace, name, webservice_payload, overwrite, webservice_class, show_output)
825 """
826 # TODO Remove check_for_existing_webservice() later, this check has already included in common validation.
--> 827 Webservice.check_for_existing_webservice(workspace, name, overwrite)
828 Webservice._check_for_webservice(workspace, name, Webservice._get_deploy_compute_type(webservice_payload),
829 webservice_payload, SERVICE_REQUEST_OPERATION_CREATE)

/local_disk0/.ephemeral_nfs/envs/pythonEnv-c861b684-859d-4057-86af-6d8023d0f221/lib/python3.7/site-packages/azureml/core/webservice/webservice.py in check_for_existing_webservice(workspace, name, overwrite, request_func, check_func)
666 return Webservice._check_validate_error(content)
667
--> 668 Webservice._run_validate_framework(request_func, check_func)
669
670 @staticmethod

/local_disk0/.ephemeral_nfs/envs/pythonEnv-c861b684-859d-4057-86af-6d8023d0f221/lib/python3.7/site-packages/azureml/core/webservice/webservice.py in _run_validate_framework(request_func, check_func)
637 return
638
--> 639 raise WebserviceException(error)
640
641 @staticmethod

WebserviceException: WebserviceException:
Message: Service scoringservice with the same name already exists, please use a different service name or delete the existing service.
InnerException None
ErrorResponse
{
"error": {
"message": "Service scoringservice with the same name already exists, please use a different service name or delete the existing service."
}
}

from mcw-predictive-maintenance-for-remote-field-devices.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.