Uploading artifacts to coordinator failed due to Response Status 308 Permanent Redirect
Summary
Job fail with:
WARNING: Uploading artifacts to coordinator... failed id=183697759 responseStatus=308 Permanent Redirect status=308 Permanent Redirect token=Hape8Qaj
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=183697759 responseStatus=308 Permanent Redirect status=308 Permanent Redirect token=Hape8Qaj
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=183697759 responseStatus=308 Permanent Redirect status=308 Permanent Redirect token=Hape8Qaj
FATAL: invalid argument
ERROR: Job failed: command terminated with exit code 1
Steps to reproduce
Always, when running a build that contains an artifact store step
Actual behavior
Upload fails
Expected behavior
Upload succeeds
Relevant logs and/or screenshots
Running with gitlab-runner 11.9.0-rc2 (227934c0)
on gitlab-runner-gitlab-runner-68448676d6-2vjjh gZ6fUSpe
Using Kubernetes namespace: tgi-gitlab-runner
Using Kubernetes executor with image $MAVEN_IMAGE_TAG ...
Waiting for pod tgi-gitlab-runner/runner-gz6fuspe-project-10790921-concurrent-0lprtx to be running, status is Pending
Waiting for pod tgi-gitlab-runner/runner-gz6fuspe-project-10790921-concurrent-0lprtx to be running, status is Pending
Running on runner-gz6fuspe-project-10790921-concurrent-0lprtx via gitlab-runner-gitlab-runner-68448676d6-2vjjh...
Initialized empty Git repository in /tech-gap-italia/meritogame/rule-engine/.git/
Fetching changes...
Created fresh repository.
From https://gitlab.com/tech-gap-italia/meritogame/rule-engine
* [new branch] master -> origin/master
Checking out dc190670 as master...
Skipping Git submodules setup
Checking cache for default...
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.
Successfully extracted cache
$ mvn $MAVEN_CLI_OPTS verify sonar:sonar -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_TOKEN -Dsonar.branch=${CI_COMMIT_REF_NAME}
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z)
Maven home: /usr/share/maven
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.14.85-rancher", arch: "amd64", family: "unix"
871 [INFO] Error stacktraces are turned on.
935 [INFO] Scanning for projects...
5841 [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
5866 [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Could not find artifact org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in central (https://repo.maven.apache.org/maven2)
(CUT)
46216 [INFO] BUILD SUCCESS
46216 [INFO] ------------------------------------------------------------------------
46216 [INFO] Total time: 45.310 s
46217 [INFO] Finished at: 2019-03-25T14:41:01Z
46217 [INFO] ------------------------------------------------------------------------
Creating cache default...
.m2/repository: found 5046 matching files
No URL provided, cache will be not uploaded to shared cache server. Cache will be stored only locally.
Created cache
Uploading artifacts...
target/*.jar: found 1 matching files
WARNING: Uploading artifacts to coordinator... failed id=183697759 responseStatus=308 Permanent Redirect status=308 Permanent Redirect token=Hape8Qaj
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=183697759 responseStatus=308 Permanent Redirect status=308 Permanent Redirect token=Hape8Qaj
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=183697759 responseStatus=308 Permanent Redirect status=308 Permanent Redirect token=Hape8Qaj
FATAL: invalid argument
ERROR: Job failed: command terminated with exit code 1
Environment description
- gitlab/gitlab-runner:alpine-v11.9.0 deployed via helm (no custom config beside registration token and privileged mode)
- Kubernetes 1.13.4 on Rancher 2.1.7
- Rancher OS 1.5.1
Used GitLab Runner version
bash-4.4$ gitlab-runner --version
Version: 11.9.0
Git revision: 692ae235
Git branch: 11-9-stable
GO version: go1.8.7
Built: 2019-03-22T12:02:58+0000
OS/Arch: linux/amd64