ScRiPt1337 / Teardroid-phprat

:india: :robot: It's easy to use android botnet work without port forwarding, vps and android studio
https://scatter.sellup.io
MIT License
813 stars 312 forks source link

Error In Deploy On Own Vps #54

Closed flashxteam closed 1 year ago

flashxteam commented 1 year ago

I try to deploy on ubuntu vps but i can't deploy facing error & i deployed on deta.sh 10+ Times But Again And Again Susspend After 1 Days

ScRiPt1337 commented 1 year ago

how your own ubuntu vps got suspended

ScRiPt1337 commented 1 year ago

try https://www.clientvps.com its really awesome

flashxteam commented 1 year ago

my ubuntu vps not susspend i facing issuse in deploy

ScRiPt1337 commented 1 year ago

copy paste the error

flashxteam commented 1 year ago

which one is best os for deploy

ScRiPt1337 commented 1 year ago

ubuntu send me the error

ScRiPt1337 commented 1 year ago

send me the error your getting or i will not be able to help you

flashxteam commented 1 year ago

okay sir thanks you

ScRiPt1337 commented 1 year ago

please send me the error or close the issue if its already resolved

flashxteam commented 1 year ago

i'm sending give me few mins

flashxteam commented 1 year ago

File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/usr/lib/python3/dist-packages/uvicorn/server.py", line 76, in serve config.load() File "/usr/lib/python3/dist-packages/uvicorn/config.py", line 448, in load self.loaded_app = import_from_string(self.app) File "/usr/lib/python3/dist-packages/uvicorn/importer.py", line 21, in import_from_string module = importlib.import_module(module_str) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/root/Teardroidv4_api/./main.py", line 9, in from routers.client import client File "/root/Teardroidv4_api/./routers/client/client.py", line 7, in from db.database import client_db File "/root/Teardroidv4_api/./db/database.py", line 4, in deta = Deta(getenv("DETA_PROJECT_KEY")) File "/usr/local/lib/python3.10/dist-packages/deta/init.py", line 33, in init project_key, project_id = _get_project_key_id(project_key, project_id) File "/usr/local/lib/python3.10/dist-packages/deta/utils.py", line 8, in _get_project_key_id raise AssertionError("No project key defined") AssertionError: No project key defined

show this error when i put this command $ uvicorn main:app --host 0.0.0.0 --port 80

ScRiPt1337 commented 1 year ago

Go inside the db folder and open the database.py file and copy your Deta.sh project key and put it inside database.py file

flashxteam commented 1 year ago

why need deta.sh key or doin this this app deploy on my vps or deta.sh if it deploy on deta.sh then deta again susspend my project then what is benifit of deploy on own server

flashxteam commented 1 year ago

File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/usr/lib/python3/dist-packages/uvicorn/server.py", line 76, in serve config.load() File "/usr/lib/python3/dist-packages/uvicorn/config.py", line 448, in load self.loaded_app = import_from_string(self.app) File "/usr/lib/python3/dist-packages/uvicorn/importer.py", line 21, in import_from_string module = importlib.import_module(module_str) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/root/Teardroidv4_api/./main.py", line 9, in from routers.client import client File "/root/Teardroidv4_api/./routers/client/client.py", line 7, in from db.database import client_db File "/root/Teardroidv4_api/./db/database.py", line 4, in deta = Deta(getenv("c07yjw8l_7yYwvrmCLmuij2dQhWhShk4nvzPAaWew")) File "/usr/local/lib/python3.10/dist-packages/deta/init.py", line 33, in init project_key, project_id = _get_project_key_id(project_key, project_id) File "/usr/local/lib/python3.10/dist-packages/deta/utils.py", line 8, in _get_project_key_id raise AssertionError("No project key defined") AssertionError: No project key defined

after update key still got error

ScRiPt1337 commented 1 year ago

we only need there database and they are suspending micros only

flashxteam commented 1 year ago

i update project key using nano command but again show error

File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/usr/lib/python3/dist-packages/uvicorn/server.py", line 76, in serve config.load() File "/usr/lib/python3/dist-packages/uvicorn/config.py", line 448, in load self.loaded_app = import_from_string(self.app) File "/usr/lib/python3/dist-packages/uvicorn/importer.py", line 21, in import_from_string module = importlib.import_module(module_str) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/root/Teardroidv4_api/./main.py", line 9, in from routers.client import client File "/root/Teardroidv4_api/./routers/client/client.py", line 7, in from db.database import client_db File "/root/Teardroidv4_api/./db/database.py", line 4, in deta = Deta(getenv("c07yjw8l_7yYwvrmCLmuij2dQhWhShk4nvzPAaWew")) File "/usr/local/lib/python3.10/dist-packages/deta/init.py", line 33, in init project_key, project_id = _get_project_key_id(project_key, project_id) File "/usr/local/lib/python3.10/dist-packages/deta/utils.py", line 8, in _get_project_key_id raise AssertionError("No project key defined") AssertionError: No project key defined

ScRiPt1337 commented 1 year ago

replace deta = Deta(getenv("c07yjw8l_7yYwvrmCLmuij2dQhWhShk4nvzPAaWew")) with deta = Deta("c07yjw8l_7yYwvrmCLmuij2dQhWhShk4nvzPAaWew")

ScRiPt1337 commented 1 year ago

let me know if its fix your issue

flashxteam commented 1 year ago

thanks sir app deploy sucessfully but i cant access which port not forward please help me in port forward tell me just which type port i wana forwad like tcp,udp which one

ScRiPt1337 commented 1 year ago

use port 8080 or any port but make sure any firewall is not blocking it

flashxteam commented 1 year ago

thanks alot sir finally its works❤️❤️

ScRiPt1337 commented 1 year ago

welcome