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

Eclipse che - 7.29.2 | Mysql based workspace not working #19989

Closed
andr-azeez opened this issue Jun 16, 2021 · 4 comments
Closed

Eclipse che - 7.29.2 | Mysql based workspace not working #19989

andr-azeez opened this issue Jun 16, 2021 · 4 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current sprint/next
Milestone

Comments

@andr-azeez
Copy link

Describe the bug

Mysql based sample projects are not running. Refer to the screenshot

Che version - 7.29.2

Steps to reproduce

Create any mysql based workspace

Screenshots

Screenshot from 2021-06-16 23-17-04

@andr-azeez andr-azeez added the kind/bug Outline of a bug - must adhere to the bug report template. label Jun 16, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jun 16, 2021
@dmytro-ndp dmytro-ndp added severity/P1 Has a major impact to usage or development of the system. team/plugins and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jun 17, 2021
@ericwill
Copy link
Contributor

Can you please share your devfile that you are using?

@andr-azeez
Copy link
Author

apiVersion: 1.0.0
metadata:
  name: java-mysql-custom-1k6cb
projects:
  - name: project-java-mysql-sample
    source:
      location: 'https://github.com/spadmins/project-java-mavan-sample.git'
      type: git
      branch: main
components:
  - id: redhat/java/latest
    preferences:
      java.server.launchMode: Standard
    type: chePlugin
  - mountSources: true
    endpoints:
      - name: 8080-tcp
        port: 8080
      - attributes:
          public: 'false'
        name: debug
        port: 5005
    memoryLimit: 1000Mi
    type: dockerimage
    volumes:
      - name: m2
        containerPath: /home/user/.m2
    image: 'quay.io/eclipse/che-java11-maven:7.29.2'
    alias: tools
    env:
      - value: ''
        name: MAVEN_CONFIG
      - value: '-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom -Duser.home=/home/user'
        name: JAVA_OPTS
      - value: $(JAVA_OPTS)
        name: MAVEN_OPTS
  - mountSources: true
    endpoints:
      - attributes:
          discoverable: 'true'
          public: 'false'
        name: db
        port: 3306
    command:
      - tail
    args:
      - '-f'
      - /dev/null
    memoryLimit: 300Mi
    type: dockerimage
    image: 'docker.io/library/mysql:5.7'
    alias: mysql
    env:
      - value: root
        name: MYSQL_USER
      - value: password
        name: MYSQL_PASSWORD
      - value: sample
        name: MYSQL_DATABASE
      - value: petclinic
        name: MYSQL_ROOT_PASSWORD
      - value: '$(echo ${0})\\$'
        name: PS1
commands:
  - name: maven build
    actions:
      - workdir: '${CHE_PROJECTS_ROOT}/project-java-mysql-sample'
        type: exec
        command: mvn clean install
        component: tools
  - name: Debug remote java application
    actions:
      - referenceContent: |
          {
          "version": "0.2.0",
          "configurations": [
            {
              "type": "java",
              "name": "Debug (Attach) - Remote",
              "request": "attach",
              "hostName": "localhost",
              "port": 5005
            }]
          }
        type: vscode-launch

@andr-azeez
Copy link
Author

I see know sample stacks are working properly, but mysql is not storing the data in pvc. ie when I restart the workspace all the created database is no more available.

@svor
Copy link
Contributor

svor commented Jul 28, 2021

closed by eclipse-che/che-devfile-registry#454

@svor svor closed this as completed Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current sprint/next
Projects
None yet
Development

No branches or pull requests

6 participants