Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-25700

Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)

    XMLWordPrintable

    Details

      Description

      neither with open.paas.redhat.com
      so only when using the CDK.

      it seems to be due to the fact that the user in the pod are not the same.

      Jeff said:

      For SpringBoot deployments, the application file is called a fat jar and it placed in the /deployments folder (images are upstream fabric8/s2i-java or imagestream redhat-openjdk18-openshift). In order to get live update the file is then unzipped to the /deployments folder leaded to new sub folders BOOT-INF and META-INF
      The user permissions on those folders are the following:
      /deployments: writable by user jboss and group root
      /deployments/BOOT-INF: writable by user jboss readable only by group root
      /deployments/META-INF: writable by user jboss readable only by group root

      The rsync process with create some sub folders under /deployments/BOOT-INF. The problem that we have is that the user that is assigned for the rsync operation (or when you open a terminal in the OpenShift console) is not jboss (as opposed to Minishift/CDK) and thus we have permissions errors during the rsync operation.

        Attachments

        1. permission-error-rsync-fc26.png
          79 kB
          André Dietisheim
        2. server-adapter-rebublish-state.png
          26 kB
          André Dietisheim

          Issue Links

            Activity

              People

              Assignee:
              adietish André Dietisheim
              Reporter:
              aurelien.pupier Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: