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

unable to retrieve the schemes on on UI #2156

Open
karthikvijayendra opened this issue Jan 2, 2024 · 8 comments
Open

unable to retrieve the schemes on on UI #2156

karthikvijayendra opened this issue Jan 2, 2024 · 8 comments
Labels
Backend Backend tasks

Comments

@karthikvijayendra
Copy link

Hi @muralibasani/Team,

I'm trying to synchronize schemas associated with topics. From the backend logs I could see that klaw is able to sync the schems from confluent platfrom. However, when i try to see the same in UI i get below error and ui keeps loading and never retrives schema.

{"timestamp":"2024-01-02T07:28:24.175+00:00","status":500,"error":"Internal Server Error","path":"/getSchemaOfTopic"}

image

Attached are the debug logs. Request you to suggest on the issue.

Regards,
Karthik[
schema error debug logs.txt
](url)

@muralibasani
Copy link
Contributor

Hey @karthikvijayendra , thank you for raising this issue. We will take a look and come back asap with a fix

@muralibasani muralibasani added the Backend Backend tasks label Jan 2, 2024
@aindriu-aiven
Copy link
Contributor

Hey @karthikvijayendra I was able to recreate this issue,

The root cause is that the tenantModel is not configured entirely. e.g. see below where the requestTopicsEnvironmentList is null

  "tenantModel" : {
    "tenantName" : "default",
    "baseSyncEnvironment" : "DEV",
    "orderOfTopicPromotionEnvsList" : [ "DEV", "TEST" ],
    "requestTopicsEnvironmentsList" : null
  }
}

This is a correctly configured one

{
  "tenantModel" : {
    "tenantName" : "default",
    "baseSyncEnvironment" : "DEV",
    "orderOfTopicPromotionEnvsList" : [ "DEV", "TEST" ],
    "requestTopicsEnvironmentsList" : [ "DEV" ],
    "baseSyncKafkaConnectCluster" : "DEV",
    "orderOfConnectorsPromotionEnvsList" : [ "DEV" ],
    "requestConnectorsEnvironmentsList" : [ "DEV" ]
  }
}

Please see the documentation on the tenant config for more details
https://www.klaw-project.io/docs/HowTo/kafka-cluster-migration/tenant-config

You can configure the above configurations under Dashboard -> Settings with a SUPERADMIN role or a user with the UPDATE_SERVERCONFIG permission.

Thanks,
Aindriú

@karthikvijayendra
Copy link
Author

karthikvijayendra commented Jan 2, 2024 via email

@muralibasani
Copy link
Contributor

@karthikvijayendra glad it worked. Thanks for mentioning.

Regarding moving to mysql or pg, just update the config ex like below (this example already exists in the repo and also for postgres)

#spring.datasource.url=jdbc:mysql://localhost:3306/kafkametadbpro?autoReconnect=true&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&cachePrepStmts=true&useServerPrepStmts=true&rewriteBatchedStatements=true&verifyServerCertificate=false&useSSL=false&requireSSL=false&allowPublicKeyRetrieval=true
#spring.datasource.username=kafkauser
#spring.datasource.password=kafkauser123
#spring.datasource.driver.class=com.mysql.cj.jdbc.Driver
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
#spring.datasource.platform=mysql

@aindriu-aiven
Copy link
Contributor

@karthikvijayendra just to add to what @muralibasani has mentioned there is an import export data function detailed here https://www.klaw-project.io/docs/HowTo/exportimport/

But I think it would be as quick and probably a bit easier to simply setup as you did your config for Klaw.

@karthikvijayendra
Copy link
Author

karthikvijayendra commented Jan 5, 2024 via email

@aindriu-aiven
Copy link
Contributor

Hey @karthikvijayendra thats interesting, you can build without changing to mysql however if you wish and use external configuration to point to your mysql server after you deploy it, you can do this through environment variables or through specifying an external application.properties, or by creating a new application.properties and using spring profiles to use the mysql version in DEV,TEST,PRD etc.

What method for deployment are you using?

However when I get a chance I will check the mysql build as I actually tested this back on 2.5.1 and at that time it was good so it would be good to know and fix any potential issue that was added in since then

@aindriu-aiven
Copy link
Contributor

Hey @karthikvijayendra did you have any success?

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

No branches or pull requests

3 participants