[
https://issues.apache.org/jira/browse/BEAM-12149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17322311#comment-17322311
]
Brian Hulette commented on BEAM-12149:
--------------------------------------
I just tried running the build env with a fresh clone of beam and had no
problem running {{./gradlew -p sdks/java/io/cassandra check}}. I checked my
protoc permission and it's user executable:
{code}
$ ll
/home/bhulette/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.11.0/*
/home/bhulette/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.11.0/77c27be4b274ff897025aba3158822d7ec468f72:
total 4960
drwxr-xr-x 2 bhulette bhulette 4096 Apr 15 16:28 ./
drwxr-xr-x 4 bhulette bhulette 4096 Apr 15 16:28 ../
-rwxr--r-- 1 bhulette bhulette 5068728 Apr 15 16:28
protoc-3.11.0-linux-x86_64.exe*
{code}
Maybe it's relevant that my setup used a different version of protoc for some
reason? Not sure about that.
I also came across this [GitHub
issue|https://github.com/google/protobuf-gradle-plugin/issues/165] which seems
to indicate there's some action a sysadmin could take that alleviated this. Not
sure what it could be though.
> Docker build environment protoc is not executable
> -------------------------------------------------
>
> Key: BEAM-12149
> URL: https://issues.apache.org/jira/browse/BEAM-12149
> Project: Beam
> Issue Type: Bug
> Components: build-system
> Reporter: Elliotte Rusty Harold
> Priority: P2
>
> I tried to run some tests using the Docker build environment and hit this:
>
> $ ./gradlew -p sdks/java/io/cassandra check
> Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could
> not be reused, use --status for details
> Configuration on demand is an incubating feature.
> > Task :model:pipeline:generateProto FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':model:pipeline:generateProto'.
> > java.io.IOException: Cannot run program
> "/home/elharo/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.15.3/8fb78f9edc8192143d947edc2217aafaa5d5f79b/protoc-3.15.3-linux-x86_64.exe":
> error=13, Permission denied
>
> I do see that protoc does not have execute permission:
>
> $ ls -l
> /home/elharo/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.15.3/8fb78f9edc8192143d947edc2217aafaa5d5f79b/
> total 5120
> -rw-r--r-- 1 elharo users 5241944 Apr 9 22:17
> protoc-3.15.3-linux-x86_64.exe{color:#888888}
>
> {color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)