Please, my team is facing an issue while trying to build our CI/CD flow. While in localhost (both on self machine and inside docker images), our project happens to download all aspose dependencies successfully.
However, when the same docker image is built at github runners (github actions), it fails while trying to download the aspose dependencies, as the error below states.
We are trying to download it from maven repository, and the root docker image is: maven:3.6.3-openjdk-11
Please, are we missing something? Failed to execute goal on project server: Could not resolve dependencies for project com......project....:jar:version: Failed to collect dependencies at com.aspose:aspose-cells:jar:17.11: Failed to read artifact descriptor for com.aspose:aspose-cells:jar:17.11: Could not transfer artifact com.aspose:aspose-cells:pom:17.11 from/to AsposeJavaAPI (https://repository.aspose.com/repo/): Authorization failed for https://repository.aspose.com/repo/com/aspose/aspose-cells/17.11/aspose-cells-17.11.pom 403 Forbidden
Could you please try it again now, it should work fine. We had a migration (to newer server) process which was started a few days back. The process is completed now.
Please, my team is facing an issue while trying to build our CI/CD flow. While in localhost (both on self machine and inside docker images), our project happens to download all aspose dependencies successfully.
However, when the same docker image is built at github runners (github actions), it fails while trying to download the aspose dependencies, as the error below states.
Apparently, it is DNS related issue as Github Actions are still using old DNS record even though it has changed in last weekend.
I will try to reproduce this issue at Github Actions and then get back to you for possible workaround. Thanks.
However, when the same docker image is built at github runners (github actions), it fails while trying to download the aspose dependencies, as the error below states.
I am able to resolve this issue by adding following step in Github Actions
name: Clear DNS Cache
run: |
sudo systemd-resolve --flush-caches
I tried adding the step to my github actions but it didn’t solve the problem. I still got the same error.
I added this as the first step in the job
- name: Clear DNS Cache
run: |
sudo systemd-resolve --flush-caches
and still got this error
> Could not resolve com.aspose:aspose-slides:20.2.
Required by:
project :
> Could not resolve com.aspose:aspose-slides:20.2.
> Could not get resource 'https://repository.aspose.com/repo/com/aspose/aspose-slides/20.2/aspose-slides-20.2.pom'.
> Could not GET 'https://repository.aspose.com/repo/com/aspose/aspose-slides/20.2/aspose-slides-20.2.pom'. Received status code 403 from server: Forbidden
I’ve been facing the same problem since last Monday. In my case I use Azure Devops build pipelines.
Could not resolve dependencies for project com...:jar:1.8.10: Failed to collect dependencies at com...:jar:1.12.1 -> com.aspose:aspose-barcode:jar:21.7: Failed to read artifact descriptor for com.aspose:aspose-barcode:jar:21.7: Could not transfer artifact com.aspose:aspose-barcode:pom:21.7 from/to AsposeJavaAPI (https://repository.aspose.com/repo/): authorization failed for https://repository.aspose.com/repo/com/aspose/aspose-barcode/21.7/aspose-barcode-21.7.pom, status: 403 Forbidden