yash-dk / TorToolkit-Telegram

Most versatile Telegram torrent, direct-link, mega, and youtube-dl bot. Uploads to various cloud storage like Gdrive, Mega, Telegram, etc.
GNU General Public License v3.0
677 stars 1.56k forks source link

getting port error #116

Open ShashiTharoor opened 3 years ago

ShashiTharoor commented 3 years ago

it gives me an error

Error: '' is not a valid port number.

2021-11-11 18:28:30,890 INFO MainThread root Database created Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details import(pkg_name) File "/torapp/tortoolkit/init.py", line 19, in upload_db = TtkUpload() File "/torapp/tortoolkit/core/database_handle.py", line 116, in init super().init(dburl) File "/torapp/tortoolkit/functions/pg_plugin.py", line 28, in init self._conn = psycopg2.connect(self._dburl) File "/usr/local/lib/python3.8/dist-packages/psycopg2/init.py", line 127, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.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 5432?

Exception ignored in: <function TtkUpload.del at 0x7f0db9c43160> Traceback (most recent call last): File "/torapp/tortoolkit/core/database_handle.py", line 218, in del super().del() File "/torapp/tortoolkit/functions/pg_plugin.py", line 74, in del self._connection_users.pop() IndexError: pop from empty list Removing intermediate container 8e7334a75c7c The command '/bin/sh -c ./start.sh' returned a non-zero code: 1

i am a noob do not have much knowledge.

santosadrian commented 8 months ago

same here, I tried everything. I put export PORT=80 in .bashrc and also before starting bot...

did you solved it?