Closed ThiBorges closed 3 years ago
Can you please share your values.yaml file for chart?
Also, are you bringing up a container for Mysql 8 or using database instance from GCP?
@amoghsa,
I'm using Database instance from GCP
Here is my values.yaml content
nameOverride: "" fullnameOverride: ""
license: value: accept: false
image: registry: docker.io repository: caapim/gateway tag: 10.0.00 pullPolicy: Always
secretName: credentials: username: password: email:
replicas: 1
updateStrategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0
clusterHostname: my.localdomain
clusterPassword: 7layer
management: enabled: true
restman: enabled: false username: admin password: 7layer
database:
enabled: true
create: false jdbcURL: jdbc:mysql://x.x.x.x:3306/ssg?allowPublicKeyRetrieval=true
username: gateway password: 7layer name: des-ssg-pix
serviceMetrics: enabled: false
external: false influxDbUrl: http://influxdb:8086 influxDbDatabase: serviceMetricsDb tags: env=dev
config: heapSize: "2g" javaArgs:
tls: customKey: enabled: false
cat demo-key.p12 | base64 --wrap=0
customDefaultSslKey: enabled: false key: pass:
installSolutionKits: enabled: false restmanPort: 8443 restmanReadyWait: 150s solutionKits:
additionalEnv: key1: value
additionalSecret: key1: value
bundle: enabled: false path: "bundles/*.bundle"
service:
type: ClusterIP
ports:
annotations: { cloud.google.com/load-balancer-type: "Internal" }
ingress:
enabled: false class: nginx
annotations:
hostname:
port: https
additionalHostnamesAndPorts:
tls: false secretName:
livenessProbe: enabled: true type: command command: /opt/docker/rc.d/diagnostic/health_check.sh
initialDelaySeconds: 40 timeoutSeconds: 1 periodSeconds: 15 successThreshold: 1 failureThreshold: 15
readinessProbe: enabled: true type: command command: /opt/docker/rc.d/diagnostic/health_check.sh
initialDelaySeconds: 40 timeoutSeconds: 1 periodSeconds: 15 successThreshold: 1 failureThreshold: 15
resources:
limits: {}
requests: {}
serviceAccount:
create: true
mysql: imageTag: "8" mysqlUser: gateway mysqlPassword: mypassword mysqlDatabase: ssg
persistence: enabled: true size: 8Gi
configurationFiles: my.cnf: |- [mysqld] character-set-server = utf8 innodb_log_buffer_size = 32M innodb_log_file_size = 80M max_allowed_packet = 8M default-authentication-plugin=mysql_native_password log-bin-trust-function-creators=1
hazelcast:
enabled: false external: false
image: tag: "3.12.8" cluster: memberCount: 2 mancenter: enabled: false hazelcast: yaml: hazelcast: network: join: multicast: enabled: false kubernetes: enabled: true service-name: ${serviceName} namespace: ${namespace} resolve-not-ready-addresses: true
influxdb: enabled: false service: port: 8086 persistence: enabled: true
size: 8Gi
env:
grafana: enabled: false
admin: user: admin password: password dashboardsProvider: enabled: true customDashboard: value: dashboardsConfigMaps:
@ThiBorges - You are not accepting license agreements which is causing failure. You need to change accept to true in license section as shown below: license: value: accept: true
Or you can run this command:
helm install my-ssg --set-file "license.value=path/to/license.xml" --set "license.accept=true" layer7/gateway
I've used the command accepting the license as have on the documentation
helm upgrade --install -f values.yaml apim -n des-apim-pix --set-file "license.value=license.xml" --set "license.accept=true" layer7/gateway
I think is other thing related to GCP Mysql causing this error
@ThiBorges - Can you please create a rally ticket for this one? It would be safer to share details there. And someone from support can assist you. Please include steps and details for reproducing this issue with any logs and screenshots those are available.
@amoghsa I already have a case - 32786881
I've provided all details to support but I need a help to move a little be more faster
Thanks for the reply :-)
Regards
@ThiBorges - I was able to recreate the issue by creating the ssg database with a utf8mb4 Character Set.
Could you confirm that the ssg database has the following configuration?
@Gazza7205,
Yes my DB have this configuration
Thanks @ThiBorges - I've just taken a closer look at your values.yaml.
database:
enabled: true
create: false
jdbcURL: jdbc:mysql://x.x.x.x:3306/ssg?allowPublicKeyRetrieval=true
username: gateway
password: 7layer
name: des-ssg-pix
database.jdbcURL database should match database.name and what you have on Cloud SQL.
database:
enabled: true
create: false
jdbcURL: jdbc:mysql://x.x.x.x:3306/des_ssg_pix?allowPublicKeyRetrieval=true
username: gateway
password: 7layer
name: des_ssg_pix
@Gazza7205 you are right
My fault
After change the link my deployment works lika a charm
Thanks a lot for the help and sorry for my mistake
I will send this informations to the case I've opened asking to close
Regards
Hello !
I'm receving the error below when I try deploy the Gateway Chart
logs apim-gateway-796f98fbd-q4x2r -f Using MySQL database SSG_DATABASE_WAIT_TIMEOUT set to 300 seconds. SSG_JVM_HEAP will be 2g SSG_CLUSTER_HOST will be my.localdomain SSG_GC_ARGS will be -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=20M -Xloggc:/opt/SecureSpan/Gateway/node/default/var/logs/ssg_gc.log -XX:+PrintTenuringDistribution Waiting for one of the databases to come up... Liquibase 'status' Successful Unexpected error running Liquibase: Error executing SQL CREATE TABLE ssg.resource_entry (goid BINARY(16) NOT NULL, version INT(10) NOT NULL, description VARCHAR(2048) NULL, uri VARCHAR(4096) NOT NULL, uri_hash VARCHAR(128) NOT NULL, type VARCHAR(32) NOT NULL, content_type VARCHAR(1024) NOT NULL, content MEDIUMTEXT NOT NULL, resource_key1 VARCHAR(4096) NULL, resource_key2 VARCHAR(4096) NULL, resource_key3 VARCHAR(4096) NULL, security_zone_goid BINARY(16) NULL): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
ERROR - Failed to create or update the Gateway's database
I have MYSQL 8 on GCP with the flags below
Is a blank DB
Regards