Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting port error #116

Open
ShashiTharoor opened this issue Nov 11, 2021 · 1 comment
Open

getting port error #116

ShashiTharoor opened this issue Nov 11, 2021 · 1 comment

Comments

@ShashiTharoor
Copy link

ShashiTharoor commented Nov 11, 2021

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
Copy link

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

did you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants