Discovery Configuration issue

Hi All,
I am facing this issue when want to add partners in discovery to stat configure it for running a command
my command
~$ tutor local run discovery ./manage.py create_or_update_partner
I wanted to run this command
refresh_course_metadata

docker-compose -f /home/manoj/.local/share/tutor/env/local/docker-compose.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local run --rm discovery ./manage.py create_or_update_partner
Starting tutor_local_elasticsearch-permissions_1 … done
Starting tutor_local_redis-permissions_1 … done
Starting tutor_local_mongodb-permissions_1 … done
Starting tutor_local_minio_1 … done
Starting tutor_local_lms-permissions_1 … done
Starting tutor_local_smtp_1 … done
Starting tutor_local_mysql_1 … done
Starting tutor_local_redis_1 … done
Starting tutor_local_elasticsearch_1 … done
Starting tutor_local_mongodb_1 … done
Starting tutor_local_forum_1 … done
Starting tutor_local_lms_1 … done
usage: manage.py create_or_update_partner [-h] [–site-id SITE_ID] --site-domain SITE_DOMAIN --code
PARTNER_CODE --name PARTNER_NAME [–courses-api-url COURSES_API_URL]
[–lms-coursemode-api-url LMS_COURSEMODE_API_URL]
[–ecommerce-api-url ECOMMERCE_API_URL]
[–organizations-api-url ORGANIZATIONS_API_URL]
[–programs-api-url PROGRAMS_API_URL] [–lms-url LMS_URL]
[–studio-url STUDIO_URL] [–publisher-url PUBLISHER_URL]
[–marketing-site-api-url MARKETING_SITE_API_URL]
[–marketing-site-url-root MARKETING_SITE_URL_ROOT]
[–marketing-site-api-username MARKETING_SITE_API_USERNAME]
[–marketing-site-api-password MARKETING_SITE_API_PASSWORD]
[–version] [-v {0,1,2,3}] [–settings SETTINGS]
[–pythonpath PYTHONPATH] [–traceback] [–no-color] [–force-color]
[–skip-checks]
manage.py create_or_update_partner: error: the following arguments are required: --site-domain, --code, --name
Error: Command failed with status 2: docker-compose -f /home/manoj/.local/share/tutor/env/local/docker-compose.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local run --rm discovery ./manage.py create_or_update_partner

i think your discovery plugin is not enabled you can check by running

tutor plugins list and from there see if discovery is enabled or disabled

after that you can also add partner from discovery admin here is the url
http://discovery.local.overhang.io:8381/admin/core/partner/

i have also a superuser in admin
its is showing enabled but again it is showing

  • First
    can you please show what is output of tutor plugin list

  • second
    error says you need to provide --site-domain, --code and --name while running the command

  • third
    tutor dev status run the command and check if discovery is up or not

Hi Smit,

tutor local run discovery ./manage.py create_or_update_partner --site-discovery.xxxx.com, --code-edx, --name-kup

from where i get this --code or what should be the value because i am getting same error

manage.py create_or_update_partner: error: the following arguments are required: --site-domain, --code, --name
Error: Command failed with status 2: docker-compose -f /home/manoj/.local/share/tutor/env/local/docker-compose.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local run --rm discovery ./manage.py create_or_update_partner --site-discovery.xxxx.com, --code-edx, --name-kup

tutor local run discovery ./manage.py create_or_update_partner --site=discovery.xxxx.com, --code=edx, --name=kup

you forget to replace -(dash) with =(equal to)