User sergiodj@sergiodj.net

--> -->
Tag Bugs
 
 
OperationalError
Python 3.9.2: /usr/bin/python3
Sun Feb 25 05:36:06 2024

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /srv/udd.debian.org/udd/web/cgi-bin/bts-usertags.cgi in <module>
    324         index()
    325 
    326 
    327 if __name__ == '__main__':
=>  328     main()
main = <function main>
 /srv/udd.debian.org/udd/web/cgi-bin/bts-usertags.cgi in main()
    314         tag = form.getfirst('tag', '*').replace('*', '%')
    315         if '%' not in user and tag == '%':
=>  316             by_user(user)
    317         elif '%' not in user and '%' not in tag:
    318             tagged_bugs(user, tag)
global by_user = <function by_user>, user = 'sergiodj@sergiodj.net'
 /srv/udd.debian.org/udd/web/cgi-bin/bts-usertags.cgi in by_user(user='sergiodj@sergiodj.net')
    179     head('User %s' % strip_tags(user))
    180     thead('Tag', 'Bugs')
=>  181     for result in r:
    182         tr('<a href="?%(params)s">%(tag)s</a>' % {
    183               'tag': result.tag,
result undefined, r = <generator object query>
 /srv/udd.debian.org/udd/web/cgi-bin/bts-usertags.cgi in query(query=' SELECT tag, COUNT(*) AS count\n FROM bugs_us...d)\n WHERE email = %s\nGROUP BY tag\nORDER BY tag\n', cols=('tag', 'count'), *parameters=('sergiodj@sergiodj.net',))
     47 
     48 def query(query, cols, *parameters):
=>   49     conn = psycopg2.connect(DATABASE)
     50     conn.set_client_encoding('utf-8')
     51     cursor = conn.cursor()
conn undefined, global psycopg2 = <module 'psycopg2' from '/usr/lib/python3/dist-packages/psycopg2/__init__.py'>, psycopg2.connect = <function connect>, global DATABASE = 'service=udd'
 /usr/lib/python3/dist-packages/psycopg2/__init__.py in connect(dsn='service=udd', connection_factory=None, cursor_factory=None, **kwargs={})
    125 
    126     dsn = _ext.make_dsn(dsn, **kwargs)
=>  127     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
    128     if cursor_factory is not None:
    129         conn.cursor_factory = cursor_factory
conn undefined, global _connect = <built-in function _connect>, dsn = 'service=udd', connection_factory = None, kwasync = {}

OperationalError: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5452?
      args = ('could not connect to server: Connection refused\n... and accepting\n\tTCP/IP connections on port 5452?\n',)
      cursor = None
      diag = <psycopg2.extensions.Diagnostics object>
      pgcode = None
      pgerror = None
      with_traceback = <built-in method with_traceback of OperationalError object>