Use the command of koji moshimoshi Appeared“Max retries exceeded with url: /kojihub/ssllogin (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 503 Service Unavailable'” need help ,thanks!

[kojiadmin@koji ~]$ koji -d moshimoshi
2023-04-24 15:50:56,162 [DEBUG] koji: Opening new requests session
2023-04-24 15:50:56,163 [DEBUG] koji: Opening new requests session
2023-04-24 15:50:56,171 [DEBUG] koji: Opening new requests session
2023-04-24 15:50:56,172 [DEBUG] koji: ssl auth failed: requests.exceptions.ProxyError: HTTPSConnectionPool(host='koji.test-inc.com', port=443): Max retries exceeded with url: /kojihub/ssllogin (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 503 Service Unavailable',)))

Traceback (most recent call last):
  File "/usr/bin/koji", line 331, in <module>
    rv = locals()[command].__call__(options, session, args)
  File "/usr/lib/python3.6/site-packages/koji_cli/commands.py", line 7398, in handle_moshimoshi
    activate_session(session, options)
  File "/usr/lib/python3.6/site-packages/koji_cli/lib.py", line 752, in activate_session
    session.ssl_login(options.cert, None, options.serverca, proxyuser=runas)
  File "/usr/lib/python3.6/site-packages/koji/__init__.py", line 2744, in ssl_login
    raise AuthError(err)
koji.AuthError: unable to obtain a session (ssl auth failed: requests.exceptions.ProxyError: HTTPSConnectionPool(host='koji.test-inc.com', port=443): Max retries exceeded with url: /kojihub/ssllogin (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 503 Service Unavailable',)))
)
[kojiadmin@koji ~]$

Hi there, welcome to the forum.

The command seems to work for me. Your error seems to indicate an authentication error—how are you authenticating to koji please?

1 Like

I authenticates to koji by ssl
I create it , according to “Koji Authentication Selection¶” in this article https://docs.pagure.org/koji/server_howto/

i created it in linux ,it can not connect the internet,it must connect to internet by proxy

i used the same way to create koji system in linux ECS which it can connect the internet,but it can work

is the proxy making the error please?