Clair fails with "pgsql: database connection string is not a valid URL" when using complex password

Solution Verified - Updated -

Issue

  • Clair fails to start with the following error message:

    ______   _         __      _   _____
    /  ____| | |       /  \    | | |     \
    | |      | |      / /\ \   | | |  /\ /
    | |____  | |__   / ____ \  | | |  __ \
    \______| |____| /_/    \_\ |_| |_|  \_\
    
    
    Running scanner
    Generating a 4096 bit RSA private key
    ........................++
    .............++
    writing new private key to 'mitm.key'
    Copying custom certs to trust if they exist
    2020-04-22 12:42:49,004 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set   user=root in the config file to avoid this message.  
    2020-04-22 12:42:49,005 INFO supervisord started wi  th pid 20  
    2020-04-22 12:42:50,008 INFO spawned: 'jwtproxy' wi  th pid 23  
    2020-04-22 12:42:50,010 INFO spawned: 'clair' with   pid 24  
    time="2020-04-22T12:42:50Z" level=info msg="No clai ms verifiers specified, upstream should be configured to verify authorization"  
    time="2020-04-22T12:42:50Z" level=info msg="Startin  g reve  rse proxy (Listening on ':6060')"  
    time="2020-04-22T12:42:50Z" level=info msg="Starting forward proxy (Listening on ':6063')"  
    {"Event":"pgsql: database connection string is not a valid URL","Level":"fatal","Location":"main.go:97","Time":"2020-04-22 12:42:50.021541"}
    2020-04-22 12:42:50,023 INFO exited: clair (exit status 1; not expected)
    

Environment

  • Red Hat Quay 3.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In