Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on page /install/local-docker.html #2097

Closed
shablipapu opened this issue Jul 1, 2022 · 4 comments
Closed

Issue on page /install/local-docker.html #2097

shablipapu opened this issue Jul 1, 2022 · 4 comments

Comments

@shablipapu
Copy link

shablipapu commented Jul 1, 2022

Hi I'm having an issue with accessing the mlrun api using docker taht i was hoping someone could help with :)
I followed the instructions on this page:
https://docs.mlrun.org/en/latest/install/local-docker.html

ipconfig is:

Ethernet adapter vEthernet (WSL):

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::71c6:7baa:41c9:c682%28
   IPv4 Address. . . . . . . . . . . : 172.28.176.1
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Default Gateway . . . . . . . . . :

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::91dc:95e1:92f6:566e%20
   IPv4 Address. . . . . . . . . . . : 192.168.10.5
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.10.1

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : internal.towerswatson.com

start.bat is:

set HOST_IP=192.168.10.5
set SHARED_DIR=c:\mlrun-data
mkdir %SHARED_DIR%
docker-compose up

I can access everything (jupyter, nuclino, mlrun-ui) apart from the mlrun-api. when i try to access the following http://localhost:8080//api/v1/client-spec to set my api, I get the following error

{"detail":"Not Found"}

Does anyone know what I mighty be doing wrong?

@Tankilevitch
Copy link
Contributor

Hey @shablipapu, seems like you have one redundant / in the url you are trying to access.
Try http://localhost:8080/api/v1/client-spec, please let me know if it fixed your issue.

@shablipapu
Copy link
Author

Hi! Thanks that worked a treat! :)

Could I run one other quick questions past you if I may?

I also get this uvicorn error on starting the docker container. I take it this needs some kind of fix/resolution?

mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:05,941 [info] Creating initial data
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:05,941 [info] Initial data created
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:05,941 [info] Starting API server: {'port': 8080, 'debug': False}
mlrun_jupe-jupyter-1   | INFO:     Started server process [55]
mlrun_jupe-jupyter-1   | INFO  [uvicorn.error] Started server process [55]
mlrun_jupe-jupyter-1   | INFO:     Waiting for application startup.
mlrun_jupe-jupyter-1   | INFO  [uvicorn.error] Waiting for application startup.
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:06,462 [info] configuration dump: {'dumped_config': '_dask_kfp_image: \'\'\n_dbpath: \'\'\n_iguazio_api_url: \'\'\n_kfp_image: \'\'\napi_base_version: v1\nartifact_path: /home/jovyan/data/{{project}}\nbackground_color: \'#4EC64B\'\nbuilder_alpine_image: alpine:3.13.1\ndatastore:\n  async_source_mode: disabled\ndbpath: \'\'\ndefault_archive: \'\'\ndefault_base_image: mlrun/mlrun\ndefault_function_node_selector: e30=\ndefault_function_pod_resources:\n  limits:\n    cpu: null\n    gpu: null\n    memory: null\n  requests:\n    cpu: null\n    gpu: null\n    memory: null\ndefault_function_priority_class_name: \'\'\ndefault_nuclio_runtime: python:3.7\ndefault_project: default\ndefault_samples_path: https://s3.wasabisys.com/iguazio/\ndefault_tensorboard_logs_path: /User/.tensorboard/{{project}}\nenrich_artifact_path_with_workflow_id: true\nfeature_store:\n  data_prefixes:\n    default: v3io:///projects/{project}/FeatureStore/{name}/{kind}\n    nosql: v3io:///projects/{project}/FeatureStore/{name}/{kind}\n  default_job_image: mlrun/mlrun\n  default_targets: parquet,nosql\n  flush_interval: 300\nfunction_defaults:\n  image_by_kind:\n    dask: mlrun/ml-base\n    job: mlrun/mlrun\n    mpijob: mlrun/ml-models\n    nuclio: mlrun/mlrun\n    remote: mlrun/mlrun\n    serving: mlrun/mlrun\n  preemption_mode: prevent\nhttpdb:\n  api_url: \'\'\n  authentication:\n    basic:\n      password: \'\'\n      username: \'\'\n    bearer:\n      token: \'\'\n    iguazio:\n      session_verification_endpoint: data_sessions/verifications/app_service\n    mode: none\n  authorization:\n    mode: none\n    opa:\n      address: \'\'\n      log_level: 0\n      permission_filter_path: \'\'\n      permission_query_path: \'\'\n      request_timeout: 10\n  builder:\n    build_args: \'\'\n    docker_registry: \'\'\n    docker_registry_secret: \'\'\n    function_target_image_name_prefix_template: func-{project}-{name}\n    insecure_pull_registry_mode: auto\n    insecure_push_registry_mode: auto\n    kaniko_image: gcr.io/kaniko-project/executor:v1.6.0\n    kaniko_init_container_image: alpine:3.13.1\n    mlrun_version_specifier: \'\'\n    pip_ca_path: /etc/ssl/certs/mlrun/pip-ca-certificates.crt\n    pip_ca_secret_key: \'\'\n    pip_ca_secret_name: \'\'\n  data_volume: /home/jovyan/data\n  db:\n    backup:\n      file_format: db_backup_%Y%m%d%H%M.db\n      mode: enabled\n      rotation_limit: 3\n      use_rotation: true\n    commit_retry_interval: 3\n    commit_retry_timeout: 30\n    conflict_retry_interval: null\n    conflict_retry_timeout: 15\n    connections_pool_max_overflow: null\n    connections_pool_size: null\n    data_migrations_mode: enabled\n    database_migration_mode: enabled\n  db_type: sqldb\n  debug: false\n  dirpath: /home/jovyan/.mlrun/db\n  dsn: sqlite:////home/jovyan/data/mlrun.db?check_same_thread=false\n  jobs:\n    allow_local_run: false\n  logs_path: /home/jovyan/data/logs\n  max_workers: 64\n  nuclio:\n    add_templated_ingress_host_mode: never\n    default_service_type: NodePort\n  old_dsn: \'\'\n  password: \'\'\n  port: 8080\n  projects:\n    counters_cache_ttl: 2 minutes\n    followers: \'\'\n    iguazio_access_key: \'\'\n    iguazio_list_projects_default_page_size: 200\n    leader: mlrun\n    periodic_sync_interval: 1 minute\n    project_owners_cache_ttl: 30 seconds\n  real_path: \'\'\n  scheduling:\n    default_concurrency_limit: 1\n    min_allowed_interval: 10 minutes\n    scheduler_config: \'{"job_defaults": {"misfire_grace_time": null, "coalesce": true}}\'\n  state: online\n  token: \'\'\n  user: \'\'\n  v3io_api: \'\'\n  v3io_framesd: \'\'\nhub_url: https://raw.githubusercontent.com/mlrun/functions/{tag}/{name}/function.yaml\nignored_notebook_tags: \'\'\nigz_version: \'\'\nimages_registry: \'\'\nimages_tag: \'\'\nimages_to_enrich_registry: ^mlrun/*\nipython_widget: true\nkfp_ttl: \'14400\'\nkfp_url: \'\'\nlog_formatter: human\nlog_level: DEBUG\nmarketplace:\n  catalog_filename: catalog.json\n  default_source:\n    channel: master\n    create: true\n    description: MLRun global function hub\n    name: mlrun_global_hub\n    url: https://raw.githubusercontent.com/mlrun/marketplace\n  k8s_secrets_project_name: -marketplace-secrets\nmodel_endpoint_monitoring:\n  batch_processing_function_branch: master\n  drift_thresholds:\n    default:\n      drift_detected: 0.7\n      possible_drift: 0.5\n  parquet_batching_max_events: 10000\n  serving_stream_args:\n    retention_period_hours: 24\n    shard_count: 1\n  store_prefixes:\n    default: v3io:///users/pipelines/{project}/model-endpoints/{kind}\n    user_space: v3io:///projects/{project}/model-endpoints/{kind}\nmpijob_crd_version: \'\'\nnamespace: \'\'\nnest_asyncio_enabled: \'\'\nnuclio_dashboard_url: http://nuclio:8070\nnuclio_version: \'\'\npackage_path: mlrun\npreemptible_nodes:\n  node_selector: e30=\n  tolerations: W10=\nremote_host: \'\'\nruns_monitoring_interval: \'30\'\nruns_monitoring_missing_runtime_resources_debouncing_interval: null\nruntime_resources_deletion_grace_period: \'14400\'\nruntimes_cleanup_interval: \'300\'\nscrape_metrics: true\nsecret_stores:\n  azure_vault:\n    default_secret_name: null\n    secret_path: ~/.mlrun/azure_vault\n    url: https://{name}.vault.azure.net\n  kubernetes:\n    auth_secret_name: mlrun-auth-secrets.{hashed_access_key}\n    auto_add_project_secrets: true\n    env_variable_prefix: MLRUN_K8S_SECRET__\n    project_secret_name: mlrun-project-secrets-{project}\n  vault:\n    project_service_account_name: mlrun-vault-{project}\n    remote_url: \'\'\n    role: \'\'\n    token_path: ~/.mlrun/vault\n    token_ttl: 180000\n    url: \'\'\n    user_token: \'\'\nspark_app_image: \'\'\nspark_app_image_tag: \'\'\nspark_history_server_path: \'\'\nspark_operator_version: spark-2\nstorage:\n  auto_mount_params: \'\'\n  auto_mount_type: auto\nsubmit_timeout: \'180\'\nui:\n  projects_prefix: projects\n  url: http://localhost:8060\nui_url: \'\'\nv3io_api: http://v3io-webapi:8081\nv3io_framesd: http://framesd:8080\nvalid_function_priority_class_names: \'\'\nversion: \'\'\n', 'version': {'git_commit': '07c8d2c85cea6d9b9a4d102f674db094527fc856', 'version': '1.0.2'}}
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:06,462 [info] Creating sql db
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:06,462 [info] Moving api to online
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:06,462 [info] Initializing projects leader
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:06,462 [debug] Initialized leader and followers: {'leader': 'mlrun', 'followers': []}
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:06,477 [info] Starting scheduler
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:06,478 [info] Reloading schedules
mlrun_jupe-jupyter-1   | > 2022-07-04 09:04:06,478 [debug] Getting schedules from db: {'project': None, 'name': None, 'kind': None}
mlrun_jupe-jupyter-1   | INFO:     Application startup complete.
mlrun_jupe-jupyter-1   | INFO  [uvicorn.error] Application startup complete.
mlrun_jupe-jupyter-1   | INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
mlrun_jupe-jupyter-1   | INFO  [uvicorn.error] Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)

@Tankilevitch
Copy link
Contributor

@shablipapu I am glad to hear that helped :)
Regarding the uvicorn.error as you can see this is part of the INFO log level, this is indeed confusing but from what I see here, that is the uvicorn logger name. Are you experiencing any issues?

@shablipapu
Copy link
Author

Not with this aspect. Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants