[
https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi...
]
Andre Dietisheim edited comment on JBIDE-25700 at 4/16/18 9:19 AM:
-------------------------------------------------------------------
The error that we currently experience occurs when rsync tries to change the ownership of
folders
(see
[
comment-13560988|https://issues.jboss.org/browse/JBIDE-25700?focusedComme...]):
{code}
rsync: chgrp "/deployments/BOOT-INF/classes/org" failed: Operation not permitted
(1)
{code}
When running "oc rsync" we use the --no-perms flag which prevents rsync from
setting permissions but wont affect file ownership. According to the [rsync
man-page|https://linux.die.net/man/1/rsync] in order to have rsync not applying ownership
one needs to add --no-o and --no-g. Unfortunately oc wont allow you to provide these.
I'll there file an enhancement request to oc for that.
was (Author: adietish):
The error that we currently experience occurs when rsync tries to change the ownership of
folders:
https://issues.jboss.org/browse/JBIDE-25700?focusedCommentId=13560988&...
{code}
rsync: chgrp "/deployments/BOOT-INF/classes/org" failed: Operation not permitted
(1)
{code}
When running "oc rsync" we use the *--no-perms* flag which prevents rsync from
setting permissions but wont affect file ownership. According to the [rsync
man-page|https://linux.die.net/man/1/rsync] in order to have rsync not applying ownership
one needs to add *--no-o* and *--no-g*. Unfortunately oc wont allow you to provide these.
I'll there file an enhancement request to oc for that.
Server adapter: hot deploy of Spring Boot errors with permission
issues when rsyncing local->pod (OS Online and CDK)
--------------------------------------------------------------------------------------------------------------------
Key: JBIDE-25700
URL:
https://issues.jboss.org/browse/JBIDE-25700
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.5.2.Final
Reporter: Aurélien Pupier
Assignee: Andre Dietisheim
Labels: server_adapter, springboot
Fix For: 4.5.x
Attachments: permission-error-rsync-fc26.png, server-adapter-rebublish-state.png
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:
{quote}
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.
{quote}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)