-
Notifications
You must be signed in to change notification settings - Fork 5
FAQ
Q. I am getting "Exceeded maximum connections."
File "/usr/local/lib/python2.7/dist-packages/playhouse/pool.py", line 127, in _connect
raise ValueError('Exceeded maximum connections.')
ValueError: Exceeded maximum connections.
This is a connection limit issue inside peewee. It can be resolved with --db-max_connections
As you increase db-threads, this will also need to increased.
Q. I am getting "Connection already open."
File "/home/jgauthier/wh/local/lib/python2.7/site-packages/peewee.py", line 3669, in connect
raise OperationalError('Connection already open')
peewee.OperationalError: Connection already open
Seems to happen to me when I run inside a virtualenv. I don't know why, and didn't spend any time trying to solve it.
Q. DB queue is > 50 (xx); try increasing --db-threads
This happens for a couple reasons. First, try increasing --db-threads. In the statistics output you can see your maximum queue. It's also possible that when your pokemon table gets too large, the performance degrades.
Q. I'm getting an error in RocketMap:
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f8318a46450>: Failed to establish a new connection: [Errno 110] Connection timed out',)':
I am still researching this issue, but it appears to be an OS issue, and not an issue with the webhook.
I've only run this webhook on Linux, and this message also shows up in the system logs:
TCP: Possible SYN flooding on port 5001. Sending cookies. Check SNMP counters.
Check your TCP SYN backlog:
sudo sysctl net.ipv4.tcp_max_syn_backlog
Try setting it up:
sysctl -w net.ipv4.tcp_max_syn_backlog=1024