Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

Unable to setup DSS Instance using Fleet Manager

Akanksha
Level 1
Unable to setup DSS Instance using Fleet Manager

Unable to setup DSS Instance using Fleet manager. While running below ansible task to download the mysql connector in Instance template,

- name: Extract MySQL Driver 8.0.27 into /tmp
  become: yes
  unarchive:
      src: https://downloads.mysql.com/archives/get/p/3/file/mysql-connector-java-8.0.27.tar.gz
      dest: /tmp
      remote_src: yes

Getting below error:

FAILED! => {\n\n "changed": false\n\n}\n\n\n\nMSG:\n\n\n\nFailure downloading https://downloads.mysql.com/archives/get/p/3/file/mysql-connector-java-8.0.27.tar.gz, HTTP Error 403: Forbidden\n\


We tried to access this link and file and it is a valid URL. But still we are getting this error.


Operating system used: Linux (centos 7.9.2009)

0 Kudos
3 Replies
JordanB
Dataiker

Hi @Akanksha,

Are you using the "Install a JDBC driver" task?

Screen Shot 2022-12-27 at 10.58.28 AM.png

For example, the following configuration works for me:

Database Type: MySQL

URL: https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.30.zip

Paths in archive: */*.jar

Can you please attach a screenshot of your task?

Thanks!

Jordan

0 Kudos
Akanksha
Level 1
Author

Hi @JordanB 

I am using the below action,

- Run ansible tasks (please see attached)
 
and then, stage: After DSS Install
Ansible tasks:

- name: Extract MySQL Driver 8.0.27 into /tmp
  become: yes
  unarchive:
      src: https://downloads.mysql.com/archives/get/p/3/file/mysql-connector-java-8.0.27.tar.gz
      dest: /tmp
      remote_src: yes

 
 

 

0 Kudos
JordanB
Dataiker

Hi @Akanksha,

I was able to get your script working by changing the URL. The URL that you are using redirects to https://cdn.mysql.com/archives/mysql-connector-java-8.0/mysql-connector-java-8.0.27.tar.gz and by switching the URL, the ansible script succeeds. Information on why ansible unarchive tasks do not follow redirects: https://github.com/ansible/ansible/issues/19985

- name: Extract MySQL Driver 8.0.27 into /tmp
  become: yes
  unarchive:
      src: https://cdn.mysql.com/archives/mysql-connector-java-8.0/mysql-connector-java-8.0.27.tar.gz
      dest: "/tmp/"
      remote_src: true

 

Please update your script and reprovision your instance to let the changes take effect. Let us know if you run into any further issues.

Thanks!

Jordan

0 Kudos