Permission denied for duct on maven build in Teamcity

I am trying to create a project using maven on teamcity and get this error during the maven build step.

[Step 2/4] Error [ERROR] protoc:

[Step 2/4] Error error [ERROR]: / bin / sh: 1: protoc: permission denied [Step 2/4] [13:03:14] [Step 2/4] The com.google target could not be completed. protobuf.tools:maven-protoc-pluginlist.1.10:compile (generate-sources) in the unit-protocol-lib: protoc project did not exit cleanly. View the output for more information.

Remember that I use docker-compose to create the teamcity agent (the agent running in the container), and protoc is added to / usr / local / bin / protoc ($ PATH has / usr / local / bin, / usr / local / bin / protoc has rwx permissions).

EDITED to facilitate

Forget about everything above. I went into the buildagent of the teamcity server, accessing the shell using /bin/sh and running the protoc command, and it will return an error:
protoc failed error: /bin/sh: 1: protoc: Permission denied

Any help?

+7
maven docker ubuntu docker-compose teamcity
source share

No one has answered this question yet.

See related questions:

665
Force maven update
291
Maven doesn't work on Java 8 when Javadoc tags are incomplete
4
TeamCity command line permission denied
one
does maven in Teamcity build create maven-metadata-snapshots.xml containing NUL?
one
Error starting maven project - TeamCity
one
Teamcity agent cannot start assembly
one
Running docker using teamcity-docker-agent - permission denied
0
boto3 does not work during the TeamCity build phase when launched during the container build phase on the container build agent
0
Creating a jar with dependent libraries in Teamcity
0
TeamCity Failed to copy file: path to access denied> 'bin \ Release \ chromedriver.exe'

All Articles