Sentry install fails with Application labels aren't unique, duplicate: auth0

Can someone please tell me what is going wrong here ?

I have two issues while running sentry.

▶ Bootstrapping and migrating Snuba ...
Creating sentry_onpremise_zookeeper_1 ... 
Creating sentry_onpremise_redis_1     ... 
Creating sentry_onpremise_clickhouse_1 ... 
Creating sentry_onpremise_clickhouse_1 ... done
Creating sentry_onpremise_zookeeper_1  ... done
Creating sentry_onpremise_kafka_1      ... 
Creating sentry_onpremise_redis_1      ... done
Creating sentry_onpremise_kafka_1      ... done
Creating sentry_onpremise_snuba-api_run ... 
Creating sentry_onpremise_snuba-api_run ... done
+ '[' b = - ']'
+ snuba bootstrap --help
+ set -- snuba bootstrap --no-migrate --force
+ set gosu snuba snuba bootstrap --no-migrate --force
+ exec gosu snuba snuba bootstrap --no-migrate --force
%3|1613574198.151|FAIL|rdkafka#producer-1| [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Connect to ipv4#172.31.0.5:9092 failed: Connection refused (after 3ms in state CONNECT)
%3|1613574199.148|FAIL|rdkafka#producer-1| [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Connect to ipv4#172.31.0.5:9092 failed: Connection refused (after 0ms in state CONNECT, 1 identical error(s) suppressed)
2021-02-17 15:03:19,149 Connection to Kafka failed (attempt 0)
Traceback (most recent call last):
  File "/usr/src/snuba/snuba/cli/bootstrap.py", line 55, in bootstrap
    client.list_topics(timeout=1)
cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
%3|1613574200.155|FAIL|rdkafka#producer-2| [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Connect to ipv4#172.31.0.5:9092 failed: Connection refused (after 2ms in state CONNECT)
%3|1613574201.153|FAIL|rdkafka#producer-2| [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Connect to ipv4#172.31.0.5:9092 failed: Connection refused (after 0ms in state CONNECT, 1 identical error(s) suppressed)
2021-02-17 15:03:21,157 Connection to Kafka failed (attempt 1)
Traceback (most recent call last):
  File "/usr/src/snuba/snuba/cli/bootstrap.py", line 55, in bootstrap
    client.list_topics(timeout=1)
cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
2021-02-17 15:03:22,658 Topic cdc created
2021-02-17 15:03:22,659 Topic events created
2021-02-17 15:03:22,659 Topic snuba-commit-log created
2021-02-17 15:03:22,659 Topic event-replacements created
2021-02-17 15:03:22,659 Topic outcomes created
2021-02-17 15:03:22,660 Topic ingest-sessions created
Creating sentry_onpremise_snuba-api_run ... 
Creating sentry_onpremise_snuba-api_run ... done
+ '[' m = - ']'
+ snuba migrations --help
+ set -- snuba migrations migrate --force
+ set gosu snuba snuba migrations migrate --force
+ exec gosu snuba snuba migrations migrate --force
Finished running migrations
▶ Setting up database ...
Creating sentry_onpremise_memcached_1 ... 
Creating sentry_onpremise_postgres_1  ... 
Creating sentry_onpremise_smtp_1      ... 
Creating sentry_onpremise_symbolicator_1 ... 
Creating sentry_onpremise_snuba-consumer_1 ... 
Creating sentry_onpremise_snuba-replacer_1 ... 
Creating sentry_onpremise_snuba-api_1      ... 
Creating sentry_onpremise_snuba-transactions-consumer_1 ... 
Creating sentry_onpremise_snuba-sessions-consumer_1     ... 
Creating sentry_onpremise_snuba-outcomes-consumer_1     ... 
Creating sentry_onpremise_memcached_1                   ... done
Creating sentry_onpremise_snuba-outcomes-consumer_1     ... done
Creating sentry_onpremise_postgres_1                    ... done
Creating sentry_onpremise_snuba-transactions-consumer_1 ... done
Creating sentry_onpremise_symbolicator_1                ... done
Creating sentry_onpremise_snuba-consumer_1              ... done
Creating sentry_onpremise_smtp_1                        ... done
Creating sentry_onpremise_snuba-api_1                   ... done
Creating sentry_onpremise_snuba-replacer_1              ... done
Creating sentry_onpremise_snuba-sessions-consumer_1     ... done
Creating sentry_onpremise_web_run                       ... 
Creating sentry_onpremise_web_run                       ... done
Installing additional dependencies...

Traceback (most recent call last):
  File "/usr/local/bin/sentry", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/sentry/runner/__init__.py", line 164, in main
    cli(prog_name=get_prog(), obj={}, max_content_width=100)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/sentry/runner/decorators.py", line 27, in inner
    configure()
  File "/usr/local/lib/python3.6/site-packages/sentry/runner/__init__.py", line 127, in configure
    configure(ctx, py, yaml, skip_service_validation)
  File "/usr/local/lib/python3.6/site-packages/sentry/runner/settings.py", line 156, in configure
    skip_service_validation=skip_service_validation,
  File "/usr/local/lib/python3.6/site-packages/sentry/runner/initializer.py", line 349, in initialize_app
    django.setup()
  File "/usr/local/lib/python3.6/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.6/site-packages/django/apps/registry.py", line 89, in populate
    "duplicates: %s" % app_config.label)
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: auth0
An error occurred, caught SIGERR on line 332
Cleaning up...

Thanks.

I don’t understand the first issue, everything seems fine?

For the second one, you seem to have two separate auth0 plugins installed and they are now conflicting.

I will clean up and start from scratch ans see if I can reproduce it.

Tşkrlr saolun