[JBoss JIRA] (JBDS-4671) Errors updating from 11.1.0.GA to latest one
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBDS-4671?page=com.atlassian.jira.plugin.... ]
Nick Boldt updated JBDS-4671:
-----------------------------
Fix Version/s: 11.3.0.GA
(was: 12.0.0.GA)
> Errors updating from 11.1.0.GA to latest one
> --------------------------------------------
>
> Key: JBDS-4671
> URL: https://issues.jboss.org/browse/JBDS-4671
> Project: Red Hat JBoss Developer Studio (devstudio)
> Issue Type: Bug
> Components: installer, updatesite
> Affects Versions: 11.1.0.GA
> Environment: Red Hat JBoss Developer Studio 11.1.0.GA with early access activate.
> openjdk version "1.8.0_151" .OpenJDK Runtime Environment (build 1.8.0_151-b12)
> Operating System: Fedora 27
> Reporter: Roman Martin Gil
> Assignee: Jeff MAURY
> Fix For: 11.3.0.GA
>
> Attachments: 01-rhjbds-available-updates.png, 02-rhjbds-about-installation.png, 03-rhjbds-updating-error.png, ds11.2-update-sites.png, ds11.2-update-to-11.3.png, ds11.2.0.ga.png, rhjbds11-software-sites.png
>
>
> Since some days I am getting alerts to update my RHJBDS 11.1.0.GA to latest versions however I could not complete anyway.
> Everyday I get a update alert with latest versions but it seems that they are not ready to be applied.
> After some moments updating the environment I got the following error and stack trace:
> {code:java}
> An error occurred while collecting items to be installed
> session context was:(profile=devstudio, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
> No repository found containing: osgi.bundle,com.jboss.devstudio.core,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.capabilities,11.3.0.v20180124-1725
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.central,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.project.examples,11.3.0.v20180124-1725
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.usage.branding,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.capabilities.feature,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.feature,11.3.0.v20180125-1048
> No repository found containing: binary,com.jboss.devstudio.core.package.executable.gtk.linux.x86_64,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.rpm.feature,11.3.0.v20180125-1048
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.rpmdeps.feature,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.fuse.feature,11.3.0.v20180124-1725
> {code}
> I attached some screenshots with the process.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (JBDS-4671) Errors updating from 11.1.0.GA to latest one
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBDS-4671?page=com.atlassian.jira.plugin.... ]
Nick Boldt resolved JBDS-4671.
------------------------------
Assignee: Nick Boldt (was: Jeff MAURY)
Resolution: Done
> Errors updating from 11.1.0.GA to latest one
> --------------------------------------------
>
> Key: JBDS-4671
> URL: https://issues.jboss.org/browse/JBDS-4671
> Project: Red Hat JBoss Developer Studio (devstudio)
> Issue Type: Bug
> Components: installer, updatesite
> Affects Versions: 11.1.0.GA
> Environment: Red Hat JBoss Developer Studio 11.1.0.GA with early access activate.
> openjdk version "1.8.0_151" .OpenJDK Runtime Environment (build 1.8.0_151-b12)
> Operating System: Fedora 27
> Reporter: Roman Martin Gil
> Assignee: Nick Boldt
> Fix For: 11.3.0.GA
>
> Attachments: 01-rhjbds-available-updates.png, 02-rhjbds-about-installation.png, 03-rhjbds-updating-error.png, ds11.2-update-sites.png, ds11.2-update-to-11.3.png, ds11.2.0.ga.png, rhjbds11-software-sites.png
>
>
> Since some days I am getting alerts to update my RHJBDS 11.1.0.GA to latest versions however I could not complete anyway.
> Everyday I get a update alert with latest versions but it seems that they are not ready to be applied.
> After some moments updating the environment I got the following error and stack trace:
> {code:java}
> An error occurred while collecting items to be installed
> session context was:(profile=devstudio, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
> No repository found containing: osgi.bundle,com.jboss.devstudio.core,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.capabilities,11.3.0.v20180124-1725
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.central,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.project.examples,11.3.0.v20180124-1725
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.usage.branding,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.capabilities.feature,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.feature,11.3.0.v20180125-1048
> No repository found containing: binary,com.jboss.devstudio.core.package.executable.gtk.linux.x86_64,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.rpm.feature,11.3.0.v20180125-1048
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.rpmdeps.feature,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.fuse.feature,11.3.0.v20180124-1725
> {code}
> I attached some screenshots with the process.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (JBDS-4671) Errors updating from 11.1.0.GA to latest one
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBDS-4671?page=com.atlassian.jira.plugin.... ]
Nick Boldt commented on JBDS-4671:
----------------------------------
0. Fedora 27 w/ JDK 8u151
{code}
$➔ java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
[10:15:45] nboldt@fc27:~/devstudio
$➔ uname -a
Linux fc27.vm02 4.14.13-300.fc27.x86_64 #1 SMP Thu Jan 11 04:00:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
{code}
1. Install devstudio 11.2.0.GA release from installer jar via console.
{code}
echo 1 | java -jar devstudio-11.2.0.GA-v20180122-2025-B1884-installer-standalone.jar -console
{code}
2. start devstudio via the wayland launcher:
{code}
cd ~/devstudio/; ./devstudio-wayland{code}
3. Since it's not yet released, add the devstudio 11.3 staging site at http://devstudio.redhat.com/11/staging/updates/ via Help > Install > (paste into field) > Add > wait until loaded > cancel.
4. Check for updates ...
!ds11.2-update-to-11.3.png|thumbnail!
So I'm pretty confident this will work for updating from 11.2 to 11.3 when we go GA in a couple weeks.
> Errors updating from 11.1.0.GA to latest one
> --------------------------------------------
>
> Key: JBDS-4671
> URL: https://issues.jboss.org/browse/JBDS-4671
> Project: Red Hat JBoss Developer Studio (devstudio)
> Issue Type: Bug
> Components: installer, updatesite
> Affects Versions: 11.1.0.GA
> Environment: Red Hat JBoss Developer Studio 11.1.0.GA with early access activate.
> openjdk version "1.8.0_151" .OpenJDK Runtime Environment (build 1.8.0_151-b12)
> Operating System: Fedora 27
> Reporter: Roman Martin Gil
> Assignee: Jeff MAURY
> Fix For: 12.0.0.GA
>
> Attachments: 01-rhjbds-available-updates.png, 02-rhjbds-about-installation.png, 03-rhjbds-updating-error.png, ds11.2-update-sites.png, ds11.2-update-to-11.3.png, ds11.2.0.ga.png, rhjbds11-software-sites.png
>
>
> Since some days I am getting alerts to update my RHJBDS 11.1.0.GA to latest versions however I could not complete anyway.
> Everyday I get a update alert with latest versions but it seems that they are not ready to be applied.
> After some moments updating the environment I got the following error and stack trace:
> {code:java}
> An error occurred while collecting items to be installed
> session context was:(profile=devstudio, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
> No repository found containing: osgi.bundle,com.jboss.devstudio.core,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.capabilities,11.3.0.v20180124-1725
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.central,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.project.examples,11.3.0.v20180124-1725
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.usage.branding,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.capabilities.feature,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.feature,11.3.0.v20180125-1048
> No repository found containing: binary,com.jboss.devstudio.core.package.executable.gtk.linux.x86_64,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.rpm.feature,11.3.0.v20180125-1048
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.rpmdeps.feature,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.fuse.feature,11.3.0.v20180124-1725
> {code}
> I attached some screenshots with the process.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (JBDS-4671) Errors updating from 11.1.0.GA to latest one
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBDS-4671?page=com.atlassian.jira.plugin.... ]
Nick Boldt updated JBDS-4671:
-----------------------------
Attachment: ds11.2-update-to-11.3.png
> Errors updating from 11.1.0.GA to latest one
> --------------------------------------------
>
> Key: JBDS-4671
> URL: https://issues.jboss.org/browse/JBDS-4671
> Project: Red Hat JBoss Developer Studio (devstudio)
> Issue Type: Bug
> Components: installer, updatesite
> Affects Versions: 11.1.0.GA
> Environment: Red Hat JBoss Developer Studio 11.1.0.GA with early access activate.
> openjdk version "1.8.0_151" .OpenJDK Runtime Environment (build 1.8.0_151-b12)
> Operating System: Fedora 27
> Reporter: Roman Martin Gil
> Assignee: Jeff MAURY
> Fix For: 12.0.0.GA
>
> Attachments: 01-rhjbds-available-updates.png, 02-rhjbds-about-installation.png, 03-rhjbds-updating-error.png, ds11.2-update-sites.png, ds11.2-update-to-11.3.png, ds11.2.0.ga.png, rhjbds11-software-sites.png
>
>
> Since some days I am getting alerts to update my RHJBDS 11.1.0.GA to latest versions however I could not complete anyway.
> Everyday I get a update alert with latest versions but it seems that they are not ready to be applied.
> After some moments updating the environment I got the following error and stack trace:
> {code:java}
> An error occurred while collecting items to be installed
> session context was:(profile=devstudio, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
> No repository found containing: osgi.bundle,com.jboss.devstudio.core,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.capabilities,11.3.0.v20180124-1725
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.central,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.project.examples,11.3.0.v20180124-1725
> No repository found containing: osgi.bundle,com.jboss.devstudio.core.usage.branding,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.capabilities.feature,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.feature,11.3.0.v20180125-1048
> No repository found containing: binary,com.jboss.devstudio.core.package.executable.gtk.linux.x86_64,11.3.0.AM1-v20180125-1048-B1900
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.rpm.feature,11.3.0.v20180125-1048
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.core.rpmdeps.feature,11.3.0.v20180124-1725
> No repository found containing: org.eclipse.update.feature,com.jboss.devstudio.fuse.feature,11.3.0.v20180124-1725
> {code}
> I attached some screenshots with the process.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Roland Huß (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Roland Huß commented on JBIDE-25700:
------------------------------------
[~adietish] imo the problem is, that the files that you want to sync belong locally to a different Unix group and rsync tries to set this group in the target container, too. As the user in the target system is by OpenShift conventions an arbitrary numeric UID with group "root", you are not allowed to change the group as you are not the owner. Only the root user could change the group.
Have your tried {{oc rsync --no-perms}}, too ?
> 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)
7 years, 11 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-25700 at 4/13/18 1:34 PM:
-------------------------------------------------------------------
The critical failure that we observed initially was fixed in 4.5.3.AM3. The remaining non-critical issue, that we now face with Linux is not critical. Thus downgraded the severity Critical->Major and set the fixVersion to 4.5.x. We should fix this in the next iteration.
was (Author: adietish):
The critical failure that we observed initially was fixed in 4.5.3.AM3. The remaining non-critical issue, that we now face with Linux is not critical. Thus downgraded the severity Critical->Major and set the fixVersion to 4.5.x. We should fix this in the next iteration.
(and yes, we're running oc rsync with the --no-perms flag)
> 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)
7 years, 11 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-25700 at 4/13/18 1:34 PM:
-------------------------------------------------------------------
[~rhuss] any idea what could be causing the permission issue (happens on linux only, and only on the initial rsync which is run using --no-perms)?
{code}
rsync: chgrp "/deployments/BOOT-INF/classes/org" failed: Operation not permitted (1)
rsync: chgrp "/deployments/BOOT-INF/classes/org/mycompany" failed: Operation not permitted (1)
rsync: chgrp "/deployments/BOOT-INF/classes/spring" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
error: exit status 23
{code}
When the image is initially deployed and unpacks the jar, all the files and directories are owned by 1000/root
{code}
sh-4.2$ ls -lR
.:
total 4
drwxrwxr-x. 4 1000 root 80 Apr 13 2018 classes
drwxrwxr-x. 2 1000 root 4096 Apr 13 2018 lib
./classes:
total 8
-rw-rw-r--. 1 1000 root 547 Apr 13 15:57 application.properties
-rw-rw-r--. 1 1000 root 468 Apr 13 15:57 logback.xml
drwxrwxr-x. 3 1000 root 23 Apr 13 15:58 org
drwxrwxr-x. 2 1000 root 31 Apr 13 15:57 spring
./classes/org:
total 0
drwxrwxr-x. 2 1000 root 58 Apr 13 15:58 mycompany
./classes/org/mycompany:
total 8
-rw-rw-r--. 1 1000 root 801 Apr 13 15:58 Application.class
-rw-rw-r--. 1 1000 root 1046 Apr 13 15:58 MyTransformer.class
./classes/spring:
total 4
-rw-rw-r--. 1 1000 root 862 Apr 13 15:57 camel-context.xml
./lib:
total 21816
-rw-rw-r--. 1 1000 root 966428 Aug 27 2016 caffeine-2.3.3.jar
-rw-rw-r--. 1 1000 root 4451837 Sep 27 2017 camel-core-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 118193 Sep 27 2017 camel-core-starter-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 319167 Sep 27 2017 camel-spring-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 52801 Sep 27 2017 camel-spring-boot-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 13855 Sep 27 2017 camel-spring-boot-starter-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 64804 Oct 25 2015 classmate-1.3.1.jar
-rw-rw-r--. 1 1000 root 62747 Apr 13 2016 commons-logging-1.2.0.redhat-2.jar
-rw-rw-r--. 1 1000 root 705812 Feb 22 2016 hibernate-validator-5.2.4.Final-redhat-1.jar
-rw-rw-r--. 1 1000 root 55650 Sep 17 2016 jackson-annotations-2.8.3.jar
-rw-rw-r--. 1 1000 root 281078 Sep 17 2016 jackson-core-2.8.3.jar
-rw-rw-r--. 1 1000 root 1233703 Sep 18 2016 jackson-databind-2.8.3.jar
-rw-rw-r--. 1 1000 root 2497 Oct 13 2009 javax.inject-1.jar
-rw-rw-r--. 1 1000 root 251914 Jul 17 2015 jaxb-core-2.2.11.redhat-2.jar
-rw-rw-r--. 1 1000 root 1045659 Jul 17 2015 jaxb-impl-2.2.11.redhat-2.jar
-rw-rw-r--. 1 1000 root 67247 Nov 4 2015 jboss-logging-3.3.0.Final-redhat-1.jar
-rw-rw-r--. 1 1000 root 17289 Jun 11 2012 jcl-over-slf4j-1.6.6.jar
-rw-rw-r--. 1 1000 root 5650 Sep 27 2016 jul-to-slf4j-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 24933 Sep 27 2016 log4j-over-slf4j-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 304075 Mar 29 2016 logback-classic-1.1.7.jar
-rw-rw-r--. 1 1000 root 470782 Mar 29 2016 logback-core-1.1.7.jar
-rw-rw-r--. 1 1000 root 43088 Sep 27 2016 slf4j-api-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 278078 Apr 30 2015 snakeyaml-1.15.0.redhat-1.jar
-rw-rw-r--. 1 1000 root 379939 Sep 19 2016 spring-aop-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 760602 Sep 19 2016 spring-beans-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 657087 Sep 21 2016 spring-boot-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 477777 Sep 21 2016 spring-boot-actuator-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 967727 Sep 21 2016 spring-boot-autoconfigure-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 203677 Sep 21 2016 spring-boot-devtools-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2289 Sep 21 2016 spring-boot-starter-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2299 Sep 21 2016 spring-boot-starter-actuator-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2308 Sep 21 2016 spring-boot-starter-logging-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2292 Sep 21 2016 spring-boot-starter-tomcat-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2346 Sep 21 2016 spring-boot-starter-web-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 1134792 Sep 19 2016 spring-context-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 1110374 Sep 19 2016 spring-core-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 263744 Sep 19 2016 spring-expression-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 266965 Sep 19 2016 spring-tx-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 813281 Sep 19 2016 spring-web-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 913557 Sep 19 2016 spring-webmvc-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 2900623 Jul 6 2017 tomcat-embed-core-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 238338 Jul 6 2017 tomcat-embed-el-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 247751 Jul 6 2017 tomcat-embed-websocket-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 64810 Apr 10 2015 validation-api-1.1.0.Final-redhat-1.jar
{code}
oc rsync then is using jboss/jboss and thus causes the above error. Any idea how to fix this?
was (Author: adietish):
[~rhuss] any idea what could be causing the permission issue (happens on linux only, and only on the initial rsync)?
{code}
rsync: chgrp "/deployments/BOOT-INF/classes/org" failed: Operation not permitted (1)
rsync: chgrp "/deployments/BOOT-INF/classes/org/mycompany" failed: Operation not permitted (1)
rsync: chgrp "/deployments/BOOT-INF/classes/spring" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
error: exit status 23
{code}
When the image is initially deployed and unpacks the jar, all the files and directories are owned by 1000/root
{code}
sh-4.2$ ls -lR
.:
total 4
drwxrwxr-x. 4 1000 root 80 Apr 13 2018 classes
drwxrwxr-x. 2 1000 root 4096 Apr 13 2018 lib
./classes:
total 8
-rw-rw-r--. 1 1000 root 547 Apr 13 15:57 application.properties
-rw-rw-r--. 1 1000 root 468 Apr 13 15:57 logback.xml
drwxrwxr-x. 3 1000 root 23 Apr 13 15:58 org
drwxrwxr-x. 2 1000 root 31 Apr 13 15:57 spring
./classes/org:
total 0
drwxrwxr-x. 2 1000 root 58 Apr 13 15:58 mycompany
./classes/org/mycompany:
total 8
-rw-rw-r--. 1 1000 root 801 Apr 13 15:58 Application.class
-rw-rw-r--. 1 1000 root 1046 Apr 13 15:58 MyTransformer.class
./classes/spring:
total 4
-rw-rw-r--. 1 1000 root 862 Apr 13 15:57 camel-context.xml
./lib:
total 21816
-rw-rw-r--. 1 1000 root 966428 Aug 27 2016 caffeine-2.3.3.jar
-rw-rw-r--. 1 1000 root 4451837 Sep 27 2017 camel-core-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 118193 Sep 27 2017 camel-core-starter-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 319167 Sep 27 2017 camel-spring-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 52801 Sep 27 2017 camel-spring-boot-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 13855 Sep 27 2017 camel-spring-boot-starter-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 64804 Oct 25 2015 classmate-1.3.1.jar
-rw-rw-r--. 1 1000 root 62747 Apr 13 2016 commons-logging-1.2.0.redhat-2.jar
-rw-rw-r--. 1 1000 root 705812 Feb 22 2016 hibernate-validator-5.2.4.Final-redhat-1.jar
-rw-rw-r--. 1 1000 root 55650 Sep 17 2016 jackson-annotations-2.8.3.jar
-rw-rw-r--. 1 1000 root 281078 Sep 17 2016 jackson-core-2.8.3.jar
-rw-rw-r--. 1 1000 root 1233703 Sep 18 2016 jackson-databind-2.8.3.jar
-rw-rw-r--. 1 1000 root 2497 Oct 13 2009 javax.inject-1.jar
-rw-rw-r--. 1 1000 root 251914 Jul 17 2015 jaxb-core-2.2.11.redhat-2.jar
-rw-rw-r--. 1 1000 root 1045659 Jul 17 2015 jaxb-impl-2.2.11.redhat-2.jar
-rw-rw-r--. 1 1000 root 67247 Nov 4 2015 jboss-logging-3.3.0.Final-redhat-1.jar
-rw-rw-r--. 1 1000 root 17289 Jun 11 2012 jcl-over-slf4j-1.6.6.jar
-rw-rw-r--. 1 1000 root 5650 Sep 27 2016 jul-to-slf4j-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 24933 Sep 27 2016 log4j-over-slf4j-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 304075 Mar 29 2016 logback-classic-1.1.7.jar
-rw-rw-r--. 1 1000 root 470782 Mar 29 2016 logback-core-1.1.7.jar
-rw-rw-r--. 1 1000 root 43088 Sep 27 2016 slf4j-api-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 278078 Apr 30 2015 snakeyaml-1.15.0.redhat-1.jar
-rw-rw-r--. 1 1000 root 379939 Sep 19 2016 spring-aop-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 760602 Sep 19 2016 spring-beans-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 657087 Sep 21 2016 spring-boot-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 477777 Sep 21 2016 spring-boot-actuator-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 967727 Sep 21 2016 spring-boot-autoconfigure-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 203677 Sep 21 2016 spring-boot-devtools-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2289 Sep 21 2016 spring-boot-starter-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2299 Sep 21 2016 spring-boot-starter-actuator-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2308 Sep 21 2016 spring-boot-starter-logging-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2292 Sep 21 2016 spring-boot-starter-tomcat-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2346 Sep 21 2016 spring-boot-starter-web-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 1134792 Sep 19 2016 spring-context-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 1110374 Sep 19 2016 spring-core-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 263744 Sep 19 2016 spring-expression-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 266965 Sep 19 2016 spring-tx-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 813281 Sep 19 2016 spring-web-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 913557 Sep 19 2016 spring-webmvc-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 2900623 Jul 6 2017 tomcat-embed-core-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 238338 Jul 6 2017 tomcat-embed-el-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 247751 Jul 6 2017 tomcat-embed-websocket-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 64810 Apr 10 2015 validation-api-1.1.0.Final-redhat-1.jar
{code}
oc rsync then is using jboss/jboss and thus causes the above error. Any idea how to fix this?
> 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)
7 years, 11 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-25700 at 4/13/18 12:45 PM:
--------------------------------------------------------------------
The critical failure that we observed initially was fixed in 4.5.3.AM3. The remaining non-critical issue, that we now face with Linux is not critical. Thus downgraded the severity Critical->Major and set the fixVersion to 4.5.x. We should fix this in the next iteration.
(and yes, we're running oc rsync with the --no-perms flag)
was (Author: adietish):
The critical failure that we observed initially was fixed in 4.5.3.AM3. The remaining non-critical issue, that we now face with Linux is not critical. Thus downgraded the severity Critical->Major and set the fixVersion to 4.5.x. We should fix this in the next iteration.
> 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)
7 years, 11 months
[JBoss JIRA] (JBIDE-25700) Server adapter: hot deploy of Spring Boot errors with permission issues when rsyncing local->pod (OS Online and CDK)
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-25700 at 4/13/18 12:44 PM:
--------------------------------------------------------------------
[~rhuss] any idea what could be causing the permission issue (happens on linux only, and only on the initial rsync)?
{code}
rsync: chgrp "/deployments/BOOT-INF/classes/org" failed: Operation not permitted (1)
rsync: chgrp "/deployments/BOOT-INF/classes/org/mycompany" failed: Operation not permitted (1)
rsync: chgrp "/deployments/BOOT-INF/classes/spring" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
error: exit status 23
{code}
When the image is initially deployed and unpacks the jar, all the files and directories are owned by 1000/root
{code}
sh-4.2$ ls -lR
.:
total 4
drwxrwxr-x. 4 1000 root 80 Apr 13 2018 classes
drwxrwxr-x. 2 1000 root 4096 Apr 13 2018 lib
./classes:
total 8
-rw-rw-r--. 1 1000 root 547 Apr 13 15:57 application.properties
-rw-rw-r--. 1 1000 root 468 Apr 13 15:57 logback.xml
drwxrwxr-x. 3 1000 root 23 Apr 13 15:58 org
drwxrwxr-x. 2 1000 root 31 Apr 13 15:57 spring
./classes/org:
total 0
drwxrwxr-x. 2 1000 root 58 Apr 13 15:58 mycompany
./classes/org/mycompany:
total 8
-rw-rw-r--. 1 1000 root 801 Apr 13 15:58 Application.class
-rw-rw-r--. 1 1000 root 1046 Apr 13 15:58 MyTransformer.class
./classes/spring:
total 4
-rw-rw-r--. 1 1000 root 862 Apr 13 15:57 camel-context.xml
./lib:
total 21816
-rw-rw-r--. 1 1000 root 966428 Aug 27 2016 caffeine-2.3.3.jar
-rw-rw-r--. 1 1000 root 4451837 Sep 27 2017 camel-core-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 118193 Sep 27 2017 camel-core-starter-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 319167 Sep 27 2017 camel-spring-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 52801 Sep 27 2017 camel-spring-boot-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 13855 Sep 27 2017 camel-spring-boot-starter-2.18.1.redhat-000021.jar
-rw-rw-r--. 1 1000 root 64804 Oct 25 2015 classmate-1.3.1.jar
-rw-rw-r--. 1 1000 root 62747 Apr 13 2016 commons-logging-1.2.0.redhat-2.jar
-rw-rw-r--. 1 1000 root 705812 Feb 22 2016 hibernate-validator-5.2.4.Final-redhat-1.jar
-rw-rw-r--. 1 1000 root 55650 Sep 17 2016 jackson-annotations-2.8.3.jar
-rw-rw-r--. 1 1000 root 281078 Sep 17 2016 jackson-core-2.8.3.jar
-rw-rw-r--. 1 1000 root 1233703 Sep 18 2016 jackson-databind-2.8.3.jar
-rw-rw-r--. 1 1000 root 2497 Oct 13 2009 javax.inject-1.jar
-rw-rw-r--. 1 1000 root 251914 Jul 17 2015 jaxb-core-2.2.11.redhat-2.jar
-rw-rw-r--. 1 1000 root 1045659 Jul 17 2015 jaxb-impl-2.2.11.redhat-2.jar
-rw-rw-r--. 1 1000 root 67247 Nov 4 2015 jboss-logging-3.3.0.Final-redhat-1.jar
-rw-rw-r--. 1 1000 root 17289 Jun 11 2012 jcl-over-slf4j-1.6.6.jar
-rw-rw-r--. 1 1000 root 5650 Sep 27 2016 jul-to-slf4j-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 24933 Sep 27 2016 log4j-over-slf4j-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 304075 Mar 29 2016 logback-classic-1.1.7.jar
-rw-rw-r--. 1 1000 root 470782 Mar 29 2016 logback-core-1.1.7.jar
-rw-rw-r--. 1 1000 root 43088 Sep 27 2016 slf4j-api-1.7.21.redhat-2.jar
-rw-rw-r--. 1 1000 root 278078 Apr 30 2015 snakeyaml-1.15.0.redhat-1.jar
-rw-rw-r--. 1 1000 root 379939 Sep 19 2016 spring-aop-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 760602 Sep 19 2016 spring-beans-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 657087 Sep 21 2016 spring-boot-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 477777 Sep 21 2016 spring-boot-actuator-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 967727 Sep 21 2016 spring-boot-autoconfigure-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 203677 Sep 21 2016 spring-boot-devtools-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2289 Sep 21 2016 spring-boot-starter-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2299 Sep 21 2016 spring-boot-starter-actuator-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2308 Sep 21 2016 spring-boot-starter-logging-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2292 Sep 21 2016 spring-boot-starter-tomcat-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 2346 Sep 21 2016 spring-boot-starter-web-1.4.1.RELEASE.jar
-rw-rw-r--. 1 1000 root 1134792 Sep 19 2016 spring-context-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 1110374 Sep 19 2016 spring-core-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 263744 Sep 19 2016 spring-expression-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 266965 Sep 19 2016 spring-tx-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 813281 Sep 19 2016 spring-web-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 913557 Sep 19 2016 spring-webmvc-4.3.3.RELEASE.jar
-rw-rw-r--. 1 1000 root 2900623 Jul 6 2017 tomcat-embed-core-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 238338 Jul 6 2017 tomcat-embed-el-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 247751 Jul 6 2017 tomcat-embed-websocket-8.0.36.redhat-24.jar
-rw-rw-r--. 1 1000 root 64810 Apr 10 2015 validation-api-1.1.0.Final-redhat-1.jar
{code}
oc rsync then is using jboss/jboss and thus causes the above error. Any idea how to fix this?
was (Author: adietish):
[~rhuss] any idea what could be causing the permission issue (happens on linux only, and only on the initial rsync)?
{code}
rsync: chgrp "/deployments/BOOT-INF/classes/org" failed: Operation not permitted (1)
rsync: chgrp "/deployments/BOOT-INF/classes/org/mycompany" failed: Operation not permitted (1)
rsync: chgrp "/deployments/BOOT-INF/classes/spring" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
error: exit status 23
{code}
> 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)
7 years, 11 months