{"action":"closed","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/3378","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/3378/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/3378/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/3378/events","html_url":"https://github.com/eclipse/che/issues/3378","id":195446307,"number":3378,"title":"\"group id ... is too big\" on exec-agent module on Mac","user":{"login":"vazexqi","id":54414,"avatar_url":"https://avatars.githubusercontent.com/u/54414?v=3","gravatar_id":"","url":"https://api.github.com/users/vazexqi","html_url":"https://github.com/vazexqi","followers_url":"https://api.github.com/users/vazexqi/followers","following_url":"https://api.github.com/users/vazexqi/following{/other_user}","gists_url":"https://api.github.com/users/vazexqi/gists{/gist_id}","starred_url":"https://api.github.com/users/vazexqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vazexqi/subscriptions","organizations_url":"https://api.github.com/users/vazexqi/orgs","repos_url":"https://api.github.com/users/vazexqi/repos","events_url":"https://api.github.com/users/vazexqi/events{/privacy}","received_events_url":"https://api.github.com/users/vazexqi/received_events","type":"User","site_admin":false},"labels":[{"id":192367926,"url":"https://api.github.com/repos/eclipse/che/labels/kind/bug","name":"kind/bug","color":"fc2929","default":false},{"id":192367928,"url":"https://api.github.com/repos/eclipse/che/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-14T05:53:07Z","updated_at":"2016-12-21T09:27:51Z","closed_at":"2016-12-21T09:27:51Z","body":"This is very similar to #680 except it has surfaced in the exec-agent module which uses the [iterator-maven-plugin](https://github.com/khmarbaise/iterator-maven-plugin).\r\n\r\nThe root cause is that on IT-provisioned Macs in some companies, your user id and group id are very high (> 2097151 ) and you have *no* way to change it. On my own personal Mac this issue doesn't surface and I guess that is why you don't see this when you compile on your Codenvy/Che Mac CIs. \r\n\r\nAs #680 shows you need to tell the maven assembly plug-in to set `<tarLongFileMode>posix</tarLongFileMode>`.\r\n\r\nHowever, there is a bug in iterator-maven-plugin where setting it  to `<tarLongFileMode>posix</tarLongFileMode>` at https://github.com/eclipse/che/blob/master/exec-agent/pom.xml#L168 does _nothing_.\r\n\r\nI have filed the bug and fix at khmarbaise/iterator-maven-plugin#39  but it's not clear when it will be merged in and a new version published.\r\n\r\n**Reproduction Steps:**\r\n\r\n1. You are on a Mac and if you do `id` on the terminal you see that your uid and/or guid are > 2097151.\r\n1. Check out a recent version of Che that  has exec-agent\r\n1. mvn clean install -Pfast\r\n\r\n**Expected behavior:**\r\n\r\nYou should be able to compile successfully.\r\n\r\n**Observed behavior:**\r\n\r\n```shell\r\nCaused by: org.apache.maven.plugin.PluginExecutionException: Execution null of goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single failed: group id '<your gid value>' is too big ( > 2097151 ). Use STAR or POSIX extensions to overcome this limit\r\n        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)\r\n        at com.soebes.maven.plugins.iterator.IteratorMojo.executeMojo(IteratorMojo.java:406)\r\n        at com.soebes.maven.plugins.iterator.IteratorMojo.handlePluginExecution(IteratorMojo.java:305)\r\n        ... 23 more\r\nCaused by: java.lang.RuntimeException: group id '<your gid value>' is too big ( > 2097151 ). Use STAR or POSIX extensions to overcome this limit\r\n        at org.codehaus.plexus.archiver.commonscompress.archivers.tar.TarArchiveOutputStream.failForBigNumber(TarArchiveOutputStream.java:635)\r\n        at org.codehaus.plexus.archiver.commonscompress.archivers.tar.TarArchiveOutputStream.failForBigNumberWithPosixMessage(TarArchiveOutputStream.java:630)\r\n        at org.codehaus.plexus.archiver.commonscompress.archivers.tar.TarArchiveOutputStream.failForBigNumbers(TarArchiveOutputStream.java:613)\r\n        at org.codehaus.plexus.archiver.commonscompress.archivers.tar.TarArchiveOutputStream.putArchiveEntry(TarArchiveOutputStream.java:290)\r\n        at org.codehaus.plexus.archiver.tar.TarArchiver.tarFile(TarArchiver.java:312)\r\n        at org.codehaus.plexus.archiver.tar.TarArchiver.execute(TarArchiver.java:171)\r\n        at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:916)\r\n        at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:445)\r\n        at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:181)\r\n        at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:484)\r\n        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\r\n        ... 25 more\r\n```\r\n\r\n**Temporary workaround**\r\n\r\n1. Clone a local version of maven-iterator-plugin\r\n1. Apply the changes from my PR at https://github.com/khmarbaise/iterator-maven-plugin/pull/39\r\n1. `mvn clean install`\r\n1. Update https://github.com/eclipse/che/blob/master/exec-agent/pom.xml to do two things:\r\n* use the local version of maven-iterator-plugin with changes\r\n* add <tarLongFileMode>posix</tarLongFileMode>\r\n\r\nRecommendation: When @khmarbaise releases a new version of maven-iterator-plugin, Che should probably update its pom.xml for exec-agent and use that new version. All usages of the maven-assembly-plugin should also have `<tarLongFileMode>posix</tarLongFileMode>` set to avoid such issues in the future for Mac users on IT-provisioned machines.\r\n\r\n**Che version:**  master  (M9 tag when this was reported)\r\n**OS and version:** OS X 10.11.6 (observed on 10.10.5 as well)\r\n \r\n**Additional information:**\r\n\r\n* Problem started happening recently, didn't happen in an older version of Che: Yes - with the exec-agent module\r\n* Problem can be reliably reproduced, doesn't happen randomly: Yes\r\n"}}
{"actor":{"display_login":"skabashnyuk"}}