Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KNOX-2659 - Travis build failure: '/usr/bin/mvn': Operation not permitted. #491

Merged
merged 6 commits into from
Sep 10, 2021

Conversation

zeroflag
Copy link
Contributor

@zeroflag zeroflag commented Sep 8, 2021

What changes were proposed in this pull request?

Travis builds are failing with:

Status: Downloaded newer image for maven:3-jdk-8
travis_time:end:1f172450:start=1631006005539129433,finish=1631006018654506434,duration=13115377001,event=before_install
�[0Ktravis_fold:end:before_install.2
�[0Ktravis_time:start:06b9262b
�[0K$ $DOCKERRUN $IMAGE mvn -T.75C clean verify -U -Dshellcheck=true -Dsurefire.useFile=false -Djavax.net.ssl.trustStorePassword=changeit -Dmaven.wagon.http.retryHandler.count=5 -Dmaven.wagon.http.retryHandler.class=default -Dmaven.wagon.http.retryHandler.nonRetryableClasses=java.io.InterruptedIOException -Dhttp.keepAlive=false -B -V
ls: cannot access '/usr/bin/mvn': Operation not permitted
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher

Let's try this and see what happens.

@smolnar82
Copy link
Contributor

🤞

@risdenk
Copy link
Contributor

risdenk commented Sep 8, 2021

Better option looks like to specify the OS distribution and update the Docker install to be the version based on carlossg/docker-maven#221

@zeroflag
Copy link
Contributor Author

zeroflag commented Sep 8, 2021

Better option looks like to specify the OS distribution and update the Docker install to be the version based on carlossg/docker-maven#221

Can we control what docker version is used by travis?

@zeroflag
Copy link
Contributor Author

zeroflag commented Sep 8, 2021

With "csanchez/maven:3-openjdk-8" and "csanchez/maven:3-openjdk-11" the first 2 jobs passed, only the ARM job failed.

@smolnar82
Copy link
Contributor

Better option looks like to specify the OS distribution and update the Docker install to be the version based on carlossg/docker-maven#221

Can we control what docker version is used by travis?

@zeroflag - you may find this PR useful: https://github.com/twilio/twilio-java/pull/644/files
They applied this change to fix the same issue that Knox is facing now.

@zeroflag zeroflag closed this Sep 9, 2021
@zeroflag zeroflag reopened this Sep 9, 2021
Copy link
Contributor

@smolnar82 smolnar82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks, @zeroflag !

@smolnar82 smolnar82 merged commit b83e331 into apache:master Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants