[MXS-93] MaxScale repository set up does not work Created: 2015-04-10  Updated: 2023-05-12  Resolved: 2023-05-12

Status: Closed
Project: MariaDB MaxScale
Component/s: Documentation
Affects Version/s: 1.1.0
Fix Version/s: 1.1.0, N/A

Type: Bug Priority: Major
Reporter: Michaël de groot Assignee: Timofey Turenko
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

Ubuntu 14.04.2 LTS



 Description   

APT still gives an authentication error after setting it up using the configuration script:
root@linode-london-dev1:~# /usr/local/mariadb-maxscale-setup/configure-maxscale-repo
Please enter username:
michael.degroot@mariadb.com
Please enter password:
.........
OK

root@linode-london-dev1:~# apt-get update
.....................................................
.....................................................
Ign https://deb.nodesource.com trusty/main Translation-en_US
Ign https://deb.nodesource.com trusty/main Translation-en
Err http://code.mariadb.com trusty/main amd64 Packages
401 Authentication required
Err http://code.mariadb.com trusty/main i386 Packages
401 Authentication required
Ign http://code.mariadb.com trusty/main Translation-en_US
Ign http://code.mariadb.com trusty/main Translation-en
Fetched 2,793 kB in 14s (188 kB/s)
W: Failed to fetch http://code.mariadb.com/mariadb-maxscale/1.1/repo/ubuntu/dists/trusty/main/binary-amd64/Packages 401 Authentication required

W: Failed to fetch http://code.mariadb.com/mariadb-maxscale/1.1/repo/ubuntu/dists/trusty/main/binary-i386/Packages 401 Authentication required

E: Some index files failed to download. They have been ignored, or old ones used instead.



 Comments   
Comment by Timofey Turenko [ 2015-04-10 ]

I'm not sure, but my guess is:

configure-maxscale-repo puts user name and password into /etc/apt/sources.list.d/maxscale.list in following form:

http;//user:password@code.mariadb.com/mariadb-maxscale/1.1/

if user name contains @ maxscale.list file contains:
http;//michael.degroot@mariadb.com:password@code.mariadb.com/mariadb-maxscale/1.1/

I guess this makes apt-get confused and it gives 401 error.

Comment by Timofey Turenko [ 2015-04-10 ]

but are you sure that username is your email? I tried to create mariadb.com account and got an email:

timofeyturenko1,

Thank you for registering at MariaDB. You will be able to log in at
https://mariadb.com/user in the future using:

username: timofeyturenko1
password: Your password

Comment by Michaël de groot [ 2015-04-10 ]

You are right, I got an email with my username (which is tbh confusing to me). My username contains non-ascii characters, the URL http://michaëldegroot:....@code.mariadb.com/mariadb-maxscale/1.1/repo/ubuntu does not seem to accept my username. I will open a different issue for that in MDBE JIRA.

Comment by Michaël de groot [ 2015-04-10 ]

Ah you are right about that! I just entered my email in the registration process and a username was generated automatically.

The username generated automatically contains non-ascii characters, my username is 'michaëldegroot'. When going to the repo URL with a web browser it does not accept my credentials, the credentials are correctly added to the apt config file. So this issue indeed is not a MaxScale issue. Thanks for your help!

Comment by Timofey Turenko [ 2023-05-12 ]

reopen to set proper resolution

Generated at Thu Feb 08 03:56:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.