rundeck-plugins / salt-step

Rundeck Salt Plugin
BSD 3-Clause "New" or "Revised" License
31 stars 30 forks source link

Compilation error---Server returned HTTP response code: 403 #31

Open krishnachaitanyareddy opened 4 years ago

krishnachaitanyareddy commented 4 years ago

Hi,

While compiling, i'm getting below error

./gradlew clean build Downloading http://services.gradle.org/distributions/gradle-1.4-bin.zip

Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-1.4-bin.zip at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) at org.gradle.wrapper.Download.downloadInternal(Download.java:63) at org.gradle.wrapper.Download.download(Download.java:49) at org.gradle.wrapper.Install.createDist(Install.java:51) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)

gradle.properties

cat gradle.properties version = 0.4 rundeckPluginVersion = 1.1

mavenCentralUrl = http://repo1.maven.org/maven2

My Java version java -version java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

krishnachaitanyareddy commented 4 years ago

I made few changes to gradle-wrapper.properties to new gradle link. Now i'm getting below

`./gradlew clean build Downloading https://downloads.gradle-dn.com/distributions/gradle-1.4-bin.zip ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Unzipping /Users/krishna/.gradle/wrapper/dists/gradle-1.4-bin/ka7flpc4t9igms41h3dpdhmt0/gradle-1.4-bin.zip to /Users/krishna/.gradle/wrapper/dists/gradle-1.4-bin/ka7flpc4t9igms41h3dpdhmt0 Set executable permissions for: /Users/krishna/.gradle/wrapper/dists/gradle-1.4-bin/ka7flpc4t9igms41h3dpdhmt0/gradle-1.4/bin/gradle Error listing versions of org.rundeck#rundeck-core;1.5+ using class org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionLister$1. Will attempt an alternate way to list versions. This behaviour has been deprecated and is scheduled to be removed in Gradle 2.0

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 18.18 secs`

xjojorx commented 4 years ago

I don't know if this is already solved but I got to compile it by changing the maven URL from http to https in gradle.properties.

Also, for gradle-wrapper to work I had to change to https the url in gradle/wrapper/gradle-wrapper.properties

ScroungerE2E commented 3 years ago

Had to perform the same modifications as listed above, flipping to HTTPS to get to this point

./gradlew clean build --debug 09:46:51.757 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@71d15f18, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@17695df3, org.gradle.logging.internal.JavaUtilLoggingConfigurer@6c9f5c0d] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.jruby.ext.posix.util.FieldAccess (file:/home/user/.gradle/wrapper/dists/gradle-1.4-bin/3qf9ve1tumvav5egd5m6ofv9as/gradle-1.4/lib/jna-posix-1.0.3.jar) to field java.io.FileDescriptor.handle WARNING: Please consider reporting this to the maintainers of org.jruby.ext.posix.util.FieldAccess WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 09:46:51.903 [ERROR] [org.gradle.BuildExceptionReporter] 09:46:51.905 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build aborted because of an internal error. 09:46:51.906 [ERROR] [org.gradle.BuildExceptionReporter] 09:46:51.907 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 09:46:51.909 [ERROR] [org.gradle.BuildExceptionReporter] Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.

Can't seem to figure out how to resolve this.

java -version openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing) javac 11.0.11