Too many clients
I'm seeing this quite frequently when registering multiple datasets:
$ rucio-admin -a root account set-limits root CNAF 100000000000000
Database exception.
Details: (psycopg2.OperationalError) FATAL: sorry, too many clients already
(Background on this error at: http://sqlalche.me/e/e3q8)
Rucio exited with an unexpected/unknown error, please provide the traceback below to the developers.
Traceback (most recent call last):
File "/usr/bin/rucio-admin", line 128, in new_funct
return function(*args, **kwargs)
File "/usr/bin/rucio-admin", line 381, in set_limits
client.set_account_limit(account=args.account, rse=args.rse, bytes=byte_limit)
File "/usr/lib/python2.7/site-packages/rucio/client/accountlimitclient.py", line 62, in set_account_limit
raise exc_cls(exc_msg)
DatabaseException: Database exception.
Details: (psycopg2.OperationalError) FATAL: sorry, too many clients already
(Background on this error at: http://sqlalche.me/e/e3q8)
May be related to: https://stackoverflow.com/questions/2757549/org-postgresql-util-psqlexception-fatal-sorry-too-many-clients-already